[FIX] Allowing extensions of _base_columns

This commit is contained in:
mreficent
2017-08-17 10:44:32 +02:00
parent 3566d5c119
commit 91a1aafd84
4 changed files with 8 additions and 5 deletions

View File

@@ -2,9 +2,9 @@
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
==============
Mass Reconcile
==============
======================
Account Mass Reconcile
======================
This is a shared work between Akretion and Camptocamp
in order to provide:

View File

@@ -4,7 +4,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Mass Reconcile",
"name": "Account Mass Reconcile",
"version": "9.0.1.0.0",
"depends": ["account", "account_full_reconcile"],
"author": "Akretion,Camptocamp,Odoo Community Association (OCA)",

View File

@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
# © 2012-2016 Camptocamp SA (Guewen Baconnier, Damien Crier, Matthieu Dietrich)
# © 2010 Sébastien Beau
# © 2017 Eficent Business and IT Consulting Services S.L. (www.eficent.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from openerp import models, api, fields
@@ -44,6 +45,7 @@ class MassReconcileBase(models.AbstractModel):
"""
raise NotImplementedError
@api.model
def _base_columns(self):
""" Mandatory columns for move lines queries
An extra column aliased as ``key`` should be defined
@@ -63,7 +65,8 @@ class MassReconcileBase(models.AbstractModel):
@api.multi
def _select(self, *args, **kwargs):
return "SELECT %s" % ', '.join(self._base_columns())
return "SELECT %s" % ', '.join(
self.env["mass.reconcile.base"]._base_columns())
@api.multi
def _from(self, *args, **kwargs):

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB