Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
2869 Lượt xem

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? 


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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


Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ