Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
3012 Переглядів

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
жовт. 21
4605
2
трав. 19
6378
2
трав. 19
9064
0
лют. 19
2376
0
січ. 19
3712