mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[FIX] Allowing extensions of _base_columns
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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)",
|
||||
|
||||
@@ -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):
|
||||
|
||||
BIN
account_mass_reconcile/static/description/icon.png
Normal file
BIN
account_mass_reconcile/static/description/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.2 KiB |
Reference in New Issue
Block a user