Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3347 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Auteur

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.

Gerelateerde posts Antwoorden Weergaven Activiteit
1
jul. 25
1736
1
mei 25
1747
1
apr. 25
2301
1
feb. 25
1578
0
okt. 24
1363