Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2229 Lượt xem

How to remove/hide currency from journal field in invoice?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

By default in Odoo, the currency field is only visible to those users who have access to multiple currencies. If the requirement is to hide the currency from all users “invisible” attribute can be used.

<record id="view_move_form_inherit" model="ir.ui.view">
<field name="name">view.move.form.inherit</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='currency_id']" position="replace">
<field name="currency_id" groups="base.group_multi_currency"
attrs="{'readonly': [('posted_before', '=', True)]}"
invisible="1"/>
</xpath>
</field>
</record>

Regards

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 4 21
1864
1
thg 6 20
6247
4
thg 5 24
12863
1
thg 4 24
3460
0
thg 11 23
2130