Odoo Help


how to extend (create) order line wizard module in odoo 8 based on pack-composition of variable attribute

on 7/31/16, 6:45 AM 752 views

Hi all,

I am looking for order lines configuration wizard module based on "variable attribute pack composition" that is used a lot in garment industry. For example a product template of t-shirt may have 2 attributes : color and size. Often the t-shirt is sold or purchased with packaging with certain composition whether the color or the size. Let's me explain in detail:

for example The color attribute have 3 attribute values such as  blu red and green

each color value has 6 size value  : XS S M L XL  XXL

The business nature usually sold or purchased with standard composition or unit pack,  where each unit pack have same in size but has all the colors with certain qty for each color for that unit pack, or in other way, it has same color for all sizes with certain qty of each size. I call this as unit-pack-composition.

as our case said the chosen way is  the size attribute as a variable attribute. so the pack composition is in a dozen that consist of

1 unit for size  XS,

2 units for size  S,

3 units for size  M,

3  unit for size  L,

2 unit for size  XL,

1 unit for size  XXL,

To help user productivity, we want user just select the product template and input the total order, and select the unit-pack-composition name (id), then the wizard will generate the order lines for all sizes and compute the qty of each line (size). User can edit the generated lines when needed as usual.

The nearest function that i found on the community resources is in this module:



and the article to use and configure in


but the process to input the qty in the modules still manual.

could someone please share if you have the modules with above function already, or share how to extend the 2 modules above so it will have options in the qty input process (manually or select unit-pack-composition), and create the unit-pack-composition.



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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 7/31/16, 6:45 AM
Seen: 752 times
Last updated: 7/31/16, 10:07 AM