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 | etc.
Hi, please give me instruction for add in sale.order.form 5 columns with quantity in size product S, M, L, XL and 2XL and in total quantity display the sum
I have this
<xpath expr="//field[@name='order_line']/tree/field[@name='name']" position="after"> <field name="talla_xs"/> <field name="talla_s"/> <field name="talla_m"/> <field name="talla_l"/> <field name="talla_xl"/> <field name="talla_2xl"/>
But total quantity not refresh, please share me some function for that, tnks
you need to create a new module that inherits sale.order.line. you add the five fields to the sale.order.line object you extend the sale order xml to include your five new fields plus an on-change for each (or if you always have a value in each, then an on-change for the last). The on-change then sums the quantities and puts in the line quantity field.
your other option is to look at product variants - would mean that each size would be a different sale order line - but what you require is already done.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 3/18/14, 12:39 AM|
|Seen: 1551 times|
|Last updated: 3/16/15, 8:10 AM|