Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
3025 Weergaven

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.


Avatar
Annuleer
Beste antwoord

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

Avatar
Annuleer
Beste antwoord

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

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
okt. 21
4613
2
mei 19
6385
2
mei 19
9069
0
feb. 19
2385
0
jan. 19
3715