[FIX] partner_autocomplete: ignored field is sent to view
The field ignored is set in javascript on company object to filter the ones we want to show. As it is not an odoo field, it triggers a traceback when the trigger_up 'field_changed' is called. OPW-1921568 closes odoo/odoo#30153
This commit is contained in:
@@ -101,7 +101,7 @@ return {
|
||||
*/
|
||||
getCreateData: function (company) {
|
||||
var removeUselessFields = function (company) {
|
||||
var fields = 'label,description,domain,logo,legal_name'.split(',');
|
||||
var fields = 'label,description,domain,logo,legal_name,ignored'.split(',');
|
||||
fields.forEach(function (field) {
|
||||
delete company[field];
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user