mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
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.
13 lines
370 B
Python
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)
|