Skip to Content
Menu
This question has been flagged
1 Atsakyti
3121 Rodiniai

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.

Portretas
Atmesti
Best Answer

Try to inherit the product model or use delegation.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
bal. 18
5247
2
geg. 25
3806
0
lapkr. 24
1089
1
rugp. 24
1832
4
birž. 24
7745