diff options
| author | Xavier-Do <xdo@odoo.com> | 2019-10-08 10:30:46 +0000 |
|---|---|---|
| committer | Xavier-Do <xdo@odoo.com> | 2019-11-13 11:05:14 +0000 |
| commit | eb2f0aabcfd8c3764f7bca1c99448dadc266727e (patch) | |
| tree | 6edf854989bd65d42472541d35f4a063fb338339 /addons | |
| parent | 33086d7795307796862a7501ffee35932e0c781a (diff) | |
[FIX] *: various fixes in xml views
Diffstat (limited to 'addons')
23 files changed, 41 insertions, 35 deletions
diff --git a/addons/account/views/res_config_settings_views.xml b/addons/account/views/res_config_settings_views.xml index 18d1880e021..233592980e6 100644 --- a/addons/account/views/res_config_settings_views.xml +++ b/addons/account/views/res_config_settings_views.xml @@ -305,7 +305,7 @@ <field name="module_account_batch_payment" widget="upgrade_boolean"/> </div> <div class="o_setting_right_pane"> - <label for="module_account_batch_deposit" string="Batch Payments"/> + <label for="module_account_batch_payment" string="Batch Payments"/> <div class="text-muted"> Group payments into a single batch to ease the reconciliation process </div> diff --git a/addons/base_automation/views/base_automation_view.xml b/addons/base_automation/views/base_automation_view.xml index 569222f5faf..3e4c7d77818 100644 --- a/addons/base_automation/views/base_automation_view.xml +++ b/addons/base_automation/views/base_automation_view.xml @@ -12,6 +12,8 @@ </xpath> <xpath expr="//button[@name='unlink_action']" position="replace"> </xpath> + <xpath expr="//button[@name='run']" position="replace"> + </xpath> <xpath expr="//group[@name='action_content']" position="inside"> <field name="active" invisible="1"/> <field name="trigger"/> diff --git a/addons/base_gengo/views/res_config_settings_views.xml b/addons/base_gengo/views/res_config_settings_views.xml index a7cbb3641e9..95c1acc34ba 100644 --- a/addons/base_gengo/views/res_config_settings_views.xml +++ b/addons/base_gengo/views/res_config_settings_views.xml @@ -7,13 +7,13 @@ <field name="arch" type="xml"> <xpath expr="//div[@name='base_gengo_right_pane']" position="inside"> <div name="base_gengo_right_pane" position="replace"> - <label for="id" string="Public Key" attrs="{'invisible': [('module_base_gengo','=',False)]}"/> + <label for="gengo_public_key" string="Public Key" attrs="{'invisible': [('module_base_gengo','=',False)]}"/> <div name="gengo_public_key" attrs="{'invisible': [('module_base_gengo','=',False)]}"> <div name="gengo_public_key"> <field name="gengo_public_key" nolabel="1" placeholder="Add Gengo login Public Key..."/> </div> </div> - <label for="id" string="Private Key" attrs="{'invisible': [('module_base_gengo','=',False)]}"/> + <label for="gengo_private_key" string="Private Key" attrs="{'invisible': [('module_base_gengo','=',False)]}"/> <div name="gengo_private_key" attrs="{'invisible': [('module_base_gengo','=',False)]}"> <div name="gengo_private_key"> <field name="gengo_private_key" password="True" nolabel="1" placeholder="Add Gengo login Private Key..."/> @@ -22,16 +22,16 @@ <div name="gengo_auto_approve" attrs="{'invisible': [('module_base_gengo','=',False)]}"> <div name="gengo_auto_approve"> <field name="gengo_auto_approve" class="oe_inline"/> - <label for="id" string="Auto Approve Translation"/> + <label for="gengo_auto_approve" string="Auto Approve Translation"/> </div> </div> <div name="gengo_sandbox" attrs="{'invisible': [('module_base_gengo','=',False)]}"> <div name="gengo_sandbox"> <field name="gengo_sandbox" class="oe_inline"/> - <label for="id" string="Sandbox Mode"/> + <label for="gengo_sandbox" string="Sandbox Mode"/> </div> </div> - <label for="id" string="Comment" attrs="{'invisible': [('module_base_gengo','=',False)]}"/> + <label for="gengo_comment" string="Comment" attrs="{'invisible': [('module_base_gengo','=',False)]}"/> <div name="gengo_comment" attrs="{'invisible': [('module_base_gengo','=',False)]}"> <div name="gengo_comment"> <field name="gengo_comment" nolabel="1" placeholder="Add your comments here for translator...."/> diff --git a/addons/base_setup/views/res_config_settings_views.xml b/addons/base_setup/views/res_config_settings_views.xml index 071e743d52b..e9fec2389b9 100644 --- a/addons/base_setup/views/res_config_settings_views.xml +++ b/addons/base_setup/views/res_config_settings_views.xml @@ -14,7 +14,7 @@ <div class="row mt16 o_settings_container"> <div class="col-12 col-lg-6 o_setting_box"> <div class="o_setting_right_pane"> - <span class="fa fa-lg fa-users"/> + <span class="fa fa-lg fa-users" aria-label="Number of active users"/> <field name='active_user_count' class="w-auto pl-3 font-weight-bold"/> <span class='o_form_label' attrs="{'invisible':[('active_user_count', '>', '1')]}"> Active User @@ -294,7 +294,7 @@ <field name="module_auth_ldap"/> </div> <div class="o_setting_right_pane" name="auth_ldap_right_pane"> - <label string="LDAP Authentication" for="ldaps"/> + <label string="LDAP Authentication" for="module_auth_ldap"/> <div class="text-muted"> Use LDAP credentials to log in </div> diff --git a/addons/hr/views/hr_employee_views.xml b/addons/hr/views/hr_employee_views.xml index d91d3a2a745..4320ec08924 100644 --- a/addons/hr/views/hr_employee_views.xml +++ b/addons/hr/views/hr_employee_views.xml @@ -43,7 +43,7 @@ <field name="user_partner_id" invisible="1"/> <field name="hr_presence_state" invisible="1"/> <header> - <button string="Chat" class="btn btn-primary o_employee_chat_btn" attrs="{'invisible': [('user_id','=', False)]}"/> + <a string="Chat" class="btn btn-primary o_employee_chat_btn" role="button" attrs="{'invisible': [('user_id','=', False)]}"/> <button name="%(plan_wizard_action)d" string="Launch Plan" type="action" groups="hr.group_hr_manager"/> </header> <sheet> diff --git a/addons/hr_holidays/views/hr_leave_allocation_views.xml b/addons/hr_holidays/views/hr_leave_allocation_views.xml index fdfe00925fa..87eadc7d43c 100644 --- a/addons/hr_holidays/views/hr_leave_allocation_views.xml +++ b/addons/hr_holidays/views/hr_leave_allocation_views.xml @@ -279,8 +279,8 @@ <div class="row no-gutters" t-if="['validate', 'refuse'].includes(record.state.raw_value)"> <div class="col-2"/> <div class="col-10"> - <span t-if="record.state.raw_value === 'validate'" class="fa fa-check text-muted"/> - <span t-else="" class="fa fa-ban text-muted"/> + <span t-if="record.state.raw_value === 'validate'" class="fa fa-check text-muted" aria-label="validated"/> + <span t-else="" class="fa fa-ban text-muted" aria-label="refused"/> <span class="text-muted"><t t-esc="record.state.value"/></span> </div> </div> diff --git a/addons/hr_holidays/views/hr_leave_views.xml b/addons/hr_holidays/views/hr_leave_views.xml index f0c14a38995..bba138f3d80 100644 --- a/addons/hr_holidays/views/hr_leave_views.xml +++ b/addons/hr_holidays/views/hr_leave_views.xml @@ -141,8 +141,8 @@ <div class="row no-gutters" t-if="['validate', 'refuse'].includes(record.state.raw_value)"> <div class="col-2"/> <div class="col-10"> - <span t-if="record.state.raw_value === 'validate'" class="fa fa-check text-muted"/> - <span t-else="" class="fa fa-ban text-muted"/> + <span t-if="record.state.raw_value === 'validate'" class="fa fa-check text-muted" aria-label="validated"/> + <span t-else="" class="fa fa-ban text-muted" aria-label="refused"/> <span class="text-muted"><t t-esc="record.state.value"/></span> </div> </div> diff --git a/addons/mail/views/mail_message_views.xml b/addons/mail/views/mail_message_views.xml index bf548dc712a..70b5f833779 100644 --- a/addons/mail/views/mail_message_views.xml +++ b/addons/mail/views/mail_message_views.xml @@ -162,7 +162,7 @@ <div class="o_kanban_image"> <div class="o_kanban_image_wrapper"> <t t-set="webimage" t-value="new RegExp('image.*(gif|jpeg|jpg|png)').test(record.mimetype.value)"/> - <div t-if="record.type.raw_value == 'url'" class="o_url_image fa fa-link fa-3x text-muted"/> + <div t-if="record.type.raw_value == 'url'" class="o_url_image fa fa-link fa-3x text-muted" aria-label="Image is a link"/> <img t-elif="webimage" t-attf-src="/web/image/#{record.id.raw_value}" width="100" height="100" alt="Document" class="o_attachment_image"/> <div t-else="!webimage" class="o_image o_image_thumbnail" t-att-data-mimetype="record.mimetype.value"/> </div> @@ -174,7 +174,7 @@ </div> <div class="o_kanban_record_body"> <t t-if="record.type.raw_value == 'url'"> - <span class="o_document_url"><i class="fa fa-globe"/> <field name="url" widget="url"/></span> + <span class="o_document_url"><i class="fa fa-globe" aria-label="Document url"/> <field name="url" widget="url"/></span> </t> <samp t-else="" class="text-muted"> </samp> </div> diff --git a/addons/mass_mailing/views/mailing_mailing_views.xml b/addons/mass_mailing/views/mailing_mailing_views.xml index ad6895ad170..1a3033fc7c4 100644 --- a/addons/mass_mailing/views/mailing_mailing_views.xml +++ b/addons/mass_mailing/views/mailing_mailing_views.xml @@ -340,7 +340,7 @@ </div> <div name="div_responsible_avatar"> <span attrs="{'invisible': [('sent_date', '=', False)]}"> - <span class="fa fa-clock-o text-muted mr-2"/> + <span class="fa fa-clock-o text-muted mr-2" aria-label="Sent date"/> <field name="sent_date" widget="date"/> </span> <span attrs="{'invisible': [('sent_date', '!=', False)]}" class="oe_clear text-muted"> diff --git a/addons/mrp/views/ir_attachment_view.xml b/addons/mrp/views/ir_attachment_view.xml index df55364d491..b187ebb8196 100644 --- a/addons/mrp/views/ir_attachment_view.xml +++ b/addons/mrp/views/ir_attachment_view.xml @@ -18,7 +18,7 @@ <div class="o_kanban_image"> <div class="o_kanban_image_wrapper"> <t t-set="webimage" t-value="new RegExp('image.*(gif|jpeg|jpg|png)').test(record.mimetype.value)"/> - <div t-if="record.type.raw_value == 'url'" class="o_url_image fa fa-link fa-3x text-muted"/> + <div t-if="record.type.raw_value == 'url'" class="o_url_image fa fa-link fa-3x text-muted" aria-label="Image is a link"/> <img t-elif="webimage" t-attf-src="/web/image/#{record.ir_attachment_id.raw_value}" width="100" height="100" alt="Document" class="o_attachment_image"/> <div t-else="!webimage" class="o_image o_image_thumbnail" t-att-data-mimetype="record.mimetype.value"/> </div> diff --git a/addons/mrp/views/mrp_unbuild_views.xml b/addons/mrp/views/mrp_unbuild_views.xml index 0a3907293bb..4ba011be475 100644 --- a/addons/mrp/views/mrp_unbuild_views.xml +++ b/addons/mrp/views/mrp_unbuild_views.xml @@ -124,7 +124,7 @@ <field name="location_dest_id" options="{'no_create': True}" groups="stock.group_stock_multi_locations"/> <field name="has_tracking" invisible="1"/> <field name="lot_id" attrs="{'invisible': [('has_tracking', '=', 'none')], 'required': [('has_tracking', '!=', 'none')]}" groups="stock.group_production_lot"/> - <field name="company_id" group="base.group_multi_company"/> + <field name="company_id" groups="base.group_multi_company"/> </group> </group> </sheet> diff --git a/addons/mrp/views/mrp_workorder_views.xml b/addons/mrp/views/mrp_workorder_views.xml index 6831b300dd2..76365da47de 100644 --- a/addons/mrp/views/mrp_workorder_views.xml +++ b/addons/mrp/views/mrp_workorder_views.xml @@ -155,7 +155,7 @@ </group> </group> <h4 attrs="{'invisible': [('raw_workorder_line_ids', '=', [])]}">Components</h4> - <field name="raw_workorder_line_ids" attrs="{'invisible': [('raw_workorder_line_ids', '=', [])], 'readonly': [('state', 'in', 'cancel', 'done')]}"> + <field name="raw_workorder_line_ids" attrs="{'invisible': [('raw_workorder_line_ids', '=', [])], 'readonly': [('state', 'in', ('cancel', 'done'))]}"> <tree editable="bottom" create="0" delete="0"> <field name="product_id"/> <field name="product_tracking" invisible="1"/> @@ -169,7 +169,7 @@ </tree> </field> <h4 attrs="{'invisible': [('finished_workorder_line_ids', '=', [])]}">Finished Products</h4> - <field name="finished_workorder_line_ids" attrs="{'invisible': [('finished_workorder_line_ids', '=', [])], 'readonly': [('state', 'in', 'cancel', 'done')]}"> + <field name="finished_workorder_line_ids" attrs="{'invisible': [('finished_workorder_line_ids', '=', [])], 'readonly': [('state', 'in', ('cancel', 'done'))]}"> <tree editable="bottom" create="0" delete="0"> <field name="product_id"/> <field name="product_tracking" invisible="1"/> diff --git a/addons/payment/views/payment_views.xml b/addons/payment/views/payment_views.xml index dfbf24f1ecc..76d2905e4f1 100644 --- a/addons/payment/views/payment_views.xml +++ b/addons/payment/views/payment_views.xml @@ -36,7 +36,7 @@ </group> </group> <notebook attrs="{'invisible': ['&', ('module_id', '!=', False), ('module_state', '!=', 'installed')]}"> - <page string="Credentials" name="acquirer_credentials" attrs="{'invisible': ['provider', '=', 'manual']}"> + <page string="Credentials" name="acquirer_credentials" attrs="{'invisible': [('provider', '=', 'manual')]}"> <group name="acquirer"> </group> </page> diff --git a/addons/point_of_sale/views/pos_config_view.xml b/addons/point_of_sale/views/pos_config_view.xml index 00eadfc0b1a..e87b270f7b0 100644 --- a/addons/point_of_sale/views/pos_config_view.xml +++ b/addons/point_of_sale/views/pos_config_view.xml @@ -353,7 +353,7 @@ </div> <div class="content-group mt16" attrs="{'invisible': [('cash_control', '=', False)]}"> <div class="row mt16"> - <label string="Default Opening" for="proxy_ip" class="col-lg-3 o_light_label" /> + <label string="Default Opening" for="default_cashbox_id" class="col-lg-3 o_light_label" /> <field name="default_cashbox_id" domain="[('is_a_template', '=', True)]" context="{'default_is_a_template': True, 'current_currency_id': currency_id}"/> </div> </div> diff --git a/addons/product/views/product_pricelist_views.xml b/addons/product/views/product_pricelist_views.xml index c6705db4c72..3070851db7a 100644 --- a/addons/product/views/product_pricelist_views.xml +++ b/addons/product/views/product_pricelist_views.xml @@ -146,7 +146,7 @@ <p>The computed price is expressed in the default Unit of Measure of the product.</p> </div> <group name="pricelist_rule_advanced" col="6" attrs="{'invisible':[('compute_price', '!=', 'formula')]}" groups="product.group_sale_pricelist"> - <label for="" string="New Price ="/> + <span class="o_form_label">New Price =</span> <div> <span attrs="{'invisible':[('base', '!=', 'list_price')]}">Sales Price - </span> <span attrs="{'invisible':[('base', '!=', 'standard_price')]}">Cost - </span> diff --git a/addons/product/views/product_views.xml b/addons/product/views/product_views.xml index 4b43b0eff36..3a6f9e86ca0 100644 --- a/addons/product/views/product_views.xml +++ b/addons/product/views/product_views.xml @@ -496,7 +496,7 @@ <field name="name" string="Packaging"/> <field name="qty"/> <field name="product_uom_id" options="{'no_open': True, 'no_create': True}" groups="uom.group_uom"/> - <field name="company_id" group="base.group_multi_company"/> + <field name="company_id" groups="base.group_multi_company"/> </tree> </field> </record> @@ -534,7 +534,7 @@ <field name="product_uom_id" options="{'no_open': True, 'no_create': True}" groups="uom.group_uom"/> </div> <field name="barcode"/> - <field name="company_id" group="base.group_multi_company"/> + <field name="company_id" groups="base.group_multi_company"/> </group> </group> </sheet> diff --git a/addons/sale/wizard/sale_make_invoice_advance_views.xml b/addons/sale/wizard/sale_make_invoice_advance_views.xml index ef79b39f440..fe1f9b8e4a5 100644 --- a/addons/sale/wizard/sale_make_invoice_advance_views.xml +++ b/addons/sale/wizard/sale_make_invoice_advance_views.xml @@ -10,7 +10,7 @@ them before validation. </p> <group> - <field name="count" invisible="[('count','=',1)]" readonly="True"/> + <field name="count" attrs="{'invisible': [('count','=', 1)]}" readonly="True"/> <field name="advance_payment_method" class="oe_inline" widget="radio" attrs="{'invisible': [('count','>',1)]}"/> <field name="has_down_payments" invisible="1" /> diff --git a/addons/sale_coupon/views/sale_coupon_program_views.xml b/addons/sale_coupon/views/sale_coupon_program_views.xml index 45871b72c29..7feafd1749c 100644 --- a/addons/sale_coupon/views/sale_coupon_program_views.xml +++ b/addons/sale_coupon/views/sale_coupon_program_views.xml @@ -15,7 +15,6 @@ </div> <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <div name="title" class="oe_left"> - <label class="oe_edit_only" for="name" string="Program Name"/> </div> <group> <group name="conditions" string="Conditions"> @@ -94,6 +93,7 @@ </button> </xpath> <xpath expr="//div[@name='title']" position="inside"> + <label class="oe_edit_only" for="name" string="Coupon Program Name"/> <h1><field name="name" class="oe_title" placeholder="Coupon Program Name..." height="20px"/></h1> </xpath> <xpath expr="//group[@name='validity']" position="inside"> @@ -200,6 +200,7 @@ <field name="mode">primary</field> <field name="arch" type="xml"> <xpath expr="//div[@name='title']" position="inside"> + <label class="oe_edit_only" for="name" string="Promotion Program Name"/> <h1><field name="name" class="oe_title" placeholder="Promotion Program Name..." height="20px"/></h1> </xpath> <xpath expr="//field[@name='order_count']/.." position="before"> diff --git a/addons/sale_timesheet/views/project_task_views.xml b/addons/sale_timesheet/views/project_task_views.xml index 38a85e057d2..52e4aa9133b 100644 --- a/addons/sale_timesheet/views/project_task_views.xml +++ b/addons/sale_timesheet/views/project_task_views.xml @@ -7,7 +7,7 @@ <field name="inherit_id" ref="project.edit_project"/> <field name="arch" type="xml"> <xpath expr="//header" position="inside"> - <button name="action_make_billable" string="Create Sales Order" type="object" attrs="{'invisible': [('billable_type', '!=', 'no')]}" group="sale.group_sale_salesman"/> + <button name="action_make_billable" string="Create Sales Order" type="object" attrs="{'invisible': [('billable_type', '!=', 'no')]}" groups="sales_team.group_sale_salesman"/> </xpath> <xpath expr="//page[@name='emails']" position="after"> <page name="billing_employee_rate" string="Invoicing" attrs="{'invisible': [('billable_type', '=', 'no')]}"> diff --git a/addons/stock_sms/views/res_config_settings_views.xml b/addons/stock_sms/views/res_config_settings_views.xml index c389af8310c..0c94f60ef8c 100644 --- a/addons/stock_sms/views/res_config_settings_views.xml +++ b/addons/stock_sms/views/res_config_settings_views.xml @@ -9,6 +9,9 @@ <xpath expr="//field[@name='module_stock_sms']" position="replace"> <field name="stock_move_sms_validation"/> </xpath> + <xpath expr="//label[@for='module_stock_sms']" position="replace"> + <label for="stock_move_sms_validation"/> + </xpath> <xpath expr="//div[@id='stock_confirmation_sms']" position="replace"> <div class="row mt16" attrs="{'invisible': [('stock_move_sms_validation', '=', False)]}"> <label for="stock_sms_confirmation_template_id" string="SMS Template" class="col-lg-4 o_light_label"/> diff --git a/addons/website/views/website_views.xml b/addons/website/views/website_views.xml index 11b8171dccc..6b1a732705a 100644 --- a/addons/website/views/website_views.xml +++ b/addons/website/views/website_views.xml @@ -393,7 +393,7 @@ action = { <form create="false" edit="false" delete="0" js_class="theme_preview_form"> <div class="o_preview_frame h-100"> <field name='url' widget='iframe'/> - <img alt='' class='img_mobile' style='display:none' src="/website/static/src/img/phone.png"/> + <img alt='phone' class='img_mobile' style='display:none' src="/website/static/src/img/phone.png"/> </div> </form> diff --git a/addons/website_crm/views/res_config_settings_views.xml b/addons/website_crm/views/res_config_settings_views.xml index ee99fe898d5..b63390584df 100644 --- a/addons/website_crm/views/res_config_settings_views.xml +++ b/addons/website_crm/views/res_config_settings_views.xml @@ -10,7 +10,7 @@ <div class="row mt16 o_settings_container" id="communication_settings"> <div class="col-12 col-lg-6 o_setting_box" id="contact_form_install_setting" title="New messages are managed as leads or opportunities in your CRM app."> <div class="o_setting_right_pane"> - <label for="id" string="Contact Form"/> + <span class="o_form_label">Contact Form</span> <div class="text-muted" id="msg_contact_form_install_setting"> Add a contact form in the <a href="/contactus">Contact Us</a> page </div> diff --git a/addons/website_slides/views/rating_rating_views.xml b/addons/website_slides/views/rating_rating_views.xml index 0ff688c29dd..379bb72d781 100644 --- a/addons/website_slides/views/rating_rating_views.xml +++ b/addons/website_slides/views/rating_rating_views.xml @@ -21,13 +21,13 @@ <div class="o_slide_rating_kanban_left mr-3"> <h1 class="o_slide_rating_value text-center text-primary" t-esc="val_stars"/> <t t-foreach="_.range(0, val_integer)" t-as="num"> - <i class="fa fa-star" role="img"></i> + <i class="fa fa-star" aria-label="A star" role="img"></i> </t> <t t-if="val_decimal"> - <i class="fa fa-star-half-o" role="img"></i> + <i class="fa fa-star-half-o" aria-label="Half a star" role="img"></i> </t> <t t-foreach="_.range(0, empty_star)" t-as="num" role="img"> - <i class="fa fa-star text-black-25"></i> + <i class="fa fa-star text-black-25" aria-label="A star"></i> </t> </div> <div> @@ -38,12 +38,12 @@ </div> <div class="o_kanban_card_content mt0 d-flex flex-column"> <span> - <i class="fa fa-folder mr-2"></i> + <i class="fa fa-folder mr-2" aria-label="Open folder"></i> <a type="object" name="action_open_rated_object" t-att-title="record.res_name.raw_value"> <field name="res_name" /> </a> </span> - <span><i class="fa fa-clock-o mr-2"/> <field name="create_date" /></span> + <span><i class="fa fa-clock-o mr-2" aria-label="Create date"/> <field name="create_date" /></span> <div class="d-flex mt-2"> <span t-esc="record.feedback.raw_value"/> </div> |
