diff options
| author | Christophe Matthieu <chm@odoo.com> | 2016-06-14 14:26:28 +0200 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2016-06-14 14:26:42 +0200 |
| commit | 78b52fb637c0dbd68ca8089e048781a89e3efed5 (patch) | |
| tree | 122db827fa22ca8bf76006a0efe125475d5cb6a2 /addons | |
| parent | 965b7d060cc8555451709a5d77461a041ce20e0e (diff) | |
[FIX] templates: remplace true by True for t-field-options
t-field-options is a python dictionary.
'true' is evaluated as None because the qweb did not find any value for 'true' key.
Diffstat (limited to 'addons')
19 files changed, 39 insertions, 39 deletions
diff --git a/addons/account/views/report_invoice.xml b/addons/account/views/report_invoice.xml index 8e4401a7a16..9c7365738cb 100644 --- a/addons/account/views/report_invoice.xml +++ b/addons/account/views/report_invoice.xml @@ -8,7 +8,7 @@ <div class="row"> <div name="invoice_address" class="col-xs-5 col-xs-offset-7"> <address t-field="o.partner_id" - t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": true}' /> + t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' /> <span t-if="o.partner_id.vat">TIN: <span t-field="o.partner_id.vat"/></span> </div> </div> diff --git a/addons/account/views/web_planner_data.xml b/addons/account/views/web_planner_data.xml index 60898f7738c..8a7fec1d501 100644 --- a/addons/account/views/web_planner_data.xml +++ b/addons/account/views/web_planner_data.xml @@ -59,7 +59,7 @@ <th>Address</th> <td t-att-class="(not company_id.partner_id.street or not company_id.partner_id.zip) and 'danger'"> <span t-field="company_id.partner_id" - t-field-options='{"widget": "contact", "fields": ["address"], "no_marker": true}'/> + t-field-options='{"widget": "contact", "fields": ["address"], "no_marker": True}'/> </td> <td> <a class="fa fa-arrow-right" t-attf-href="#{prepare_backend_url('base.action_res_company_form', 'form')}&id=#{company_id.id}"> diff --git a/addons/hr_payroll/views/report_payslip.xml b/addons/hr_payroll/views/report_payslip.xml index 70923e84ec6..43b329f4107 100644 --- a/addons/hr_payroll/views/report_payslip.xml +++ b/addons/hr_payroll/views/report_payslip.xml @@ -20,7 +20,7 @@ <td><strong>Address</strong></td> <td colspan="3"> <div t-field="o.employee_id.address_home_id" - t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true, "phone_icons": true}'/> + t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/> </td> </tr> <tr> diff --git a/addons/hr_payroll/views/report_payslipdetails.xml b/addons/hr_payroll/views/report_payslipdetails.xml index 0c1e658f8aa..e72e2bfa620 100644 --- a/addons/hr_payroll/views/report_payslipdetails.xml +++ b/addons/hr_payroll/views/report_payslipdetails.xml @@ -20,7 +20,7 @@ <td><strong>Address</strong></td> <td colspan="3"> <div t-field="o.employee_id.address_home_id" - t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true, "phone_icons": true}'/> + t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/> </td> </tr> <tr> diff --git a/addons/l10n_fr_hr_payroll/views/report_l10nfrfichepaye.xml b/addons/l10n_fr_hr_payroll/views/report_l10nfrfichepaye.xml index c01c8defa7f..3970f0cc290 100644 --- a/addons/l10n_fr_hr_payroll/views/report_l10nfrfichepaye.xml +++ b/addons/l10n_fr_hr_payroll/views/report_l10nfrfichepaye.xml @@ -17,7 +17,7 @@ <tr> <td> <div t-field="o.employee_id.company_id.partner_id" - t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": true}' />SIRET: + t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' />SIRET: <span t-esc="o.employee_id.company_id.siret or '_'"/> APE: <span t-esc="o.employee_id.company_id.ape or '_'"/> </td> @@ -25,7 +25,7 @@ <tr> <td> <div t-field="o.employee_id.address_home_id" - t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": true}'/> + t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}'/> </td> </tr> </table> diff --git a/addons/l10n_in_hr_payroll/views/report_payslipdetails.xml b/addons/l10n_in_hr_payroll/views/report_payslipdetails.xml index eb07ce709a0..b35cd67b67b 100644 --- a/addons/l10n_in_hr_payroll/views/report_payslipdetails.xml +++ b/addons/l10n_in_hr_payroll/views/report_payslipdetails.xml @@ -20,7 +20,7 @@ <td><strong>Address</strong></td> <td colspan="3"> <div t-field="o.employee_id.address_home_id" - t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true, "phone_icons": true}'/> + t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/> </td> </tr> <tr> diff --git a/addons/lunch/report/lunch_order_templates.xml b/addons/lunch/report/lunch_order_templates.xml index 588e5392d2a..1b22bb3dd99 100644 --- a/addons/lunch/report/lunch_order_templates.xml +++ b/addons/lunch/report/lunch_order_templates.xml @@ -9,7 +9,7 @@ <div class="row"> <div class="col-xs-5 col-xs-offset-7"> <div t-field="user.partner_id" - t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": true}' /> + t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' /> </div> </div> diff --git a/addons/mrp_repair/views/report_mrprepairorder.xml b/addons/mrp_repair/views/report_mrprepairorder.xml index df7e1049fa6..3a12c225066 100644 --- a/addons/mrp_repair/views/report_mrprepairorder.xml +++ b/addons/mrp_repair/views/report_mrprepairorder.xml @@ -14,19 +14,19 @@ <div t-if="o.partner_invoice_id"> <strong t-if="o.address_id != o.partner_invoice_id">Invoice address: </strong> <div t-field="o.partner_invoice_id" - t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true, "phone_icons": true}'/> + t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/> <p t-if="o.partner_id.vat">VAT: <span t-field="o.partner_id.vat"/></p> </div> <div t-if="o.address_id != o.partner_invoice_id"> <strong>Shipping address :</strong> <div t-field="o.address_id" - t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true, "phone_icons": true}'/> + t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/> <p t-if="o.partner_id.vat">VAT: <span t-field="o.partner_id.vat"/></p> </div> </div> <div class="col-xs-5 col-xs-offset-1"> <div t-field="o.partner_id" - t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": true}' /> + t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' /> </div> </div> diff --git a/addons/purchase/views/report_purchaseorder.xml b/addons/purchase/views/report_purchaseorder.xml index cdc15a3e754..158c411de1e 100644 --- a/addons/purchase/views/report_purchaseorder.xml +++ b/addons/purchase/views/report_purchaseorder.xml @@ -11,18 +11,18 @@ <strong>Shipping address:</strong> <div t-if="o.dest_address_id"> <div t-field="o.dest_address_id" - t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true, "phone_icons": true}'/> + t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/> </div> <div t-if="not o.dest_address_id and o.picking_type_id and o.picking_type_id.warehouse_id"> <span t-field="o.picking_type_id.warehouse_id.name"/> <div t-field="o.picking_type_id.warehouse_id.partner_id" - t-field-options='{"widget": "contact", "fields": ["address", "phone", "fax"], "no_marker": true, "phone_icons": true}'/> + t-field-options='{"widget": "contact", "fields": ["address", "phone", "fax"], "no_marker": True, "phone_icons": True}'/> </div> </div> <div class="col-xs-5 col-xs-offset-1"> <div t-field="o.partner_id" - t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true, "phone_icons": true}'/> + t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/> <p t-if="o.partner_id.vat">VAT: <span t-field="o.partner_id.vat"/></p> </div> </div> diff --git a/addons/purchase/views/report_purchasequotation.xml b/addons/purchase/views/report_purchasequotation.xml index 74b4f905954..104f34527e4 100644 --- a/addons/purchase/views/report_purchasequotation.xml +++ b/addons/purchase/views/report_purchasequotation.xml @@ -12,17 +12,17 @@ <strong>Shipping address:</strong> <div t-if="o.dest_address_id"> <div t-field="o.dest_address_id" - t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true, "phone_icons": true}'/> + t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/> </div> <div t-if="not o.dest_address_id and o.picking_type_id.warehouse_id"> <span t-field="o.picking_type_id.warehouse_id.name"/> <div t-field="o.picking_type_id.warehouse_id.partner_id" - t-field-options='{"widget": "contact", "fields": ["address", "phone", "fax"], "no_marker": true, "phone_icons": true}'/> + t-field-options='{"widget": "contact", "fields": ["address", "phone", "fax"], "no_marker": True, "phone_icons": True}'/> </div> </div> <div class="col-xs-5 col-xs-offset-1"> <div t-field="o.partner_id" - t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true, "phone_icons": true}'/> + t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/> <p t-if="o.partner_id.vat">VAT: <span t-field="o.partner_id.vat"/></p> </div> </div> diff --git a/addons/report/views/layouts.xml b/addons/report/views/layouts.xml index d23efc0ffa2..97fbb90ec79 100644 --- a/addons/report/views/layouts.xml +++ b/addons/report/views/layouts.xml @@ -106,7 +106,7 @@ <div class="row"> <div class="col-xs-3" name="company_address"> <div t-field="company.partner_id" - t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": true}' + t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' style="border-bottom: 1px solid black;"/> </div> </div> diff --git a/addons/report_intrastat/report/report_intrastat_invoice_template.xml b/addons/report_intrastat/report/report_intrastat_invoice_template.xml index 4fa10563f72..c40c3b8661f 100644 --- a/addons/report_intrastat/report/report_intrastat_invoice_template.xml +++ b/addons/report_intrastat/report/report_intrastat_invoice_template.xml @@ -7,7 +7,7 @@ <div class="row"> <div class="col-xs-5 col-xs-offset-7"> <address t-field="o.partner_id" - t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": true}' /> + t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' /> <span t-field="o.partner_id.vat"/> </div> </div> diff --git a/addons/sale/views/report_invoice_layouted.xml b/addons/sale/views/report_invoice_layouted.xml index 3ee9d65c707..4aee0b8f698 100644 --- a/addons/sale/views/report_invoice_layouted.xml +++ b/addons/sale/views/report_invoice_layouted.xml @@ -82,12 +82,12 @@ <strong t-if="o.partner_shipping_id == o.partner_id">Invoicing and shipping address:</strong> <strong t-if="o.partner_shipping_id != o.partner_id">Invoicing address:</strong> <div t-field="o.partner_id" - t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": true}'/> + t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}'/> <span t-if="o.partner_id.vat">TIN: <span t-field="o.partner_id.vat"/></span> <div t-if="o.partner_shipping_id != o.partner_id" class="mt8"> <strong>Shipping address:</strong> <div t-field="o.partner_shipping_id" - t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": true}'/> + t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}'/> <span t-if="o.partner_id.vat">TIN: <span t-field="o.partner_id.vat"/></span> </div> </div> diff --git a/addons/sale/views/report_saleorder.xml b/addons/sale/views/report_saleorder.xml index a603688a19b..b464974bf29 100644 --- a/addons/sale/views/report_saleorder.xml +++ b/addons/sale/views/report_saleorder.xml @@ -11,18 +11,18 @@ <strong t-if="doc.partner_shipping_id == doc.partner_invoice_id">Invoicing and shipping address:</strong> <strong t-if="doc.partner_shipping_id != doc.partner_invoice_id">Invoicing address:</strong> <div t-field="doc.partner_invoice_id" - t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true, "phone_icons": true}'/> + t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/> <p t-if="doc.partner_id.vat">VAT: <span t-field="doc.partner_id.vat"/></p> <div t-if="doc.partner_shipping_id != doc.partner_invoice_id" class="mt8"> <strong>Shipping address:</strong> <div t-field="doc.partner_shipping_id" - t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true, "phone_icons": true}'/> + t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/> <p t-if="doc.partner_id.vat">VAT: <span t-field="doc.partner_id.vat"/></p> </div> </div> <div class="col-xs-5 col-xs-offset-1"> <div t-field="doc.partner_id" - t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": true}' /> + t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' /> </div> </div> diff --git a/addons/stock/report/report_deliveryslip.xml b/addons/stock/report/report_deliveryslip.xml index dc84a5f56f5..fec4e8973af 100644 --- a/addons/stock/report/report_deliveryslip.xml +++ b/addons/stock/report/report_deliveryslip.xml @@ -13,7 +13,7 @@ </div> <div t-if="o.partner_id" name="partner_header"> <div t-field="o.partner_id" - t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true}'/> + t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True}'/> </div> </div> </div> diff --git a/addons/stock/report/report_stockpicking_operations.xml b/addons/stock/report/report_stockpicking_operations.xml index a340d227dd7..5d9e2b3abec 100644 --- a/addons/stock/report/report_stockpicking_operations.xml +++ b/addons/stock/report/report_stockpicking_operations.xml @@ -24,12 +24,12 @@ <div t-if="o.move_lines and o.move_lines[0].partner_id and o.move_lines[0].partner_id.id != o.partner_id.id"> <span><strong>Delivery Address:</strong></span> <div t-field="o.move_lines[0].partner_id" - t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true, "phone_icons": true}'/> + t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/> </div> <div t-if="o.picking_type_id.code != 'internal' and (not o.move_lines or not o.move_lines[0].partner_id) and o.picking_type_id.warehouse_id.partner_id"> <span><strong>Warehouse Address:</strong></span> <div t-field="o.picking_type_id.warehouse_id.partner_id" - t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true, "phone_icons": true}'/> + t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/> </div> </div> <div class="col-xs-5 col-xs-offset-1"> @@ -44,7 +44,7 @@ </div> <div t-if="o.partner_id" name="partner_header"> <div t-field="o.partner_id" - t-field-options='{"widget": "contact", "fields": ["name", "phone"], "no_marker": true, "phone_icons": true}'/> + t-field-options='{"widget": "contact", "fields": ["name", "phone"], "no_marker": True, "phone_icons": True}'/> <p t-if="o.partner_id.vat">VAT: <span t-field="o.partner_id.vat"/></p> </div> </div> diff --git a/addons/website_forum/views/website_forum.xml b/addons/website_forum/views/website_forum.xml index a5dcb5348f5..8319bc60c39 100644 --- a/addons/website_forum/views/website_forum.xml +++ b/addons/website_forum/views/website_forum.xml @@ -252,7 +252,7 @@ <i t-if="question.post_type == 'question'" t-attf-class="fa fa-question-circle" t-att-title="question.post_type.capitalize()" /> <i t-if="question.post_type == 'discussion'" t-attf-class="fa fa-comments-o" t-att-title="question.post_type.capitalize()" /> <i t-if="question.post_type == 'link'" t-attf-class="fa fa-link" t-att-title="question.post_type.capitalize()" /> - <span>By </span><span t-field="question.create_uid" t-field-options='{"widget": "contact", "country_image": true, "fields": ["name", "country_id"]}' style="display: inline-block;"/> + <span>By </span><span t-field="question.create_uid" t-field-options='{"widget": "contact", "country_image": True, "fields": ["name", "country_id"]}' style="display: inline-block;"/> <span> • </span><span t-field="question.write_date" t-field-options='{"format":"short"}'/> <span> • </span><span t-field="question.views" /> View<t t-if="question.views>1">s</t> <span> • </span><a t-attf-href="/forum/#{ slug(forum) }/question/#{ slug(question) }"> @@ -782,7 +782,7 @@ <span>By </span> <a t-att-href="(question.create_uid.id == request.session.uid or question.create_uid.sudo().website_published) and '/forum/%s/user/%s' % (slug(forum), question.create_uid.id) or None" t-field="question.create_uid" - t-field-options='{"widget": "contact", "country_image": true, "fields": ["name", "country_id"]}' + t-field-options='{"widget": "contact", "country_image": True, "fields": ["name", "country_id"]}' style="display: inline-block;"/> <span> on </span><span t-field="question.create_date" t-field-options='{"format":"short"}'/> <span> • </span><span t-field="question.views"/> views @@ -940,7 +940,7 @@ </a> <a t-att-href="user_profile_url" t-field="answer.create_uid" - t-field-options='{"widget": "contact", "country_image": true, "fields": ["name", "country_id"]}' + t-field-options='{"widget": "contact", "country_image": True, "fields": ["name", "country_id"]}' style="display: inline-block;"/> <div class="text-muted"> <a t-attf-href="/forum/#{slug(question.forum_id)}/question/#{slug(question)}#answer_#{answer.id}">On</a> @@ -1028,12 +1028,12 @@ <div class="o_forum_tooltip_header"> <h4 class="o_forum_tooltip_heading"><a t-att-href="user_profile_url" t-field="answer.create_uid" - t-field-options='{"widget": "contact", "country_image": true, "fields": ["name", "country_id"]}' + t-field-options='{"widget": "contact", "country_image": True, "fields": ["name", "country_id"]}' style="display: inline-block;"/> </h4> - <span t-field="answer.create_uid" t-field-options='{"widget": "contact", "UserBio": true, "badges": true, "fields": ["karma"]}'/> + <span t-field="answer.create_uid" t-field-options='{"widget": "contact", "UserBio": True, "badges": True, "fields": ["karma"]}'/> </div> - <div t-field="answer.create_uid" t-field-options='{"widget": "contact", "website_description": true, "fields": ["partner_id"]}'/> + <div t-field="answer.create_uid" t-field-options='{"widget": "contact", "website_description": True, "fields": ["partner_id"]}'/> </div> </template> @@ -1065,7 +1065,7 @@ </t> </t> <a t-attf-href="/forum/#{slug(forum)}/partner/#{message.author_id.id}" - t-field="message.author_id" t-field-options='{"widget": "contact", "country_image": true, "fields": ["name", "country_id"]}' + t-field="message.author_id" t-field-options='{"widget": "contact", "country_image": True, "fields": ["name", "country_id"]}' style="display: inline-block;"/> on <span t-field="message.date" t-field-options='{"format":"short"}'/> </small> diff --git a/addons/website_portal_sale/views/templates.xml b/addons/website_portal_sale/views/templates.xml index 0b251c6abb9..4e58674d12c 100644 --- a/addons/website_portal_sale/views/templates.xml +++ b/addons/website_portal_sale/views/templates.xml @@ -259,7 +259,7 @@ <strong>Invoicing Address</strong> </div> <div> - <address t-field="order.partner_invoice_id" t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": true}'/> + <address t-field="order.partner_invoice_id" t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}'/> </div> <t t-set="invoices" t-value="[i for i in order.invoice_ids if i.state not in ['draft', 'cancel']]"/> <t t-if="invoices"> @@ -289,7 +289,7 @@ <strong>Shipping Address</strong> </div> <div> - <address t-field="order.partner_shipping_id" t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": true}'/> + <address t-field="order.partner_shipping_id" t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}'/> </div> </div> </div> diff --git a/addons/website_project_issue/views/project_issue_templates.xml b/addons/website_project_issue/views/project_issue_templates.xml index 50fa66c43c4..e7e88b05930 100644 --- a/addons/website_project_issue/views/project_issue_templates.xml +++ b/addons/website_project_issue/views/project_issue_templates.xml @@ -94,13 +94,13 @@ <div class="col-md-6" t-if="issue.user_id"> <strong>Assigned to</strong> <div> - <address t-field="issue.user_id" t-field-options='{"widget": "contact", "fields": ["name", "email", "phone"], "no_marker": true}'/> + <address t-field="issue.user_id" t-field-options='{"widget": "contact", "fields": ["name", "email", "phone"], "no_marker": True}'/> </div> </div> <div class="col-md-6"> <strong>Reported by</strong> <div t-if="issue.partner_id"> - <address t-field="issue.partner_id" t-field-options='{"widget": "contact", "fields": ["name", "email"], "no_marker": true}'/> + <address t-field="issue.partner_id" t-field-options='{"widget": "contact", "fields": ["name", "email"], "no_marker": True}'/> </div> </div> </div> |
