Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Why this else condition is excecuted every time after if condition is true ,any syntax error or logical error ,please need help. [Closed]
The Question has been closed for reason: too subjective and argumentativeby
scheme_ids = self.pool.get('scheme.type.info').search(cr, uid, , context=context)
for cal_val in calc_vacation:
if total_days in range(cal_val['interval'],cal_val['interval1']):
raise osv.except_osv(_('Hi!'), _('Please Add a category'))
##Error is resolved------------------------ Thanks...............
Sorry, I did not undestand, before.
calc_vacation is a set of dictionary.
So cal_val in calc_vacation every iteration is a dictionary.
1st loop fails because total_days's value 134 is not in range cal_val['interval']'s value 1 and cal_val['interval1']'s val 's value 100
Antonio M. Vigliotti
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 6/18/14, 3:42 AM|
|Seen: 731 times|
|Last updated: 3/16/15, 8:10 AM|