mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[FIX] Super call on static methods
This commit is contained in:
@@ -7,13 +7,8 @@ from odoo import models
|
|||||||
class MassReconcileAdvanced(models.AbstractModel):
|
class MassReconcileAdvanced(models.AbstractModel):
|
||||||
_inherit = 'mass.reconcile.advanced'
|
_inherit = 'mass.reconcile.advanced'
|
||||||
|
|
||||||
@staticmethod
|
def _selection_columns(self):
|
||||||
def _base_columns():
|
aml_cols = super(MassReconcileAdvanced, self)._selection_columns()
|
||||||
""" Mandatory columns for move lines queries
|
|
||||||
An extra column aliased as ``key`` should be defined
|
|
||||||
in each query."""
|
|
||||||
aml_cols = super(MassReconcileAdvanced, MassReconcileAdvanced).\
|
|
||||||
_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
|
||||||
|
|||||||
@@ -7,11 +7,8 @@ from odoo import models
|
|||||||
class AccountMassReconcileMethod(models.Model):
|
class AccountMassReconcileMethod(models.Model):
|
||||||
_inherit = 'account.mass.reconcile.method'
|
_inherit = 'account.mass.reconcile.method'
|
||||||
|
|
||||||
@staticmethod
|
def _selection_name(self):
|
||||||
def _get_reconcilation_methods():
|
methods = super(AccountMassReconcileMethod, self)._selection_name()
|
||||||
methods = super(
|
|
||||||
AccountMassReconcileMethod, AccountMassReconcileMethod).\
|
|
||||||
_get_reconcilation_methods()
|
|
||||||
methods += [
|
methods += [
|
||||||
('mass.reconcile.advanced.by.purchase.line',
|
('mass.reconcile.advanced.by.purchase.line',
|
||||||
'Advanced. Product, purchase order line.'),
|
'Advanced. Product, purchase order line.'),
|
||||||
|
|||||||
Reference in New Issue
Block a user