mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] - redundant fields in contract line form view
This commit is contained in:
committed by
Víctor Martínez
parent
0a5e5651d6
commit
3a3a07d7a3
@@ -5,7 +5,7 @@
|
||||
|
||||
{
|
||||
'name': 'Variable quantity in contract recurrent invoicing',
|
||||
'version': '12.0.2.0.0',
|
||||
'version': '12.0.2.1.0',
|
||||
'category': 'Contract Management',
|
||||
'license': 'AGPL-3',
|
||||
'author': "Tecnativa,"
|
||||
@@ -16,7 +16,6 @@
|
||||
'security/ir.model.access.csv',
|
||||
'views/abstract_contract_line.xml',
|
||||
'views/contract_line_formula.xml',
|
||||
'views/contract_line.xml',
|
||||
'views/contract_template.xml',
|
||||
'views/contract.xml',
|
||||
],
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<record id="contract_line_form_view" model="ir.ui.view">
|
||||
<field name="name">contract.line.tree (in contract_variable_quantity)</field>
|
||||
<field name="model">contract.line</field>
|
||||
<field name="inherit_id"
|
||||
ref="contract.contract_line_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='quantity']" position="before">
|
||||
<field name="qty_type"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='quantity']" position="after">
|
||||
<field name="qty_formula_id"
|
||||
attrs="{'required': [('qty_type', '=', 'variable')], 'invisible': [('qty_type', '!=', 'variable')]}"
|
||||
/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='quantity']" position="attributes">
|
||||
<attribute name="attrs">{'required': [('qty_type', '=', 'fixed')], 'invisible': [('qty_type', '!=', 'fixed')]}</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user