Hello guys,
Look at this please...
In the pos_order model, they are these two fields :
- « name » that contains a string like this CF-2015-PV000001 (for us, our own sequence);
- « pos_reference » that contains a string like this Commande 00015-001-0001.
In the file odoo-8/openerp/addons/point_of_sale/static/src/xml/pos.xml :
In the template <t t-name="PosTicket">
even if <t t-esc="order.get('name')"/> is used, the value of the pos_reference is returned on the printed pos ticket. Not the value of the real name field (CF-2015-PV000001).
How to change this please? An idea?
Goal : we want a pos printed ticket with the real name (CF-2015-PV000001) on it. Not the pos_reference (Commande 00015-001-0001).
UPDATE #1
I'm not still sure. I think that the pos_reference is created in the client browser, with javascript (generateUniqueId method). once the order is validated in the pos, it is sent to the server and THEN it is stored in the pos_order model. At this moment, the name and the pos_reference are filled.
I think that the name field value can not be printed on the pos receipt because the receipt is created on the client side before the order is created on the server side. The client side can not get the value of the name field on the server.
Is it clear? Is it true?