On 09 May 19:17, Albert Cervera i Areny wrote: > 2014-05-09 19:07 GMT+02:00 Cédric Krier <cedric.kr...@b2ck.com>: > > On 09 May 18:36, Albert Cervera i Areny wrote: > >> 2014-05-09 18:13 GMT+02:00 Cédric Krier <cedric.kr...@b2ck.com>: > >> > On 04 May 10:53, Albert Cervera i Areny wrote: > >> >> Again, probably do not understand. Let's define the model. > >> >> > >> >> Do you want to add what your model would look like in the wiki and > >> >> continue the discussion from there? > >> > > >> > I did not edit the wiki, I let you the authority. > >> > Here is the design I have: > >> > >> Looks good to me in general. However I'd like to re-introduce the > >> OperationType concept. Design and reason below: > > > > Ok so my answer is: > > > >> > > >> > > >> > class BOM: > >> > operations = fields.One2Many() > >> > > >> > > >> > class OperationTemplate: > >> > bom = fields.Many2One() > >> > sequence = fields.Integer() > >> > time = fields.Float() > >> > operator = fields.Selection(['linear', 'constant']) > >> > asset_resources = fields.One2Many() > >> > employee_resources = fields.One2Many() > >> > > >> > > >> > class AssetResource: > >> > product = fields.Many2One() > >> > > >> > > >> > class EmployeResource: > >> > group = fields.Many2One() > >> > > >> > > >> > class Production: > >> > operations = fields.One2Many() > >> > > >> > > >> > class Operation: > >> > production = fields.Many2One() > >> > sequence = fields.Integer() > > template = fields.Many2One() > > The problem is that it makes the "route" part of the BOM less > flexible. See your own answer when I proposed this here: > > https://groups.google.com/d/msg/tryton-dev/X5do2teK0mU/qP0Mw7oixM8J > > were you said "But it prevents evolution of the Route." > > Which I think was completely right. That's why I think OperationType > is a better solution.
Ok if OperationType is not required by default. -- Cédric Krier - B2CK SPRL Email/Jabber: cedric.kr...@b2ck.com Tel: +32 472 54 46 59 Website: http://www.b2ck.com/
pgpI0orr89tIw.pgp
Description: PGP signature