i need form view like the view in base.res_partner_view.xml but i should use different model.so anyone can help me..
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ờ
you have to inherit the resource partner class on your new module like this way: _inherit = 'res.partner' and in a columns section you can add the fields which you wanted in your module.
now you have to inherit the resource partner view also in xml like this way.. <record id="view_partner_form" model="ir.ui.view"> <field name="name">res.partner.form</field> <field name="model">res.partner</field> <field name="inherit_id" ref="base.view_partner_form"/> <field name="arch" type="xml">
now you have to give your custom filed position in to this view like this
<field name="email" position="replace"> <field name="gmail"/> <field name="skype"/> </field>
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 | |
---|---|---|---|---|
View inheritance
Đã xử lý
|
|
1
thg 3 20
|
2732 | |
|
12
thg 12 18
|
33873 | ||
|
1
thg 7 16
|
6308 | ||
|
2
thg 3 15
|
5322 | ||
|
0
thg 3 15
|
3390 |