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
Tnks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
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.
Please give me one example for 1 field and i extend it for other 4
Hi, please give me help tnks
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"/>
</xpath>
But total quantity not refresh, please share me some function for that, tnks
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
3
thg 4 25
|
25094 | ||
|
1
thg 5 17
|
10106 | ||
|
1
thg 1 16
|
9323 | ||
|
2
thg 3 15
|
5832 | ||
|
1
thg 8 25
|
311 |
Hi, please give me some instructions, tnks