I want to create my own module which is an extension of sale.order. I want to have a form view which is like sale order
view with few additional fields,
My problem is that when I inherit the sale order
view and add say three extra fields these fields comes by default in the Original Sale Order
form view too.
is this the default behaviour or am I doing something wrong ?
What should I do to achieve what I want.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
I think it will be an option , you just inherit the sale.order module and add three new field in python then create its corresponding xml file and then put your desired fields what you want.
Ex. create a class A inherit Sale.order ... in class A add three new fields and then go for its xml creation then keep all the xml properties same as sale.order's just add these three new fields where you want to add after replacing the previous in sale order form.
But may be there many way to achieve your requirement so better decide how u want to ..
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 8 24
|
1870 | ||
|
4
thg 3 24
|
3312 | ||
|
1
thg 10 23
|
5266 | ||
|
1
thg 11 22
|
2883 | ||
|
1
thg 6 22
|
6492 |
Try to look at this small module as example: https://github.com/bamps/smtp-per-user