How can I alter the pos receipt by adding product category after product name in odoo 13? Can anybody help me to solve this?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
2545
Views
Hi ,
The field categ_id already loaded by Odoo .In odoo 13 there for just rewrite export_for_printing function in js by including category field.
product_categ: this.get_product().categ_id
Finally you have to xpath your field in your xml file.
Product category :<t t-esc=line.product_categ’/>
In case of your custom field you have to load the field by using
models.load_fields("table name", [ ' field_name ' ]);
You can extend the pos ticket by using following method
<templates id="template" xml:space="preserve">
<t t-extend="PosTicket">
new code here...
Regards
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up