I want to create extra fields in acounting-> customer invoice.....i want to create two fields below fiscal positon field and three fields below Amount field....plese some body help me
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ờ
1
Trả lời
4973
Lượt xem
hi sri,
.py file
_inherit = 'account.invoice'
_columns = {
'test1':fields.char('Test1', size=64),
'test2':fields.char('Test2', size=64),
}
_inherit = 'account.invoice.line'
_columns = {
'line1':fields.char('Line1', size=64),
'line2':fields.char('Line2', size=64),
'line3':fields.char('Line3', size=64),
}
****** XML file
<xpath expr="//form/sheet/group/group//field[@name='fiscal_position']" position="after">
<field name="test1"/>
<field name="test2"/>
</xpath>
<xpath expr="//form/sheet/notebook/page//field/tree//field[@name='price_subtotal']" position="before">
<field name="line1"/>
<field name="line2"/>
<field name="line3"/>
</xpath>
this code is work perfectly use it
wow thankyou very much
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 | |
---|---|---|---|---|
|
2
thg 8 23
|
3129 | ||
|
3
thg 4 23
|
2242 | ||
|
3
thg 12 22
|
33756 | ||
Inheriting attributes from Fields
Đã xử lý
|
|
1
thg 2 23
|
7912 | |
|
7
thg 12 23
|
26165 |