mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[IMP] fix pylint errors
This commit is contained in:
@@ -82,7 +82,7 @@ class WizardLog:
|
||||
class wizard_update_charts_accounts(orm.TransientModel):
|
||||
_name = 'wizard.update.charts.accounts'
|
||||
|
||||
def _get_lang_selection_options(self, cr, uid, context={}):
|
||||
def _get_lang_selection_options(self, cr, uid, context=None):
|
||||
"""
|
||||
Gets the available languages for the selection.
|
||||
"""
|
||||
|
||||
@@ -336,8 +336,8 @@ class CreditControlPolicyLevel(orm.Model):
|
||||
# ----- sql time related methods ---------
|
||||
|
||||
def _net_days_get_boundary(self):
|
||||
return " (mv_line.date_maturity + %(delay)s)::date <= "
|
||||
"date(%(controlling_date)s)"
|
||||
return (" (mv_line.date_maturity + %(delay)s)::date <= "
|
||||
"date(%(controlling_date)s)")
|
||||
|
||||
def _end_of_month_get_boundary(self):
|
||||
return ("(date_trunc('MONTH', (mv_line.date_maturity + %(delay)s))+"
|
||||
|
||||
@@ -24,7 +24,7 @@ from openerp.osv import fields, orm
|
||||
class res_company(orm.Model):
|
||||
"""override company to add currency update"""
|
||||
|
||||
def _multi_curr_enable(self, cr, uid, ids, field_name, arg, context={}):
|
||||
def _multi_curr_enable(self, cr, uid, ids, field_name, arg, context=None):
|
||||
"check if multi company currency is enabled"
|
||||
result = {}
|
||||
fields = self.pool.get('ir.model.fields').search(
|
||||
|
||||
@@ -177,7 +177,7 @@ class Currency_rate_update(osv.Model):
|
||||
cron_id = cron_obj.create(cr, uid, self.cron, context)
|
||||
return cron_id
|
||||
|
||||
def save_cron(self, cr, uid, datas, context={}):
|
||||
def save_cron(self, cr, uid, datas, context=None):
|
||||
"""save the cron config data should be a dict"""
|
||||
cron_id = self.get_cron_id(cr, uid, context)
|
||||
return self.pool.get('ir.cron').write(cr, uid, [cron_id], datas)
|
||||
|
||||
Reference in New Issue
Block a user