diff options
| author | Yannick Tivisse <yti@odoo.com> | 2019-07-01 17:05:55 +0200 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-07-12 13:01:36 +0200 |
| commit | ba0308923030c2dcafa1a1577742fa5233d71a04 (patch) | |
| tree | 520dfa2865937119d06ab79ad4ce13c27ca6c05f /addons | |
| parent | ee5e972586795114f4adeead47746397a181c549 (diff) | |
[IMP] all: Remove active stat button on all views
Purpose
=======
While cleaning the stat buttons across all modules, we
decided to move the (un)archiving from stat button to
actions in the 'Action' dropdown.
Specification
=============
Remove the 'active' stat buttons in all views
Diffstat (limited to 'addons')
73 files changed, 140 insertions, 364 deletions
diff --git a/addons/account/views/account_incoterms_view.xml b/addons/account/views/account_incoterms_view.xml index bd6a45425e0..621466ee736 100644 --- a/addons/account/views/account_incoterms_view.xml +++ b/addons/account/views/account_incoterms_view.xml @@ -19,12 +19,8 @@ <field name="arch" type="xml"> <form string="Incoterms"> <sheet> - <div class="oe_button_box" name="button_box"> - <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> - </div> <group> + <field name="active" invisible="1"/> <field name="name"/> <field name="code"/> </group> diff --git a/addons/account/views/account_view.xml b/addons/account/views/account_view.xml index 938d5f2174f..9695be0a247 100644 --- a/addons/account/views/account_view.xml +++ b/addons/account/views/account_view.xml @@ -211,17 +211,13 @@ <field name="arch" type="xml"> <form string="Account Journal"> <sheet> - <div class="oe_button_box" name="button_box"> - <button class="oe_stat_button" type="object" name="toggle_active" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> - </div> <div class="oe_title"> <label for="name" class="oe_edit_only"/> <h1><field name="name" class="oe_inline"/></h1> </div> <group> <group> + <field name="active" invisible="1"/> <field name="type"/> <field name="journal_group_ids" widget="many2many_tags" domain="['|', ('company_id', '=', company_id), ('company_id', '=', False)]" options="{'no_create': True}"/> </group> @@ -378,12 +374,8 @@ action = model.setting_init_bank_account_action() <field name="arch" type="xml"> <form string="Tags"> <sheet> - <div class="oe_button_box" name="button_box"> - <button class="oe_stat_button" type="object" name="toggle_active" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> - </div> <group> + <field name="active" invisible="1"/> <field name="name"/> <field name="applicability"/> <field name="tax_negate" attrs="{'invisible': [('applicability', '!=', 'taxes')]}"/> @@ -1064,13 +1056,9 @@ action = model.setting_init_bank_account_action() <field name="arch" type="xml"> <form string="Account Tax"> <sheet> - <div class="oe_button_box" name="button_box"> - <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> - </div> <group> <group> + <field name="active" invisible="1"/> <field name="name"/> <field name="amount_type"/> </group> @@ -1261,14 +1249,9 @@ action = model.setting_init_bank_account_action() <field name="arch" type="xml"> <form string="Payment Terms"> <sheet> - <div class="oe_button_box" name="button_box"> - <button class="oe_stat_button" type="object" name="toggle_active" icon="fa-archive"> - <field name="active" widget="boolean_button" - options='{"terminology": "archive"}'/> - </button> - </div> <group> <group> + <field name="active" invisible="1"/> <field name="name"/> <field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/> </group> diff --git a/addons/account/views/partner_view.xml b/addons/account/views/partner_view.xml index fea0fdabfdc..4187d9dfd28 100644 --- a/addons/account/views/partner_view.xml +++ b/addons/account/views/partner_view.xml @@ -7,14 +7,10 @@ <field name="arch" type="xml"> <form string="Fiscal Position"> <sheet> - <div class="oe_button_box" name="button_box"> - <button class="oe_stat_button" type="object" name="toggle_active" icon="fa-archive"> - <field name="active" widget="boolean_button" - options='{"terminology": "archive"}'/> - </button> - </div> + <div class="oe_button_box" name="button_box"/> <group> <group> + <field name="active" invisible="1"/> <field name="name"/> <field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/> </group> @@ -123,7 +119,7 @@ <field name="priority" eval="11"/> <field name="groups_id" eval="[(4, ref('account.group_account_invoice'))]"/> <field name="arch" type="xml"> - <button name="toggle_active" position="before"> + <div name="button_box" position="inside"> <button type="object" class="oe_stat_button" icon="fa-pencil-square-o" name="action_view_partner_invoices" attrs="{'invisible': [('customer', '=', False)]}" context="{'default_partner_id': active_id}"> <div class="o_form_field o_stat_info"> @@ -133,7 +129,7 @@ <span class="o_stat_text">Invoiced</span> </div> </button> - </button> + </div> <page name="internal_notes" position="inside"> <group colspan="2" col="2" groups="account.group_warning_account"> @@ -153,13 +149,13 @@ <field name="priority" eval="14"/> <field name="groups_id" eval="[(4, ref('account.group_account_invoice'))]"/> <field name="arch" type="xml"> - <button name="toggle_active" position="before"> + <div name="button_box" position="inside"> <button class="oe_stat_button" type="action" name="%(account.action_open_partner_analytic_accounts)d" groups="account.group_account_invoice" icon="fa-book" title="Analytic Accounts" attrs="{'invisible': [('contracts_count', '=', 0)]}"> <field string="Analytic Accounts" name="contracts_count" widget="statinfo"/> </button> - </button> + </div> </field> </record> diff --git a/addons/analytic/views/analytic_account_views.xml b/addons/analytic/views/analytic_account_views.xml index ab6cc79ab22..9f7f293d7e4 100644 --- a/addons/analytic/views/analytic_account_views.xml +++ b/addons/analytic/views/analytic_account_views.xml @@ -17,12 +17,8 @@ <field name="arch" type="xml"> <form string="Analytic Tags"> <sheet> - <div class="oe_button_box" name="button_box"> - <button class="oe_stat_button" type="object" name="toggle_active" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> - </div> <group> + <field name="active" invisible="1"/> <field name="name"/> <field name="active_analytic_distribution" groups="analytic.group_analytic_accounting"/> <field name="company_id" groups="base.group_multi_company"/> @@ -146,10 +142,6 @@ <div class="oe_button_box" name="button_box"> <button class="oe_stat_button" type="action" name="%(account_analytic_line_action)d" icon="fa-usd" string="Cost/Revenue" widget="statinfo"/> - <button class="oe_stat_button" type="object" name="toggle_active" icon="fa-archive"> - <field name="active" widget="boolean_button" - options='{"terminology": "archive"}'/> - </button> </div> <div class="oe_title"> <label for="name" class="oe_edit_only"/> @@ -160,6 +152,7 @@ <div name="project"/> <group name="main"> <group> + <field name="active" invisible="1"/> <field name="code"/> <field name="partner_id"/> </group> diff --git a/addons/base_automation/views/base_automation_view.xml b/addons/base_automation/views/base_automation_view.xml index fb648690e45..d9e370d8c47 100644 --- a/addons/base_automation/views/base_automation_view.xml +++ b/addons/base_automation/views/base_automation_view.xml @@ -12,14 +12,8 @@ </xpath> <xpath expr="//button[@name='unlink_action']" position="replace"> </xpath> - <div class="oe_title" position="before"> - <div class="oe_button_box" name="button_box"> - <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button"/> - </button> - </div> - </div> <xpath expr="//group[@name='action_content']" position="inside"> + <field name="active" invisible="1"/> <field name="trigger"/> <field name="trigger_field_ids" domain="[('model_id', '=', model_id)]" attrs="{'invisible': [('trigger', 'not in', ['on_write', 'on_create_or_write'])]}"/> diff --git a/addons/crm/views/crm_lead_views.xml b/addons/crm/views/crm_lead_views.xml index 60fa2182336..dbe31846843 100644 --- a/addons/crm/views/crm_lead_views.xml +++ b/addons/crm/views/crm_lead_views.xml @@ -66,8 +66,7 @@ </header> <sheet> <field name="active" invisible="1"/> - <div class="oe_button_box" name="button_box"> - </div> + <div class="oe_button_box" name="button_box"/> <div class="badge-pill badge-danger float-right" attrs="{'invisible': ['|', ('probability', '>', 0), ('active', '=', True)]}">Lost</div> <div class="badge-pill badge-success float-right" attrs="{'invisible': [('probability', '<', 100)]}">Won</div> <div class="oe_title"> @@ -839,11 +838,6 @@ <field name="arch" type="xml"> <form string="Channel"> <sheet> - <div class="oe_button_box" name="button_box"> - <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> - </div> <div class="oe_title"> <div class="oe_edit_only"> <label for="name"/> @@ -851,6 +845,7 @@ <h1> <field name="name"/> </h1> + <field name="active" invisible="1"/> </div> </sheet> </form> diff --git a/addons/crm/views/res_partner_views.xml b/addons/crm/views/res_partner_views.xml index 3dc0d8ed8cd..4071c35e60b 100644 --- a/addons/crm/views/res_partner_views.xml +++ b/addons/crm/views/res_partner_views.xml @@ -89,7 +89,7 @@ <field name="groups_id" eval="[(4, ref('sales_team.group_sale_salesman'))]"/> <field name="arch" type="xml"> <data> - <button name="toggle_active" position="before"> + <div name="button_box" position="inside"> <button class="oe_stat_button o_res_partner_tip_opp" type="action" attrs="{'invisible': [('customer', '=', False)]}" name="%(crm.crm_lead_opportunities)d" @@ -105,7 +105,7 @@ context="{'partner_id': active_id, 'partner_name': name}"> <field string="Meetings" name="meeting_count" widget="statinfo"/> </button> - </button> + </div> </data> </field> </record> diff --git a/addons/crm_iap_lead_website/views/crm_reveal_views.xml b/addons/crm_iap_lead_website/views/crm_reveal_views.xml index 2e1b1a634e2..ef5fc042254 100644 --- a/addons/crm_iap_lead_website/views/crm_reveal_views.xml +++ b/addons/crm_iap_lead_website/views/crm_reveal_views.xml @@ -19,9 +19,6 @@ <span class="o_stat_text"> Leads </span> </div> </button> - <button name="toggle_active" type="object" groups="base.group_user" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options="{'terminology': 'archive'}"/> - </button> </div> <div class="oe_title mb8"> <label for="name" class="oe_edit_only"/> @@ -33,6 +30,7 @@ <div class="col-md-6"> <group> <field name="lead_for" widget="radio"/> + <field name="active" invisible="1"/> </group> <group string="Website Traffic Conditions"> <field name="country_ids" widget="many2many_tags"/> diff --git a/addons/delivery/views/delivery_view.xml b/addons/delivery/views/delivery_view.xml index 2501c9cdf59..bdf5fdf267e 100644 --- a/addons/delivery/views/delivery_view.xml +++ b/addons/delivery/views/delivery_view.xml @@ -57,9 +57,6 @@ "hover_false": "Switch to production environment" }}'/> </button> - <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "active"}'/> - </button> <button name="toggle_debug" type="object" class="oe_stat_button" icon="fa-code" groups="base.group_no_one" attrs="{'invisible': ['|', ('delivery_type', '=', 'fixed'), ('delivery_type', '=', 'base_on_rule')]}"> <field name="debug_logging" widget="boolean_button" options='{"terminology": { "string_true": "Debug requests", @@ -77,6 +74,7 @@ </div> <group> <group name="provider_details"> + <field name="active" invisible="1"/> <label for="delivery_type"/> <div> <field name="delivery_type" widget="radio"/> diff --git a/addons/event/views/event_views.xml b/addons/event/views/event_views.xml index 3abd1196a12..7315ab9417f 100644 --- a/addons/event/views/event_views.xml +++ b/addons/event/views/event_views.xml @@ -203,13 +203,6 @@ help="Register with this event"> <field name="seats_expected" widget="statinfo" string="Attendees"/> </button> - <button name="toggle_active" - type="object" - class="oe_stat_button" - icon="fa-archive"> - <field name="active" widget="boolean_button" - options='{"terminology": "archive"}'/> - </button> </div> <div class="oe_title"> <label for="name" class="oe_edit_only"/> @@ -219,6 +212,7 @@ </div> <group> <group> + <field name="active" invisible="1"/> <field name="organizer_id"/> <field name="address_id" attrs="{'invisible': [('is_online', '=', True)]}" diff --git a/addons/event/views/res_partner_views.xml b/addons/event/views/res_partner_views.xml index 54ce6a59100..b0a28f1d34d 100644 --- a/addons/event/views/res_partner_views.xml +++ b/addons/event/views/res_partner_views.xml @@ -8,7 +8,7 @@ <field name="groups_id" eval="[(5,)]"/> <field name="priority" eval="6"/> <field name="arch" type="xml"> - <button name="toggle_active" position="before"> + <div name="button_box" position="inside"> <button class="oe_stat_button" groups="event.group_event_user" type="object" @@ -16,7 +16,7 @@ name="action_event_view" attrs="{'invisible': [('event_count','=', 0)]}"> <field string="Events" name="event_count" widget="statinfo"/> </button> - </button> + </div> </field> </record> </data> diff --git a/addons/fleet/views/fleet_vehicle_cost_views.xml b/addons/fleet/views/fleet_vehicle_cost_views.xml index aa25d915d93..9d2272f58c8 100644 --- a/addons/fleet/views/fleet_vehicle_cost_views.xml +++ b/addons/fleet/views/fleet_vehicle_cost_views.xml @@ -181,13 +181,9 @@ </header> <sheet> <field name="currency_id" invisible="1"/> - <div class="oe_button_box" name="button_box"> - <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> - </div> <group col="2"> <group string="Contract Informations"> + <field name="active" invisible="1"/> <field name="ins_ref"/> <field name="cost_subtype_id" required="1" domain="['|',('category','=','contract'),('category','=','both')]"/> <field name="insurer_id" context="{'default_supplier': True}"/> diff --git a/addons/fleet/views/fleet_vehicle_views.xml b/addons/fleet/views/fleet_vehicle_views.xml index d69eb00d56b..7164d7fb050 100644 --- a/addons/fleet/views/fleet_vehicle_views.xml +++ b/addons/fleet/views/fleet_vehicle_views.xml @@ -58,9 +58,6 @@ help="show the odometer logs for this vehicle" > <field name="odometer_count" widget="statinfo" string="Odometer"/> </button> - <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> </div> <field name="image_medium" widget='image' class="oe_avatar"/> <div class="oe_title"> @@ -77,6 +74,7 @@ </div> <group col="2"> <group string="Driver"> + <field name="active" invisible="1"/> <field name="driver_id"/> <label for="future_driver_id"/> <div class="o_row"> diff --git a/addons/hr/views/hr_department_views.xml b/addons/hr/views/hr_department_views.xml index ef1c6b35eff..19a6da9bbde 100644 --- a/addons/hr/views/hr_department_views.xml +++ b/addons/hr/views/hr_department_views.xml @@ -7,12 +7,8 @@ <field name="arch" type="xml"> <form string="department"> <sheet> - <div class="oe_button_box" name="button_box"> - <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> - </div> <group col="4"> + <field name="active" invisible="1"/> <field name="name"/> <field name="manager_id"/> <field name="parent_id"/> diff --git a/addons/hr/views/hr_employee_views.xml b/addons/hr/views/hr_employee_views.xml index e9068d785ec..b077f21f1bd 100644 --- a/addons/hr/views/hr_employee_views.xml +++ b/addons/hr/views/hr_employee_views.xml @@ -45,11 +45,7 @@ <button name="%(plan_wizard_action)d" string="Launch Plan" type="action" groups="hr.group_hr_manager"/> </header> <sheet> - <div class="oe_button_box" name="button_box"> - <button class="oe_stat_button" type="object" name="toggle_active" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> - </div> + <div name="button_box" class="oe_button_box"/> <field name="image" widget='image' class="oe_avatar" options='{"zoom": true, "preview_image":"image_medium"}'/> <div class="oe_title"> <label for="name" class="oe_edit_only"/> diff --git a/addons/hr/views/hr_plan_views.xml b/addons/hr/views/hr_plan_views.xml index 6bb5f419dc0..ab40872ba2f 100644 --- a/addons/hr/views/hr_plan_views.xml +++ b/addons/hr/views/hr_plan_views.xml @@ -28,12 +28,6 @@ <field name="arch" type="xml"> <form string="Planning"> <sheet> - <div class="oe_button_box" name="button_box"> - <button name="toggle_active" type="object" - class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> - </div> <div class="oe_title"> <label for="name" class="oe_edit_only"/> <h1> @@ -41,6 +35,7 @@ </h1> </div> <group string="Activities"> + <field name="active" invisible="1"/> <field name="plan_activity_type_ids" nolabel="1"> <tree editable="bottom"> <field name="activity_type_id"/> diff --git a/addons/hr_attendance/views/hr_employee_view.xml b/addons/hr_attendance/views/hr_employee_view.xml index 08892208390..f03fddc1730 100644 --- a/addons/hr_attendance/views/hr_employee_view.xml +++ b/addons/hr_attendance/views/hr_employee_view.xml @@ -7,7 +7,7 @@ <field name="priority">10</field> <field name="groups_id" eval="[(4,ref('hr_attendance.group_hr_attendance_user'))]"/> <field name="arch" type="xml"> - <xpath expr="//button[@name='toggle_active']" position="before"> + <div name="button_box" position="inside"> <field name="attendance_state" invisible="1"/> <button name="%(hr_attendance_action_employee)d" class="oe_stat_button" @@ -34,7 +34,7 @@ </span> </div> </button> - </xpath> + </div> </field> </record> diff --git a/addons/hr_contract/views/hr_contract_views.xml b/addons/hr_contract/views/hr_contract_views.xml index f445c48982d..337a5256210 100644 --- a/addons/hr_contract/views/hr_contract_views.xml +++ b/addons/hr_contract/views/hr_contract_views.xml @@ -18,7 +18,7 @@ <field name="inherit_id" ref="hr.view_employee_form"/> <field name="arch" type="xml"> <data> - <xpath expr="//button[@name='toggle_active']" position="before"> + <div name="button_box" position="inside"> <button name="%(act_hr_employee_2_hr_contract)d" class="oe_stat_button" icon="fa-book" @@ -26,7 +26,7 @@ groups="hr_contract.group_hr_contract_manager"> <field name="contracts_count" widget="statinfo" string="Contracts"/> </button> - </xpath> + </div> <xpath expr="//group[@name='active_group']" position="after"> <group string="Current Contract"> <field name="medic_exam" string="Medical Exam"/> @@ -139,11 +139,7 @@ <field name="state" widget="statusbar" options="{'clickable': '1'}"/> </header> <sheet> - <div class="oe_button_box" name="button_box"> - <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> - </div> + <div class="oe_button_box" name="button_box"/> <div class="oe_title" name="title"> <div class="oe_edit_only"> <div class="float-left"> @@ -160,6 +156,7 @@ </div> <group> <group> + <field name="active" invisible="1"/> <field name="employee_id"/> <field name="department_id"/> </group> diff --git a/addons/hr_expense/views/hr_expense_views.xml b/addons/hr_expense/views/hr_expense_views.xml index a9a8fd285b3..32b4693028d 100644 --- a/addons/hr_expense/views/hr_expense_views.xml +++ b/addons/hr_expense/views/hr_expense_views.xml @@ -309,13 +309,6 @@ <sheet> <field name='product_variant_count' invisible='1'/> <field name="id" invisible="True"/> - <div class="oe_button_box" name="button_box"> - <button name="toggle_active" type="object" - class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" - options='{"terminology": "archive"}'/> - </button> - </div> <field name="image_medium" widget="image" class="oe_avatar"/> <div class="oe_title"> <label class="oe_edit_only" for="name" string="Product Name"/> @@ -329,6 +322,7 @@ </div> <group name="product_details"> <group string="General Information"> + <field name="active" invisible="1"/> <field name="type"/> <field name="list_price"/> <field name="standard_price"/> diff --git a/addons/hr_fleet/views/employee_views.xml b/addons/hr_fleet/views/employee_views.xml index d0471d92457..66d09498fe9 100644 --- a/addons/hr_fleet/views/employee_views.xml +++ b/addons/hr_fleet/views/employee_views.xml @@ -12,13 +12,13 @@ attrs="{'invisible': [('employee_cars_count','=', 0)]}" confirm="This report will contain only PDF files. If you want all documents, please go on vehicle page. Do you want to proceed?"/> </xpath> - <xpath expr="//button[@name='toggle_active']" position="before"> + <div name="button_box" position="inside"> <button name="action_open_employee_cars" type="object" class="oe_stat_button" icon="fa-car" groups="fleet.fleet_group_manager" attrs="{'invisible': [('employee_cars_count','=', 0)]}"> <field name="employee_cars_count" widget="statinfo" /> </button> - </xpath> + </div> </field> </record> diff --git a/addons/hr_holidays/views/hr_leave_type_views.xml b/addons/hr_holidays/views/hr_leave_type_views.xml index d70d4d61a00..7073ef9dfe2 100644 --- a/addons/hr_holidays/views/hr_leave_type_views.xml +++ b/addons/hr_holidays/views/hr_leave_type_views.xml @@ -34,16 +34,13 @@ <span class="o_stat_text">Group Time Off</span> </div> </button> - <button class="oe_stat_button" type="object" name="toggle_active" icon="fa-archive"> - <field name="active" widget="boolean_button" - options='{"terminology": "archive"}'/> - </button> </div> <div class="oe_title"> <h1><field name="name"/></h1> </div> <group> <group name="description" string="Options"> + <field name="active" invisible="1"/> <field name="code"/> <field name="request_unit" widget="radio"/> <field name="sequence" groups="base.group_no_one"/> diff --git a/addons/hr_holidays/views/hr_views.xml b/addons/hr_holidays/views/hr_views.xml index 5a617f4a509..91601a2ce89 100644 --- a/addons/hr_holidays/views/hr_views.xml +++ b/addons/hr_holidays/views/hr_views.xml @@ -138,7 +138,7 @@ <xpath expr="//group[@name='managers']" position="inside"> <field name="leave_manager_id"/> </xpath> - <xpath expr="//button[@name='toggle_active']" position="before"> + <div name="button_box" position="inside"> <field name="current_leave_id" invisible="1"/> <field name="show_leaves" invisible="1"/> <field name="is_absent" invisible="1"/> @@ -172,7 +172,7 @@ </span> </div> </button> - </xpath> + </div> </field> </record> diff --git a/addons/hr_maintenance/views/hr_views.xml b/addons/hr_maintenance/views/hr_views.xml index b7063b74b5d..516fbce5da1 100644 --- a/addons/hr_maintenance/views/hr_views.xml +++ b/addons/hr_maintenance/views/hr_views.xml @@ -5,7 +5,7 @@ <field name="model">hr.employee</field> <field name="inherit_id" ref="hr.view_employee_form"/> <field name="arch" type="xml"> - <xpath expr="//button[@name='toggle_active']" position="before"> + <div name="button_box" position="inside"> <button name="%(maintenance.hr_equipment_action)d" context="{'search_default_employee_id': id}" groups="maintenance.group_equipment_manager" @@ -14,7 +14,7 @@ type="action"> <field name="equipment_count" widget="statinfo"/> </button> - </xpath> + </div> </field> </record> diff --git a/addons/hr_presence/views/hr_employee_views.xml b/addons/hr_presence/views/hr_employee_views.xml index 390ad559f2e..6f226b3dc71 100644 --- a/addons/hr_presence/views/hr_employee_views.xml +++ b/addons/hr_presence/views/hr_employee_views.xml @@ -18,7 +18,7 @@ <field name="inherit_id" ref="hr.view_employee_form"/> <field name="groups_id" eval="[(4, ref('hr.group_hr_manager'))]"/> <field name="arch" type="xml"> - <xpath expr="//button[@name='toggle_active']" position="before"> + <div name="button_box" position="inside"> <field name="hr_presence_state" invisible="1"/> <button name="%(ir_actions_server_action_open_presence_view)d" class="oe_stat_button" @@ -39,7 +39,7 @@ <span class="o_stat_text">Connected</span> </div> </button> - </xpath> + </div> </field> </record> diff --git a/addons/hr_recruitment/views/hr_recruitment_views.xml b/addons/hr_recruitment/views/hr_recruitment_views.xml index c9a4817b1c3..ba2bc84b102 100644 --- a/addons/hr_recruitment/views/hr_recruitment_views.xml +++ b/addons/hr_recruitment/views/hr_recruitment_views.xml @@ -102,14 +102,9 @@ attrs="{'invisible': [('emp_id', '=', False)]}"> <field name="employee_name" widget="statinfo" string="Employee"/> </button> - <button name="toggle_active" type="object" - class="oe_stat_button" icon="fa-archive" - attrs="{'invisible': [('active', '=', True)]}"> - <field name="active" widget="boolean_button" - options='{"terminology": "archive"}'/> - </button> </div> <field name="kanban_state" widget="kanban_state_selection"/> + <field name="active" invisible="1"/> <field name="legend_normal" invisible="1"/> <field name="legend_blocked" invisible="1"/> <field name="legend_done" invisible="1"/> diff --git a/addons/hr_timesheet/views/hr_views.xml b/addons/hr_timesheet/views/hr_views.xml index adcd041c643..8b6298e256a 100644 --- a/addons/hr_timesheet/views/hr_views.xml +++ b/addons/hr_timesheet/views/hr_views.xml @@ -41,13 +41,13 @@ </div> </group> </xpath> - <xpath expr="//button[@name='toggle_active']" position="before"> + <div name="button_box" position="inside"> <button class="oe_stat_button" type="action" name="%(timesheet_action_from_employee)d" icon="fa-calendar" groups="hr_timesheet.group_timesheet_manager"> <div class="o_stat_info"> <span class="o_stat_text">Timesheets</span> </div> </button> - </xpath> + </div> </field> </record> diff --git a/addons/hr_timesheet/views/project_views.xml b/addons/hr_timesheet/views/project_views.xml index f0d5bcfd817..d9a205f8c4e 100644 --- a/addons/hr_timesheet/views/project_views.xml +++ b/addons/hr_timesheet/views/project_views.xml @@ -38,9 +38,9 @@ <field name="inherit_id" ref="project.edit_project"/> <field name="priority">24</field> <field name="arch" type="xml"> - <button name="toggle_active" position="before"> + <div name="button_box" position="inside"> <button class="oe_stat_button" name="%(act_hr_timesheet_line_by_project)d" type="action" icon="fa-calendar" string="Timesheets" attrs="{'invisible': [('allow_timesheets', '=', False)]}" groups="hr_timesheet.group_hr_timesheet_user"/> - </button> + </div> <xpath expr="//group[@name='extra_settings']" position="inside"> <field name="allow_timesheets"/> </xpath> diff --git a/addons/lunch/views/lunch_alert_views.xml b/addons/lunch/views/lunch_alert_views.xml index 12c43c00f2d..0e462ebec30 100644 --- a/addons/lunch/views/lunch_alert_views.xml +++ b/addons/lunch/views/lunch_alert_views.xml @@ -32,13 +32,6 @@ <field name="arch" type="xml"> <form string="alert form"> <sheet> - <div class="oe_button_box" name="button_box"> - <button name="toggle_active" type="object" - class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" - options='{"terminology": "archive"}'/> - </button> - </div> <div class="oe_title" name="title"> <label for="name" class="oe_edit_only"/> <h1> @@ -47,6 +40,7 @@ </div> <group> <group> + <field name="active" invisible="1"/> <field name="location_ids" widget="many2many_tags"/> <field name="until"/> </group> diff --git a/addons/lunch/views/lunch_product_views.xml b/addons/lunch/views/lunch_product_views.xml index b5da9ae99bf..f0191227748 100644 --- a/addons/lunch/views/lunch_product_views.xml +++ b/addons/lunch/views/lunch_product_views.xml @@ -41,13 +41,6 @@ <form string="Products Form"> <field name="currency_id" invisible="1"/> <sheet> - <div class="oe_button_box" name="button_box"> - <button name="toggle_active" type="object" - class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" - options='{"terminology": "archive"}'/> - </button> - </div> <field name="image" widget="image" class="oe_avatar" options="{'preview_image': 'image_medium'}"/> <div class="oe_title"> <label for="name" class="oe-edit-only"/> @@ -57,6 +50,7 @@ </div> <group> <group> + <field name="active" invisible="1"/> <field name='category_id'/> <field name='supplier_id'/> <field name='price' widget="monetary"/> diff --git a/addons/lunch/views/lunch_supplier_views.xml b/addons/lunch/views/lunch_supplier_views.xml index 22137797939..2aea911cd24 100644 --- a/addons/lunch/views/lunch_supplier_views.xml +++ b/addons/lunch/views/lunch_supplier_views.xml @@ -18,11 +18,6 @@ <field name="arch" type="xml"> <form> <sheet> - <div class="oe_button_box" name="button_box"> - <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options="{"terminology": "archive"}"/> - </button> - </div> <div class="oe_title"> <label for="name" class="oe_edit_only"/> <h1><field name="name" required="1"/></h1> @@ -41,6 +36,7 @@ </div> </group> <group> + <field name="active" invisible="1"/> <field name="email" attrs="{'required': [('send_by', '=', 'mail')]}"/> <field name="phone" attrs="{'required': [('send_by', '=', 'phone')]}"/> <field name="responsible_id" attrs="{'required': [('send_by', '=', 'mail')]}" groups="base.group_no_one"/> diff --git a/addons/mail/views/mail_activity_views.xml b/addons/mail/views/mail_activity_views.xml index 6743b9beecf..dff576cd9b6 100644 --- a/addons/mail/views/mail_activity_views.xml +++ b/addons/mail/views/mail_activity_views.xml @@ -6,17 +6,13 @@ <field name="arch" type="xml"> <form string="Activities"> <sheet> - <div class="oe_button_box" name="button_box"> - <button class="oe_stat_button" type="object" name="toggle_active" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> - </div> <div class="oe_title"> <label for="name" class="oe_edit_only"/> <h1><field name="name"/></h1> </div> <group> <group name="activity_details"> + <field name="active" invisible="1"/> <field name="category"/> <field name="res_model_id" groups="base.group_no_one"/> <field name="res_model_change" invisible="1"/> diff --git a/addons/mail/views/mail_blacklist_views.xml b/addons/mail/views/mail_blacklist_views.xml index 1a98f20100e..e1e1b7a4bec 100644 --- a/addons/mail/views/mail_blacklist_views.xml +++ b/addons/mail/views/mail_blacklist_views.xml @@ -17,13 +17,9 @@ <field name="arch" type="xml"> <form string="Add Email Blacklist" duplicate="false" edit="false"> <sheet> - <div class="oe_button_box" name="button_box"> - <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> - </div> <group> <group> + <field name="active" invisible="1"/> <field name="email"/> </group> </group> diff --git a/addons/mail/views/res_partner_views.xml b/addons/mail/views/res_partner_views.xml index f6e7173ba67..f7308674470 100644 --- a/addons/mail/views/res_partner_views.xml +++ b/addons/mail/views/res_partner_views.xml @@ -16,7 +16,7 @@ <field name="email" widget="email"/> </div> </xpath> - <xpath expr="//button[@name='toggle_active']" position="before"> + <div name="button_box" position="inside"> <button class="oe_stat_button" icon="fa-envelope" groups="base.group_no_one" attrs="{'invisible':[('message_bounce', '=', 0)]}"> <div class="o_form_field o_stat_info"> <span class="o_stat_value"> @@ -25,7 +25,7 @@ <span class="o_stat_text">Bounce(s)</span> </div> </button> - </xpath> + </div> <xpath expr="//sheet" position="after"> <div class="oe_chatter"> <field name="message_follower_ids" widget="mail_followers"/> diff --git a/addons/maintenance/views/maintenance_views.xml b/addons/maintenance/views/maintenance_views.xml index 8f25f3bcb39..8ce1132e454 100644 --- a/addons/maintenance/views/maintenance_views.xml +++ b/addons/maintenance/views/maintenance_views.xml @@ -340,9 +340,6 @@ icon="fa-ticket"> <field string="Maintenance" name="maintenance_count" widget="statinfo"/> </button> - <button class="oe_stat_button" type="object" name="toggle_active" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> </div> <div class="oe_title"> <label for="name" class="oe_edit_only"/> @@ -350,6 +347,7 @@ </div> <group> <group> + <field name="active" invisible="1"/> <field name="category_id" options="{"no_open": True}"/> <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/> <field name="owner_user_id" string="Owner"/> @@ -755,11 +753,6 @@ <field name="arch" type="xml"> <form string="Maintenance Team"> <sheet> - <div class="oe_button_box" name="button_box"> - <button class="oe_stat_button" type="object" name="toggle_active" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> - </div> <div class="oe_title"> <label for="name" class="oe_edit_only" string="Team Name"/> <h1> @@ -768,6 +761,7 @@ </div> <group> <group> + <field name="active" invisible="1"/> <field name="member_ids" widget="many2many_tags" options="{'color_field': 'color', 'no_create': True}"/> </group> <group> diff --git a/addons/mass_mailing/views/mass_mailing_views.xml b/addons/mass_mailing/views/mass_mailing_views.xml index 7c438400efe..a2d1e31c43d 100644 --- a/addons/mass_mailing/views/mass_mailing_views.xml +++ b/addons/mass_mailing/views/mass_mailing_views.xml @@ -308,11 +308,6 @@ type="action" icon="fa-user" class="oe_stat_button"> <field name="contact_nbr" string="Recipients" widget="statinfo"/> </button> - <button name="toggle_active" type="object" - class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" - options='{"terminology": "archive"}'/> - </button> </div> <div class="oe_title"> <label for="name" class="oe_edit_only"/> @@ -321,6 +316,7 @@ </h1> </div> <group> + <field name="active" invisible="1"/> <field name="is_public"/> </group> </sheet> @@ -578,15 +574,10 @@ class="oe_stat_button"> <field name="bounced_ratio" string="Bounced" widget="percentpie"/> </button> - <button name="toggle_active" type="object" - attrs="{'invisible': [('state', 'in', ('draft','test'))]}" - class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" - options='{"terminology": "archive"}'/> - </button> </div> <group> + <field name="active" invisible="1"/> <field name="name" required="1" string="Mailing Name"/> <field name="subject" string="Subject"/> <label for="mailing_model_id" string="Recipients"/> diff --git a/addons/mrp/views/mrp_bom_views.xml b/addons/mrp/views/mrp_bom_views.xml index 9db8cb9fba0..865d3d17012 100644 --- a/addons/mrp/views/mrp_bom_views.xml +++ b/addons/mrp/views/mrp_bom_views.xml @@ -17,14 +17,10 @@ <div class="oe_button_box" name="button_box"> <button name="%(action_report_mrp_bom)d" type="action" class="oe_stat_button" icon="fa-bars" string="Structure & Cost" attrs="{'invisible': [('bom_line_ids', '=', [])]}"/> - <button name="toggle_active" type="object" - class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" - options='{"terminology": "archive"}'/> - </button> </div> <group> <group> + <field name="active" invisible="1"/> <field name="product_tmpl_id" context="{'default_type': 'product'}"/> <field name="product_uom_category_id" invisible="1"/> <field name="product_id" groups="product.group_product_variant" context="{'default_type': 'product'}"/> diff --git a/addons/mrp/views/mrp_routing_views.xml b/addons/mrp/views/mrp_routing_views.xml index bf1bc7548e0..5faf80f47df 100644 --- a/addons/mrp/views/mrp_routing_views.xml +++ b/addons/mrp/views/mrp_routing_views.xml @@ -74,10 +74,6 @@ <span class="o_stat_text">Time<br/> Analysis</span> </div> </button> - <button class="oe_stat_button" name="toggle_active" type="object" icon="fa-archive"> - <field name="active" widget="boolean_button" - options='{"terminology": "archive"}'/> - </button> </div> <div class="oe_title"> <h1> @@ -87,6 +83,7 @@ <group> <group> <field name="name"/> + <field name="active" invisible="1"/> </group> <group> <field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/> diff --git a/addons/mrp/views/mrp_workcenter_views.xml b/addons/mrp/views/mrp_workcenter_views.xml index a7ecc3ec94f..0da09faa0e2 100644 --- a/addons/mrp/views/mrp_workcenter_views.xml +++ b/addons/mrp/views/mrp_workcenter_views.xml @@ -315,13 +315,10 @@ <span class="o_stat_text">Performance</span> </div> </button> - <button class="oe_stat_button" name="toggle_active" type="object" icon="fa-archive"> - <field name="active" widget="boolean_button" - options='{"terminology": "archive"}'/> - </button> </div> <group> <group> + <field name="active" invisible="1"/> <field name="name" string="Work Center Name" required="True"/> <field name="alternative_workcenter_ids" diff --git a/addons/mrp/views/product_views.xml b/addons/mrp/views/product_views.xml index ed14a79e835..a32370b40c5 100644 --- a/addons/mrp/views/product_views.xml +++ b/addons/mrp/views/product_views.xml @@ -75,7 +75,7 @@ <field name="inherit_id" ref="product.product_template_only_form_view"/> <field name="groups_id" eval="[(4, ref('mrp.group_mrp_user'))]"/> <field name="arch" type="xml"> - <button name="toggle_active" position="before"> + <div name="button_box" position="inside"> <button class="oe_stat_button" name="%(template_open_bom)d" type="action" attrs="{'invisible':[('type', 'not in', ['product', 'consu'])]}" icon="fa-flask"> <field string="Bill of Materials" name="bom_count" widget="statinfo" /> @@ -94,7 +94,7 @@ <span class="o_stat_text">Manufactured</span> </div> </button> - </button> + </div> </field> </record> @@ -104,7 +104,7 @@ <field name="inherit_id" ref="product.product_normal_form_view"/> <field name="groups_id" eval="[(4, ref('mrp.group_mrp_user'))]"/> <field name="arch" type="xml"> - <button name="toggle_active" position="before"> + <div name="button_box" position="inside"> <button class="oe_stat_button" name="action_view_bom" type="object" attrs="{'invisible':[('type', 'not in', ['product', 'consu'])]}" icon="fa-flask"> <field string="Bill of Materials" name="bom_count" widget="statinfo" /> @@ -123,7 +123,7 @@ <span class="o_stat_text">Manufactured</span> </div> </button> - </button> + </div> </field> </record> </data> diff --git a/addons/payment/views/res_partner_views.xml b/addons/payment/views/res_partner_views.xml index fa4d6e1ffaa..8417793f24a 100644 --- a/addons/payment/views/res_partner_views.xml +++ b/addons/payment/views/res_partner_views.xml @@ -9,7 +9,7 @@ <field name="inherit_id" ref="base.view_partner_form"/> <field name="priority" eval="15"/> <field name="arch" type="xml"> - <button name="toggle_active" position="before"> + <div name="button_box" position="inside"> <button type="action" class="oe_stat_button" icon="fa-credit-card" name="%(payment.payment_token_action)d" @@ -21,7 +21,7 @@ <span class="o_stat_text">Credit card(s)</span> </div> </button> - </button> + </div> </field> </record> </data> diff --git a/addons/point_of_sale/views/pos_config_view.xml b/addons/point_of_sale/views/pos_config_view.xml index fd90cb2ff38..776bdacfeaa 100644 --- a/addons/point_of_sale/views/pos_config_view.xml +++ b/addons/point_of_sale/views/pos_config_view.xml @@ -29,13 +29,9 @@ <field name="arch" type="xml"> <form string="Point of Sale Configuration"> <sheet> + <field name="active" invisible="1"/> <field name="currency_id" invisible="1"/> <field name="is_installed_account_accountant" invisible="1"/> - <div class="oe_button_box" name="button_box"> - <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> - </div> <div class="oe_title" id="title"> <label for="name" class="oe_edit_only"/> <h1><field name="name"/></h1> diff --git a/addons/point_of_sale/views/res_partner_view.xml b/addons/point_of_sale/views/res_partner_view.xml index 01555f18893..5528bf1fe64 100644 --- a/addons/point_of_sale/views/res_partner_view.xml +++ b/addons/point_of_sale/views/res_partner_view.xml @@ -7,14 +7,14 @@ <field name="priority" eval="4"/> <field name="groups_id" eval="[(4, ref('group_pos_user'))]"/> <field name="arch" type="xml"> - <button name="toggle_active" position="before"> + <div name="button_box" position="inside"> <button class="oe_stat_button" type="action" name="%(point_of_sale.action_pos_pos_form)d" context="{'search_default_partner_id': active_id,'default_partner_id': active_id}" attrs="{'invisible': ['|', ('customer', '=', False), ('pos_order_count', '=', 0)]}" icon="fa-shopping-bag"> <field string="PoS Orders" name="pos_order_count" widget="statinfo"/> </button> - </button> + </div> <xpath expr="//group[@name='purchase']" position="after"> <group string="Point Of Sale" name="point_of_sale"> <field name="barcode"/> diff --git a/addons/product/views/product_pricelist_views.xml b/addons/product/views/product_pricelist_views.xml index e3d4eae245e..632d6c1793b 100644 --- a/addons/product/views/product_pricelist_views.xml +++ b/addons/product/views/product_pricelist_views.xml @@ -135,18 +135,12 @@ <field name="arch" type="xml"> <form string="Products Price List"> <sheet> - <div class="oe_button_box" name="button_box"> - <button name="toggle_active" type="object" - class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" - options='{"terminology": "archive"}'/> - </button> - </div> <div class="oe_title"> <h1><field name="name" placeholder="e.g. USD Retailers"/></h1> </div> <group> <field name="currency_id" groups="base.group_multi_currency"/> + <field name="active" invisible="1"/> <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/> <field name="country_group_ids"/> </group> diff --git a/addons/product/views/product_template_views.xml b/addons/product/views/product_template_views.xml index c4ead72525b..ea7ce47ee30 100644 --- a/addons/product/views/product_template_views.xml +++ b/addons/product/views/product_template_views.xml @@ -33,14 +33,14 @@ <field name="barcode" attrs="{'invisible': [('product_variant_count', '>', 1)]}"/> </field> - <button name="toggle_active" position="before"> + <div name="button_box" position="inside"> <button name="%(product.product_variant_action)d" type="action" icon="fa-sitemap" class="oe_stat_button" attrs="{'invisible': [('product_variant_count', '<=', 1)]}" groups="product.group_product_variant"> <field string="Variants" name="product_variant_count" widget="statinfo" /> </button> - </button> + </div> <xpath expr="//page[@name='general_information']" position="after"> <page name="variants" string="Variants" groups="product.group_product_variant"> diff --git a/addons/product/views/product_views.xml b/addons/product/views/product_views.xml index bc3567be9e4..8e9a73df2ef 100644 --- a/addons/product/views/product_views.xml +++ b/addons/product/views/product_views.xml @@ -15,17 +15,11 @@ groups="product.group_product_variant"/> </header> <sheet> + <div class="oe_button_box" name="button_box"/> <field name='product_variant_count' invisible='1'/> <field name='is_product_variant' invisible='1'/> <field name='attribute_line_ids' invisible='1'/> <field name="id" invisible="True"/> - <div class="oe_button_box" name="button_box"> - <button name="toggle_active" type="object" - class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" - options='{"terminology": "archive"}'/> - </button> - </div> <field name="image" widget="image" class="oe_avatar" options="{'preview_image': 'image_medium'}"/> <div class="oe_title"> <label class="oe_edit_only" for="name" string="Product Name"/> @@ -45,6 +39,7 @@ <page string="General Information" name="general_information"> <group> <group name="group_general"> + <field name="active" invisible="1"/> <field name="type"/> <field name="categ_id" string="Product Category"/> </group> @@ -268,14 +263,8 @@ <field name="arch" type="xml"> <form string="Variant Information"> <sheet> - <div class="oe_button_box" name="button_box"> - <button class="oe_stat_button" type="object" name="toggle_active" icon="fa-archive"> - <field name="active" - widget="boolean_button" - options='{"terminology": "archive"}'/> - <field name="type" invisible="1"/> - </button> - </div> + <div class="oe_button_box" name="button_box"/> + <field name="active" invisible="1"/> <field name="id" invisible="1"/> <field name="image" widget="image" class="oe_avatar" options="{'preview_image': 'image_medium'}"/> <div class="oe_title"> @@ -291,6 +280,7 @@ <group name="codes" string="Codes"> <field name="default_code"/> <field name="barcode"/> + <field name="type" invisible="1"/> </group> <group name="pricing" string="Pricing"> <field name="product_variant_count" invisible="1"/> diff --git a/addons/project/views/analytic_views.xml b/addons/project/views/analytic_views.xml index bf6809dc5c4..48f968d708d 100644 --- a/addons/project/views/analytic_views.xml +++ b/addons/project/views/analytic_views.xml @@ -9,12 +9,12 @@ <field name="inherit_id" ref="analytic.view_account_analytic_account_form"/> <field eval="18" name="priority"/> <field name="arch" type="xml"> - <xpath expr="//button[@name='toggle_active']" position="before"> + <div name="button_box" position="inside"> <button class="oe_stat_button" type="object" name="action_view_projects" icon="fa-puzzle-piece" attrs="{'invisible': [('project_count', '=', 0)]}"> <field string="Projects" name="project_count" widget="statinfo"/> </button> - </xpath> + </div> </field> </record> diff --git a/addons/project/views/project_views.xml b/addons/project/views/project_views.xml index ec87f6ff8b8..43ac3680a56 100644 --- a/addons/project/views/project_views.xml +++ b/addons/project/views/project_views.xml @@ -113,12 +113,6 @@ </span> </div> </button> - <button name="toggle_active" type="object" - confirm="(Un)archiving a project automatically (un)archives its tasks. Do you want to proceed?" - class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" - options='{"terminology": "archive"}'/> - </button> </div> <div class="oe_title"> <h1> @@ -135,6 +129,7 @@ <page name="settings" string="Settings"> <group> <group> + <field name="active" invisible="1"/> <field name="user_id" string="Project Manager" attrs="{'readonly':[('active','=',False)]}"/> <field name="privacy_visibility" widget="radio"/> </group> @@ -437,11 +432,6 @@ <button name="%(rating_rating_action_task)d" type="action" attrs="{'invisible': [('rating_count', '=', 0)]}" class="oe_stat_button" icon="fa-smile-o" groups="project.group_project_rating"> <field name="rating_count" string="Rating" widget="statinfo"/> </button> - <button name="toggle_active" type="object" groups="base.group_user" - class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" - options='{"terminology": "archive"}'/> - </button> </div> <div class="oe_title pr-0"> <h1 class="d-flex flex-row justify-content-between"> @@ -453,6 +443,7 @@ <group> <group> <field name="project_id" domain="[('active', '=', True)]" options="{'no_create': True}"/> + <field name="active" invisible="1"/> <field name="user_id" class="o_task_user_field" options='{"no_open": True}'/> diff --git a/addons/project/views/res_partner_views.xml b/addons/project/views/res_partner_views.xml index f7a7314c002..1568dc4d60f 100644 --- a/addons/project/views/res_partner_views.xml +++ b/addons/project/views/res_partner_views.xml @@ -9,13 +9,13 @@ <field name="priority" eval="7"/> <field name="groups_id" eval="[(4, ref('project.group_project_user'))]"/> <field name="arch" type="xml"> - <button name="toggle_active" position="before"> + <div name="button_box" position="inside"> <button class="oe_stat_button" type="action" name="%(project_task_action_from_partner)d" context="{'search_default_partner_id': active_id, 'default_partner_id': active_id}" attrs="{'invisible': [('task_count', '=', 0)]}" icon="fa-tasks"> <field string="Tasks" name="task_count" widget="statinfo"/> </button> - </button> + </div> </field> </record> diff --git a/addons/purchase/views/product_views.xml b/addons/purchase/views/product_views.xml index 33c497e0858..7ef8d0e9272 100644 --- a/addons/purchase/views/product_views.xml +++ b/addons/purchase/views/product_views.xml @@ -71,7 +71,7 @@ <field name="inherit_id" ref="product.product_template_only_form_view"/> <field name="groups_id" eval="[(4, ref('purchase.group_purchase_user'))]"/> <field name="arch" type="xml"> - <button name="toggle_active" position="before"> + <div name="button_box" position="inside"> <button class="oe_stat_button" name="action_view_po" type="object" icon="fa-shopping-cart" attrs="{'invisible': [('purchase_ok', '=', False)]}" help="Purchased in the last 365 days"> <div class="o_field_widget o_stat_info"> @@ -82,7 +82,7 @@ <span class="o_stat_text">Purchased</span> </div> </button> - </button> + </div> </field> </record> @@ -103,7 +103,7 @@ <field name="inherit_id" ref="product.product_normal_form_view"/> <field name="groups_id" eval="[(4, ref('purchase.group_purchase_user'))]"/> <field name="arch" type="xml"> - <button name="toggle_active" position="before"> + <div name="button_box" position="inside"> <button class="oe_stat_button" name="action_view_po" type="object" icon="fa-shopping-cart" attrs="{'invisible': [('purchase_ok', '=', False)]}" help="Purchased in the last 365 days"> <div class="o_field_widget o_stat_info"> @@ -114,7 +114,7 @@ <span class="o_stat_text">Purchased</span> </div> </button> - </button> + </div> </field> </record> diff --git a/addons/purchase/views/res_partner_views.xml b/addons/purchase/views/res_partner_views.xml index 460b8e81219..64da2745715 100644 --- a/addons/purchase/views/res_partner_views.xml +++ b/addons/purchase/views/res_partner_views.xml @@ -71,13 +71,13 @@ <field name="priority" eval="9"/> <field name="groups_id" eval="[(4, ref('purchase.group_purchase_user'))]"/> <field name="arch" type="xml"> - <button name="toggle_active" position="before"> + <div name="button_box" position="inside"> <button class="oe_stat_button" name="%(purchase.act_res_partner_2_purchase_order)d" type="action" groups="purchase.group_purchase_user" attrs="{'invisible': [('supplier', '=', False)]}" icon="fa-shopping-cart"> <field string="Purchases" name="purchase_order_count" widget="statinfo"/> </button> - </button> + </div> <page name="internal_notes" position="inside"> <group colspan="2" col="2" groups="purchase.group_warning_purchase"> <separator string="Warning on the Purchase Order" colspan="4"/> @@ -96,12 +96,12 @@ <field name="priority" eval="12"/> <field name="groups_id" eval="[(4, ref('account.group_account_invoice'))]"/> <field name="arch" type="xml"> - <button name="toggle_active" position="before"> + <div name="button_box" position="inside"> <button class="oe_stat_button" name="%(purchase.act_res_partner_2_supplier_invoices)d" type="action" attrs="{'invisible': [('supplier', '=', False)]}" icon="fa-pencil-square-o" help="Vendor Bills"> <field string="Vendor Bills" name="supplier_invoice_count" widget="statinfo"/> </button> - </button> + </div> </field> </record> </odoo> diff --git a/addons/sale/views/res_partner_views.xml b/addons/sale/views/res_partner_views.xml index abacadd08e6..d8508ec340d 100644 --- a/addons/sale/views/res_partner_views.xml +++ b/addons/sale/views/res_partner_views.xml @@ -39,14 +39,14 @@ <field name="priority" eval="3"/> <field name="groups_id" eval="[(4, ref('sales_team.group_sale_salesman'))]"/> <field name="arch" type="xml"> - <button name="toggle_active" position="before"> + <div name="button_box" position="inside"> <button class="oe_stat_button" type="action" name="%(sale.act_res_partner_2_sale_order)d" groups="sales_team.group_sale_salesman" attrs="{'invisible': [('customer', '=', False)]}" icon="fa-usd"> <field string="Sales" name="sale_order_count" widget="statinfo"/> </button> - </button> + </div> <page name="internal_notes" position="inside"> <group colspan="2" col="2" groups="sale.group_warning_sale"> <separator string="Warning on the Sales Order" colspan="4" /> diff --git a/addons/sale/views/sale_views.xml b/addons/sale/views/sale_views.xml index 2783d8c91ad..1efb27f088c 100644 --- a/addons/sale/views/sale_views.xml +++ b/addons/sale/views/sale_views.xml @@ -995,7 +995,7 @@ <field name="inherit_id" ref="product.product_normal_form_view"/> <field name="groups_id" eval="[(4, ref('sales_team.group_sale_salesman'))]"/> <field name="arch" type="xml"> - <button name="toggle_active" position="before"> + <div name="button_box" position="inside"> <button class="oe_stat_button" name="action_view_sales" type="object" icon="fa-signal" groups="sales_team.group_sale_salesman" help="Sold in the last 365 days" attrs="{'invisible': [('sale_ok', '=', False)]}"> <div class="o_field_widget o_stat_info"> @@ -1006,7 +1006,7 @@ <span class="o_stat_text">Sold</span> </div> </button> - </button> + </div> <group name="description" position="after"> <group string="Warning when Selling this Product" groups="sale.group_warning_sale"> <field name="sale_line_warn" nolabel="1"/> @@ -1023,7 +1023,7 @@ <field name="inherit_id" ref="product.product_template_only_form_view"/> <field name="groups_id" eval="[(4, ref('sales_team.group_sale_salesman'))]"/> <field name="arch" type="xml"> - <button name="toggle_active" position="before"> + <div name="button_box" position="inside"> <button class="oe_stat_button" name="action_view_sales" type="object" icon="fa-signal" groups="sales_team.group_sale_salesman" help="Sold in the last 365 days" attrs="{'invisible': [('sale_ok', '=', False)]}"> <div class="o_field_widget o_stat_info"> @@ -1034,7 +1034,7 @@ <span class="o_stat_text">Sold</span> </div> </button> - </button> + </div> <group name="description" position="after"> <group string="Warning when Selling this Product" groups="sale.group_warning_sale"> <field name="sale_line_warn" nolabel="1"/> @@ -1127,9 +1127,6 @@ <field name="currency_id" position="before"> <field name="discount_policy" groups="sale.group_discount_per_so_line" widget="radio"/> </field> - <button name="toggle_active" position="attributes"> - <attribute name="groups">sales_team.group_sale_manager</attribute> - </button> </field> </record> diff --git a/addons/sale_coupon/views/sale_coupon_program_views.xml b/addons/sale_coupon/views/sale_coupon_program_views.xml index 8a5544902e2..fa58074107b 100644 --- a/addons/sale_coupon/views/sale_coupon_program_views.xml +++ b/addons/sale_coupon/views/sale_coupon_program_views.xml @@ -9,9 +9,6 @@ <form string="Coupon Program"> <sheet> <div class="oe_button_box" name="button_box"> - <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "close"}'/> - </button> <button class="oe_stat_button" type="object" icon="fa-usd" name="action_view_sales_orders"> <field name="order_count" string="Sales" widget="statinfo"/> </button> @@ -21,6 +18,7 @@ </div> <group> <group name="conditions" string="Conditions"> + <field name="active" invisible="1"/> <field name="program_type" invisible="1"/> <field name="rule_products_domain" placeholder="Select product" widget="domain" options="{'model': 'product.product'}"/> <label string="Quantity" for="rule_min_quantity" attrs="{'invisible': [('rule_products_domain', '=', False)]}"/> diff --git a/addons/sale_management/views/sale_order_template_views.xml b/addons/sale_management/views/sale_order_template_views.xml index 8edf4f5f655..e3eef9cebcb 100644 --- a/addons/sale_management/views/sale_order_template_views.xml +++ b/addons/sale_management/views/sale_order_template_views.xml @@ -17,11 +17,7 @@ <field name="arch" type="xml"> <form string="Quotation Template"> <sheet> - <div class="oe_button_box" name="button_box"> - <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> - </div> + <div name="button_box" class="oe_button_box"/> <div class="oe_title"> <label for="name" class="oe_edit_only"/> <h1> @@ -30,6 +26,7 @@ </div> <group> <group> + <field name="active" invisible="1"/> <label for="number_of_days" string="Quotation expires after"/> <div id="number_of_days"> <field name="number_of_days" class="oe_inline"/> days diff --git a/addons/sale_timesheet/views/project_task_views.xml b/addons/sale_timesheet/views/project_task_views.xml index a1eb0003c66..89e89b004b1 100644 --- a/addons/sale_timesheet/views/project_task_views.xml +++ b/addons/sale_timesheet/views/project_task_views.xml @@ -86,13 +86,13 @@ <field name="model">project.task</field> <field name="inherit_id" ref="project.view_task_form2"/> <field name="arch" type="xml"> - <xpath expr="//button[@name='toggle_active']" position="before"> + <div name="button_box" position="inside"> <button type="object" name="action_view_so" class="oe_stat_button" icon="fa-dollar" attrs="{'invisible': [('sale_order_id', '=', False)]}" string="Sales Order"/> <field name="sale_order_id" invisible="1"/> - </xpath> + </div> </field> <field name="groups_id" eval="[(4, ref('sales_team.group_sale_salesman'))]"/> </record> diff --git a/addons/sales_team/views/crm_team_views.xml b/addons/sales_team/views/crm_team_views.xml index 1a724359500..1a8ef2a5247 100644 --- a/addons/sales_team/views/crm_team_views.xml +++ b/addons/sales_team/views/crm_team_views.xml @@ -59,11 +59,7 @@ <field name="arch" type="xml"> <form string="Sales Team"> <sheet> - <div class="oe_button_box" name="button_box"> - <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> - </div> + <div class="oe_button_box" name="button_box"/> <div class="oe_title"> <label for="name" class="oe_edit_only" string="Sales Team"/> <h1> @@ -73,6 +69,7 @@ </div> <group> <group name="left"> + <field name="active" invisible="1"/> <field name="user_id" domain="[('share', '=', False)]"/> <field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/> </group> diff --git a/addons/stock/views/product_views.xml b/addons/stock/views/product_views.xml index 8fd7a7bfc53..1e517c3d76e 100644 --- a/addons/stock/views/product_views.xml +++ b/addons/stock/views/product_views.xml @@ -183,13 +183,13 @@ attrs="{'invisible': [('type', '!=', 'product')]}"/> </header> </sheet> - <button name="toggle_active" position="before"> + <div name="button_box" position="inside"> <button string="Putaway Rules" type="object" name="action_view_related_putaway_rules" class="oe_stat_button" icon="fa-random" groups="stock.group_stock_multi_locations" attrs="{'invisible': [('type', '=', 'service')]}" context="{'invisible_handle': True, 'single_product': True}"/> - </button> + </div> </field> </record> @@ -211,7 +211,7 @@ groups="stock.group_stock_user" attrs="{'invisible': [('type', '!=', 'product')]}"/> </header> - <button name="toggle_active" position="before"> + <div name="button_box" position="inside"> <button class="oe_stat_button" name="action_open_quants" icon="fa-building-o" @@ -279,7 +279,7 @@ name="action_open_product_lot" attrs="{'invisible': [('tracking', '=', 'none')]}" class="oe_stat_button" icon="fa-bars" groups="stock.group_production_lot"/> - </button> + </div> <xpath expr="//field[@name='product_tmpl_id']" position="attributes"> <attribute name="context">{'quantity_available_locations_domain': ('internal',)}</attribute> </xpath> @@ -305,7 +305,7 @@ groups="stock.group_stock_user" attrs="{'invisible': [('type', '!=', 'product')]}"/> </header> - <button name="toggle_active" position="before"> + <div name="button_box" position="inside"> <button type="object" name="action_open_quants" attrs="{'invisible':[('type', '!=', 'product')]}" @@ -377,7 +377,7 @@ name="action_open_product_lot" attrs="{'invisible': [('tracking', '=', 'none')]}" class="oe_stat_button" icon="fa-bars" groups="stock.group_production_lot"/> - </button> + </div> <!-- change attrs of fields added in view_template_property_form to restrict the display for templates --> diff --git a/addons/stock/views/stock_location_views.xml b/addons/stock/views/stock_location_views.xml index c53a37b804f..1fa130ff205 100644 --- a/addons/stock/views/stock_location_views.xml +++ b/addons/stock/views/stock_location_views.xml @@ -28,9 +28,6 @@ icon="fa-filter" name="%(act_product_location_open)d" type="action" context="{'location_id': active_id}" /> - <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> </div> <label for="name" class="oe_edit_only"/> <h1><field name="name"/></h1> @@ -39,6 +36,7 @@ <group> <group string="Additional Information"> + <field name="active" invisible="1"/> <field name="usage"/> <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/> <field name="scrap_location" attrs="{'invisible': [('usage', 'not in', ('inventory', 'internal'))]}"/> @@ -164,11 +162,6 @@ <field name="arch" type="xml"> <form string="Route"> <sheet> - <div class="oe_button_box" name="button_box"> - <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive" groups="stock.group_adv_location"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> - </div> <div class="oe_title"> <label for="name" class="oe_edit_only"/> <h1><field name="name"/></h1> @@ -176,6 +169,7 @@ <group> <group> <field name="sequence" string="Sequence" groups="base.group_no_one"/> + <field name="active" invisible="1"/> <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/> </group> </group> diff --git a/addons/stock/views/stock_picking_views.xml b/addons/stock/views/stock_picking_views.xml index 60c4d8173fa..f61c8fd3511 100644 --- a/addons/stock/views/stock_picking_views.xml +++ b/addons/stock/views/stock_picking_views.xml @@ -35,13 +35,9 @@ <field name="arch" type="xml"> <form string="Operation Types"> <sheet> - <div class="oe_button_box" name="button_box"> - <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> - </div> <group> <group> + <field name="active" invisible="1"/> <field name="name"/> <field name="sequence_id"/> <field name="warehouse_id" groups="stock.group_stock_multi_warehouses"/> diff --git a/addons/stock/views/stock_rule_views.xml b/addons/stock/views/stock_rule_views.xml index b4511d917b9..828cfefa3b5 100644 --- a/addons/stock/views/stock_rule_views.xml +++ b/addons/stock/views/stock_rule_views.xml @@ -60,17 +60,13 @@ <field name="arch" type="xml"> <form string="Rules"> <sheet> - <div class="oe_button_box" name="button_box"> - <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> - </div> <div class="oe_title"> <label for="name" class="oe_edit_only"/> <h1><field name="name"/></h1> </div> <group> <group> + <field name="active" invisible="1"/> <field name="action"/> <field name="picking_type_id"/> <field name="location_src_id" options="{'no_create': True}" attrs="{'required': [('action', 'in', ['pull', 'push', 'pull_push'])]}"/> diff --git a/addons/stock/views/stock_warehouse_views.xml b/addons/stock/views/stock_warehouse_views.xml index 66f62654fe9..5265d3c581e 100644 --- a/addons/stock/views/stock_warehouse_views.xml +++ b/addons/stock/views/stock_warehouse_views.xml @@ -13,14 +13,12 @@ icon="fa-refresh" class="oe_stat_button" type="object"/> - <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> </div> <label for="name" class="oe_edit_only"/> <h1><field name="name"/></h1> <group> <group> + <field name="active" invisible="1"/> <field name="code"/> </group> <group> @@ -203,11 +201,6 @@ <field name="arch" type="xml"> <form string="Reordering Rules"> <sheet> - <div class="oe_button_box" name="button_box"> - <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> - </div> <group> <div class="alert alert-info" role="alert"> <a style="cursor: pointer" class="alert-link o_form_uri" type="action" name="%(action_procurement_compute)d">Run the scheduler</a> manually to trigger the reordering rules right now. @@ -216,6 +209,7 @@ <group> <group> <field name="name" /> + <field name="active" invisible="1"/> <field name="product_id"/> </group> <group> diff --git a/addons/stock_landed_costs/views/stock_landed_cost_views.xml b/addons/stock_landed_costs/views/stock_landed_cost_views.xml index 5d4f150dd18..696d5827635 100644 --- a/addons/stock_landed_costs/views/stock_landed_cost_views.xml +++ b/addons/stock_landed_costs/views/stock_landed_cost_views.xml @@ -204,11 +204,6 @@ <field name="arch" type="xml"> <form string="Landed Costs"> <sheet> - <div class="oe_button_box" name="button_box"> - <button name="toggle_active" type="object" groups="base.group_user" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> - </div> <field name="image_medium" widget="image" class="oe_avatar"/> <div class="oe_title"> <div class="oe_edit_only"> @@ -227,6 +222,7 @@ <group> <group> <field name="split_method"/> + <field name="active" invisible="1"/> <field name="standard_price"/> <field name="property_account_expense_id" domain="[('internal_type','=','other'),('deprecated', '=', False)]"/> </group> diff --git a/addons/survey/views/survey_survey_views.xml b/addons/survey/views/survey_survey_views.xml index df16745d7f1..bc92344259f 100644 --- a/addons/survey/views/survey_survey_views.xml +++ b/addons/survey/views/survey_survey_views.xml @@ -40,9 +40,6 @@ icon="fa-pencil-square-o"> <field string="Answers" name="answer_done_count" widget="statinfo"/> </button> - <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> </div> <div class="oe_title" style="width: 100%;"> <label for="title" class="oe_edit_only"/> @@ -50,6 +47,7 @@ </div> <group> <group> + <field name="active" invisible="1"/> <field name="category" invisible="1"/> </group> </group> diff --git a/addons/website_blog/views/website_blog_views.xml b/addons/website_blog/views/website_blog_views.xml index ae3ca5340c2..b18e004aa19 100644 --- a/addons/website_blog/views/website_blog_views.xml +++ b/addons/website_blog/views/website_blog_views.xml @@ -19,12 +19,8 @@ <field name="arch" type="xml"> <form string="Blog"> <sheet> - <div class="oe_button_box" name="button_box"> - <button name="toggle_active" type="object" confirm="(Un)archiving a blog automatically (un)archives its posts. Do you want to proceed?" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> - </div> <group> + <field name="active" invisible="1"/> <field name="name"/> <field name="subtitle"/> <field name="website_id" options="{'no_create': True}" groups="website.group_multi_website"/> @@ -67,12 +63,10 @@ type="object" icon="fa-globe"> <field name="is_published" widget="website_button"/> </button> - <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> </div> <group name="blog_details"> <field name="blog_id"/> + <field name="active" invisible="1"/> <field name="name" placeholder="Blog Post Title"/> <field name="subtitle" placeholder="Blog Subtitle"/> <field name="tag_ids" widget="many2many_tags"/> diff --git a/addons/website_event/views/event_views.xml b/addons/website_event/views/event_views.xml index a5c25cc2611..7641aa7844a 100644 --- a/addons/website_event/views/event_views.xml +++ b/addons/website_event/views/event_views.xml @@ -33,7 +33,7 @@ <field name="organizer_id" position="before"> <field name="website_id" options="{'no_create': True}" groups="website.group_multi_website"/> </field> - <button name="toggle_active" position="before"> + <div name="button_box" position="inside"> <field name="website_url" invisible="1"/> <button name="website_publish_button" type="object" @@ -41,7 +41,7 @@ icon="fa-globe"> <field name="is_published" widget="website_button"/> </button> - </button> + </div> <label for="is_online" position="after"> <field name="website_menu"/> <label for="website_menu" string="Website Menu"/> diff --git a/addons/website_event_track/views/event_track_views.xml b/addons/website_event_track/views/event_track_views.xml index 677090b704a..45bea7e54cb 100644 --- a/addons/website_event_track/views/event_track_views.xml +++ b/addons/website_event_track/views/event_track_views.xml @@ -119,9 +119,6 @@ type="object" icon="fa-globe"> <field name="is_published" widget="website_button"/> </button> - <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> </div> <field name="kanban_state" widget="state_selection"/> <div class="oe_title"> @@ -137,6 +134,7 @@ <group> <group> <field name="user_id"/> + <field name="active" invisible="1"/> <field name="partner_id"/> <field name="partner_name"/> <field name="partner_email"/> diff --git a/addons/website_forum/views/forum.xml b/addons/website_forum/views/forum.xml index ae86d28b1ca..cd9d7671aef 100644 --- a/addons/website_forum/views/forum.xml +++ b/addons/website_forum/views/forum.xml @@ -28,11 +28,6 @@ <field name="arch" type="xml"> <form string="Forum"> <sheet> - <div class="oe_button_box" name="button_box"> - <button name="toggle_active" type="object" confirm="(Un)archiving a forum automatically (un)archives its posts. Do you want to proceed?" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> - </div> <field name="image" widget="image" options="{'preview_image': 'image_medium'}" class="oe_avatar"/> <div class="oe_title"> <label for="name" class="oe_edit_only"/> @@ -41,6 +36,7 @@ </h1> </div> <group> + <field name="active" invisible="1"/> <field name="description"/> <field name="website_id" options="{'no_create': True}" groups="website.group_multi_website"/> </group> @@ -147,17 +143,13 @@ <field name="arch" type="xml"> <form string="Forum Post"> <sheet> - <div class="oe_button_box" name="button_box"> - <button name="toggle_active" type="object" confirm="(Un)archiving a post automatically (un)archives its answers. Do you want to proceed?" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> - </div> <label for="name" class="oe_edit_only"/> <h1> <field name="name" placeholder="Name"/> </h1> <group> <group> + <field name="active" invisible="1"/> <field name="forum_id"/> <field name="website_id" groups="website.group_multi_website"/> <field name="parent_id"/> diff --git a/addons/website_forum/views/res_users_views.xml b/addons/website_forum/views/res_users_views.xml index d85abcb14e6..7036588ba97 100644 --- a/addons/website_forum/views/res_users_views.xml +++ b/addons/website_forum/views/res_users_views.xml @@ -11,12 +11,12 @@ <field name="signature" position="after"> <field name="karma" string="Forum Karma"/> </field> - <button name="toggle_active" position="before"> + <div name="button_box" position="inside"> <button class="oe_stat_button" name="open_website_url" type="object" icon="fa-globe"> <field name="is_published" widget="website_button"/> </button> - </button> + </div> </field> </record> diff --git a/addons/website_partner/views/res_partner_views.xml b/addons/website_partner/views/res_partner_views.xml index 8c19de877ac..6d9a93ea920 100644 --- a/addons/website_partner/views/res_partner_views.xml +++ b/addons/website_partner/views/res_partner_views.xml @@ -7,12 +7,12 @@ <field eval="17" name="priority"/> <field name="arch" type="xml"> <data> - <button name="toggle_active" position="before"> + <div name="button_box" position="inside"> <button class="oe_stat_button" name="website_publish_button" type="object" icon="fa-globe"> <field name="is_published" widget="website_button"/> </button> - </button> + </div> </data> </field> </record> diff --git a/addons/website_sale/views/product_views.xml b/addons/website_sale/views/product_views.xml index f208a945e6e..76b8e5f3066 100644 --- a/addons/website_sale/views/product_views.xml +++ b/addons/website_sale/views/product_views.xml @@ -98,12 +98,12 @@ <xpath expr="//group[@name='description']" position="attributes"> <attribute name="invisible">0</attribute> </xpath> - <xpath expr="//button[@name='toggle_active']" position="before"> + <div name="button_box" position="inside"> <button class="oe_stat_button" name="website_publish_button" type="object" icon="fa-globe" attrs="{'invisible': [('sale_ok','=',False)]}"> <field name="is_published" widget="website_button"/> </button> - </xpath> + </div> <xpath expr="//page[@name='sales']" position="after"> <page name="shop" string="eCommerce" attrs="{'invisible': [('sale_ok','=',False)]}"> <group name="shop"> diff --git a/addons/website_sale_digital/views/website_sale_digital_view.xml b/addons/website_sale_digital/views/website_sale_digital_view.xml index 42b8c8ebd27..a486170e31b 100644 --- a/addons/website_sale_digital/views/website_sale_digital_view.xml +++ b/addons/website_sale_digital/views/website_sale_digital_view.xml @@ -5,11 +5,11 @@ <field name="model">product.template</field> <field name="inherit_id" ref="product.product_template_only_form_view" /> <field name="arch" type="xml"> - <button name="toggle_active" position="before"> + <div name="button_box" position="inside"> <button class="oe_stat_button" name="action_open_attachments" type="object" icon="fa-file"> <field string="Digital Files" name="attachment_count" widget="statinfo" /> </button> - </button> + </div> </field> </record> @@ -18,11 +18,11 @@ <field name="model">product.product</field> <field name="inherit_id" ref="product.product_normal_form_view"/> <field name="arch" type="xml"> - <button name="toggle_active" position="before"> + <div name="button_box" position="inside"> <button class="oe_stat_button" name="action_open_attachments" type="object" icon="fa-file"> <field string="Digital Files" name="attachment_count" widget="statinfo" /> </button> - </button> + </div> </field> </record> </odoo> diff --git a/addons/website_slides/views/slide_channel_views.xml b/addons/website_slides/views/slide_channel_views.xml index 8eec4cd9de6..3f9a719768e 100644 --- a/addons/website_slides/views/slide_channel_views.xml +++ b/addons/website_slides/views/slide_channel_views.xml @@ -62,9 +62,6 @@ type="object" icon="fa-globe"> <field name="is_published" widget="website_button"/> </button> - <button name="toggle_active" type="object" confirm="(Un)archiving a channel automatically (un)archives its slides. Do you want to proceed?" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> </div> <field name="image" widget="image" class="oe_avatar" options="{'preview_image': 'image_medium'}"/> <div class="oe_title"> @@ -73,6 +70,7 @@ </div> <group> <group> + <field name="active" invisible="1"/> <field name="enroll" widget="radio" options="{'horizontal': true}"/> <field name="category_ids" widget="many2many_tags" placeholder="Categories" context="{'default_channel_id': active_id}" diff --git a/addons/website_slides/views/slide_slide_views.xml b/addons/website_slides/views/slide_slide_views.xml index c8d10349464..5ded35f1846 100644 --- a/addons/website_slides/views/slide_slide_views.xml +++ b/addons/website_slides/views/slide_slide_views.xml @@ -41,9 +41,6 @@ type="object" icon="fa-globe"> <field name="is_published" widget="website_button"/> </button> - <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive"> - <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> - </button> </div> <field name="image" widget="image" class="oe_avatar" options='{"preview_image": "image_large"}' attrs="{'readonly': [('slide_type', 'in', ('document', 'presentation', 'video'))]}" @@ -58,6 +55,7 @@ <field name="tag_ids" widget="many2many_tags" placeholder="Tags..."/> </div> <group> + <field name="active" invisible="1"/> <field name="user_id"/> <field name="channel_id"/> <field name="category_id" context="{'default_channel_id': channel_id}"/> |
