[FIX] *: various fixes in xml views
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
@@ -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...."/>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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" />
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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')]}">
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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="user_id"/>
|
||||
<label for="interval_number" string="Execute Every"/>
|
||||
|
||||
@@ -235,14 +235,14 @@
|
||||
<group>
|
||||
<group>
|
||||
<field name="type" groups="base.group_no_one"/>
|
||||
<label for="" name="address_name">
|
||||
<span class="o_form_label" name="address_name">
|
||||
<b attrs="{'invisible': [('type', '!=', 'contact')]}">Company Address</b>
|
||||
<b attrs="{'invisible': [('type', '!=', 'invoice')]}">Invoice Address</b>
|
||||
<b attrs="{'invisible': [('type', '!=', 'delivery')]}">Delivery Address</b>
|
||||
<b attrs="{'invisible': [('type', '!=', 'other')]}">Other Address</b>
|
||||
<b attrs="{'invisible': [('type', '!=', 'private')]}">Private Address</b>
|
||||
<b attrs="{'invisible': [('type', '!=', False)]}">Address</b>
|
||||
</label>
|
||||
</span>
|
||||
<div class="o_address_format">
|
||||
<field name="street" placeholder="Street..." class="o_address_street"
|
||||
attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"/>
|
||||
@@ -317,7 +317,7 @@
|
||||
<t t-set="color" t-value="kanban_color(record.color.raw_value)"/>
|
||||
<div t-att-class="color + (record.title.raw_value == 1 ? ' oe_kanban_color_alert' : '') + ' oe_kanban_global_click'">
|
||||
<div class="o_kanban_image">
|
||||
<img alt="" t-if="record.image_128.raw_value" t-att-src="kanban_image('res.partner', 'image_128', record.id.raw_value)"/>
|
||||
<img alt="Contact image" t-if="record.image_128.raw_value" t-att-src="kanban_image('res.partner', 'image_128', record.id.raw_value)"/>
|
||||
<t t-if="!record.image_128.raw_value">
|
||||
<img alt="Delivery" t-if="record.type.raw_value === 'delivery'" t-att-src='_s + "/base/static/img/truck.png"'/>
|
||||
<img alt="Invoice" t-if="record.type.raw_value === 'invoice'" t-att-src='_s + "/base/static/img/money.png"'/>
|
||||
|
||||
Reference in New Issue
Block a user