[IMP] account_invoice_update_wizard: Migration to 14.0

This commit is contained in:
Khoi Vo
2022-03-15 16:00:51 +07:00
parent fdef51ea57
commit 686c6f3900
12 changed files with 254 additions and 336 deletions

View File

@@ -1 +1 @@
from . import account_invoice
from . import account_move

View File

@@ -1,17 +1,15 @@
# Copyright 2019 Camptocamp
# Copyright 2019-2022 Camptocamp
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models, fields, api, _
from odoo.exceptions import UserError
import odoo.addons.decimal_precision as dp
from odoo import models
class AccountInvoice(models.Model):
_inherit = 'account.invoice'
class AccountMove(models.Model):
_inherit = 'account.move'
def prepare_update_wizard(self):
self.ensure_one()
wizard = self.env['account.invoice.update']
wizard = self.env['account.move.update']
res = wizard._prepare_default_get(self)
action = self.env.ref(
'account_invoice_update_wizard.account_invoice_update_action'
@@ -19,4 +17,3 @@ class AccountInvoice(models.Model):
action['name'] = "Update Wizard"
action['res_id'] = wizard.create(res).id
return action