how can i show the product internal ref. in pos receipt ?
i tried line.internalreferenace
but failed
POS ODOO 14
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
how can i show the product internal ref. in pos receipt ?
i tried line.internalreferenace
but failed
POS ODOO 14
i have to edit
odoo/addons/point_of_sale/static/src/js/models.js
to add default_code
other wise it will not work
line 1935
export_for_printing: function(){return {id: this.id,quantity: this.get_quantity(),
default_code: this.get_product().
Hi,
This is the method for inheriting the existing pos receipt in Odoo14.We can use "line.default_code" for showing product internal reference in pos receipt.An example of bringing internal reference is shown below.
< t t-name="OrderReceipt" t-inherit="point_of_sale.OrderReceipt" t-inherit-mode="extension" owl="1"> < xpath expr="//div[hasclass('orderlines')]" position="inside"> < t t-foreach="receipt.orderlines" t-as="line"> < t t-if="line.default_code"> < li> < t t-esc=" line.default_code"/> < /li> < /t> < /t> < /xpath> < /t>
Regards
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-seRelated Posts | Respostes | Vistes | Activitat | |
---|---|---|---|---|
|
0
de nov. 23
|
1923 | ||
|
0
de maig 23
|
2667 | ||
|
0
de des. 22
|
2477 | ||
|
0
d’oct. 22
|
3676 | ||
|
0
de juny 22
|
1739 |