Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3093 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Try to inherit the product model or use delegation.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 4 18
5226
2
thg 5 25
3795
0
thg 11 24
1087
1
thg 8 24
1827
4
thg 6 24
7735