Skip to content

Commit

Permalink
[FIX] Allowing extensions of _base_columns
Browse files Browse the repository at this point in the history
  • Loading branch information
MiquelRForgeFlow committed Aug 17, 2017
1 parent 3566d5c commit 91a1aaf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions account_mass_reconcile/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion account_mass_reconcile/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
5 changes: 4 additions & 1 deletion account_mass_reconcile/models/base_reconciliation.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -44,6 +45,7 @@ def _action_rec(self):
"""
raise NotImplementedError

@api.model
def _base_columns(self):
""" Mandatory columns for move lines queries
An extra column aliased as ``key`` should be defined
Expand All @@ -63,7 +65,8 @@ def _base_columns(self):

@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):
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 91a1aaf

Please sign in to comment.