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

Hi,

I would like to override testcases of odoo sales module. Is that possible?

아바타
취소
베스트 답변

yes, it's possible. 
Inherit the standard test class and override the test case(method) you want to modify. 

아바타
취소
작성자

Can you possibly give me an example? Thanks!

https://github.com/odoo/odoo/blob/12.0/addons/sale/tests/test_sale_transaction.py#L11

like this, you can inherit any test class and override its method

작성자

Thank you! Unfortunately this is not working as expected, because the 'old' code is still executed and throws erros.

베스트 답변

rather than override, what you want is inherit the test and modify part of his code from an external module?

아바타
취소