# Product sold in multiple packagings

**URL:** https://discuss.tryton.org/t/product-sold-in-multiple-packagings/227
**Category:** Ideas
**Tags:** sales
**Created:** [October 11, 2016, 9:28am UTC](https://discuss.tryton.org/t/product-sold-in-multiple-packagings/227 "2016-10-11T09:28:40Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![castaf](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/c/b2d939/32.png) [@castaf](https://discuss.tryton.org/u/castaf)
#### Post date: [October 11, 2016, 9:28am UTC](https://discuss.tryton.org/t/product-sold-in-multiple-packagings/227/1 "2016-10-11T09:28:40Z")

</div>

[Original discussion](https://groups.google.com/forum/#!topic/tryton-fr/YEr0AZU98Bs)

## Rational

We have a product supplied in certain packaging (sand bag of 25 kg). We sell this sand in bags, not in weight.  
We sell this product in its original packaging and others packaging (1 kg, 10 kg).  
The unit sale price for 1 kg varies in function of the packaging, for example:

- 1 kg: 6 euros,
- 10 kg: 38 euros (3.8 euros/kg),
- 25 kg: 50 euros (2 euros/kg).

In a Tryton sale, we need:

- to apply the price corresponding to a certain packaging;
- indicate the quantity of the product in this certain packaging;
- to show the packaging information in reports (sale, invoice, shipment).

## Proposal

###UX  
In the product form view, in general or sale tab, have a list of availables packagings; a packaging is a factor that multiplies the product’s UOM, and a price.

When we add a product in a sale, there is a field to select the packaging of the product. When we select a packaging the unit price is updated with packaging price.

In the documents (sale, invoice, shipment), we have one supplementary column indicating packaging.

---

<div class="post-metadata">

### Author: ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)
#### Post date: [October 14, 2016, 8:49am UTC](https://discuss.tryton.org/t/product-sold-in-multiple-packagings/227/2 "2016-10-14T08:49:54Z")

</div>

The nantic guys have developed some modules that implement this kind of features. You can find them in their bitbucket account:

> **[Bitbucket](https://bitbucket.org/nantic/workspace/repositories/)**

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [October 14, 2016, 9:53am UTC](https://discuss.tryton.org/t/product-sold-in-multiple-packagings/227/3 "2016-10-14T09:53:43Z")

</div>

Is it not better to implement a “second sale UOM” which is from a different UOM category than the default UOM. Instead of introducing a new object “packaging” which will be confusing with the existing one from `stock_package`.  
As this will result in the creation of many new UOM category, we should maybe also allow to constraint a category to a set of product because sand “bag of 25 kg” is not the same as a cement “bag of 25 kg”.

---

<div class="post-metadata">

### Author: ![guillemNaN](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/guillemnan/32/69_2.png) [@guillemNaN](https://discuss.tryton.org/u/guillemNaN)
#### Post date: [November 8, 2016, 12:39pm UTC](https://discuss.tryton.org/t/product-sold-in-multiple-packagings/227/4 "2016-11-08T12:39:58Z")

</div>

The “second\_uom” modules are not to manage packagings.  
The modules that implement this blueprint are priduct\_package, sale\_product\_package…

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [November 8, 2016, 2:09pm UTC](https://discuss.tryton.org/t/product-sold-in-multiple-packagings/227/5 "2016-11-08T14:09:44Z")

</div>

> [@guillemNaN](#):
>
> The “second\_uom” modules are not to manage packagings.

Why not?  
For what I see from the \*package modules, package is no more than a second unit of measure. And by naming it like that, it allows to have a more generic usage.  
Also the name package is already used by `stock_package` module for a very different meaning.

---

<div class="post-metadata">

### Author: ![tbruyere](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/tbruyere/32/37_2.png) [@tbruyere](https://discuss.tryton.org/u/tbruyere)
#### Post date: [March 8, 2019, 10:35am UTC](https://discuss.tryton.org/t/product-sold-in-multiple-packagings/227/6 "2019-03-08T10:35:18Z")

</div>

> [@ced](#):
>
> Why not?  
> For what I see from the \*package modules, package is no more than a second unit of measure. And by naming it like that, it allows to have a more generic usage.

We often see that the unit price is different by packaging but not linked to the factor/rate between secondary unit.  
Sample : Product is stored in KG but sell in bag 10KG for 10€ and bag 20kg for 15€.  
Or do you think the secondary unit could be used in list price ?

Following the discuss : https://discuss.tryton.org/t/uom-conversion-inter-category-on-product/1219  
We have only one secondary sale unit, how to sell in multiple packaging (bag of 10KG and bag of 20KG) ?

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [March 8, 2019, 10:40am UTC](https://discuss.tryton.org/t/product-sold-in-multiple-packagings/227/7 "2019-03-08T10:40:53Z")

</div>

I doubt that the price change by packaging. Indeed it is often just a price decreasing by quantity.

Or it is two different products because you can not switch one for the the other.

---

<div class="post-metadata">

### Author: ![waseem](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/w/9dc877/32.png) [@waseem](https://discuss.tryton.org/u/waseem)
#### Post date: [August 19, 2023, 6:58pm UTC](https://discuss.tryton.org/t/product-sold-in-multiple-packagings/227/8 "2023-08-19T18:58:49Z")

</div>

@ pokoli, i found a repostories name " **[trytond-product\_package](https://github.com/NaN-tic/trytond-product_package)**". Showing an error AssertionError. Would you like to help me how to resolve that error?

---

<div class="post-metadata">

### Author: ![vincent](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/vincent/32/29_2.png) [@vincent](https://discuss.tryton.org/u/vincent)
#### Post date: [September 18, 2023, 9:36am UTC](https://discuss.tryton.org/t/product-sold-in-multiple-packagings/227/9 "2023-09-18T09:36:37Z")

</div>

We also have this scenario. We have the same product sold in different ‘containers’ and their prices change, but the change in price is not a function of the quantity. The change in price is a function of the cost of the container.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [September 18, 2023, 10:17am UTC](https://discuss.tryton.org/t/product-sold-in-multiple-packagings/227/10 "2023-09-18T10:17:40Z")

</div>

For me when the price is not in relation with the quantity than it is no more one product but two different products because they are not more interchangeable (which conflict with the Tryton definition of product).

Of course you could manage both products as being produced from the same raw material.  
Or if you do not want to deal with production, you can create two kit product composed from the same raw material.

---

<div class="post-metadata">

### Author: ![vincent](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/vincent/32/29_2.png) [@vincent](https://discuss.tryton.org/u/vincent)
#### Post date: [September 18, 2023, 11:25am UTC](https://discuss.tryton.org/t/product-sold-in-multiple-packagings/227/11 "2023-09-18T11:25:11Z")

</div>

We ended up going with 2 products and 3 BOM’s. 1 BOM for the ‘raw’ product and 1 BOM for each packaged product using the production\_phantom\_bom module
