|
|
@ -10,7 +10,8 @@ |
|
|
|
</record> |
|
|
|
</data> |
|
|
|
|
|
|
|
<record id="subscription_action_subscriptions" model="ir.actions.act_window"> |
|
|
|
<record id="subscription_action_subscriptions" |
|
|
|
model="ir.actions.act_window"> |
|
|
|
<field name="name">Subscriptions</field> |
|
|
|
<field name="type">ir.actions.act_window</field> |
|
|
|
<field name="res_model">subscription.package</field> |
|
|
@ -22,7 +23,8 @@ |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
|
|
|
|
<record id="subscription_action_subscriptions_customers" model="ir.actions.act_window"> |
|
|
|
<record id="subscription_action_subscriptions_customers" |
|
|
|
model="ir.actions.act_window"> |
|
|
|
<field name="name">Subscriptions Customers</field> |
|
|
|
<field name="type">ir.actions.act_window</field> |
|
|
|
<field name="res_model">res.partner</field> |
|
|
@ -35,7 +37,8 @@ |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
|
|
|
|
<record id="subscription_action_subscriptions_to_renew" model="ir.actions.act_window"> |
|
|
|
<record id="subscription_action_subscriptions_to_renew" |
|
|
|
model="ir.actions.act_window"> |
|
|
|
<field name="name">Subscriptions to Renew</field> |
|
|
|
<field name="type">ir.actions.act_window</field> |
|
|
|
<field name="res_model">subscription.package</field> |
|
|
@ -65,30 +68,38 @@ |
|
|
|
<record id="subscription_package_form" model="ir.ui.view"> |
|
|
|
<field name="name">subscription.package.form</field> |
|
|
|
<field name="model">subscription.package</field> |
|
|
|
<field name="groups_id" eval="[(4, ref('subscription_package.group_subscription_user'))]"/> |
|
|
|
<field name="groups_id" |
|
|
|
eval="[(4, ref('subscription_package.group_subscription_user'))]"/> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<form> |
|
|
|
<header> |
|
|
|
<field name="current_stage" invisible="1"/> |
|
|
|
<field name="is_closed" invisible="1"/> |
|
|
|
<button name="button_start_date" string="START" |
|
|
|
type="object" class="btn-primary oe_read_only" attrs="{'invisible': [('stage_category','!=', 'draft')]}"/> |
|
|
|
type="object" class="btn-primary" |
|
|
|
attrs="{'invisible': [('stage_category','!=', 'draft')]}"/> |
|
|
|
<button name="button_sale_order" string="Create Sale Order" |
|
|
|
type="object" class="btn-primary oe_read_only" attrs="{'invisible': [('so_count','>',0)]}"/> |
|
|
|
<button name="button_payment" string="Invoice" |
|
|
|
type="object" class="btn-primary oe_read_only" |
|
|
|
attrs="{'invisible': [('so_count', '=', 0)]}" |
|
|
|
invisible="1"/> |
|
|
|
type="object" class="btn-primary" |
|
|
|
attrs="{'invisible': [('stage_category','!=', 'progress')]}"/> |
|
|
|
<button name="button_payment" string="Invoice" type="object" |
|
|
|
class="btn-primary" |
|
|
|
attrs="{'invisible': [('stage_category','!=', 'progress')]}"/> |
|
|
|
<button name="button_close" string="Close Subscription" |
|
|
|
type="object" class="btn-primary oe_read_only" |
|
|
|
attrs="{'invisible': [('stage_category', 'in', ['draft', 'closed'])]}"/> |
|
|
|
<button name="action_renew" string="Renew" type="object" class="btn-primary oe_read_only" attrs="{'invisible': [('so_count', '=', 0)]}"/> |
|
|
|
<field name="stage_id" widget="statusbar" options="{'clickable' :0}"/> |
|
|
|
type="object" class="btn-primary" |
|
|
|
attrs="{'invisible': [('stage_category', '!=', 'progress')]}"/> |
|
|
|
<button name="action_renew" string="Renew" type="object" |
|
|
|
class="btn-primary oe_read_only" |
|
|
|
attrs="{'invisible': [('so_count', '=', 0)]}"/> |
|
|
|
<field name="stage_id" widget="statusbar" |
|
|
|
options="{'clickable' :0}"/> |
|
|
|
|
|
|
|
</header> |
|
|
|
<sheet> |
|
|
|
<div class="oe_button_box" name="button_box"> |
|
|
|
<button name="button_sale_count" type="object" class="oe_stat_button" |
|
|
|
icon="fa-credit-card" attrs="{'invisible': [('so_count', '=', 0)]}"> |
|
|
|
<button name="button_sale_count" type="object" |
|
|
|
class="oe_stat_button" |
|
|
|
icon="fa-credit-card" |
|
|
|
attrs="{'invisible': [('so_count', '=', 0)]}"> |
|
|
|
<div class="o_field_widget o_stat_info"> |
|
|
|
<span class="o_stat_value"> |
|
|
|
<field name="so_count"/> |
|
|
@ -98,8 +109,10 @@ |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</button> |
|
|
|
<button name="button_invoice_count" type="object" class="oe_stat_button" |
|
|
|
icon="fa-book" attrs="{'invisible': [('invoice_count','<=',0)]}"> |
|
|
|
<button name="button_invoice_count" type="object" |
|
|
|
class="oe_stat_button" |
|
|
|
icon="fa-book" |
|
|
|
attrs="{'invisible': [('invoice_count','<=',0)]}"> |
|
|
|
<div class="o_field_widget o_stat_info"> |
|
|
|
<span class="o_stat_value"> |
|
|
|
<field name="invoice_count"/> |
|
|
@ -123,7 +136,8 @@ |
|
|
|
</div> |
|
|
|
<group> |
|
|
|
<group> |
|
|
|
<field name="partner_id" attrs="{'required': True}"/> |
|
|
|
<field name="partner_id" |
|
|
|
attrs="{'required': True}"/> |
|
|
|
<field name="partner_invoice_id"/> |
|
|
|
<field name="partner_shipping_id"/> |
|
|
|
<field name="start_date"/> |
|
|
@ -143,7 +157,8 @@ |
|
|
|
</group> |
|
|
|
</group> |
|
|
|
<notebook> |
|
|
|
<page string="Subscriptions" name="subscription_products_line"> |
|
|
|
<page string="Subscriptions" |
|
|
|
name="subscription_products_line"> |
|
|
|
<field name="product_line_ids"> |
|
|
|
<tree string="Product lines" editable="bottom"> |
|
|
|
<field name="sequence" widget="handle"/> |
|
|
@ -156,14 +171,18 @@ |
|
|
|
<field name="total_amount" readonly="1"/> |
|
|
|
</tree> |
|
|
|
</field> |
|
|
|
<group name="note_group" col="6" class="mt-2 mt-md-0"> |
|
|
|
<group class="oe_subtotal_footer oe_right" colspan="2" name="recurring_total"> |
|
|
|
<group name="note_group" col="6" |
|
|
|
class="mt-2 mt-md-0"> |
|
|
|
<group class="oe_subtotal_footer oe_right" |
|
|
|
colspan="2" name="recurring_total"> |
|
|
|
<field name="total_recurring_price"/> |
|
|
|
</group> |
|
|
|
</group> |
|
|
|
</page> |
|
|
|
<page string="Terms and Conditions" name="terms_and_conditions"> |
|
|
|
<field name="description" placeholder="Terms and Conditions."/> |
|
|
|
<page string="Terms and Conditions" |
|
|
|
name="terms_and_conditions"> |
|
|
|
<field name="description" |
|
|
|
placeholder="Terms and Conditions."/> |
|
|
|
</page> |
|
|
|
<page string="Other Info" name="other_info"> |
|
|
|
<group> |
|
|
@ -191,7 +210,8 @@ |
|
|
|
<field name="name">subscription.package.kanban</field> |
|
|
|
<field name="model">subscription.package</field> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<kanban default_group_by="stage_id" quick_create="false" class="o_kanban_mobile" sample="1"> |
|
|
|
<kanban default_group_by="stage_id" quick_create="false" |
|
|
|
class="o_kanban_mobile" sample="1"> |
|
|
|
<field name="stage_id"/> |
|
|
|
<field name="user_id"/> |
|
|
|
<field name="to_renew"/> |
|
|
@ -216,10 +236,12 @@ |
|
|
|
</div> |
|
|
|
<div class="o_kanban_record_bottom"> |
|
|
|
<div class="oe_kanban_bottom_left"> |
|
|
|
<field name="activity_ids" widget="kanban_activity"/> |
|
|
|
<field name="activity_ids" |
|
|
|
widget="kanban_activity"/> |
|
|
|
</div> |
|
|
|
<div class="oe_kanban_bottom_right"> |
|
|
|
<field name="user_id" widget="many2one_avatar_user"/> |
|
|
|
<field name="user_id" |
|
|
|
widget="many2one_avatar_user"/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -231,15 +253,15 @@ |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
|
|
|
|
<record id="subscription_package_pivot" model="ir.ui.view"> |
|
|
|
<field name="name">subscription.package.pivot</field> |
|
|
|
<field name="model">subscription.package</field> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<pivot string="Pivot View"> |
|
|
|
<field name="name" type="row"/> |
|
|
|
</pivot> |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
<record id="subscription_package_pivot" model="ir.ui.view"> |
|
|
|
<field name="name">subscription.package.pivot</field> |
|
|
|
<field name="model">subscription.package</field> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<pivot string="Pivot View"> |
|
|
|
<field name="name" type="row"/> |
|
|
|
</pivot> |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
|
|
|
|
<menuitem id="subscription_menu_root" |
|
|
|
name="Subscription" |
|
|
|