You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

39 lines
2.1 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="account_analytic_account_recurring_sale_form" model="ir.ui.view">
<field name="name">account.analytic.account.invoice.recurring.sale.form</field>
<field name="model">account.analytic.account</field>
<field name="inherit_id" ref="contract.account_analytic_account_recurring_form_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='recurring_invoicing_type']" position="before">
<field name="type"/>
<field name="sale_autoconfirm" attrs="{'invisible':[('type','!=', 'sale')]}" />
</xpath>
<xpath expr="//button[@name='recurring_create_invoice']" position="attributes">
<attribute name="attrs">{'invisible': ['|',('recurring_invoices','!=',True),('type','!=','invoice')]}</attribute>
</xpath>
<xpath expr="//button[@name='recurring_create_invoice']" position="before">
<button name="recurring_create_invoice"
type="object"
attrs="{'invisible': ['|',('recurring_invoices','!=',True),('type','!=','sale')]}"
string="Create sales"
class="oe_link"
groups="base.group_no_one"
/>
</xpath>
<xpath expr="//button[@name='contract.act_recurring_invoices']" position="attributes">
<attribute name="attrs">{'invisible': ['|',('recurring_invoices','!=',True),('type','!=','invoice')]}</attribute>
</xpath>
<xpath expr="//button[@name='contract.act_recurring_invoices']" position="before">
<button name="contract_sale_generation.act_recurring_sales"
type="action"
attrs="{'invisible': ['|',('recurring_invoices','!=',True),('type','!=','sale')]}"
string="⇒ Show recurring sales"
class="oe_link"
/>
</xpath>
</field>
</record>
</odoo>