[IMP] contract_variable_quantity: Add qty_type field in portal

This commit is contained in:
Víctor Martínez
2021-01-04 09:03:59 +01:00
parent 55801f5ba6
commit d8dd093ee7
5 changed files with 33 additions and 4 deletions

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template
id="portal_contract_page"
inherit_id="contract.portal_contract_page"
name="My Contract - Qty types"
>
<xpath expr="//td[@name='td_quantity']/span" position="attributes">
<attribute name="t-if">line.qty_type=='fixed'</attribute>
</xpath>
<xpath expr="//td[@name='td_quantity']/span" position="after">
<span t-if="line.qty_type=='variable'">Variable</span>
</xpath>
</template>
</odoo>