account_invoice_update_wizard: remove 'name' field. Improve field labels. Add module account_invoice_update_wizard_payment_mode
19 lines
596 B
Python
19 lines
596 B
Python
# Copyright 2019-2022 Camptocamp
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import models
|
|
|
|
|
|
class AccountMove(models.Model):
|
|
_inherit = 'account.move'
|
|
|
|
def prepare_update_wizard(self):
|
|
self.ensure_one()
|
|
wizard = self.env['account.move.update']
|
|
res = wizard._prepare_default_get(self)
|
|
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
|