[6.1, trunk] One2many widget does not honour being 'required'
Bug #1013636 reported by
Stefan Rijnhart (Opener)
This bug affects 15 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo GTK Client (MOVED TO GITHUB) |
Confirmed
|
Wishlist
|
OpenERP sa GTK client R&D | ||
Odoo Web (MOVED TO GITHUB) |
Confirmed
|
Wishlist
|
OpenERP R&D Web Team | ||
Therp Backports (Deprecated) |
Fix Released
|
Undecided
|
Stefan Rijnhart (Opener) | ||
Web-6.1 |
Fix Committed
|
Undecided
|
Stefan Rijnhart (Opener) |
Bug Description
Hi,
both 6.1 and trunk do not signal correctly when a required one2many field is being left empty.
An example from the base module is to go to Settings -> Technical -> Database Structure -> Models. Create a new model, but do not enter any fields. The model can be saved without an error message, even though Fields is a required field on ir.model.
I would expect the client to raise an error 'The following fields are invalid: Fields'
cheers,
Stefan.
Related branches
lp://staging/~therp-nl/openerp-web/6.1-lp1013636-o2m_check_being_required
Ready for review
for merging
into
lp://staging/openerp-web/6.1
- Stefan Rijnhart (Opener) (community): Needs Resubmitting
- OpenERP Core Team: Pending requested
-
Diff: 14 lines (+4/-0)1 file modifiedaddons/web/static/src/js/view_form.js (+4/-0)
lp://staging/~therp-nl/openerp-web/7.0-lp1013636-x2m_honour_required_attribute
Ready for review
for merging
into
lp://staging/openerp-web/7.0
- Alexandre Fayolle - camptocamp (community): Approve (code review, test)
- OpenERP Core Team: Pending requested
-
Diff: 66 lines (+18/-2)3 files modifiedaddons/web/static/src/css/base.css (+6/-0)
addons/web/static/src/css/base.sass (+9/-0)
addons/web/static/src/js/view_form.js (+3/-2)
On hold
for merging
into
lp://staging/openerp-web
- Xavier (Open ERP) (community): Approve
- Stefan Rijnhart (Opener) (community): Needs Resubmitting
-
Diff: 15529 lines (+9458/-259) (has conflicts)339 files modifiedaddons/web/__openerp__.py (+1/-0)
addons/web/controllers/main.py (+12/-0)
addons/web/i18n/ar.po (+5/-0)
addons/web/i18n/bg.po (+5/-0)
addons/web/i18n/bn.po (+5/-0)
addons/web/i18n/bs.po (+5/-0)
addons/web/i18n/ca.po (+5/-0)
addons/web/i18n/cs.po (+5/-0)
addons/web/i18n/da.po (+5/-0)
addons/web/i18n/de.po (+35/-0)
addons/web/i18n/en_AU.po (+5/-0)
addons/web/i18n/en_GB.po (+5/-0)
addons/web/i18n/es.po (+5/-0)
addons/web/i18n/es_CL.po (+5/-0)
addons/web/i18n/es_CR.po (+5/-0)
addons/web/i18n/es_DO.po (+5/-0)
addons/web/i18n/es_EC.po (+5/-0)
addons/web/i18n/es_MX.po (+5/-0)
addons/web/i18n/et.po (+5/-0)
addons/web/i18n/eu.po (+5/-0)
addons/web/i18n/fa.po (+5/-0)
addons/web/i18n/fi.po (+5/-0)
addons/web/i18n/fr.po (+5/-0)
addons/web/i18n/fr_CA.po (+5/-0)
addons/web/i18n/gl.po (+5/-0)
addons/web/i18n/gu.po (+5/-0)
addons/web/i18n/hi.po (+5/-0)
addons/web/i18n/hr.po (+5/-0)
addons/web/i18n/hu.po (+5/-0)
addons/web/i18n/id.po (+5/-0)
addons/web/i18n/it.po (+5/-0)
addons/web/i18n/ja.po (+5/-0)
addons/web/i18n/ka.po (+5/-0)
addons/web/i18n/ko.po (+2657/-0)
addons/web/i18n/lo.po (+5/-0)
addons/web/i18n/lt.po (+5/-0)
addons/web/i18n/lv.po (+2647/-0)
addons/web/i18n/mk.po (+14/-1)
addons/web/i18n/mn.po (+5/-0)
addons/web/i18n/nb.po (+241/-186)
addons/web/i18n/nl.po (+5/-0)
addons/web/i18n/nl_BE.po (+5/-0)
addons/web/i18n/pl.po (+5/-0)
addons/web/i18n/pt.po (+5/-0)
addons/web/i18n/pt_BR.po (+5/-0)
addons/web/i18n/ro.po (+5/-0)
addons/web/i18n/ru.po (+5/-0)
addons/web/i18n/sk.po (+5/-0)
addons/web/i18n/sl.po (+5/-0)
addons/web/i18n/sq.po (+5/-0)
addons/web/i18n/sr@latin.po (+5/-0)
addons/web/i18n/sv.po (+5/-0)
addons/web/i18n/th.po (+5/-0)
addons/web/i18n/tr.po (+5/-0)
addons/web/i18n/uk.po (+5/-0)
addons/web/i18n/zh_CN.po (+5/-0)
addons/web/i18n/zh_TW.po (+5/-0)
addons/web/static/src/css/base.css (+11/-0)
addons/web/static/src/css/base.sass (+13/-0)
addons/web/static/src/fixbind.js (+28/-0)
addons/web/static/src/js/chrome.js (+5/-10)
addons/web/static/src/js/search.js (+5/-3)
addons/web/static/src/js/testing.js (+2/-2)
addons/web/static/src/js/view_form.js (+62/-21)
addons/web/static/src/js/view_list.js (+1/-1)
addons/web/static/src/js/views.js (+1/-1)
addons/web/static/src/xml/base.xml (+3/-2)
addons/web/static/test/search.js (+22/-2)
addons/web_api/i18n/cs.po (+20/-0)
addons/web_api/i18n/es_CR.po (+5/-0)
addons/web_calendar/i18n/ar.po (+5/-0)
addons/web_calendar/i18n/bg.po (+5/-0)
addons/web_calendar/i18n/bn.po (+5/-0)
addons/web_calendar/i18n/bs.po (+5/-0)
addons/web_calendar/i18n/ca.po (+5/-0)
addons/web_calendar/i18n/cs.po (+5/-0)
addons/web_calendar/i18n/da.po (+5/-0)
addons/web_calendar/i18n/de.po (+5/-0)
addons/web_calendar/i18n/en_AU.po (+5/-0)
addons/web_calendar/i18n/en_GB.po (+5/-0)
addons/web_calendar/i18n/es.po (+5/-0)
addons/web_calendar/i18n/es_CL.po (+5/-0)
addons/web_calendar/i18n/es_CR.po (+5/-0)
addons/web_calendar/i18n/es_DO.po (+5/-0)
addons/web_calendar/i18n/es_EC.po (+5/-0)
addons/web_calendar/i18n/es_MX.po (+5/-0)
addons/web_calendar/i18n/et.po (+5/-0)
addons/web_calendar/i18n/eu.po (+5/-0)
addons/web_calendar/i18n/fa.po (+5/-0)
addons/web_calendar/i18n/fi.po (+5/-0)
addons/web_calendar/i18n/fr.po (+5/-0)
addons/web_calendar/i18n/fr_CA.po (+5/-0)
addons/web_calendar/i18n/gl.po (+5/-0)
addons/web_calendar/i18n/gu.po (+5/-0)
addons/web_calendar/i18n/hr.po (+5/-0)
addons/web_calendar/i18n/hu.po (+5/-0)
addons/web_calendar/i18n/id.po (+5/-0)
addons/web_calendar/i18n/it.po (+5/-0)
addons/web_calendar/i18n/ja.po (+5/-0)
addons/web_calendar/i18n/ka.po (+5/-0)
addons/web_calendar/i18n/ko.po (+225/-0)
addons/web_calendar/i18n/lt.po (+5/-0)
addons/web_calendar/i18n/mk.po (+5/-0)
addons/web_calendar/i18n/mn.po (+5/-0)
addons/web_calendar/i18n/nb.po (+58/-27)
addons/web_calendar/i18n/nl.po (+5/-0)
addons/web_calendar/i18n/nl_BE.po (+5/-0)
addons/web_calendar/i18n/pl.po (+5/-0)
addons/web_calendar/i18n/pt.po (+5/-0)
addons/web_calendar/i18n/pt_BR.po (+5/-0)
addons/web_calendar/i18n/ro.po (+5/-0)
addons/web_calendar/i18n/ru.po (+5/-0)
addons/web_calendar/i18n/sk.po (+5/-0)
addons/web_calendar/i18n/sl.po (+5/-0)
addons/web_calendar/i18n/sq.po (+5/-0)
addons/web_calendar/i18n/sr@latin.po (+5/-0)
addons/web_calendar/i18n/sv.po (+5/-0)
addons/web_calendar/i18n/tr.po (+5/-0)
addons/web_calendar/i18n/uk.po (+5/-0)
addons/web_calendar/i18n/zh_CN.po (+5/-0)
addons/web_calendar/static/src/js/calendar.js (+1/-1)
addons/web_diagram/i18n/ar.po (+5/-0)
addons/web_diagram/i18n/bg.po (+5/-0)
addons/web_diagram/i18n/bn.po (+5/-0)
addons/web_diagram/i18n/bs.po (+5/-0)
addons/web_diagram/i18n/ca.po (+5/-0)
addons/web_diagram/i18n/cs.po (+5/-0)
addons/web_diagram/i18n/da.po (+5/-0)
addons/web_diagram/i18n/de.po (+5/-0)
addons/web_diagram/i18n/en_AU.po (+5/-0)
addons/web_diagram/i18n/en_GB.po (+5/-0)
addons/web_diagram/i18n/es.po (+5/-0)
addons/web_diagram/i18n/es_CL.po (+5/-0)
addons/web_diagram/i18n/es_CR.po (+5/-0)
addons/web_diagram/i18n/es_DO.po (+5/-0)
addons/web_diagram/i18n/es_EC.po (+5/-0)
addons/web_diagram/i18n/es_MX.po (+5/-0)
addons/web_diagram/i18n/et.po (+5/-0)
addons/web_diagram/i18n/fa.po (+5/-0)
addons/web_diagram/i18n/fi.po (+5/-0)
addons/web_diagram/i18n/fr.po (+5/-0)
addons/web_diagram/i18n/gl.po (+5/-0)
addons/web_diagram/i18n/gu.po (+5/-0)
addons/web_diagram/i18n/hr.po (+5/-0)
addons/web_diagram/i18n/hu.po (+5/-0)
addons/web_diagram/i18n/id.po (+5/-0)
addons/web_diagram/i18n/it.po (+5/-0)
addons/web_diagram/i18n/ja.po (+5/-0)
addons/web_diagram/i18n/ka.po (+5/-0)
addons/web_diagram/i18n/ko.po (+106/-0)
addons/web_diagram/i18n/lt.po (+5/-0)
addons/web_diagram/i18n/mk.po (+106/-0)
addons/web_diagram/i18n/mn.po (+5/-0)
addons/web_diagram/i18n/nb.po (+99/-0)
addons/web_diagram/i18n/nl.po (+5/-0)
addons/web_diagram/i18n/nl_BE.po (+5/-0)
addons/web_diagram/i18n/pl.po (+5/-0)
addons/web_diagram/i18n/pt.po (+5/-0)
addons/web_diagram/i18n/pt_BR.po (+5/-0)
addons/web_diagram/i18n/ro.po (+5/-0)
addons/web_diagram/i18n/ru.po (+5/-0)
addons/web_diagram/i18n/sl.po (+5/-0)
addons/web_diagram/i18n/sq.po (+5/-0)
addons/web_diagram/i18n/sr@latin.po (+5/-0)
addons/web_diagram/i18n/sv.po (+5/-0)
addons/web_diagram/i18n/tr.po (+5/-0)
addons/web_diagram/i18n/zh_CN.po (+5/-0)
addons/web_gantt/i18n/ar.po (+5/-0)
addons/web_gantt/i18n/bg.po (+5/-0)
addons/web_gantt/i18n/bn.po (+5/-0)
addons/web_gantt/i18n/bs.po (+5/-0)
addons/web_gantt/i18n/ca.po (+5/-0)
addons/web_gantt/i18n/cs.po (+5/-0)
addons/web_gantt/i18n/da.po (+5/-0)
addons/web_gantt/i18n/de.po (+5/-0)
addons/web_gantt/i18n/en_AU.po (+5/-0)
addons/web_gantt/i18n/en_GB.po (+5/-0)
addons/web_gantt/i18n/es.po (+5/-0)
addons/web_gantt/i18n/es_CL.po (+5/-0)
addons/web_gantt/i18n/es_CR.po (+5/-0)
addons/web_gantt/i18n/es_DO.po (+5/-0)
addons/web_gantt/i18n/es_EC.po (+5/-0)
addons/web_gantt/i18n/es_MX.po (+5/-0)
addons/web_gantt/i18n/et.po (+5/-0)
addons/web_gantt/i18n/fa.po (+5/-0)
addons/web_gantt/i18n/fi.po (+5/-0)
addons/web_gantt/i18n/fr.po (+5/-0)
addons/web_gantt/i18n/gl.po (+5/-0)
addons/web_gantt/i18n/gu.po (+5/-0)
addons/web_gantt/i18n/hr.po (+5/-0)
addons/web_gantt/i18n/hu.po (+5/-0)
addons/web_gantt/i18n/it.po (+5/-0)
addons/web_gantt/i18n/ja.po (+5/-0)
addons/web_gantt/i18n/ka.po (+5/-0)
addons/web_gantt/i18n/ko.po (+32/-0)
addons/web_gantt/i18n/lo.po (+5/-0)
addons/web_gantt/i18n/lt.po (+5/-0)
addons/web_gantt/i18n/mk.po (+5/-0)
addons/web_gantt/i18n/mn.po (+5/-0)
addons/web_gantt/i18n/nb.po (+5/-0)
addons/web_gantt/i18n/nl.po (+5/-0)
addons/web_gantt/i18n/nl_BE.po (+5/-0)
addons/web_gantt/i18n/pl.po (+5/-0)
addons/web_gantt/i18n/pt.po (+5/-0)
addons/web_gantt/i18n/pt_BR.po (+5/-0)
addons/web_gantt/i18n/ro.po (+5/-0)
addons/web_gantt/i18n/ru.po (+5/-0)
addons/web_gantt/i18n/sl.po (+5/-0)
addons/web_gantt/i18n/sq.po (+5/-0)
addons/web_gantt/i18n/sr@latin.po (+5/-0)
addons/web_gantt/i18n/sv.po (+5/-0)
addons/web_gantt/i18n/tr.po (+5/-0)
addons/web_gantt/i18n/zh_CN.po (+5/-0)
addons/web_graph/i18n/ar.po (+5/-0)
addons/web_graph/i18n/bg.po (+5/-0)
addons/web_graph/i18n/bn.po (+5/-0)
addons/web_graph/i18n/bs.po (+5/-0)
addons/web_graph/i18n/ca.po (+5/-0)
addons/web_graph/i18n/cs.po (+5/-0)
addons/web_graph/i18n/da.po (+5/-0)
addons/web_graph/i18n/de.po (+5/-0)
addons/web_graph/i18n/en_AU.po (+5/-0)
addons/web_graph/i18n/en_GB.po (+5/-0)
addons/web_graph/i18n/es.po (+5/-0)
addons/web_graph/i18n/es_CL.po (+5/-0)
addons/web_graph/i18n/es_CR.po (+5/-0)
addons/web_graph/i18n/es_DO.po (+5/-0)
addons/web_graph/i18n/es_EC.po (+5/-0)
addons/web_graph/i18n/es_MX.po (+5/-0)
addons/web_graph/i18n/et.po (+5/-0)
addons/web_graph/i18n/fa.po (+5/-0)
addons/web_graph/i18n/fi.po (+5/-0)
addons/web_graph/i18n/fr.po (+5/-0)
addons/web_graph/i18n/gl.po (+5/-0)
addons/web_graph/i18n/gu.po (+5/-0)
addons/web_graph/i18n/hr.po (+5/-0)
addons/web_graph/i18n/hu.po (+5/-0)
addons/web_graph/i18n/it.po (+5/-0)
addons/web_graph/i18n/ja.po (+5/-0)
addons/web_graph/i18n/ka.po (+5/-0)
addons/web_graph/i18n/ko.po (+137/-0)
addons/web_graph/i18n/lt.po (+5/-0)
addons/web_graph/i18n/mk.po (+5/-0)
addons/web_graph/i18n/mn.po (+5/-0)
addons/web_graph/i18n/nb.po (+137/-0)
addons/web_graph/i18n/nl.po (+5/-0)
addons/web_graph/i18n/nl_BE.po (+5/-0)
addons/web_graph/i18n/pl.po (+5/-0)
addons/web_graph/i18n/pt.po (+5/-0)
addons/web_graph/i18n/pt_BR.po (+5/-0)
addons/web_graph/i18n/ro.po (+5/-0)
addons/web_graph/i18n/ru.po (+5/-0)
addons/web_graph/i18n/sl.po (+5/-0)
addons/web_graph/i18n/sq.po (+5/-0)
addons/web_graph/i18n/sr@latin.po (+5/-0)
addons/web_graph/i18n/sv.po (+5/-0)
addons/web_graph/i18n/tr.po (+5/-0)
addons/web_graph/i18n/zh_CN.po (+5/-0)
addons/web_hello/i18n/ar.po (+5/-0)
addons/web_hello/i18n/cs.po (+20/-0)
addons/web_hello/i18n/es_CR.po (+5/-0)
addons/web_hello/i18n/fr.po (+5/-0)
addons/web_hello/i18n/pt_BR.po (+5/-0)
addons/web_kanban/i18n/ar.po (+5/-0)
addons/web_kanban/i18n/bg.po (+5/-0)
addons/web_kanban/i18n/bn.po (+5/-0)
addons/web_kanban/i18n/bs.po (+5/-0)
addons/web_kanban/i18n/ca.po (+5/-0)
addons/web_kanban/i18n/cs.po (+5/-0)
addons/web_kanban/i18n/da.po (+5/-0)
addons/web_kanban/i18n/de.po (+5/-0)
addons/web_kanban/i18n/en_AU.po (+5/-0)
addons/web_kanban/i18n/en_GB.po (+5/-0)
addons/web_kanban/i18n/es.po (+5/-0)
addons/web_kanban/i18n/es_CL.po (+5/-0)
addons/web_kanban/i18n/es_CR.po (+5/-0)
addons/web_kanban/i18n/es_DO.po (+5/-0)
addons/web_kanban/i18n/es_EC.po (+5/-0)
addons/web_kanban/i18n/es_MX.po (+5/-0)
addons/web_kanban/i18n/et.po (+5/-0)
addons/web_kanban/i18n/fa.po (+5/-0)
addons/web_kanban/i18n/fi.po (+5/-0)
addons/web_kanban/i18n/fr.po (+11/-0)
addons/web_kanban/i18n/gl.po (+5/-0)
addons/web_kanban/i18n/gu.po (+5/-0)
addons/web_kanban/i18n/hr.po (+5/-0)
addons/web_kanban/i18n/hu.po (+5/-0)
addons/web_kanban/i18n/it.po (+5/-0)
addons/web_kanban/i18n/ja.po (+5/-0)
addons/web_kanban/i18n/ka.po (+5/-0)
addons/web_kanban/i18n/ko.po (+165/-0)
addons/web_kanban/i18n/lt.po (+5/-0)
addons/web_kanban/i18n/mk.po (+161/-0)
addons/web_kanban/i18n/mn.po (+5/-0)
addons/web_kanban/i18n/nb.po (+162/-0)
addons/web_kanban/i18n/nl.po (+5/-0)
addons/web_kanban/i18n/nl_BE.po (+5/-0)
addons/web_kanban/i18n/pl.po (+5/-0)
addons/web_kanban/i18n/pt.po (+5/-0)
addons/web_kanban/i18n/pt_BR.po (+5/-0)
addons/web_kanban/i18n/ro.po (+5/-0)
addons/web_kanban/i18n/ru.po (+5/-0)
addons/web_kanban/i18n/sl.po (+5/-0)
addons/web_kanban/i18n/sr@latin.po (+5/-0)
addons/web_kanban/i18n/sv.po (+5/-0)
addons/web_kanban/i18n/tr.po (+5/-0)
addons/web_kanban/i18n/zh_CN.po (+5/-0)
addons/web_tests/i18n/cs.po (+20/-0)
addons/web_tests/i18n/es_CR.po (+5/-0)
addons/web_tests/i18n/fr_CA.po (+5/-0)
addons/web_view_editor/i18n/ar.po (+5/-0)
addons/web_view_editor/i18n/cs.po (+184/-0)
addons/web_view_editor/i18n/de.po (+5/-0)
addons/web_view_editor/i18n/en_AU.po (+5/-0)
addons/web_view_editor/i18n/es.po (+5/-0)
addons/web_view_editor/i18n/es_DO.po (+5/-0)
addons/web_view_editor/i18n/es_EC.po (+5/-0)
addons/web_view_editor/i18n/es_MX.po (+5/-0)
addons/web_view_editor/i18n/et.po (+5/-0)
addons/web_view_editor/i18n/fa.po (+5/-0)
addons/web_view_editor/i18n/fr.po (+5/-0)
addons/web_view_editor/i18n/hr.po (+5/-0)
addons/web_view_editor/i18n/hu.po (+5/-0)
addons/web_view_editor/i18n/it.po (+5/-0)
addons/web_view_editor/i18n/ko.po (+184/-0)
addons/web_view_editor/i18n/mk.po (+184/-0)
addons/web_view_editor/i18n/mn.po (+5/-0)
addons/web_view_editor/i18n/nb.po (+184/-0)
addons/web_view_editor/i18n/nl.po (+5/-0)
addons/web_view_editor/i18n/nl_BE.po (+5/-0)
addons/web_view_editor/i18n/pl.po (+5/-0)
addons/web_view_editor/i18n/pt.po (+5/-0)
addons/web_view_editor/i18n/pt_BR.po (+5/-0)
addons/web_view_editor/i18n/ro.po (+5/-0)
addons/web_view_editor/i18n/ru.po (+5/-0)
addons/web_view_editor/i18n/sl.po (+5/-0)
addons/web_view_editor/i18n/tr.po (+5/-0)
addons/web_view_editor/i18n/zh_CN.po (+5/-0)
addons/web_view_editor/static/src/js/view_editor.js (+2/-2)
lp://staging/~openerp-dev/openerp-web/trunk-opw-1013636-port-psa
Rejected
for merging
into
lp://staging/openerp-web
- Olivier Dony (Odoo): Disapprove
-
Diff: 13 lines (+3/-0)1 file modifiedaddons/web/static/src/js/view_form.js (+3/-0)
lp://staging/~therp-nl/therp-backports/web-6.1-lp1013636-one2many_fields_honour_requiredness
- Holger Brunn (Therp): Approve
-
Diff: 13 lines (+3/-0)1 file modifiedaddons/web/static/src/js/view_form.js (+3/-0)
lp://staging/~therp-nl/ocb-web/7.0-lp1013636-x2m_honour_required_attribute
- Holger Brunn (Therp): Approve (code review, no test)
-
Diff: 66 lines (+18/-2)3 files modifiedaddons/web/static/src/css/base.css (+6/-0)
addons/web/static/src/css/base.sass (+9/-0)
addons/web/static/src/js/view_form.js (+3/-2)
Changed in openerp-web: | |
status: | New → Confirmed |
importance: | Undecided → Low |
assignee: | nobody → OpenERP R&D Web Team (openerp-dev-web) |
Changed in openobject-client: | |
status: | New → Confirmed |
importance: | Undecided → Low |
assignee: | nobody → OpenERP sa GTK client R&D (openerp-dev-gtk) |
Changed in openobject-client: | |
importance: | Low → Wishlist |
Changed in therp-backports: | |
status: | New → Confirmed |
Changed in therp-backports: | |
assignee: | nobody → Stefan Rijnhart (Therp) (stefan-therp) |
status: | Confirmed → Fix Committed |
Changed in therp-backports: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hello. By design, the o2m (and the m2m) does not handle the required flag. We do not consider that a 'required' x2m relationship would have lot of sense.