summaryrefslogtreecommitdiff
path: root/addons/mail/views/mail_activity_views.xml
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2019-07-12 11:17:02 +0200
committerYannick Tivisse <yti@odoo.com>2019-07-12 13:01:36 +0200
commit883c96b781b0bf8235dfddbd3dfff6bb97291d63 (patch)
tree3e9adce5f593b7162b0101e1ee7bd46693ffdc37 /addons/mail/views/mail_activity_views.xml
parent02fbb737b96ab8e35123219db5cdcc008729953b (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/mail/views/mail_activity_views.xml')
-rw-r--r--addons/mail/views/mail_activity_views.xml1
1 files changed, 1 insertions, 0 deletions
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>