Can someone help me in adding custom fields in the existing form views in odoo 10.0. In Odoo 9.0 there was an option called "manage views" so from that we can easily add the custom fields just like drag and drop. But in odoo 10.0 that option is not available. Someone please help me in this problem.
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ờ
Hi Ahmed Sharief,
Define a custom_field in python file
from odoo import models, fields
class DemoInherited(models.Model):
_inherit = 'model_name'
custom_field = fields.Char(string='Custom Field')
Then check the XML
<!--Inherit the corresponding form view-->
<record id="view_model_name_custom" model="ir.ui.view">
<field name="name">test.custom.form.inherited</field>
<field name="model">model_name</field>
<field name="inherit_id" ref="external_id_of_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='field_in_original_form']" position="after">
<field name="custom_field"/>
</xpath>
</field>
</record>
Thank you
Nikhil krishnan
..
In case of editing project form view:
1. developer mode>database structure>fields>create
2. Open some project form view. Select from developer menu "edit form view" and follow the instructions https://www.youtube.com/watch?v=hCUY-Pzn1gU
Hi, There is a video to guide how to add custom field in Odoo.
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 6 18
|
4381 | ||
|
1
thg 1 20
|
5573 | ||
|
1
thg 11 16
|
3895 | ||
|
1
thg 9 25
|
10344 | ||
|
1
thg 11 18
|
5933 |
From UI see this video : https://www.youtube.com/watch?v=BNxfX3zCpts