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

Greetings


I need to remove these two fields from the page '.../my/account': 

'Company Name' & 'VAT ​Number' 

How do I do this? Nothing appears in the 'customize' tab...


I'm using Odoo 17 Standard

Thank you very much

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

do you make update on this page controller ?

Câu trả lời hay nhất

Try Studio

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

Hi,

You can try this template in your custom module.

<template id="portal_template_inherited_1"  inherit_id="portal.portal_my_details_fields">
<xpath expr="//input[@name='company_name']" position="replace"/>
<xpath expr="//label[@for='company_name']" position="replace"/>
    <xpath expr="//label[@for='vat']" position="replace"/>
    <xpath expr="//input[@name='vat']" position="replace"/>
</template>


Hope it helps

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

I want to update the controller of this page how can I do ? ​

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 9 24
3078
3
thg 12 24
3981
2
thg 2 24
1954
2
thg 1 24
9614
4
thg 10 23
18347