コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3137 ビュー

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
5259
2
5月 25
3821
0
11月 24
1098
1
8月 24
1846
4
6月 24
7748