This question has been flagged
1 Reply
2173 Views

I have this model :

        class Consumption(models.Model):
        _name = 'billing.consumption'
        client = fields.Many2one(comodel_name='res.partner')
        duration = fields.Integer()
        price = fields.Float()
        total = fields.Float()      

and I want create a product for each consumption.

Avatar
Discard
Best Answer

Try to inherit the product model or use delegation.

Avatar
Discard