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

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
5474
2
5월 25
4018
0
11월 24
1212
1
8월 24
1955
4
6월 24
7897