Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
3034 มุมมอง

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
4619
2
พ.ค. 19
6393
How to apply char input field mask? แก้ไขแล้ว
2
พ.ค. 19
9075
0
ก.พ. 19
2389
0
ม.ค. 19
3718