Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
2896 Vistas

Hi Odoo'ers


in version 17 of Odoo it seems impossible to change the portal template of a sale order: 


for example I want to add a column here:


I tried to modify stuff in the view sale_portal_templates.xml in the templade id sale_order_portal_content but it seems to have no effect.


This is my code but with no effect:



So how can I change the contents of the portal template view? 


Avatar
Descartar
Mejor respuesta

Hi,

Your code is working properly. Ensure you've added the XML file to your manifest and declared the necessary dependencies.

For example:

'depends': ['sale'],

    'data': [

        'views/sale_portal_templates_inherit.xml',

    ],


After updating the manifest, restart the Odoo server and upgrade your module to see the changes.


Hope it helps

Avatar
Descartar
Mejor respuesta

@Cybrosys Techno Solutions Pvt.Ltd  Can we edit same through odoo studio?


Avatar
Descartar
Autor Mejor respuesta

Hi there


it works fine when I try the code on the database of one of our clients.


It doesn't work when I try it on my local development database


weird.

thanks for the help though

Avatar
Descartar