Skip to Content
Menu
This question has been flagged
2894 Views

I'm trying to inherit website_sale.products in a custom theme. In views/layout.xml I have:

<template id="test_notice" inherit_id="website_sale.products" name="Test Notice">

  <xpath expr="//div[@id='products_grid']/table" position="after">

    <p>Hello Friend!</p>

  </xpath>

</template>

When I update the them I get an error:

Odoo Server Error - Missing Record

Error - Remaining ['Test Notice']

--------------------

Just those two lines. No additional information.

When I remove that template from the xml file and update the theme, the error still displays! 

Any ideas what I doing wrong?

Thanks!

Avatar
Discard

Missing record error usually come when record is not present.

Make sure you have website_sale dependancy in the de manifest.py of your custom module

Author

Yes, the website_sale dependency has been present in the manifest from the beginning of the project. That's not causing the problem, but thanks for offering the suggestion.

Hi, did you solve the problem? I'm having the same one.

Hi. Did anyone solve this after?

im trying to do the exact same thing in Odoo 14, and getting the same error 

I have website_sale in the manefest too  

kind regards