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

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
5226
2
5月 25
3795
0
11月 24
1087
1
8月 24
1827
4
6月 24
7735