Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
3095 Prikazi

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
Opusti
Best Answer

Try to inherit the product model or use delegation.

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
apr. 18
5228
2
maj 25
3797
0
nov. 24
1087
1
avg. 24
1828
4
jun. 24
7735