Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2193 Zobrazení

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

Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
dub 21
1792
1
čvn 20
6185
4
kvě 24
12711
1
dub 24
3321
0
lis 23
2042