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:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
1
回覆
1431
瀏覽次數
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
| 相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
|---|---|---|---|---|
|
|
3
9月 25
|
3324 | ||
|
|
0
8月 25
|
852 | ||
|
|
1
8月 25
|
3087 | ||
|
|
2
7月 25
|
8728 | ||
|
|
2
7月 25
|
5085 |