diff options
| author | Yannick Tivisse <yti@odoo.com> | 2019-07-12 11:17:02 +0200 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-07-12 13:01:36 +0200 |
| commit | 883c96b781b0bf8235dfddbd3dfff6bb97291d63 (patch) | |
| tree | 3e9adce5f593b7162b0101e1ee7bd46693ffdc37 /addons | |
| parent | 02fbb737b96ab8e35123219db5cdcc008729953b (diff) | |
[IMP] base,mail,...: Add ribbon widget everywhere on archived records
Purpose
=======
In the following views, add a bg-danger ribbon with label 'Archived'
only visible when active=False:
account.account_tag_view_form (account.account.tag)
analytic.view_account_analytic_account_form (account.analytic.account)
analytic.account_analytic_tag_form_view (account.analytic.tag)
account_asset.view_account_asset_form (account.asset)
account.view_account_position_form (account.fiscal.position)
account.account_incoterms_form (account.incoterms)
account.view_account_journal_form (account.journal)
account.view_payment_term_form (account.payment.term)
website_blog.view_blog_blog_form (blog.blog)
website_blog.view_blog_post_form (blog.post)
calendar.view_calendar_event_form (calendar.event)
crm.crm_case_form_view_leads (crm.lead)
crm.crm_case_form_view_oppor (crm.lead)
crm.crm_lost_reason_view_form (crm.lost.reason)
sales_team.crm_team_view_form (crm.team)
documents.document_view_form (documents.document)
event.view_event_form (event.event)
website_event_track.view_event_track_form (event.track)
fleet.fleet_vehicle_view_form (fleet.vehicle)
fleet.fleet_vehicle_log_contract_view_form (fleet.vehicle.log.contract)
website_forum.view_forum_forum_form (forum.forum)
website_forum.view_forum_post_form (forum.post)
gamification.badge_form_view (gamification.badge)
helpdesk.helpdesk_sla_view_form (helpdesk.sla)
helpdesk.helpdesk_team_view_form (helpdesk.team)
helpdesk.helpdesk_ticket_view_form (helpdesk.ticket)
hr_recruitment.hr_applicant_view_form (hr.applicant)
hr_appraisal.view_hr_appraisal_form (hr.appraisal)
hr_contract.hr_contract_view_form (hr.contract)
hr.view_department_form (hr.department)
hr.view_employee_form (hr.employee)
hr.hr_employee_public_view_form (hr.employee.public)
hr_holidays.edit_holiday_status_form (hr.leave.type)
hr.hr_plan_view_form (hr.plan)
hr_payroll.hr_salary_rule_form (hr.salary.rule)
hr_work_entry.hr_work_entry_type_view_form (hr.work.entry.type)
lunch.lunch_product_view_form (lunch.product)
lunch.lunch_supplier_view_form (lunch.supplier)
mail.mail_activity_type_view_form (mail.activity.type)
mass_mailing.view_mail_mass_mailing_form (mail.mass_mailing)
mass_mailing.view_mail_mass_mailing_list_form (mail.mass_mailing.list)
maintenance.hr_equipment_view_form (maintenance.equipment)
maintenance.maintenance_team_view_form (maintenance.team)
marketing_automation.marketing_campaign_view_form (marketing.campaign)
mrp.mrp_bom_form_view (mrp.bom)
mrp_plm.mrp_eco_view_form (mrp.eco)
mrp.mrp_routing_form_view (mrp.routing)
mrp.mrp_workcenter_view (mrp.workcenter)
point_of_sale.pos_config_view_form (pos.config)
product.product_pricelist_view (product.pricelist)
hr_expense.product_product_expense_form_view (product.product)
product.product_variant_easy_edit_view (product.product)
stock_landed_costs.view_stock_landed_cost_type_form (product.product)
product.product_template_form_view (product.template)
project_forecast.project_forecast_view_form (project.forecast)
project.edit_project (project.project)
project.view_task_form2 (project.task)
industry_fsm_report.project_worksheet_template_view_form (project.worksheet.template)
quality.quality_point_view_form (quality.point)
base.view_res_bank_form (res.bank)
base.view_partner_form (res.partner)
base.view_users_form (res.users)
sale_coupon.sale_coupon_program_view_form_common (sale.coupon.program)
sale_management.sale_order_template_view_form (sale.order.template)
sale_subscription.sale_subscription_alert_view_form (sale.subscription.alert)
sale_subscription.sale_subscription_template_view_form (sale.subscription.template)
sign.sign_request_view_form (sign.request)
sign.sign_template_view_form (sign.template)
website_slides.view_slide_channel_form (slide.channel)
website_slides.view_slide_slide_form (slide.slide)
stock.view_location_form (stock.location)
stock.stock_location_route_form_view (stock.location.route)
stock.view_picking_type_form (stock.picking.type)
stock.view_stock_rule_form (stock.rule)
stock.view_warehouse (stock.warehouse)
stock.view_warehouse_orderpoint_form (stock.warehouse.orderpoint)
survey.survey_form (survey.survey)
website_crm_score.view_crm_score_form (website.crm.score)
website_twitter_wall.website_twitter_wall_view_form (website.twitter.wall)
Diffstat (limited to 'addons')
46 files changed, 65 insertions, 6 deletions
diff --git a/addons/account/views/account_incoterms_view.xml b/addons/account/views/account_incoterms_view.xml index 621466ee736..20cd4ce29bd 100644 --- a/addons/account/views/account_incoterms_view.xml +++ b/addons/account/views/account_incoterms_view.xml @@ -19,6 +19,7 @@ <field name="arch" type="xml"> <form string="Incoterms"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <group> <field name="active" invisible="1"/> <field name="name"/> diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml index 0270f4afe14..7d3cd61e1e1 100644 --- a/addons/account/views/account_move_views.xml +++ b/addons/account/views/account_move_views.xml @@ -494,12 +494,10 @@ </div> <!-- Payment status for invoices / receipts --> - <div> - <span class="pull-right badge badge-success" - attrs="{'invisible': ['|', ('invoice_payment_state', '!=', 'paid'), ('type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund', 'out_receipt', 'in_receipt'))]}">Paid</span> - <span class="pull-right badge badge-success" - attrs="{'invisible': ['|', ('invoice_payment_state', '!=', 'in_payment'), ('type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund', 'out_receipt', 'in_receipt'))]}">In Payment</span> - </div> + <widget name="web_ribbon" text="Paid" + attrs="{'invisible': ['|', ('invoice_payment_state', '!=', 'paid'), ('type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund', 'out_receipt', 'in_receipt'))]}"/> + <widget name="web_ribbon" text="In Payment" + attrs="{'invisible': ['|', ('invoice_payment_state', '!=', 'in_payment'), ('type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund', 'out_receipt', 'in_receipt'))]}"/> <!-- Invisible fields --> <field name="id" invisible="1"/> diff --git a/addons/account/views/account_view.xml b/addons/account/views/account_view.xml index 9a0067da498..da2a270c835 100644 --- a/addons/account/views/account_view.xml +++ b/addons/account/views/account_view.xml @@ -211,6 +211,7 @@ <field name="arch" type="xml"> <form string="Account Journal"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_title"> <label for="name" class="oe_edit_only"/> <h1><field name="name" class="oe_inline"/></h1> @@ -374,6 +375,7 @@ action = model.setting_init_bank_account_action() <field name="arch" type="xml"> <form string="Tags"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <group> <field name="active" invisible="1"/> <field name="name"/> @@ -1249,6 +1251,7 @@ action = model.setting_init_bank_account_action() <field name="arch" type="xml"> <form string="Payment Terms"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <group> <group> <field name="active" invisible="1"/> diff --git a/addons/account/views/partner_view.xml b/addons/account/views/partner_view.xml index 4187d9dfd28..0307bb43576 100644 --- a/addons/account/views/partner_view.xml +++ b/addons/account/views/partner_view.xml @@ -7,6 +7,7 @@ <field name="arch" type="xml"> <form string="Fiscal Position"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_button_box" name="button_box"/> <group> <group> diff --git a/addons/analytic/views/analytic_account_views.xml b/addons/analytic/views/analytic_account_views.xml index 9f7f293d7e4..29cb8639333 100644 --- a/addons/analytic/views/analytic_account_views.xml +++ b/addons/analytic/views/analytic_account_views.xml @@ -17,6 +17,7 @@ <field name="arch" type="xml"> <form string="Analytic Tags"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <group> <field name="active" invisible="1"/> <field name="name"/> @@ -139,6 +140,7 @@ <field name="arch" type="xml"> <form string="Analytic Account"> <sheet string="Analytic Account"> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <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"/> diff --git a/addons/calendar/views/calendar_views.xml b/addons/calendar/views/calendar_views.xml index b9300f64b9e..ff19273d798 100644 --- a/addons/calendar/views/calendar_views.xml +++ b/addons/calendar/views/calendar_views.xml @@ -86,12 +86,14 @@ <field name="arch" type="xml"> <form string="Meetings"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <button string="Document" class="oe_stat_button float-right" icon="fa-bars" type="object" name="action_open_calendar_event" attrs="{'invisible': ['|', ('res_model', '=', False), ('res_id', '=', False)]}"/> <field name="res_model" invisible="1" /> <field name="res_id" invisible="1" /> <field name="state" invisible="1"/> <field name="is_attendee" invisible="1"/> <field name="attendee_status" invisible="1"/> + <field name="active" invisible="1"/> <div class="oe_title"> <div class="oe_edit_only"> <label for="name"/> diff --git a/addons/crm/views/crm_lead_views.xml b/addons/crm/views/crm_lead_views.xml index dbe31846843..f62828dbb42 100644 --- a/addons/crm/views/crm_lead_views.xml +++ b/addons/crm/views/crm_lead_views.xml @@ -65,6 +65,7 @@ attrs="{'invisible': ['&', ('probability', '=', 0), ('active', '=', False)]}"/> </header> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <field name="active" invisible="1"/> <div class="oe_button_box" name="button_box"/> <div class="badge-pill badge-danger float-right" attrs="{'invisible': ['|', ('probability', '>', 0), ('active', '=', True)]}">Lost</div> @@ -508,6 +509,7 @@ attrs="{'invisible': [('active', '=', False)]}"/> </header> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <field name="active" invisible="1"/> <div class="oe_button_box" name="button_box"> <button class="oe_stat_button" type="object" @@ -838,6 +840,7 @@ <field name="arch" type="xml"> <form string="Channel"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_title"> <div class="oe_edit_only"> <label for="name"/> diff --git a/addons/event/views/event_views.xml b/addons/event/views/event_views.xml index 7315ab9417f..9132349f99d 100644 --- a/addons/event/views/event_views.xml +++ b/addons/event/views/event_views.xml @@ -195,6 +195,7 @@ <field name="state" widget="statusbar" statusbar_visible="draft,confirm,done"/> </header> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_button_box" name="button_box" groups="base.group_user"> <button name="%(event.act_event_registration_from_event)d" type="action" diff --git a/addons/fleet/views/fleet_vehicle_cost_views.xml b/addons/fleet/views/fleet_vehicle_cost_views.xml index 9d2272f58c8..88a1863c534 100644 --- a/addons/fleet/views/fleet_vehicle_cost_views.xml +++ b/addons/fleet/views/fleet_vehicle_cost_views.xml @@ -180,6 +180,7 @@ <field name="state" widget="statusbar" /> </header> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <field name="currency_id" invisible="1"/> <group col="2"> <group string="Contract Informations"> diff --git a/addons/fleet/views/fleet_vehicle_views.xml b/addons/fleet/views/fleet_vehicle_views.xml index 7164d7fb050..831753f9307 100644 --- a/addons/fleet/views/fleet_vehicle_views.xml +++ b/addons/fleet/views/fleet_vehicle_views.xml @@ -10,6 +10,7 @@ <field name="state_id" widget="statusbar" options="{'clickable': '1'}"/> </header> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <field name="currency_id" invisible="1"/> <div class="oe_button_box" name="button_box"> <button name="open_assignation_logs" diff --git a/addons/gamification/views/badge.xml b/addons/gamification/views/badge.xml index 8caf7408281..674f64208aa 100644 --- a/addons/gamification/views/badge.xml +++ b/addons/gamification/views/badge.xml @@ -38,6 +38,7 @@ <button string="Grant this Badge" type="action" name="%(action_grant_wizard)d" class="oe_highlight" attrs="{'invisible': [('remaining_sending','=',0)]}" /> </header> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_button_box" name="button_box"/> <field name="image" widget='image' class="oe_avatar"/> <div class="oe_title"> @@ -54,6 +55,7 @@ Security rules to define who is allowed to manually grant badges. Not enforced for administrator. </div> <group> + <field name="active" invisible="1"/> <field name="rule_auth" widget="radio"/> <field name="rule_auth_user_ids" attrs="{'invisible': [('rule_auth','!=','users')]}" widget="many2many_tags" /> <field name="rule_auth_badge_ids" attrs="{'invisible': [('rule_auth','!=','having')]}" widget="many2many_tags" /> diff --git a/addons/hr/views/hr_department_views.xml b/addons/hr/views/hr_department_views.xml index 19a6da9bbde..c6613c7df8c 100644 --- a/addons/hr/views/hr_department_views.xml +++ b/addons/hr/views/hr_department_views.xml @@ -7,6 +7,7 @@ <field name="arch" type="xml"> <form string="department"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <group col="4"> <field name="active" invisible="1"/> <field name="name"/> diff --git a/addons/hr/views/hr_employee_public_views.xml b/addons/hr/views/hr_employee_public_views.xml index d6a97209f11..fa8582f3015 100644 --- a/addons/hr/views/hr_employee_public_views.xml +++ b/addons/hr/views/hr_employee_public_views.xml @@ -18,6 +18,7 @@ <field name="arch" type="xml"> <form string="Employee" create="0" write="0"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <field name="user_id" invisible="1"/> <field name="active" invisible="1"/> <div class="oe_button_box" name="button_box"> diff --git a/addons/hr/views/hr_employee_views.xml b/addons/hr/views/hr_employee_views.xml index b077f21f1bd..f353c4d72bf 100644 --- a/addons/hr/views/hr_employee_views.xml +++ b/addons/hr/views/hr_employee_views.xml @@ -45,6 +45,7 @@ <button name="%(plan_wizard_action)d" string="Launch Plan" type="action" groups="hr.group_hr_manager"/> </header> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <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"> diff --git a/addons/hr/views/hr_plan_views.xml b/addons/hr/views/hr_plan_views.xml index ab40872ba2f..f94a7e39195 100644 --- a/addons/hr/views/hr_plan_views.xml +++ b/addons/hr/views/hr_plan_views.xml @@ -28,6 +28,7 @@ <field name="arch" type="xml"> <form string="Planning"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_title"> <label for="name" class="oe_edit_only"/> <h1> diff --git a/addons/hr_contract/views/hr_contract_views.xml b/addons/hr_contract/views/hr_contract_views.xml index 337a5256210..61cd1d202e3 100644 --- a/addons/hr_contract/views/hr_contract_views.xml +++ b/addons/hr_contract/views/hr_contract_views.xml @@ -139,6 +139,7 @@ <field name="state" widget="statusbar" options="{'clickable': '1'}"/> </header> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_button_box" name="button_box"/> <div class="oe_title" name="title"> <div class="oe_edit_only"> diff --git a/addons/hr_expense/views/hr_expense_views.xml b/addons/hr_expense/views/hr_expense_views.xml index 32b4693028d..cefa9e6b7ae 100644 --- a/addons/hr_expense/views/hr_expense_views.xml +++ b/addons/hr_expense/views/hr_expense_views.xml @@ -307,6 +307,7 @@ <field name="arch" type="xml"> <form string="Expense Products"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <field name='product_variant_count' invisible='1'/> <field name="id" invisible="True"/> <field name="image_medium" widget="image" class="oe_avatar"/> diff --git a/addons/hr_holidays/views/hr_leave_type_views.xml b/addons/hr_holidays/views/hr_leave_type_views.xml index 7073ef9dfe2..893f2f60804 100644 --- a/addons/hr_holidays/views/hr_leave_type_views.xml +++ b/addons/hr_holidays/views/hr_leave_type_views.xml @@ -21,6 +21,7 @@ <field name="arch" type="xml"> <form string="Time Off Type"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_button_box" name="button_box"> <button class="oe_stat_button" type="object" name="action_see_days_allocated" icon="fa-archive"> <div class="o_stat_info"> diff --git a/addons/hr_recruitment/views/hr_recruitment_views.xml b/addons/hr_recruitment/views/hr_recruitment_views.xml index ba2bc84b102..ec1261db52a 100644 --- a/addons/hr_recruitment/views/hr_recruitment_views.xml +++ b/addons/hr_recruitment/views/hr_recruitment_views.xml @@ -75,6 +75,7 @@ <field name="stage_id" widget="statusbar" options="{'clickable': '1', 'fold_field': 'fold'}" attrs="{'invisible': [('active', '=', False),('emp_id', '=', False)]}"/> </header> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_button_box" name="button_box"> <button name="action_applications_email" class="oe_stat_button" diff --git a/addons/hr_work_entry/views/hr_work_entry_views.xml b/addons/hr_work_entry/views/hr_work_entry_views.xml index 4e3b5a860b9..d8bd3acb375 100644 --- a/addons/hr_work_entry/views/hr_work_entry_views.xml +++ b/addons/hr_work_entry/views/hr_work_entry_views.xml @@ -141,6 +141,7 @@ <field name="arch" type="xml"> <form string="Work Entry Type" > <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_title"> <h1> <field name="name" placeholder="Work Entry Type Name"/> @@ -149,6 +150,7 @@ <group name="main_group"> <group name="identification"> <field name="code"/> + <field name="active" invisible="1"/> <field name="sequence"/> </group> </group> diff --git a/addons/lunch/views/lunch_product_views.xml b/addons/lunch/views/lunch_product_views.xml index f0191227748..03ac5bf46c9 100644 --- a/addons/lunch/views/lunch_product_views.xml +++ b/addons/lunch/views/lunch_product_views.xml @@ -41,6 +41,7 @@ <form string="Products Form"> <field name="currency_id" invisible="1"/> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <field name="image" widget="image" class="oe_avatar" options="{'preview_image': 'image_medium'}"/> <div class="oe_title"> <label for="name" class="oe-edit-only"/> diff --git a/addons/lunch/views/lunch_supplier_views.xml b/addons/lunch/views/lunch_supplier_views.xml index 2aea911cd24..af5620035a8 100644 --- a/addons/lunch/views/lunch_supplier_views.xml +++ b/addons/lunch/views/lunch_supplier_views.xml @@ -18,6 +18,7 @@ <field name="arch" type="xml"> <form> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_title"> <label for="name" class="oe_edit_only"/> <h1><field name="name" required="1"/></h1> diff --git a/addons/mail/views/mail_activity_views.xml b/addons/mail/views/mail_activity_views.xml index dff576cd9b6..394812d4171 100644 --- a/addons/mail/views/mail_activity_views.xml +++ b/addons/mail/views/mail_activity_views.xml @@ -6,6 +6,7 @@ <field name="arch" type="xml"> <form string="Activities"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_title"> <label for="name" class="oe_edit_only"/> <h1><field name="name"/></h1> diff --git a/addons/maintenance/views/maintenance_views.xml b/addons/maintenance/views/maintenance_views.xml index 8ce1132e454..81ff745a4a0 100644 --- a/addons/maintenance/views/maintenance_views.xml +++ b/addons/maintenance/views/maintenance_views.xml @@ -333,6 +333,7 @@ <field name="arch" type="xml"> <form string="Equipments"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_button_box" name="button_box"> <button name="%(hr_equipment_request_action_from_equipment)d" type="action" @@ -753,6 +754,7 @@ <field name="arch" type="xml"> <form string="Maintenance Team"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_title"> <label for="name" class="oe_edit_only" string="Team Name"/> <h1> diff --git a/addons/mass_mailing/views/mass_mailing_views.xml b/addons/mass_mailing/views/mass_mailing_views.xml index a2d1e31c43d..77a8c28c35a 100644 --- a/addons/mass_mailing/views/mass_mailing_views.xml +++ b/addons/mass_mailing/views/mass_mailing_views.xml @@ -303,6 +303,7 @@ <field name="arch" type="xml"> <form string="Contact List"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_button_box" name="button_box"> <button name="%(mass_mailing.action_view_mass_mailing_contacts_from_list)d" type="action" icon="fa-user" class="oe_stat_button"> @@ -532,6 +533,7 @@ </strong></p> </div> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_button_box" name="button_box"> <button name="action_view_sent" type="object" diff --git a/addons/mrp/views/mrp_bom_views.xml b/addons/mrp/views/mrp_bom_views.xml index 865d3d17012..ef1d696ab5c 100644 --- a/addons/mrp/views/mrp_bom_views.xml +++ b/addons/mrp/views/mrp_bom_views.xml @@ -14,6 +14,7 @@ <field name="arch" type="xml"> <form string="Bill of Material"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <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', '=', [])]}"/> diff --git a/addons/mrp/views/mrp_routing_views.xml b/addons/mrp/views/mrp_routing_views.xml index 5faf80f47df..44be561285b 100644 --- a/addons/mrp/views/mrp_routing_views.xml +++ b/addons/mrp/views/mrp_routing_views.xml @@ -68,6 +68,7 @@ <field name="arch" type="xml"> <form string="Routing"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_button_box" name="button_box"> <button name="%(action_mrp_routing_time)d" type="action" class="oe_stat_button" icon="fa-clock-o"> <div class="o_field_widget o_stat_info"> diff --git a/addons/mrp/views/mrp_workcenter_views.xml b/addons/mrp/views/mrp_workcenter_views.xml index 0da09faa0e2..d9a2c68d7c7 100644 --- a/addons/mrp/views/mrp_workcenter_views.xml +++ b/addons/mrp/views/mrp_workcenter_views.xml @@ -290,6 +290,7 @@ <field name="arch" type="xml"> <form string="Work Center"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_button_box" name="button_box"> <button name="%(mrp_workcenter_productivity_report_oee)d" type="action" class="oe_stat_button" icon="fa-pie-chart"> <div class="o_field_widget o_stat_info"> diff --git a/addons/point_of_sale/views/pos_config_view.xml b/addons/point_of_sale/views/pos_config_view.xml index 776bdacfeaa..3e3fda97db1 100644 --- a/addons/point_of_sale/views/pos_config_view.xml +++ b/addons/point_of_sale/views/pos_config_view.xml @@ -29,6 +29,7 @@ <field name="arch" type="xml"> <form string="Point of Sale Configuration"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <field name="active" invisible="1"/> <field name="currency_id" invisible="1"/> <field name="is_installed_account_accountant" invisible="1"/> diff --git a/addons/product/views/product_pricelist_views.xml b/addons/product/views/product_pricelist_views.xml index 632d6c1793b..ba70836b1ac 100644 --- a/addons/product/views/product_pricelist_views.xml +++ b/addons/product/views/product_pricelist_views.xml @@ -135,6 +135,7 @@ <field name="arch" type="xml"> <form string="Products Price List"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_title"> <h1><field name="name" placeholder="e.g. USD Retailers"/></h1> </div> diff --git a/addons/product/views/product_views.xml b/addons/product/views/product_views.xml index 8e9a73df2ef..bfc4e29995a 100644 --- a/addons/product/views/product_views.xml +++ b/addons/product/views/product_views.xml @@ -15,6 +15,7 @@ groups="product.group_product_variant"/> </header> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_button_box" name="button_box"/> <field name='product_variant_count' invisible='1'/> <field name='is_product_variant' invisible='1'/> @@ -263,6 +264,7 @@ <field name="arch" type="xml"> <form string="Variant Information"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_button_box" name="button_box"/> <field name="active" invisible="1"/> <field name="id" invisible="1"/> diff --git a/addons/project/views/project_views.xml b/addons/project/views/project_views.xml index 43ac3680a56..6d62cef471c 100644 --- a/addons/project/views/project_views.xml +++ b/addons/project/views/project_views.xml @@ -95,6 +95,7 @@ <button name="%(portal.portal_share_action)d" string="Share" type="action" class="oe_highlight oe_read_only"/> </header> <sheet string="Project"> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_button_box" name="button_box" groups="base.group_user"> <button class="oe_stat_button" name="attachment_tree_view" type="object" icon="fa-files-o"> <field string="Documents" name="doc_count" widget="statinfo"/> @@ -422,6 +423,7 @@ <field name="stage_id" widget="statusbar" options="{'clickable': '1', 'fold_field': 'fold'}"/> </header> <sheet string="Task"> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_button_box" name="button_box"> <button class="oe_stat_button" icon="fa-tasks" type="object" name="action_open_parent_task" string="Parent Task" attrs="{'invisible' : [('parent_id', '=', False)]}" groups="project.group_subtask_project"/> <button name="action_subtask" type="object" class="oe_stat_button" icon="fa-tasks" diff --git a/addons/sale_coupon/views/sale_coupon_program_views.xml b/addons/sale_coupon/views/sale_coupon_program_views.xml index fa58074107b..5830d89e8ad 100644 --- a/addons/sale_coupon/views/sale_coupon_program_views.xml +++ b/addons/sale_coupon/views/sale_coupon_program_views.xml @@ -8,6 +8,7 @@ <field name="arch" type="xml"> <form string="Coupon Program"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_button_box" name="button_box"> <button class="oe_stat_button" type="object" icon="fa-usd" name="action_view_sales_orders"> <field name="order_count" string="Sales" widget="statinfo"/> diff --git a/addons/sale_management/views/sale_order_template_views.xml b/addons/sale_management/views/sale_order_template_views.xml index e3eef9cebcb..73c79688c53 100644 --- a/addons/sale_management/views/sale_order_template_views.xml +++ b/addons/sale_management/views/sale_order_template_views.xml @@ -18,6 +18,7 @@ <form string="Quotation Template"> <sheet> <div name="button_box" class="oe_button_box"/> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_title"> <label for="name" class="oe_edit_only"/> <h1> diff --git a/addons/sales_team/views/crm_team_views.xml b/addons/sales_team/views/crm_team_views.xml index 1a8ef2a5247..e22144cbf24 100644 --- a/addons/sales_team/views/crm_team_views.xml +++ b/addons/sales_team/views/crm_team_views.xml @@ -59,6 +59,7 @@ <field name="arch" type="xml"> <form string="Sales Team"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_button_box" name="button_box"/> <div class="oe_title"> <label for="name" class="oe_edit_only" string="Sales Team"/> diff --git a/addons/stock/views/stock_location_views.xml b/addons/stock/views/stock_location_views.xml index 1fa130ff205..20a06956ee9 100644 --- a/addons/stock/views/stock_location_views.xml +++ b/addons/stock/views/stock_location_views.xml @@ -15,6 +15,7 @@ <field name="arch" type="xml"> <form string="Stock Location" create="false"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_button_box" name="button_box"> <button string="Putaway Rules" class="oe_stat_button" @@ -162,6 +163,7 @@ <field name="arch" type="xml"> <form string="Route"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_title"> <label for="name" class="oe_edit_only"/> <h1><field name="name"/></h1> diff --git a/addons/stock/views/stock_picking_views.xml b/addons/stock/views/stock_picking_views.xml index f61c8fd3511..a0bad560f22 100644 --- a/addons/stock/views/stock_picking_views.xml +++ b/addons/stock/views/stock_picking_views.xml @@ -35,6 +35,7 @@ <field name="arch" type="xml"> <form string="Operation Types"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <group> <group> <field name="active" invisible="1"/> diff --git a/addons/stock/views/stock_rule_views.xml b/addons/stock/views/stock_rule_views.xml index 828cfefa3b5..947c5181d10 100644 --- a/addons/stock/views/stock_rule_views.xml +++ b/addons/stock/views/stock_rule_views.xml @@ -60,6 +60,7 @@ <field name="arch" type="xml"> <form string="Rules"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_title"> <label for="name" class="oe_edit_only"/> <h1><field name="name"/></h1> diff --git a/addons/stock/views/stock_warehouse_views.xml b/addons/stock/views/stock_warehouse_views.xml index 5265d3c581e..9dc884ef415 100644 --- a/addons/stock/views/stock_warehouse_views.xml +++ b/addons/stock/views/stock_warehouse_views.xml @@ -7,6 +7,7 @@ <field name="arch" type="xml"> <form string="Warehouse" create="false"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_button_box" name="button_box"> <button name="action_view_all_routes" string="Routes" @@ -201,6 +202,7 @@ <field name="arch" type="xml"> <form string="Reordering Rules"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <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. 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 696d5827635..fde86dfccdf 100644 --- a/addons/stock_landed_costs/views/stock_landed_cost_views.xml +++ b/addons/stock_landed_costs/views/stock_landed_cost_views.xml @@ -204,6 +204,7 @@ <field name="arch" type="xml"> <form string="Landed Costs"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <field name="image_medium" widget="image" class="oe_avatar"/> <div class="oe_title"> <div class="oe_edit_only"> diff --git a/addons/survey/views/survey_survey_views.xml b/addons/survey/views/survey_survey_views.xml index bc92344259f..e1317a4b57f 100644 --- a/addons/survey/views/survey_survey_views.xml +++ b/addons/survey/views/survey_survey_views.xml @@ -19,6 +19,7 @@ <field name="state" widget="statusbar"/> </header> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_button_box" name="button_box"> <button name="action_survey_user_input_invite" type="object" diff --git a/addons/website_blog/views/website_blog_views.xml b/addons/website_blog/views/website_blog_views.xml index b18e004aa19..05c0f3fde19 100644 --- a/addons/website_blog/views/website_blog_views.xml +++ b/addons/website_blog/views/website_blog_views.xml @@ -19,6 +19,7 @@ <field name="arch" type="xml"> <form string="Blog"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <group> <field name="active" invisible="1"/> <field name="name"/> @@ -58,6 +59,7 @@ <field name="arch" type="xml"> <form string="Blog Post"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_button_box" name="button_box"> <button class="oe_stat_button" name="website_publish_button" type="object" icon="fa-globe"> diff --git a/addons/website_event_track/views/event_track_views.xml b/addons/website_event_track/views/event_track_views.xml index 45bea7e54cb..f275c826423 100644 --- a/addons/website_event_track/views/event_track_views.xml +++ b/addons/website_event_track/views/event_track_views.xml @@ -113,6 +113,7 @@ <field name="stage_id" widget="statusbar" options="{'clickable': '1'}"/> </header> <sheet string="Track"> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_button_box" name="button_box"> <field name="website_url" invisible="1"/> <button class="oe_stat_button" name="website_publish_button" diff --git a/addons/website_forum/views/forum.xml b/addons/website_forum/views/forum.xml index cd9d7671aef..ff8ad6c2256 100644 --- a/addons/website_forum/views/forum.xml +++ b/addons/website_forum/views/forum.xml @@ -28,6 +28,7 @@ <field name="arch" type="xml"> <form string="Forum"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <field name="image" widget="image" options="{'preview_image': 'image_medium'}" class="oe_avatar"/> <div class="oe_title"> <label for="name" class="oe_edit_only"/> @@ -143,6 +144,7 @@ <field name="arch" type="xml"> <form string="Forum Post"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <label for="name" class="oe_edit_only"/> <h1> <field name="name" placeholder="Name"/> diff --git a/addons/website_slides/views/slide_channel_views.xml b/addons/website_slides/views/slide_channel_views.xml index 3f9a719768e..27dbd5742c3 100644 --- a/addons/website_slides/views/slide_channel_views.xml +++ b/addons/website_slides/views/slide_channel_views.xml @@ -50,6 +50,7 @@ <button name="action_channel_invite" string="Invite" type="object" class="oe_highlight" attrs="{'invisible': [('enroll', '!=', 'invite')]}"/> </header> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_button_box" name="button_box"> <button name="action_redirect_to_members" type="object" diff --git a/addons/website_slides/views/slide_slide_views.xml b/addons/website_slides/views/slide_slide_views.xml index 5ded35f1846..d69cd347108 100644 --- a/addons/website_slides/views/slide_slide_views.xml +++ b/addons/website_slides/views/slide_slide_views.xml @@ -36,6 +36,7 @@ <field name="arch" type="xml"> <form string="Slide"> <sheet> + <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div class="oe_button_box" name="button_box"> <button class="oe_stat_button" name="website_publish_button" type="object" icon="fa-globe"> |
