تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
4424 أدوات العرض

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?

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
ديسمبر 22
4515
2
يناير 20
11340
0
نوفمبر 19
86
0
أغسطس 17
4922
0
مارس 16
4555