跳至內容
選單
此問題已被標幟
1 回覆
3115 瀏覽次數

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
5246
2
5月 25
3806
0
11月 24
1089
1
8月 24
1832
4
6月 24
7745