add contexual field to invoice form and copy value from sales if available
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="account_move_contextual_note_form" model="ir.ui.view">
|
||||
<field name="name">account.move.contextual.note.form</field>
|
||||
<field name="model">account.move</field>
|
||||
<field name="inherit_id" ref="account.view_move_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//notebook" position="before">
|
||||
<separator string="Contextual"/>
|
||||
<group>
|
||||
<field name="contextual_note" string="Note" colspan="2"/>
|
||||
</group>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
@@ -5,10 +5,11 @@
|
||||
<field name="model">sale.order</field>
|
||||
<field name="inherit_id" ref="sale.view_order_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//notebook" position="inside">
|
||||
<page string="Contextual" name="contextual_note_page">
|
||||
<field name="contextual_note" nolabel="1"/>
|
||||
</page>
|
||||
<xpath expr="//group[@name='sale_header']" position="after">
|
||||
<separator string="Contextual"/>
|
||||
<group>
|
||||
<field name="contextual_note" string="Note" colspan="2"/>
|
||||
</group>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user