mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
20 lines
686 B
Python
20 lines
686 B
Python
# -*- coding: utf-8 -*-
|
|
# © 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 openerp import api, models
|
|
|
|
|
|
class MassReconcileBase(models.AbstractModel):
|
|
_inherit = 'mass.reconcile.base'
|
|
|
|
@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.append('account_move_line.purchase_line_id')
|
|
aml_cols.append('account_move_line.product_id')
|
|
return aml_cols
|