Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4447 มุมมอง

How does it come from POS UI to 'pos.order'.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

all the data from POS UI to the backend(python) via create_from_ui
https://github.com/odoo/odoo/blob/11.0/addons/point_of_sale/models/pos_order.py#L715
and from _process_order it will create pos order
https://github.com/odoo/odoo/blob/11.0/addons/point_of_sale/models/pos_order.py#L116

อวตาร
ละทิ้ง
ผู้เขียน

Basically I created a button called "Force Date" in front end to collect a date and to replace the current date(date_order) on order with this entered date in the back end. So far I've fetched the entered date to a variable in js file. What can I do next? Should I use export_as_JSON?

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ธ.ค. 22
4528
How to build Custom screen in Odoo pos แก้ไขแล้ว
2
ม.ค. 20
11353
0
พ.ย. 19
86
0
ส.ค. 17
4928
0
มี.ค. 16
4563