콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3184 화면

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
5296
2
5월 25
3859
0
11월 24
1127
1
8월 24
1883
4
6월 24
7774