Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
3043 Lượt xem

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.


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 10 21
4625
2
thg 5 19
6395
2
thg 5 19
9091
0
thg 2 19
2399
0
thg 1 19
3726