Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
4443 Weergaven

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

Avatar
Annuleer
Beste antwoord

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

Avatar
Annuleer
Auteur

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?

Gerelateerde posts Antwoorden Weergaven Activiteit
0
dec. 22
4525
2
jan. 20
11352
0
nov. 19
86
0
aug. 17
4927
0
mrt. 16
4562