mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[FIX] mass_reconcile_purchase_by_purchase_line
This commit is contained in:
@@ -3,4 +3,4 @@
|
|||||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||||
|
|
||||||
from . import mass_reconcile
|
from . import mass_reconcile
|
||||||
from . import base_reconciliation
|
from . import base_advanced_reconciliation
|
||||||
|
|||||||
@@ -2,18 +2,17 @@
|
|||||||
# © 2015-17 Eficent Business and IT Consulting Services S.L. (www.eficent.com)
|
# © 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).
|
# 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):
|
class MassReconcileAdvanced(models.AbstractModel):
|
||||||
_inherit = 'mass.reconcile.base'
|
_inherit = 'mass.reconcile.advanced'
|
||||||
|
|
||||||
@api.model
|
|
||||||
def _base_columns(self):
|
def _base_columns(self):
|
||||||
""" Mandatory columns for move lines queries
|
""" Mandatory columns for move lines queries
|
||||||
An extra column aliased as ``key`` should be defined
|
An extra column aliased as ``key`` should be defined
|
||||||
in each query."""
|
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.purchase_line_id')
|
||||||
aml_cols.append('account_move_line.product_id')
|
aml_cols.append('account_move_line.product_id')
|
||||||
return aml_cols
|
return aml_cols
|
||||||
Reference in New Issue
Block a user