mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[IMP] contract_sale_generation: Improve view
This commit is contained in:
committed by
ntsirintanis
parent
ae3aaa8f13
commit
470a67f2d4
@@ -4,26 +4,11 @@
|
|||||||
<field name="model">contract.contract</field>
|
<field name="model">contract.contract</field>
|
||||||
<field name="inherit_id" ref="contract.contract_contract_form_view" />
|
<field name="inherit_id" ref="contract.contract_contract_form_view" />
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<xpath expr="//group[@name='recurring_invoices']" position="after">
|
<xpath expr="//field[@name='generation_type']" position="after">
|
||||||
<group
|
|
||||||
col="4"
|
|
||||||
name="recurring_sale_or_invoicing"
|
|
||||||
string="Recurring Sales/Invoicing"
|
|
||||||
>
|
|
||||||
<field name="generation_type" />
|
|
||||||
<field
|
<field
|
||||||
attrs="{'invisible':[('generation_type','!=', 'sale')]}"
|
attrs="{'invisible':[('generation_type','!=', 'sale')]}"
|
||||||
name="sale_autoconfirm"
|
name="sale_autoconfirm"
|
||||||
/>
|
/>
|
||||||
</group>
|
|
||||||
</xpath>
|
|
||||||
<xpath
|
|
||||||
expr="//button[@name='recurring_create_invoice']"
|
|
||||||
position="attributes"
|
|
||||||
>
|
|
||||||
<attribute
|
|
||||||
name="attrs"
|
|
||||||
>{'invisible': ['|', ('create_invoice_visibility', '=', False),('generation_type','!=','invoice')]}</attribute>
|
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//button[@name='recurring_create_invoice']" position="before">
|
<xpath expr="//button[@name='recurring_create_invoice']" position="before">
|
||||||
<button
|
<button
|
||||||
@@ -35,12 +20,6 @@
|
|||||||
type="object"
|
type="object"
|
||||||
/>
|
/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<!--
|
|
||||||
<xpath expr="//button[@name='action_show_invoices']" position="attributes">
|
|
||||||
<attribute
|
|
||||||
name="attrs"
|
|
||||||
>{'invisible': [('type','!=','invoice')]}</attribute>
|
|
||||||
</xpath>-->
|
|
||||||
<xpath expr="//button[@name='action_show_invoices']" position="after">
|
<xpath expr="//button[@name='action_show_invoices']" position="after">
|
||||||
<button
|
<button
|
||||||
attrs="{'invisible': [('generation_type','!=','sale')]}"
|
attrs="{'invisible': [('generation_type','!=','sale')]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user