Skip to Content
Menu
This question has been flagged
1 Odpoveď
3119 Zobrazenia

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
Zrušiť
Best Answer

Try to inherit the product model or use delegation.

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
2
apr 18
5247
2
máj 25
3806
0
nov 24
1089
1
aug 24
1832
4
jún 24
7745