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

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
5494
2
5月 25
4060
0
11月 24
1236
1
8月 24
1978
4
6月 24
7939