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

I want to know if its possible to overwrite Odoo Enterprise code using a custom module.


I know that is allowed to extend Odoo Enterprise modules to add some extra fields for example.


But what if I want to change  the normal  behavior  of  a  method,  to  do  something  extra  or  different.


For example, the name_get method for some model that belongs to an Odoo Enterprise module is:


def name_get(self):
    self.browse(self.ids).read(['odoo_field', 'another_odoo_field'])
    return [( odoo_field.id, '%s%s' % ( odoo_field '[%s] ' %  another_odoo_field or '', odoo_field ))
    for test in self]


But, I want this to work with a custom field, so, it will be something like:

def name_get(self):
    self.browse(self.ids).read(['odoo_field', 'custom_field'])
    return [( odoo_field.id, '%s%s' % ( odoo_field '[%s] ' %  custom_field or '', odoo_field ))
    for test in self]


The idea is too keep the code as similar as possible to avoid troubles with other integrations, but doing this extra thing that is needed.


I know that is allowed to add this custom field, but is also allowed to overwrite methods to work with this custom field? Or it will conflict with the "Odoo Enterprise Edition License"?


The customer has an active Odoo Enterprise subscription, for the correct number of users.


아바타
취소
베스트 답변

Hi,

it is allowed to do so. You can customize the system as per the need.

Thanks

아바타
취소
관련 게시물 답글 화면 활동
2
1월 23
13262
1
7월 17
5183
2
8월 16
7687
1
12월 22
4075
1
6월 20
12578