account_invoice_update_wizard: improve migration to v14

account_invoice_update_wizard: remove 'name' field. Improve field
labels.
Add module account_invoice_update_wizard_payment_mode
This commit is contained in:
Alexis de Lattre
2022-10-07 15:54:04 +02:00
parent db2cd72d04
commit 3ae427c5de
10 changed files with 154 additions and 23 deletions

View File

@@ -11,9 +11,8 @@ class AccountMove(models.Model):
self.ensure_one()
wizard = self.env['account.move.update']
res = wizard._prepare_default_get(self)
action = self.env.ref(
'account_invoice_update_wizard.account_invoice_update_action'
).read()[0]
action = self.env["ir.actions.actions"]._for_xml_id(
'account_invoice_update_wizard.account_invoice_update_action')
action['name'] = "Update Wizard"
action['res_id'] = wizard.create(res).id
return action