2014-06-16 18:59 GMT+02:00 Cédric Krier <[email protected]>:

> On 16 Jun 18:31, Guillem Barba Domingo wrote:
> > El 16/06/2014 18:21, "Cédric Krier" <[email protected]> va escriure:
> > >
> > > On 16 Jun 18:08, Guillem Barba Domingo wrote:
> > > > El 16/06/2014 15:37, "Cédric Krier" <[email protected]> va
> escriure:
> > > > >
> > > > > On 16 Jun 15:30, Guillem Barba Domingo wrote:
> > > > > > > You can define many BOM's for the same product.
> > > > > > > By default Tryton will pick the first one but it should be
> > possible to
> > > > > > > write a code to select one base on some criteria.
> > > > > >
> > > > > >
> > > > > > If in the described use case, for each product there is only one
> > valid
> > > > BoM,
> > > > > > maybe you found useful our module production_bom_versions [1].
> > > > > > It adds to BoM an start/end dates, and a BoM can be related to
> its
> > > > "master
> > > > > > BoM" (it's a way to "group" them, there is nothing inherited from
> > > > "master
> > > > > > BoM").
> > > > > > There is only one active version per each master.
> > > > >
> > > > > But it is missing the management of the link between product and
> bom.
> > > >
> > > > The link is between product and master bom.
> > >
> > > I don't understand. Tryton always uses by default the first BOM of the
> > > product.
> >
> > I don't understand what you don't understand.
> > You can look at the code to see what it does exactly.
>
> I don't understand that you said it is a solution to the problem because
> for me, it doesn't change how the BOM is selected.


when you select a BoM (master or with master), the system automatically
selects the current version for this BoM. Only the master BoM is related to
product with the Many2Many field.
If you only have one BoM per product (with multiple versions of this BoM),
this module solves your problem mantaining more clean the list of BoMs
(except an specific menú entry, only master BoMs are shown).

If you have different mater BoM per product, you also need some
module/improvement to select the correct one.

-- 
Guillem Barba
http://www.guillem.alcarrer.net

Reply via email to