Browse Source

[FIX] Replaced default values lambda function in wizards.

6.0
Vauxoo 13 years ago
committed by Nhomar Hernandez nhomar@vauxoo.com
parent
commit
af55f14a54
  1. 2
      account_financial_report/wizard/wizard_account_balance_2_report.py
  2. 2
      account_financial_report/wizard/wizard_account_balance_4_report.py
  3. 2
      account_financial_report/wizard/wizard_account_balance_report.py

2
account_financial_report/wizard/wizard_account_balance_2_report.py

@ -55,7 +55,7 @@ class wizard_account_balance_gene_2(osv.osv_memory):
'filter': lambda *a:'byperiod', 'filter': lambda *a:'byperiod',
'display_account_level': lambda *a: 0, 'display_account_level': lambda *a: 0,
'inf_type': lambda *a:'bcom', 'inf_type': lambda *a:'bcom',
'company_id': lambda *a: 1,
'company_id': lambda self,cr,uid,c: self.pool.get('res.company')._company_default_get(cr, uid, 'account.invoice', context=c),
'fiscalyear': lambda self, cr, uid, c: self.pool.get('account.fiscalyear').find(cr, uid), 'fiscalyear': lambda self, cr, uid, c: self.pool.get('account.fiscalyear').find(cr, uid),
'display_account': lambda *a:'con_movimiento', 'display_account': lambda *a:'con_movimiento',
} }

2
account_financial_report/wizard/wizard_account_balance_4_report.py

@ -55,7 +55,7 @@ class wizard_report(osv.osv_memory):
'filter': lambda *a:'byperiod', 'filter': lambda *a:'byperiod',
'display_account_level': lambda *a: 0, 'display_account_level': lambda *a: 0,
'inf_type': lambda *a:'bcom', 'inf_type': lambda *a:'bcom',
'company_id': lambda *a: 1,
'company_id': lambda self,cr,uid,c: self.pool.get('res.company')._company_default_get(cr, uid, 'account.invoice', context=c),
'fiscalyear': lambda self, cr, uid, c: self.pool.get('account.fiscalyear').find(cr, uid), 'fiscalyear': lambda self, cr, uid, c: self.pool.get('account.fiscalyear').find(cr, uid),
'display_account': lambda *a:'con_movimiento', 'display_account': lambda *a:'con_movimiento',
} }

2
account_financial_report/wizard/wizard_account_balance_report.py

@ -55,7 +55,7 @@ class wizard_account_balance_gene(osv.osv_memory):
'filter': lambda *a:'byperiod', 'filter': lambda *a:'byperiod',
'display_account_level': lambda *a: 0, 'display_account_level': lambda *a: 0,
'inf_type': lambda *a:'bcom', 'inf_type': lambda *a:'bcom',
'company_id': lambda *a: 1,
'company_id': lambda self,cr,uid,c: self.pool.get('res.company')._company_default_get(cr, uid, 'account.invoice', context=c),
'fiscalyear': lambda self, cr, uid, c: self.pool.get('account.fiscalyear').find(cr, uid), 'fiscalyear': lambda self, cr, uid, c: self.pool.get('account.fiscalyear').find(cr, uid),
'display_account': lambda *a:'con_movimiento', 'display_account': lambda *a:'con_movimiento',
} }

Loading…
Cancel
Save