Skip to content

Commit

Permalink
[REF] custom_gj: replace dangerous position "replace" and deprecated …
Browse files Browse the repository at this point in the history
…"t-field-options" attribute
  • Loading branch information
eantones committed Aug 30, 2023
1 parent c404a53 commit bfb39a3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion custom_gj/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{
"name": "GJ Customizations",
"version": "14.0.1.0.0",
"version": "14.0.1.0.1",
"author": "NuoBiT Solutions, S.L., Eric Antones",
"license": "AGPL-3",
"category": "Custom",
Expand Down
6 changes: 4 additions & 2 deletions custom_gj/views/invoice_report_templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
id="report_invoice_document_inherit_sale_inherit_custom_gj"
inherit_id="sale.report_invoice_document_inherit_sale"
>
<xpath expr="//div[@t-field='o.partner_id']" position="replace">
<xpath expr="//div[@t-field='o.partner_id']" position="attributes">
<attribute name="t-if">False</attribute>
</xpath>
<xpath expr="//div[@t-field='o.partner_id']" position="after">
<t t-call="custom_gj.report_partner_address" />
</xpath>

</template>
</odoo>
2 changes: 1 addition & 1 deletion custom_gj/views/report_templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
<div class="col-xs-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>
Expand Down

0 comments on commit bfb39a3

Please sign in to comment.