تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
3125 أدوات العرض

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
أبريل 18
5249
2
مايو 25
3812
0
نوفمبر 24
1089
1
أغسطس 24
1832
4
يونيو 24
7745