Skip to Content
मेन्यू
This question has been flagged
1 Reply
3117 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
अप्रैल 18
5247
2
मई 25
3806
0
नव॰ 24
1089
1
अग॰ 24
1832
4
जून 24
7745