Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3107 Zobrazení

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
Zrušit
Nejlepší odpověď

Try to inherit the product model or use delegation.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
dub 18
5241
2
kvě 25
3805
0
lis 24
1089
1
srp 24
1832
4
čvn 24
7744