Add project field to contract line form

This commit is contained in:
Guillem Barba 2016-08-25 17:26:43 +02:00
parent fd4ee533a3
commit 7c5b544e53
3 changed files with 22 additions and 0 deletions

12
contract.xml Normal file
View File

@ -0,0 +1,12 @@
<?xml version="1.0"?>
<!-- The COPYRIGHT file at the top level of this repository contains the full
copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.ui.view" id="contract_line_view_form">
<field name="model">contract.line</field>
<field name="inherit" ref="contract.contract_line_view_form"/>
<field name="name">contract_line_form</field>
</record>
</data>
</tryton>

View File

@ -7,4 +7,5 @@ depends:
extras_depend:
asset_zone
xml:
contract.xml
work.xml

View File

@ -0,0 +1,9 @@
<?xml version="1.0"?>
<!-- The COPYRIGHT file at the top level of this repository contains the full
copyright notices and license terms. -->
<data>
<xpath expr="/form/field[@name='asset']" position="after">
<label name="project"/>
<field name="project"/>
</xpath>
</data>