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

I have this but when I update my module it appends the same tuple

class account_journal_inherit(osv.osv):
 
    _inherit='account.journal'

    def __init__(self, pool, cr):
            
            _type=super(account_journal_inherit, self)._columns['type'].selection
            _type.append(('credit_payment', 'Prepaid Credit'))
            
            return super(account_journal_inherit, self).__init__(pool,cr)

 

Thanks

아바타
취소
베스트 답변

Could you elobrate more...

or you trying to say you want your own set of typle values for selection field "type" ?

If So then Override it... Re-define type under columns in your custom module.. that one can override its original values.. or extend it too...

아바타
취소