Files
bank-payment/account_payment_order/models/account_move.py
Jon Zaballa c9be71a1ee [FIX] 11.0 Account Payment Order: domain bug on create line wizard
When `populate` method is called and the wizard action is returned
again to refresh the view, the dynamic domain of `move_line_ids` gets
lost. Updating move_line_ids field and returning `ir.actions.do_nothing`
solves the issue.
2019-04-04 11:35:55 +02:00

13 lines
370 B
Python

# © 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class AccountMove(models.Model):
_inherit = 'account.move'
payment_order_id = fields.Many2one(
'account.payment.order', string='Payment Order', copy=False,
readonly=True)