I am trying to upgrade a custom module from odoo 13 to 14 , while installing it , this error is showing up :
AssertionError: account.payment.payment_difference_handling: selection_add=[('reconcile_multi_deduct', 'Mark invoice as fully paid (multi deduct)')] on non-list selection None
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
1401
Lượt xem
Hi,
In Odoo 13, the field payment_difference_handling is defined within the account.payment model, but while coming to Odoo 14, it is defined in the account.payment.register model.
So you have to change the model in which you are inheriting the field and adding new values into the selection list.
class AccountPaymentRegister(models.TransientModel):
_inherit = 'account.payment.register'
payment_difference_handling = usage = fields.Selection(selection_add=[('reconcile_multi_deduct', 'Mark invoice as fully paid (multi deduct)')],ondelete={'reconcile_multi_deduct': 'cascade'})
Hope it helps
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 | |
|---|---|---|---|---|
|
|
3
thg 9 25
|
3285 | ||
|
|
0
thg 8 25
|
815 | ||
|
|
1
thg 8 25
|
3047 | ||
|
|
2
thg 7 25
|
8690 | ||
|
|
2
thg 7 25
|
5056 |