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

I'm using Odoo 9 and i want to change the due date after the validation of the invoice when i do a payment in a way that due date takes the payment date . Should i create a new function or i override a function that already exist ? Any idea for help please  i blocked with this problem for days now.


아바타
취소
베스트 답변

Overriding function is always a better way instead of creating new one . Because , the old function may harm the functional flow.

아바타
취소
베스트 답변

If you want to manually change the date in the invoice :

 - you probably need to change the "required" condition of the due date field by inheriting the invoice form view

If you want to automatically set the incoice due date to payment date at payment registration :

- you probably need to to inherit/override the python method called by payment registration button

아바타
취소
관련 게시물 답글 화면 활동
1
10월 21
4617
2
5월 19
6392
2
5월 19
9071
0
2월 19
2387
0
1월 19
3715