hi I'm new to OpenERP. I'm using Sales Management and Accounting and Finance module's. I want to hide " JobPosition " field in the form where one can create a new customer.
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ờ
Try inheriting the view in a new xml file:
<record id="res_partner_x" 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>
<field name="arch" type="xml">
<xpath expr="//field[@name='function']"" position="replace">
<field name="function" placeholder="e.g. Sales Director"
attrs="{'invisible': [('is_company','=', True)]}"
class="oe_edit_only"/>
</xpath>
</field>
</record>
This way, the field will also be invisible while in edit-mode.
Another suggestion would be to make the field readonly.
<field name="function" placeholder="e.g. Sales Director"
attrs="{'invisible': [('is_company','=', True)]}"
readonly="1"/>
</field>
This way the field will be visible but not editable.
@Rene Schuter : Thank's alot. I'm new to this OpenERP. Can u please tell me cleary which file i should inherit and where should i place the new xml file and after writing the new xml what is the procedure to make it work properlly. If you could give me a link to follow the step it would be a great help for me.
http://www.pixelite.co.nz/article/adding-additional-fields-using-custom-module-openerp-7
Try this tutorial and get familiar with the basics of OpenERP.
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 25
|
180 | ||
|
1
thg 7 25
|
656 | ||
|
2
thg 7 25
|
838 | ||
|
0
thg 7 25
|
882 | ||
|
1
thg 7 25
|
691 |