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:


    class BOM:
        operations = fields.One2Many()


    class OperationTemplate:
        bom = fields.Many2One()
        sequence = fields.Integer()
        description = fields.Text()
        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()
        description = fields.Text()
        time = fields.Float()
        assets = fields.One2Many()
        employees = fields.One2Many()


    class OperationAsset:
        product = fields.Many2One()
        lot = fields.Many2One()  #  Optional


    class OperationEmployee:
        group = fields.Many2One()
        employee = fields.Many2One()  # Optional

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Attachment: pgp2OcoDoieOe.pgp
Description: PGP signature

Reply via email to