Survey comment field text validation is wrong

Bug #1283017 reported by Prakash Pandey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

If a comment field has a length based validation, it works if a string value exists for the field. however, if the comment field is left blank, the validation does not work.

This is because of the poor logic in create method [1].

The condition in [1] already kicks in condition [2] is never evaluated.

[1] https://github.com/akretion/openerp-addons/blob/318685c447ab88144e00d903cc5e72448708cd96/survey/wizard/survey_answer.py#L676
[2] https://github.com/akretion/openerp-addons/blob/318685c447ab88144e00d903cc5e72448708cd96/survey/wizard/survey_answer.py#L681

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.