Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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, 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"/> ```
- Loading branch information