Skip to content
Snippets Groups Projects
Commit 95d8340d authored by Laurent Smet's avatar Laurent Smet
Browse files

[FIX] account: Allow copying reco model lines


When duplicating the reco model, we want to counterpart entry lines to be copied as well.

closes odoo/odoo#122360

X-original-commit: c5d5f4db
Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
parent b43d79b1
No related branches found
No related tags found
No related merge requests found
......@@ -345,7 +345,7 @@ class AccountReconcileModel(models.Model):
match_partner_category_ids = fields.Many2many('res.partner.category', string='Matching categories',
help='The reconciliation model will only be applied to the selected customer/vendor categories.')
line_ids = fields.One2many('account.reconcile.model.line', 'model_id')
line_ids = fields.One2many('account.reconcile.model.line', 'model_id', copy=True)
partner_mapping_line_ids = fields.One2many(string="Partner Mapping Lines",
comodel_name='account.reconcile.model.partner.mapping',
inverse_name='model_id',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment