what is the phyton error ' TypeError: 'bool' object is unsubscriptable'
am a beginner in eprnerp and I currently working on the implementation of the payroll module Moroccan openerp 6.0 on Windows XP, so everything was a wonder until the last step where I wanted to calculate the pay slip every time I Click on the button I get this error message:
Traceback (most recent call last):
File "netsvc.pyo", line 489, in dispatch
File "service\
File "osv\osv.pyo", line 122, in wrapper
File "osv\osv.pyo", line 176, in execute
File "osv\osv.pyo", line 167, in execute_cr
File "C:\Program Files\OpenERP 6.0\Server\
File "osv\orm.pyo", line 181, in <lambda>
File "C:\Program Files\OpenERP 6.0\Server\
File "C:\Program Files\OpenERP 6.0\Server\
TypeError: 'bool' object is unsubscriptable
And here is the line of code concern is line 518 :
def get_igr(self, cr, uid, ids, montant, cotisations):
res = {}
taux=0
somme=0
pool = pooler.
id_bulletin = ids[0]
bulletin = pool.get(
personnes = bulletin.
logement = bulletin.
params = self.pool.
ids_params = params.search(cr, uid, [])
fraispro = montant * dictionnaire[
if fraispro < dictionnaire[
else :
objet_ir = self.pool.
id_ir = objet_ir.search(cr, uid, [])
liste = objet_ir.read(cr, uid, id_ir, ['debuttranche', 'fintranche', 'taux', 'somme'])
for tranche in liste:
taux = (tranche['taux'])
somme = (tranche[
ir_brute = (salaire_
if((ir_brute - (personnes * dictionnaire[
ir_net = 0
else:
ir_net = ir_brute - (personnes * dictionnaire[
res = {'salaire_
518------ 'credit_
}
return res
So I apologize for the inconvenience and I hope you can help me thank you in advance
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- OpenERP Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Serpent Consulting Services
- Solved:
- Last query:
- Last reply: