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):
|
||||
_inherit = 'mass.reconcile.advanced'
|
||||
|
||||
@staticmethod
|
||||
def _base_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()
|
||||
def _selection_columns(self):
|
||||
aml_cols = super(MassReconcileAdvanced, self)._selection_columns()
|
||||
aml_cols.append('account_move_line.purchase_line_id')
|
||||
aml_cols.append('account_move_line.product_id')
|
||||
return aml_cols
|
||||
|
||||
@@ -7,11 +7,8 @@ from odoo import models
|
||||
class AccountMassReconcileMethod(models.Model):
|
||||
_inherit = 'account.mass.reconcile.method'
|
||||
|
||||
@staticmethod
|
||||
def _get_reconcilation_methods():
|
||||
methods = super(
|
||||
AccountMassReconcileMethod, AccountMassReconcileMethod).\
|
||||
_get_reconcilation_methods()
|
||||
def _selection_name(self):
|
||||
methods = super(AccountMassReconcileMethod, self)._selection_name()
|
||||
methods += [
|
||||
('mass.reconcile.advanced.by.purchase.line',
|
||||
'Advanced. Product, purchase order line.'),
|
||||
|
||||
Reference in New Issue
Block a user