Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
2211 Weergaven

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

Avatar
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
apr. 21
1848
1
jun. 20
6222
4
mei 24
12778
1
apr. 24
3408
0
nov. 23
2073