Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
3344 Vistas

I have two system: system_one and system_two

The system_two just related to system_one so in system_one I have a custom module name custom_one and custom_two. 

custom_one: which generate a qweb file.

custom_two: which inherits the custom_one qweb file and I going to add another column and rows


And now, I'm confused bcuz when I'm looking in technical menu and I saw  that the external id for qweb in custom_one has different names in system_one and system_two like the external id of system_one is stock.history_template and in system_two it's portal.portal_archive when I upgrade the base.


This is not good cuz when I install the custom_two in system_two then I used the external id stock.history_template, it can't find the parent id likewise in system_one if I used the portal.portal_archive it returns the same error


 Does it mean i have an error?

Avatar
Descartar
Mejor respuesta

Hi,

There is something wrong. If the template is created from your custom module, the ID has to be like module_name.id_of_the_record , but here instead of custom module name you are getting stock and portal . So just make sure that you are taking the external ID correctly, you can open the corresponding record in the settings and click the View Metadata option to see the external ID.

If both modules are custom modules, the external id will be same in all the database where this modules are installed.

How To Find External ID Of Records in Odoo

Thanks

Avatar
Descartar
Autor

Dear Niyas,

The problem has been solved, I just add a name attribute to the original template and the external id turns to module.template_id. Thank u for the tips sir.

Publicaciones relacionadas Respuestas Vistas Actividad
1
jul 25
1730
1
may 25
1737
1
abr 25
2299
1
feb 25
1576
0
oct 24
1355