Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3109 มุมมอง

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
เม.ย. 18
5244
2
พ.ค. 25
3806
0
พ.ย. 24
1089
1
ส.ค. 24
1832
4
มิ.ย. 24
7744