Hi all, I want to remove or make it invisible "Add a section" and "Add a note" at the invoice field. Below are the codes I've tried. I edited in the account_move_views.xml.
create name="add_line_control" string="Add a line"
create name="add_section_control" string="Add a section" context="{'default_display_type': 'line_section'}" invisible="1"
create name="add_note_control" string="Add a note" context="{'default_display_type': 'line_note'}" invisible="1"
field name=" add_section_control" invisible="1"
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
![]()
(OR)
To hide "Add a section" button, you can try inherit the tree view and add create="0" edit="0", here's an example:
<tree editable="bottom" create="0" edit="0">
<!-- widget="handle" is to show the drag and drop records button in tree view -->
<!-- for widget="handle", it must be sequence column, or else it won't work -->
<field name="sequence" widget="handle"/>
<field name="name"/>
<field name="priority"/>
</tree>
<tree editable="bottom" create="0" edit="0">
<!-- widget="handle" is to show the drag and drop records button in tree view -->
<!-- for widget="handle", it must be sequence column, or else it won't work -->
<field name="sequence" widget="handle"/>
<field name="name"/>
<field name="priority"/>
</tree>
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
change between 2 Invoice formats
Đã xử lý
|
|
1
thg 7 25
|
538 | |
|
2
thg 7 25
|
681 | ||
|
1
thg 7 25
|
1741 | ||
|
3
thg 4 25
|
1759 | ||
|
3
thg 4 25
|
2796 |
Seems like I can only reply to myself.. I've tried the method shared by @Akshay but it doesn't work.. not sure why.. I've also restart odoo server and "Upgrade" the module but no avail.
@Fudo, Do I have to create a new xml? or I can do it in the same account_move_views.xml ?
Or am I even editing at the right file?