|
@ -10,7 +10,8 @@ |
|
|
</record> |
|
|
</record> |
|
|
</data> |
|
|
</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="name">Subscriptions</field> |
|
|
<field name="type">ir.actions.act_window</field> |
|
|
<field name="type">ir.actions.act_window</field> |
|
|
<field name="res_model">subscription.package</field> |
|
|
<field name="res_model">subscription.package</field> |
|
@ -22,7 +23,8 @@ |
|
|
</field> |
|
|
</field> |
|
|
</record> |
|
|
</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="name">Subscriptions Customers</field> |
|
|
<field name="type">ir.actions.act_window</field> |
|
|
<field name="type">ir.actions.act_window</field> |
|
|
<field name="res_model">res.partner</field> |
|
|
<field name="res_model">res.partner</field> |
|
@ -35,7 +37,8 @@ |
|
|
</field> |
|
|
</field> |
|
|
</record> |
|
|
</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="name">Subscriptions to Renew</field> |
|
|
<field name="type">ir.actions.act_window</field> |
|
|
<field name="type">ir.actions.act_window</field> |
|
|
<field name="res_model">subscription.package</field> |
|
|
<field name="res_model">subscription.package</field> |
|
@ -65,14 +68,16 @@ |
|
|
<record id="subscription_package_form" model="ir.ui.view"> |
|
|
<record id="subscription_package_form" model="ir.ui.view"> |
|
|
<field name="name">subscription.package.form</field> |
|
|
<field name="name">subscription.package.form</field> |
|
|
<field name="model">subscription.package</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"> |
|
|
<field name="arch" type="xml"> |
|
|
<form> |
|
|
<form> |
|
|
<header> |
|
|
<header> |
|
|
<field name="current_stage" invisible="1"/> |
|
|
<field name="current_stage" invisible="1"/> |
|
|
<field name="is_closed" invisible="1"/> |
|
|
<field name="is_closed" invisible="1"/> |
|
|
<button name="button_start_date" string="START" |
|
|
<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 oe_read_only" |
|
|
|
|
|
attrs="{'invisible': [('stage_category','!=', 'draft')]}"/> |
|
|
<button name="button_sale_order" string="Create Sale Order" |
|
|
<button name="button_sale_order" string="Create Sale Order" |
|
|
type="object" class="btn-primary oe_read_only" |
|
|
type="object" class="btn-primary oe_read_only" |
|
|
attrs="{'invisible': ['|',('stage_category','!=', 'progress'),('so_count','>',0)]}"/> |
|
|
attrs="{'invisible': ['|',('stage_category','!=', 'progress'),('so_count','>',0)]}"/> |
|
@ -83,13 +88,18 @@ |
|
|
<button name="button_close" string="Close Subscription" |
|
|
<button name="button_close" string="Close Subscription" |
|
|
type="object" class="btn-primary oe_read_only" |
|
|
type="object" class="btn-primary oe_read_only" |
|
|
attrs="{'invisible': [('stage_category', 'in', ['draft', 'closed'])]}"/> |
|
|
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)]}"/> |
|
|
<button name="action_renew" string="Renew" type="object" |
|
|
<field name="stage_id" widget="statusbar" options="{'clickable' :0}"/> |
|
|
class="btn-primary oe_read_only" |
|
|
|
|
|
attrs="{'invisible': [('so_count', '=', 0)]}"/> |
|
|
|
|
|
<field name="stage_id" widget="statusbar" |
|
|
|
|
|
options="{'clickable' :0}"/> |
|
|
</header> |
|
|
</header> |
|
|
<sheet> |
|
|
<sheet> |
|
|
<div class="oe_button_box" name="button_box"> |
|
|
<div class="oe_button_box" name="button_box"> |
|
|
<button name="button_sale_count" type="object" class="oe_stat_button" |
|
|
<button name="button_sale_count" type="object" |
|
|
icon="fa-credit-card" attrs="{'invisible': [('sale_order', '=', False)]}"> |
|
|
class="oe_stat_button" |
|
|
|
|
|
icon="fa-credit-card" |
|
|
|
|
|
attrs="{'invisible': [('sale_order', '=', False)]}"> |
|
|
<div class="o_field_widget o_stat_info"> |
|
|
<div class="o_field_widget o_stat_info"> |
|
|
<span class="o_stat_value"> |
|
|
<span class="o_stat_value"> |
|
|
<field name="so_count"/> |
|
|
<field name="so_count"/> |
|
@ -99,8 +109,10 @@ |
|
|
</span> |
|
|
</span> |
|
|
</div> |
|
|
</div> |
|
|
</button> |
|
|
</button> |
|
|
<button name="button_invoice_count" type="object" class="oe_stat_button" |
|
|
<button name="button_invoice_count" type="object" |
|
|
icon="fa-file-text" attrs="{'invisible': [('invoice_count','<=',0)]}"> |
|
|
class="oe_stat_button" |
|
|
|
|
|
icon="fa-file-text" |
|
|
|
|
|
attrs="{'invisible': [('invoice_count','<=',0)]}"> |
|
|
<div class="o_field_widget o_stat_info"> |
|
|
<div class="o_field_widget o_stat_info"> |
|
|
<span class="o_stat_value"> |
|
|
<span class="o_stat_value"> |
|
|
<field name="invoice_count"/> |
|
|
<field name="invoice_count"/> |
|
@ -124,7 +136,8 @@ |
|
|
</div> |
|
|
</div> |
|
|
<group> |
|
|
<group> |
|
|
<group> |
|
|
<group> |
|
|
<field name="partner_id" attrs="{'required': True}"/> |
|
|
<field name="partner_id" |
|
|
|
|
|
attrs="{'required': True}"/> |
|
|
<field name="partner_invoice_id"/> |
|
|
<field name="partner_invoice_id"/> |
|
|
<field name="partner_shipping_id"/> |
|
|
<field name="partner_shipping_id"/> |
|
|
<field name="date_started"/> |
|
|
<field name="date_started"/> |
|
@ -145,7 +158,8 @@ |
|
|
</group> |
|
|
</group> |
|
|
</group> |
|
|
</group> |
|
|
<notebook> |
|
|
<notebook> |
|
|
<page string="Subscriptions" name="subscription_products_line"> |
|
|
<page string="Subscriptions" |
|
|
|
|
|
name="subscription_products_line"> |
|
|
<field name="product_line_ids"> |
|
|
<field name="product_line_ids"> |
|
|
<tree string="Product lines" editable="bottom"> |
|
|
<tree string="Product lines" editable="bottom"> |
|
|
<field name="sequence" widget="handle"/> |
|
|
<field name="sequence" widget="handle"/> |
|
@ -156,17 +170,31 @@ |
|
|
<field name="currency_id" invisible="1"/> |
|
|
<field name="currency_id" invisible="1"/> |
|
|
<field name="unit_price" required="1"/> |
|
|
<field name="unit_price" required="1"/> |
|
|
<field name="discount" required="1"/> |
|
|
<field name="discount" required="1"/> |
|
|
|
|
|
<field name="tax_id" |
|
|
|
|
|
widget="many2many_tags"/> |
|
|
|
|
|
<field name="price_tax" readonly="1" invisible="1"/> |
|
|
|
|
|
<field name="price_total" readonly="1" invisible="1"/> |
|
|
<field name="total_amount" readonly="1"/> |
|
|
<field name="total_amount" readonly="1"/> |
|
|
</tree> |
|
|
</tree> |
|
|
</field> |
|
|
</field> |
|
|
<group name="note_group" col="6" class="mt-2 mt-md-0"> |
|
|
<group name="note_group" col="6" |
|
|
<group class="oe_subtotal_footer oe_right" colspan="2" name="recurring_total"> |
|
|
class="mt-2 mt-md-0"> |
|
|
<field name="total_recurring_price"/> |
|
|
<group class="oe_subtotal_footer oe_right" |
|
|
|
|
|
colspan="2" name="recurring_total"> |
|
|
|
|
|
<field name="total_recurring_price" |
|
|
|
|
|
widget="monetary"/> |
|
|
|
|
|
<field name="tax_total" widget="monetary"/> |
|
|
|
|
|
<field name="currency_id" invisible="1"/> |
|
|
|
|
|
<field name="total_with_tax" |
|
|
|
|
|
widget="monetary"/> |
|
|
|
|
|
|
|
|
</group> |
|
|
</group> |
|
|
</group> |
|
|
</group> |
|
|
</page> |
|
|
</page> |
|
|
<page string="Terms and Conditions" name="terms_and_conditions"> |
|
|
<page string="Terms and Conditions" |
|
|
<field name="description" placeholder="Terms and Conditions."/> |
|
|
name="terms_and_conditions"> |
|
|
|
|
|
<field name="description" |
|
|
|
|
|
placeholder="Terms and Conditions."/> |
|
|
</page> |
|
|
</page> |
|
|
<page string="Other Info" name="other_info"> |
|
|
<page string="Other Info" name="other_info"> |
|
|
<group> |
|
|
<group> |
|
@ -194,7 +222,8 @@ |
|
|
<field name="name">subscription.package.kanban</field> |
|
|
<field name="name">subscription.package.kanban</field> |
|
|
<field name="model">subscription.package</field> |
|
|
<field name="model">subscription.package</field> |
|
|
<field name="arch" type="xml"> |
|
|
<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="stage_id"/> |
|
|
<field name="user_id"/> |
|
|
<field name="user_id"/> |
|
|
<field name="to_renew"/> |
|
|
<field name="to_renew"/> |
|
@ -219,10 +248,12 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div class="o_kanban_record_bottom"> |
|
|
<div class="o_kanban_record_bottom"> |
|
|
<div class="oe_kanban_bottom_left"> |
|
|
<div class="oe_kanban_bottom_left"> |
|
|
<field name="activity_ids" widget="kanban_activity"/> |
|
|
<field name="activity_ids" |
|
|
|
|
|
widget="kanban_activity"/> |
|
|
</div> |
|
|
</div> |
|
|
<div class="oe_kanban_bottom_right"> |
|
|
<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> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -247,7 +278,8 @@ |
|
|
<menuitem id="subscription_menu_root" |
|
|
<menuitem id="subscription_menu_root" |
|
|
name="Subscription" |
|
|
name="Subscription" |
|
|
action="subscription_package.subscription_action_subscriptions" |
|
|
action="subscription_package.subscription_action_subscriptions" |
|
|
sequence="1" groups="group_subscription_user" web_icon="subscription_package,static/description/icon.png"/> |
|
|
sequence="1" groups="group_subscription_user" |
|
|
|
|
|
web_icon="subscription_package,static/description/icon.png"/> |
|
|
|
|
|
|
|
|
<menuitem id="subscription_menu_subscriptions" |
|
|
<menuitem id="subscription_menu_subscriptions" |
|
|
name="Subscriptions" |
|
|
name="Subscriptions" |
|
|