[IMP] contract: add section and notes in contract line

This commit is contained in:
Ernesto Tejeda
2020-03-17 17:27:28 -04:00
committed by Francisco Ivan Anton Prieto
parent 45122e17ed
commit 493501e6c7
13 changed files with 254 additions and 67 deletions

View File

@@ -19,11 +19,19 @@
</group>
</group>
<group name="group_invoice_lines" string="Contract Template Lines">
<field name="contract_line_ids" nolabel="1">
<field name="contract_line_ids"
widget="section_and_note_one2many"
nolabel="1">
<tree>
<control>
<create string="Add a line"/>
<create string="Add a section" context="{'default_display_type': 'line_section'}"/>
<create string="Add a note" context="{'default_display_type': 'line_note'}"/>
</control>
<field name="display_type" invisible="1"/>
<field name="sequence" widget="handle" />
<field name="product_id" />
<field name="name" />
<field name="name" widget="section_and_note_text"/>
<field name="quantity" />
<field name="uom_id" />
<field name="automatic_price" attrs="{'column_invisible': [('parent.contract_type','=','purchase')]}"/>