[FIX] mass_reconcile_purchase_by_purchase_line

This commit is contained in:
mreficent
2017-11-06 18:23:44 +01:00
committed by Don Kendall
parent e692755859
commit 78ff8a3a68
2 changed files with 5 additions and 6 deletions

View File

@@ -3,4 +3,4 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from . import mass_reconcile
from . import base_reconciliation
from . import base_advanced_reconciliation

View File

@@ -2,18 +2,17 @@
# © 2015-17 Eficent Business and IT Consulting Services S.L. (www.eficent.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import api, models
from odoo import models
class MassReconcileBase(models.AbstractModel):
_inherit = 'mass.reconcile.base'
class MassReconcileAdvanced(models.AbstractModel):
_inherit = 'mass.reconcile.advanced'
@api.model
def _base_columns(self):
""" Mandatory columns for move lines queries
An extra column aliased as ``key`` should be defined
in each query."""
aml_cols = super(MassReconcileBase, self)._base_columns()
aml_cols = super(MassReconcileAdvanced, self)._base_columns()
aml_cols.append('account_move_line.purchase_line_id')
aml_cols.append('account_move_line.product_id')
return aml_cols