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
- Contabilità
- Magazzino
- PoS
- Project
- MRP
La domanda è stata contrassegnata
1
Rispondi
1413
Visualizzazioni
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
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati| Post correlati | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
|
|
3
set 25
|
3304 | ||
|
|
0
ago 25
|
836 | ||
|
|
1
ago 25
|
3062 | ||
|
|
2
lug 25
|
8705 | ||
|
|
2
lug 25
|
5069 |