When adding a Belgian province to the address of a contact, on the invoice it will be shown as a code between the city and the zip code. This looks a bit strange and confusing to the customer, how can I prevent this code from being displayed?
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ờ
It's a little bit late, but it can be helpful for another person.
You can hide this field with an inherit on the XML view like that :
<record id="view_partner_form_inherit" model="ir.ui.view">
<field name="name">res.partner.form.inherit</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field eval="1" name="priority"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='state_id']" position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
</field>
</record>
It's working on the V7.
Simply <field name="province_code" invisible="1"/> ...
Do you mean with a position="replace" or in the base code directly ?
Directly in base code is not recommended one, inherit that form and do it...
The address format can be changed in the Country settings. Just change the format here.
Thanks this solutions was the best because hide the field but dotn generate problem, but when you put replace the field the openerp genere the problem
Update your code, it works well at newer versions (Runbot).
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 24
|
2186 | ||
Create new invoice by code
Đã xử lý
|
|
1
thg 11 22
|
18781 | |
|
4
thg 8 22
|
8025 | ||
|
1
thg 2 23
|
3436 | ||
|
3
thg 12 22
|
3399 |