コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
3039 ビュー

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
4619
2
5月 19
6393
2
5月 19
9079
0
2月 19
2398
0
1月 19
3719