mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
* Change the method called in the view * Complete the create_invoice method * Bump version + authoring * Correct bad call of method Small Documentation * Add super call in python test * FIX bad field names causing bad quantities in sale.order.line
40 lines
2.1 KiB
XML
40 lines
2.1 KiB
XML
<?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_sale"
|
|
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>
|