You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

19 lines
920 B

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Added new field in invoice-->
<record id="view_move_form" model="ir.ui.view">
<field name="name">account.move.view.form.inherit.exchange.currency.rate</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='payment_reference']"
position='after'>
<field name="sale_order_id" invisible="1"/>
<field name="purchase_order_id" invisible="1"/>
<field name="is_exchange" invisible="currency_id == company_currency_id" readonly="state != 'draft'"/>
<field name="rate" digits="[12,6]"
invisible="is_exchange == False" readonly="state != 'draft'"/>
</xpath>
</field>
</record>
</odoo>