Skip to Content
Menu
This question has been flagged
1 Reply
2393 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
Related Posts Replies Views Activity
2
Apr 18
4192
0
Nov 24
66
1
Aug 24
261
4
Jun 24
6703
1
Aug 24
1001