Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4434 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

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?

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 12 22
4517
2
thg 1 20
11348
0
thg 11 19
86
0
thg 8 17
4925
0
thg 3 16
4557