Skip to Content
Menú
This question has been flagged
1 Respondre
3110 Vistes

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

Try to inherit the product model or use delegation.

Avatar
Descartar
Related Posts Respostes Vistes Activitat
2
d’abr. 18
5244
2
de maig 25
3806
0
de nov. 24
1089
1
d’ag. 24
1832
4
de juny 24
7744