Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

M2O search popup should display a kanban instead of a list in mobile #30747

wants to merge 18 commits into
base: master


None yet
3 participants

@C3POdoo C3POdoo added the RD label Feb 1, 2019

@robodoo robodoo removed the CI 🤖 label Feb 1, 2019

@msh-odoo msh-odoo force-pushed the odoo-dev:master-mobile-m2o-panel-msh branch 3 times, most recently Feb 20, 2019

@robodoo robodoo added CI 🤖 and removed CI 🤖 labels Feb 21, 2019

@msh-odoo msh-odoo force-pushed the odoo-dev:master-mobile-m2o-panel-msh branch Feb 27, 2019

msh-odoo and others added some commits Feb 1, 2019

[IMP]web: Add support to open kanban view in SelectCreateDialog, many…
…2one widget in mobile will open kanban view instead of listview when records needs to be selected

TODO: check manymany_tags widget, as it uses many2one widget ultimately for autocomplete and if kanban view is open from many2many_tags, how can we select multiple records as there will be no record selector
[IMP]web: add tests for many2one mobile and many2many_tags mobile env…
…ironment, test it opens kanban view inside SelectCreateDialog

Co-authored-by: Dharmang Soni <>
[IMP]web: move mobile specific relation_fields code in community, as …
…we does not have native mobile related code for relational_fields(m2o and m2m) and also move tests, previously we were using native dialog for m2o and m2m search create popup which is not the case, we open kanban view in case of mobile now
[FIX]sales_team: do not open dashboard kanban view in mobile, add pri…
…ority to kanban view other than dashboard kanban and define view_ids in action for dashboard where define dashboard kanban as a view_ids
[IMP]web: Override _search method to directly open search create popu…
…p when m2o or m2m_tags widget is clicked, this method will call name_search with domain and context and directly open search create popup

also added static no content help, as we do not have here and in mobile it is possible that Search Create Popup is opened directly but it does not have data so in that case show no content help forcefully

@msh-odoo msh-odoo force-pushed the odoo-dev:master-mobile-m2o-panel-msh branch to 6189626 Mar 4, 2019

msh-odoo added some commits Mar 4, 2019

[FIX]sales_team: Issue due to previous commit, change file loading or…
…der as view is referenced in another file
[IMP]added new kanban views specifically for m2o, m2o in mobile will …
…now open kanban so we can display not clickable or dashboard kanban there, so added new kanban for m2o
[IMP]stock: put action and menu item below stock.picking.type kanban …
…view as we refer kanban view in action

@msh-odoo msh-odoo force-pushed the odoo-dev:master-mobile-m2o-panel-msh branch to 1b589aa Mar 12, 2019

@robodoo robodoo added the CI 🤖 label Mar 12, 2019

msh-odoo added some commits Mar 14, 2019

[IMP]hr_gamification: add additional class based condition in openRec…
…ord method of KanbanRecord instead of only checking model, it will make sure that this specific action called only from specific kanban view
[REM]mass_mailing: Remove unused file mass_mailing.js, we already hav…
…e kanban view specifically for mail.mass_mailing.compaign using js_class='mass_mailing_campaign_kanban', include done in mass_mailing.js is useless and we don't have any other kanban view where that code can be used so removing file mass_mailing.js
[IMP]project: make _openRecord condtion more strong, instead of check…
…ing just model name also check specific action called from specific kanban view i.e. o_kanban_dashboard
[IMP]mrp,stock: add class on kanban view of mrp.workorder and stock.p…
…icking.type so later it can be used in javascript while overridding _opeRecord method of KanbanRecord

@robodoo robodoo added CI 🤖 and removed CI 🤖 labels Mar 14, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.