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

Hay,

I do object inheritance with _name != _inherit like in second part of doc

class custom_material(osv.osv):
    _name = 'network.material'
    _inherit = 'network.material'
    _columns = {
        'manuf_warranty': fields.boolean('Manufacturer warranty?'),
    }
    _defaults = {
        'manuf_warranty': lambda *a: False,
    }
custom_material()

Have you a tip to create a custom material from a network material (by copying it ?)

아바타
취소
작성자 베스트 답변

I've found the solution : You can use result of copy_data method of network material class in create method of custom material

아바타
취소

Hi. How can you do this?

관련 게시물 답글 화면 활동
3
7월 18
4000
2
5월 15
32554
0
1월 22
2815
2
7월 16
8141
1
7월 15
3908