تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
2860 أدوات العرض

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? 


الصورة الرمزية
إهمال
أفضل إجابة

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

الصورة الرمزية
إهمال
أفضل إجابة

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


الصورة الرمزية
إهمال
الكاتب أفضل إجابة

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

الصورة الرمزية
إهمال