Skip to content

[FIX] mass_object view, remove fields of parent models from selection - #844

Closed
jbchouinard wants to merge 2 commits into
OCA:10.0from
savoirfairelinux:10.0_fix_mass_edit
Closed

[FIX] mass_object view, remove fields of parent models from selection#844
jbchouinard wants to merge 2 commits into
OCA:10.0from
savoirfairelinux:10.0_fix_mass_edit

Conversation

@jbchouinard

Copy link
Copy Markdown

See comments on PR #820.

I am undoing erroneous commits, and fixing the mass object onchange.

As per comments on #820 it seems model_list/model_ids is no longer needed.

After testing on my end I do not see the need for it. The original intent seem to be add the fields from a parent model onto a mass_object record, but ir.model already has inherited fields on it.

For example: the field user_id is already listed on the res.users model, inherited from res.partner. There is no need to see the fields from res.partner when creating a mass_object for res.users.

@JayVora-SerpentCS does this seem right to you?

@zeroheure

Copy link
Copy Markdown

On 10/community, I have a bug with product.template and taxes_id or supplier_taxes_id fields
TypeError: views is undefined
[url]/web.assets_backend.js:2140
Followed by traceback. But the traceback is not allways the same.

@yajo

yajo commented Jun 5, 2017

Copy link
Copy Markdown
Member

JS tracebacks is useless if not in assets debugging mode.

@zeroheure

zeroheure commented Jun 5, 2017

Copy link
Copy Markdown

Thanks. Here's the traceback (debug=assets):

TypeError: views is undefined
[url]/web/static/src/js/views/form_view.js:397
Traceback:
FormView<._build_onchange_specs/</<@http://odoo.chez-les-enfants.fr/web/static/src/js/views/form_view.js:397:1
_.forEach@http://odoo.chez-les-enfants.fr/web/static/lib/underscore/underscore.js:150:9
FormView<._build_onchange_specs/<@http://odoo.chez-les-enfants.fr/web/static/src/js/views/form_view.js:395:17
_.forEach@http://odoo.chez-les-enfants.fr/web/static/lib/underscore/underscore.js:150:9
FormView<._build_onchange_specs@http://odoo.chez-les-enfants.fr/web/static/src/js/views/form_view.js:382:9
FormView<.do_onchange@http://odoo.chez-les-enfants.fr/web/static/src/js/views/form_view.js:432:13
FormView<.load_record/</<@http://odoo.chez-les-enfants.fr/web/static/src/js/views/form_view.js:322:21
jQuery.Callbacks/fire@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3119:38
jQuery.Callbacks/self.fireWith@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3231:49
.when/updateFunc/<@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3360:49
jQuery.Callbacks/fire@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3119:38
jQuery.Callbacks/self.fireWith@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3231:49
.Deferred/</deferred[tuple[0]]@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3321:33
FieldX2Many<.load_views/def<@http://odoo.chez-les-enfants.fr/web/static/src/js/views/form_relational_widgets.js:785:13
jQuery.Callbacks/fire@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3119:38
jQuery.Callbacks/self.fireWith@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3231:49
.Deferred/</deferred[tuple[0]]@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3321:33
FieldX2Many<.load_views/<@http://odoo.chez-les-enfants.fr/web/static/src/js/views/form_relational_widgets.js:805:13
Events<.trigger@http://odoo.chez-les-enfants.fr/web/static/src/js/framework/mixins.js:222:17
EventDispatcherMixin<.trigger@http://odoo.chez-les-enfants.fr/web/static/src/js/framework/mixins.js:283:9
ViewManager<.switch_mode/</view.loaded<@http://odoo.chez-les-enfants.fr/web/static/src/js/view_manager.js:201:21
jQuery.Callbacks/fire@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3119:38
jQuery.Callbacks/self.add@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3165:49
ViewManager<.switch_mode/<@http://odoo.chez-les-enfants.fr/web/static/src/js/view_manager.js:198:31
.Deferred/promise.then/</</<@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3276:86
jQuery.Callbacks/fire@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3119:38
jQuery.Callbacks/self.add@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3165:49
.Deferred/promise.then/</<@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3275:57
.each@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:383:49
.Deferred/promise.then/<@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3272:49
.Deferred@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3332:25
.Deferred/promise.then@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3271:48
ViewManager<.switch_mode@http://odoo.chez-les-enfants.fr/web/static/src/js/view_manager.js:182:16
X2ManyViewManager<.switch_mode@http://odoo.chez-les-enfants.fr/web/static/src/js/views/form_relational_widgets.js:914:20
OdooClass.extend/</prototype[name]</<@http://odoo.chez-les-enfants.fr/web/static/src/js/framework/class.js:89:35
ViewManager<.start@http://odoo.chez-les-enfants.fr/web/static/src/js/view_manager.js:117:32
OdooClass.extend/</prototype[name]</<@http://odoo.chez-les-enfants.fr/web/static/src/js/framework/class.js:89:35
X2ManyViewManager<.start@http://odoo.chez-les-enfants.fr/web/static/src/js/views/form_relational_widgets.js:910:16
OdooClass.extend/</prototype[name]</<@http://odoo.chez-les-enfants.fr/web/static/src/js/framework/class.js:89:35
Widget<.attachTo/<@http://odoo.chez-les-enfants.fr/web/static/src/js/framework/widget.js:175:20
.Deferred/promise.then/</</<@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3276:86
jQuery.Callbacks/fire@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3119:38
jQuery.Callbacks/self.fireWith@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3231:49
.when/updateFunc/<@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3360:49
jQuery.Callbacks/fire@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3119:38
jQuery.Callbacks/self.fireWith@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3231:49
.Deferred/promise.then/</</<@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3283:73
jQuery.Callbacks/fire@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3119:38
jQuery.Callbacks/self.fireWith@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3231:49
.Deferred/promise.then/</</<@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3283:73
jQuery.Callbacks/fire@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3119:38
jQuery.Callbacks/self.fireWith@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3231:49
.Deferred/</deferred[tuple[0]]@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3321:33
jQuery.Callbacks/fire@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3119:38
jQuery.Callbacks/self.fireWith@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3231:49
.Deferred/promise.then/</</<@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3283:73
jQuery.Callbacks/fire@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3119:38
jQuery.Callbacks/self.fireWith@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3231:49
.Deferred/promise.then/</</<@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3283:73
jQuery.Callbacks/fire@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3119:38
jQuery.Callbacks/self.fireWith@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:3231:49
done@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:9275:33
.send/callback@http://odoo.chez-les-enfants.fr/web/static/lib/jquery/jquery.js:9685:57

@yajo yajo added this to the 10.0 milestone Jun 5, 2017
@github-actions

Copy link
Copy Markdown

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions Bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jul 17, 2022
@github-actions github-actions Bot closed this Aug 21, 2022
SiesslPhillip pushed a commit to grueneerde/OCA-server-tools that referenced this pull request Nov 20, 2024
…spt-bump-patch

Syncing from upstream OCA/server-tools (12.0-ocabot-merge-pr-2101-by-dreispt-bump-patch)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs fixing needs review stale PR/Issue without recent activity, it'll be soon closed automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants