跳至内容
菜单
此问题已终结
1 回复
3130 查看

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.

形象
丢弃
最佳答案

Try to inherit the product model or use delegation.

形象
丢弃
相关帖文 回复 查看 活动
2
4月 18
5254
2
5月 25
3815
0
11月 24
1096
1
8月 24
1834
4
6月 24
7745