mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[MIG] subscription_oca: Migration to 17.0
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<field name="subscribable" />
|
||||
<field
|
||||
name="subscription_template_id"
|
||||
attrs="{'invisible': [('subscribable', '=', False)]}"
|
||||
invisible="not subscribable"
|
||||
/>
|
||||
</group>
|
||||
</xpath>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
class="oe_stat_button"
|
||||
icon="fa-recycle"
|
||||
name="action_view_subscription_ids"
|
||||
attrs="{'invisible': [('subscription_ids', '=', False)]}"
|
||||
invisible="not subscription_ids"
|
||||
>
|
||||
<div class="o_form_field o_stat_info">
|
||||
<span class="o_stat_value">
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<div class="oe_button_box" name="button_box">
|
||||
<button
|
||||
name="action_view_subscriptions"
|
||||
attrs="{'invisible': [('subscriptions_count', '=', 0)]}"
|
||||
invisible="subscriptions_count == 0"
|
||||
type="object"
|
||||
class="oe_stat_button"
|
||||
icon="fa-pencil-square-o"
|
||||
|
||||
@@ -64,11 +64,11 @@
|
||||
/>
|
||||
<label
|
||||
for="recurring_rule_count"
|
||||
attrs="{'invisible': [('recurring_rule_boundary','=','unlimited')]}"
|
||||
invisible="recurring_rule_boundary == 'unlimited'"
|
||||
/>
|
||||
<div
|
||||
class="o_row "
|
||||
attrs="{'invisible': [('recurring_rule_boundary','=','unlimited')]}"
|
||||
invisible="recurring_rule_boundary == 'unlimited'"
|
||||
>
|
||||
<span class="mr-1">For</span>
|
||||
<field
|
||||
@@ -80,7 +80,8 @@
|
||||
<field name="invoicing_mode" widget="radio" />
|
||||
<field
|
||||
name="invoice_mail_template_id"
|
||||
attrs="{'invisible': [('invoicing_mode','!=','invoice_send')], 'required': [('invoicing_mode', '=', 'invoice_send')]}"
|
||||
invisible="invoicing_mode != 'invoice_send'"
|
||||
required="invoicing_mode == 'invoice_send'"
|
||||
/>
|
||||
</group>
|
||||
<group name="right_group">
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
name="action_close_subscription"
|
||||
type="object"
|
||||
help="A given subscription can be marked as closed when, for example, renewal is not desired."
|
||||
attrs="{'invisible': [('in_progress', '=', False)]}"
|
||||
invisible="not in_progress"
|
||||
/>
|
||||
|
||||
<field
|
||||
@@ -36,7 +36,7 @@
|
||||
<button
|
||||
name="action_view_sale_order_ids"
|
||||
type="object"
|
||||
attrs="{'invisible': [('sale_order_ids_count', '=', 0)]}"
|
||||
invisible="sale_order_ids_count == 0"
|
||||
class="oe_stat_button"
|
||||
icon="fa-pencil-square-o"
|
||||
>
|
||||
@@ -48,7 +48,7 @@
|
||||
</button>
|
||||
<button
|
||||
name="action_view_account_invoice_ids"
|
||||
attrs="{'invisible': [('account_invoice_ids_count', '=', 0)]}"
|
||||
invisible="account_invoice_ids_count == 0"
|
||||
type="object"
|
||||
class="oe_stat_button"
|
||||
icon="fa-pencil-square-o"
|
||||
@@ -66,7 +66,7 @@
|
||||
name="web_ribbon"
|
||||
text="Archived"
|
||||
bg_color="bg-danger"
|
||||
attrs="{'invisible': [('active', '=', True)]}"
|
||||
invisible="active"
|
||||
/>
|
||||
<div class="oe_title">
|
||||
<h1 class="flex-fill d-flex flex-row">
|
||||
@@ -82,16 +82,10 @@
|
||||
<field name="pricelist_id" />
|
||||
<field
|
||||
name="date_start"
|
||||
attrs="{'readonly':['|',('active','=',False), ('in_progress', '=', True)]}"
|
||||
/>
|
||||
<field
|
||||
name="date"
|
||||
attrs="{'invisible':[('recurring_rule_boundary', '=', True)]}"
|
||||
/>
|
||||
<field
|
||||
name="close_reason_id"
|
||||
attrs="{'invisible': [('active', '=', True)]}"
|
||||
readonly="not active or in_progress"
|
||||
/>
|
||||
<field name="date" invisible="recurring_rule_boundary" />
|
||||
<field name="close_reason_id" invisible="active" />
|
||||
<field name="recurring_rule_boundary" invisible="1" />
|
||||
|
||||
</group>
|
||||
@@ -101,7 +95,7 @@
|
||||
<field name="crm_team_id" />
|
||||
<field
|
||||
name="recurring_next_date"
|
||||
attrs="{'invisible': ['|', ('recurring_next_date', '=', False), ('in_progress', '=', False)]}"
|
||||
invisible="not recurring_next_date or not in_progress"
|
||||
/>
|
||||
<field name="company_id" invisible="1" />
|
||||
<field
|
||||
@@ -126,7 +120,7 @@
|
||||
required="True"
|
||||
widget="section_and_note_text"
|
||||
/>
|
||||
<field name="currency_id" invisible="1" />
|
||||
<field name="currency_id" column_invisible="1" />
|
||||
<field name="product_uom_qty" required="True" />
|
||||
<field name="price_unit" required="True" />
|
||||
<field name="discount" required="True" />
|
||||
@@ -220,7 +214,7 @@
|
||||
<field name="amount_tax" sum="Total Tax" optional="show" />
|
||||
<field name="amount_total" sum="Total" optional="show" />
|
||||
<field name="template_id" optional="show" />
|
||||
<field name="stage_str" optional="show" />
|
||||
<field name="stage_id" optional="show" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user