Skip to content

Commit

Permalink
Add contract and contract template usage on their form
Browse files Browse the repository at this point in the history
  • Loading branch information
fcayre authored and louck committed Nov 8, 2024
1 parent 1311d0d commit ab1c2de
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions product_rental/views/contract.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
<field name="inherit_id" ref="contract.contract_template_form_view" />
<field name="arch" type="xml">

<field name="contract_type" position="after">
<field name="usage"/>
</field>

<xpath expr="//group[@name='group_main']" position="after">
<group name="contractual_docs">
<field name="contractual_documents" widget="many2many_tags" options="{'open': true, 'create': true}" context="{'default_public': True}"/>
Expand Down Expand Up @@ -38,6 +42,10 @@
<field name="inherit_id" ref="contract.contract_contract_form_view" />
<field name="arch" type="xml">

<field name="partner_id" position="after">
<field name="usage"/>
</field>

<xpath expr="//*[hasclass('oe_button_box')]" position="inside">
<button type="object" name="action_show_analytic_lines"
class="oe_stat_button" icon="fa-usd"
Expand Down

0 comments on commit ab1c2de

Please sign in to comment.