-
- Downloads
[IMP] various: Update list views with new widgets
Purpose ======= The following task implemented new widgets/features in the listview for better UI. https://www.odoo.com/web#id=2195254&action=327&model=project.task&view_type=form&cids=1&menu_id=4720 The goal of the current task is to use those to upgrade our listviews Specification ============= Below are change requests on various listviews. Remove decoration-bf="message_needaction==True" from every listview in every module. PRODUCT - stock.view_stock_product_template_tree (product template) remove all decorations from <tree> set the following decorations on 'virtual_available' and 'qty_available' decoration-danger="virtual_available<0" decoration-warning="virtual_available==0" also set decoration-bf on 'virtual_available' apply the same modifications on stock.view_stock_product_tree for product variants SUBSCRIPTION - sale_subscription.sale_subscription_view_list remove all decorations from <tree> 'stage_id' field set <field name="stage_id" widget="badge" decoration-info="stage_category == 'draft'" decoration-success="stage_category == 'progress'"/> 'recurring_next_date' field set <field name="recurring_next_date" string="Next Invoice" widget="remaining_days" attrs="{'invisible': [('stage_category', '!=', 'progress')]}"/> set decoration-bf on 'code' and 'recurring_total_incl' move 'percentage_satisfaction' before 'recurring_total_incl' set widget="many2one_avatar_user" on 'user_id' add <field name="activity_ids" widget="list_activity"/> after 'user_id' ELEARNING - website_slides.slide_channel_view_tree set widget="many2one_avatar_user" on 'user_id' 'enroll' field set <field name="enroll" widget="badge" decoration-success="enroll == 'public'" decoration-info="enroll == 'invite'" decoration-warning="enroll == 'payment'"/> POS - point_of_sale.view_pos_order_tree remove all decorations from <tree> 'state' field make visible and move it at the end of the view set <field name="state" widget="badge" decoration-info="state == 'draft'" decoration-success="state not in ('draft','cancel')"/> set decoration-bf on 'name' APPRAISAL - hr_appraisal.view_hr_appraisal_tree 'state' field set <field name="state" widget="badge" decoration-info="state in ('new','pending')" decoration-success="state == 'done'"/> 'date_close' field set <field name="date_close" widget="remaining_days" attrs="{'invisible': ['|',('state','=','done'),('state','=','cancel')]}"/> PAYMENT - account.view_account_payment_tree remove all decorations from <tree> 'state' field set <field name="state" widget="badge" decoration-info="state == 'draft'" decoration-success="state == 'posted'"/> move 'company_id' before 'amount' CONTRACT - hr_contract.hr_contract_view_tree remove all decorations from <tree> 'state' field set <field name="state" widget="badge" decoration-info="state == 'draft'" decoration-warning="state == 'close'" decoration-success="state == 'open'"/> set widget="many2one_avatar_employee" on 'employee_id' PAYSLIPS - hr_payroll.view_hr_payslip_tree remove all decorations from <tree> 'state' field set <field name="state" widget="badge" decoration-info="state == 'draft'" decoration-warning="state == 'verify'" decoration-success="state in ('done','paid')"/> set decoration-bf on 'number' and 'net_wage' move 'company_id' before 'basic_wage' set widget="many2one_avatar_employee" on 'employee_id' SURVEY - survey.survey_tree 'state' field set <field name="state" widget="badge" decoration-info="state == 'draft'" decoration-success="state == 'open'"/> APPLICATION - hr_recruitment.crm_case_tree_view_job set widget="date' on 'create_date' set widget="priority' on 'priority' set widget="many2one_avatar_user" on 'user_id' TIME OFF - hr_holidays.hr_leave_view_tree remove all decorations from <tree> 'state' field set <field name="state" widget="badge" decoration-info="state == 'draft'" decoration-warning="state in ('confirm','validate1')" decoration-success="state == 'validate'"/> apply the same changes in hr_holidays.hr_leave_allocation_view_tree closes odoo/odoo#51305 Taskid: 2256589 Related: odoo/enterprise#10614 Signed-off-by:Yannick Tivisse (yti) <yti@odoo.com>
Showing
- addons/account/views/account_payment_view.xml 3 additions, 3 deletionsaddons/account/views/account_payment_view.xml
- addons/calendar/views/calendar_views.xml 1 addition, 1 deletionaddons/calendar/views/calendar_views.xml
- addons/crm/views/crm_lead_views.xml 2 additions, 2 deletionsaddons/crm/views/crm_lead_views.xml
- addons/event/views/event_views.xml 1 addition, 2 deletionsaddons/event/views/event_views.xml
- addons/hr/views/hr_job_views.xml 1 addition, 1 deletionaddons/hr/views/hr_job_views.xml
- addons/hr_contract/views/hr_contract_views.xml 3 additions, 8 deletionsaddons/hr_contract/views/hr_contract_views.xml
- addons/hr_holidays/views/hr_leave_allocation_views.xml 2 additions, 3 deletionsaddons/hr_holidays/views/hr_leave_allocation_views.xml
- addons/hr_holidays/views/hr_leave_views.xml 2 additions, 3 deletionsaddons/hr_holidays/views/hr_leave_views.xml
- addons/hr_recruitment/views/hr_recruitment_views.xml 4 additions, 4 deletionsaddons/hr_recruitment/views/hr_recruitment_views.xml
- addons/maintenance/views/maintenance_views.xml 2 additions, 2 deletionsaddons/maintenance/views/maintenance_views.xml
- addons/mrp/views/mrp_production_views.xml 1 addition, 1 deletionaddons/mrp/views/mrp_production_views.xml
- addons/point_of_sale/views/pos_order_view.xml 3 additions, 3 deletionsaddons/point_of_sale/views/pos_order_view.xml
- addons/project/views/project_views.xml 2 additions, 2 deletionsaddons/project/views/project_views.xml
- addons/purchase_requisition/views/purchase_requisition_views.xml 1 addition, 1 deletion...purchase_requisition/views/purchase_requisition_views.xml
- addons/sale/views/sale_views.xml 2 additions, 2 deletionsaddons/sale/views/sale_views.xml
- addons/stock/views/product_views.xml 4 additions, 12 deletionsaddons/stock/views/product_views.xml
- addons/survey/views/survey_survey_views.xml 1 addition, 1 deletionaddons/survey/views/survey_survey_views.xml
- addons/website_slides/views/slide_channel_views.xml 2 additions, 2 deletionsaddons/website_slides/views/slide_channel_views.xml
Loading
Please register or sign in to comment