[FIX] various: replace t-field-options by t-options

The syntax changed but those occurrences were not updated.

Task: none
PR: none
This commit is contained in:
Sébastien Theys
2018-08-24 10:46:37 +02:00
parent ceef32500d
commit 46846d8176
7 changed files with 19 additions and 19 deletions
@@ -95,7 +95,7 @@
<div><strong>Your Contact:</strong></div>
<img class="rounded-circle mr4 float-left o_portal_contact_img" t-if="invoice.user_id.image" t-attf-src="data:image/png;base64,#{invoice.user_id.image}" alt="Contact"/>
<img class="rounded-circle mr4 float-left o_portal_contact_img" t-if="not invoice.user_id.image" src="/web/static/src/img/placeholder.png" alt="Contact"/>
<span t-field="invoice.user_id" t-field-options='{"widget": "contact", "fields": ["name", "phone"], "no_marker": True}'/>
<span t-field="invoice.user_id" t-options='{"widget": "contact", "fields": ["name", "phone"], "no_marker": True}'/>
<a data-toggle="modal" href="#" data-target="#invoice_chatter">Contact us</a>
</t>
<div t-if="not invoice.user_id" class="text-center mr16">
@@ -18,7 +18,7 @@
<td><t t-esc="timesheet.date"/></td>
<td><t t-esc="timesheet.name"/></td>
<td><t t-esc="timesheet.sudo().user_id.name"/></td>
<td><span t-field="timesheet.unit_amount" t-field-options='{"widget": "duration", "unit": "hour", "round": "minute"}'/></td>
<td><span t-field="timesheet.unit_amount" t-options='{"widget": "duration", "unit": "hour", "round": "minute"}'/></td>
</tr>
</table>
</div>
@@ -89,13 +89,13 @@
<t t-if="project.partner_id">
<strong>Customer</strong>
<div t-if="project.partner_id">
<address t-field="project.partner_id" t-field-options='{"widget": "contact", "fields": ["name", "email"]}'/>
<address t-field="project.partner_id" t-options='{"widget": "contact", "fields": ["name", "email"]}'/>
</div>
</t>
<t t-if="project.user_id">
<strong>Project Manager</strong>
<div>
<address t-field="project.user_id" t-field-options='{"widget": "contact", "fields": ["name", "email", "phone"]}'/>
<address t-field="project.user_id" t-options='{"widget": "contact", "fields": ["name", "email", "phone"]}'/>
</div>
</t>
</div>
@@ -183,13 +183,13 @@
<div class='row'>
<div class="col-lg-6">
<div class="mb8">
<strong>Date:</strong> <span t-field="task.create_date" t-field-options='{"widget": "date"}'/>
<strong>Date:</strong> <span t-field="task.create_date" t-options='{"widget": "date"}'/>
</div>
<div t-if="task.user_id">
<strong>Assigned to</strong>
<div>
<address t-field="task.user_id" t-field-options='{"widget": "contact", "fields": ["name", "email", "phone"]}'/>
<address t-field="task.user_id" t-options='{"widget": "contact", "fields": ["name", "email", "phone"]}'/>
</div>
</div>
<div t-if="task.attachment_ids" class='card-footer'>
@@ -209,12 +209,12 @@
</div>
<div class="col-lg-6">
<div class="mb8" t-if="task.date_deadline">
<strong>Deadline:</strong> <span t-field="task.date_deadline" t-field-options='{"widget": "date"}'/>
<strong>Deadline:</strong> <span t-field="task.date_deadline" t-options='{"widget": "date"}'/>
</div>
<div t-if="task.partner_id">
<strong>Reported by</strong>
<div>
<address t-field="task.partner_id" t-field-options='{"widget": "contact", "fields": ["name", "email"]}'/>
<address t-field="task.partner_id" t-options='{"widget": "contact", "fields": ["name", "email"]}'/>
</div>
</div>
</div>
+3 -3
View File
@@ -212,7 +212,7 @@
<h4 class="mt0" t-field="company.report_header"/>
<div name="company_address" class="mb4">
<span class="company_address" t-field="company.partner_id"
t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": true}'/>
t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": true}'/>
</div>
</div>
</div>
@@ -269,7 +269,7 @@
</div>
<div class="col-4 text-right">
<span class="company_address" t-field="company.partner_id"
t-field-options='{"widget": "contact", "fields": ["address"], "no_marker": true}'/>
t-options='{"widget": "contact", "fields": ["address"], "no_marker": true}'/>
</div>
<div class="col-4">
<h4 class="mt0 mb0 text-uppercase" t-field="company.report_header"/>
@@ -299,7 +299,7 @@
<div class="row">
<div class="col-6" name="company_address">
<span t-field="company.partner_id"
t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": true}'
t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": true}'
style="border-bottom: 1px solid black; display:inline-block;"/>
</div>
</div>
@@ -214,7 +214,7 @@
customize_show="True" active="False" inherit_id="website_blog.blog_post_short">
<xpath expr="//span[@t-field='blog_post.author_id']" position="before">
<t t-if="blog_post.author_avatar">
<div t-field="blog_post.author_avatar" class="o_not_editable" style="display:inline" t-field-options='{"widget": "image", "class": "rounded-circle o_author_avatar_little "}' />
<div t-field="blog_post.author_avatar" class="o_not_editable" style="display:inline" t-options='{"widget": "image", "class": "rounded-circle o_author_avatar_little "}' />
</t>
</xpath>
</template>
@@ -311,9 +311,9 @@
<h2 t-field="next_post.subtitle" placeholder="Subtitle"/>
<div>
<t t-if="next_post.author_avatar">
<span t-field="next_post.author_avatar" t-field-options='{"widget": "image", "class": "rounded-circle", "style":"width: 30px; margin-right: 10px; display:inline"}' />
<span t-field="next_post.author_avatar" t-options='{"widget": "image", "class": "rounded-circle", "style":"width: 30px; margin-right: 10px; display:inline"}' />
</t>
<span t-field="next_post.author_id" style="display: inline-block;" t-field-options='{
<span t-field="next_post.author_id" style="display: inline-block;" t-options='{
"widget": "contact",
"fields": ["name"]
}'/>
@@ -331,9 +331,9 @@
<xpath expr="//p[@name='blog_post_data']" position="after">
<div>
<t t-if="blog_post.author_avatar">
<span t-field="blog_post.author_avatar" class="o_not_editable" t-field-options='{"widget": "image", "class": "rounded-circle", "style":"width: 30px; margin-right: 10px; display:inline"}' />
<span t-field="blog_post.author_avatar" class="o_not_editable" t-options='{"widget": "image", "class": "rounded-circle", "style":"width: 30px; margin-right: 10px; display:inline"}' />
</t>
<span t-field="blog_post.author_id" style="display: inline-block;" t-field-options='{
<span t-field="blog_post.author_id" style="display: inline-block;" t-options='{
"widget": "contact",
"fields": ["name"]
}'/>
@@ -56,7 +56,7 @@
<t t-set="locations" t-value="days[day]['locations']"/>
<t t-set="dates" t-value="days[day]['dates']"/>
<h3 class="page-header mt0">
<span t-field="tracks_by_days[day][0].date" t-field-options="{'widget': 'date'}"/>
<span t-field="tracks_by_days[day][0].date" t-options="{'widget': 'date'}"/>
<small><t t-esc="len(tracks_by_days[day])"/> talks</small>
</h3>
<table id="table_search" class="table table-bordered table-sm">
@@ -83,7 +83,7 @@
</div>
<label class="mb0 mt16"><a href="/jobs">Jobs</a></label> /
<h1 class="mb0 mt0" t-field="job.name"/>
<h4 class="mt0" t-field="job.address_id" t-field-options='{
<h4 class="mt0" t-field="job.address_id" t-options='{
"widget": "contact",
"fields": ["city"],
"no_tag_br": True
@@ -407,7 +407,7 @@
<h3 class="mb32 text-center">Your application has been sent to:</h3>
</div>
<div class="col-lg-1 offset-lg-4">
<p t-field="responsible.image_small" t-field-options="{'widget': 'image', 'class': 'rounded-circle d-block mx-auto'}"/>
<p t-field="responsible.image_small" t-options="{'widget': 'image', 'class': 'rounded-circle d-block mx-auto'}"/>
</div>
<div class="col-lg-5 o_responsible_data">
<h4 class="mt0" t-field="responsible.name"/>