[IMP] contract_variable_quantity: Add qty_type field in portal

This commit is contained in:
Víctor Martínez
2021-01-04 08:15:19 +01:00
parent e19506c6d2
commit 1cde0f83e5
5 changed files with 41 additions and 9 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>