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

Our developer make a custom module where it has force_date field, he want to update the dates in account.invoice date, sale.order date and the stock.picking date base on the force_date field value but in different module which I will create later on, a new module.


I'm still new to the environment of Odoo so It's really difficult for me, especially in inheriting coz I haven't try it yet, inheriting another module. 

Even just the pseudo code on how to do it will be a big help, if i still need to create a xml for the extension. Thank u :)


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

Hi,

For inheriting the Model in Python file and views in XML files, you can have a look at this video: https://www.youtube.com/watch?v=z1Tx7EGkPy0

Thanks

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

In Odoo/OpenERP we can inherit or use existing modules object/class/model and views. We can also inherit single field of existing modules. The question is why we need such inheritance.

Reference: Inheritance in model and views

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 2 25
3644
1
thg 8 24
2693
2
thg 11 24
4022
3
thg 10 23
15443
2
thg 2 23
2903