Avoid false values in calendar views
'false' is displayed when no value is assigne to a field declared in a calend. Impacted versions: 8.0, master Steps to reproduce: Create a fresh database, create a new customer and set his fiscal position. Create a quotation, select the customer Current behavior: File "/Users/keje/src/odoo/addons/account/partner.py", line 107, in get_fiscal_position return part.property_account_position.id NameError: global name 'part' is not defined Expected behavior: No error
This commit is contained in:
parent
ebc5cd5bef
commit
76f6203888
|
@ -522,7 +522,10 @@ openerp.web_calendar = function(instance) {
|
|||
}
|
||||
else {
|
||||
var res_text= [];
|
||||
_.each(temp_ret, function(val,key) { res_text.push(val); });
|
||||
_.each(temp_ret, function(val,key) {
|
||||
if( typeof(val) == 'boolean' && val == false ) { }
|
||||
else { res_text.push(val) };
|
||||
});
|
||||
the_title = res_text.join(', ');
|
||||
}
|
||||
the_title = _.escape(the_title);
|
||||
|
|
Loading…
Reference in New Issue