odoo/upgrade-util#116

Created by Karna Modasiya (kmod)
Merged at 1c2740722bfd438aa19a900ea9652a8156725ffc

Statuses:

label
odoo-dev:master-improve_remove_view-kmod
head
d68b681aa69b9c467df4955f80077a3a59e26826
merged
4 months ago by Upgrade, Christophe Simonis (chs)
odoo/upgrade-util
master #116

[IMP] util.remove_view : remove redundant t-calls

While removing the view, removing the content having t-call in other views which  are calling to have the content of it.

As there are many specific fixes available for this [16776,15322,14413,13404,13325,12205,12335 etc..], it's better to handle  it in remove_view.

Before fix:
- t-call with the same xml_id will remain in other views that are using it. So during access of that view, the system is raising an error "view not found."

<t name="Payment" t-name="website_sale.payment">
    <t t-call="website_sale.cart_summary"/>
</t>

After fix:
- t-call will be removed, so no error will be raised.

<t name="Payment" t-name="website_sale.payment">
</t>

Traceback:

Error while render the template
ValueError: View 'website_sale.cart_summary' in website 1 not found
Template: website_sale.payment
Path: /t/t/div/div[1]/div/div[4]/div[1]/t
Node: <t t-call="website_sale.address_on_payment"/>