Commit Graph

1392 Commits

Author SHA1 Message Date
dle@openerp.com c3537fa288 [FIX]web: radio widget name get using context
bzr revid: dle@openerp.com-20130516131416-d02avqqigh4w0tw7
2013-05-16 15:14:16 +02:00
Olivier Dony ba5710962e [MERGE] Forward-port of 7.0 bugfixes, up to rev. 3912
revision-id: nicolas.vanhoren@openerp.com-20130430094843-9m1629m517vjtm1o

bzr revid: xmo@openerp.com-20130424102025-w33zyopm96r7q09p
bzr revid: odo@openerp.com-20130430103337-i9wuj8zf3h41h1ay
2013-04-30 12:33:37 +02:00
Christophe Matthieu 027bf19a7a [IMP] ir_ui_menu: trunk to 7.0 dynamic counters
bzr revid: chm@openerp.com-20130417133438-1g8h8hezbn1vtjj1
2013-04-17 15:34:38 +02:00
Christophe Matthieu ed46400a55 [IMP] view_form: widget radio: clean code
bzr revid: chm@openerp.com-20130415103041-8xogdacjx43v4cgk
2013-04-15 12:30:41 +02:00
Fabien Meghazi 428fdca40a [FIX] FormRenderingEngine: allow class propagation to group cells
bzr revid: fme@openerp.com-20130411163238-qy377cdnn9enax34
2013-04-11 18:32:38 +02:00
Christophe Matthieu 5623719b1c [IMP] view_form: radio remove console log
bzr revid: chm@openerp.com-20130411093433-jmsrcxjw0xb6vp1m
2013-04-11 11:34:33 +02:00
Christophe Matthieu 9319356537 [IMP] view_form: radio css readonly
bzr revid: chm@openerp.com-20130411093319-q25a0fbybsjzwvfe
2013-04-11 11:33:19 +02:00
Christophe Matthieu 1d12a480c3 [MERGE] from trunk
bzr revid: chm@openerp.com-20130411092306-wypa8h3kh1v5q8qn
2013-04-11 11:23:06 +02:00
Christophe Matthieu 67452d290e [IMP] view_form: radio button: change style for required field
bzr revid: chm@openerp.com-20130411090654-ujf7fio6lnsppv90
2013-04-11 11:06:54 +02:00
Christophe Matthieu f2beb97168 [IMP] view_form: radio button, replace image by input type radio
bzr revid: chm@openerp.com-20130410160917-4meevyiff65adspx
2013-04-10 18:09:17 +02:00
Christophe Matthieu 60be4d49c5 [IMP] view_form: field radio, display only the selected text in read only mode
bzr revid: chm@openerp.com-20130410135643-szjzolgpbr73kpxh
2013-04-10 15:56:43 +02:00
Fabien Meghazi 905d13671b [FIX] Do not autofocus Notebook pages by default
bzr revid: fme@openerp.com-20130409122852-f4ikugl83otx8423
2013-04-09 14:28:52 +02:00
Christophe Matthieu c756cb72b6 [FIX] view_form: radio button
bzr revid: chm@openerp.com-20130408171702-n7u1ingd33ke8bn4
2013-04-08 19:17:02 +02:00
Fabien Meghazi 8a20760fc8 [FIX] DataSet#size() problem + FormView#on_button_delete() shall pop breadcrumb on empty dataset
bzr revid: fme@openerp.com-20130404101459-m9q90e32qwf068lw
2013-04-04 12:14:59 +02:00
Fabien Meghazi cea7a7a0ab [FIX] m2o does not use @alive()
lp bug: https://launchpad.net/bugs/1160192 fixed

bzr revid: fme@openerp.com-20130402133952-xz2qaoygg83ks3tx
2013-04-02 15:39:52 +02:00
niv-openerp b4c2805012 [IMP] removed now useless code
bzr revid: nicolas.vanhoren@openerp.com-20130402090405-coachhx5x2bayakr
2013-04-02 11:04:05 +02:00
Christophe Matthieu dbd331ee6d [IMP] view_form: radio button for many2one read name_get
bzr revid: chm@openerp.com-20130329141038-uobzji7e8fxkq4rr
2013-03-29 15:10:38 +01:00
Christophe Matthieu 90f6175053 [IMP] view_form: radio button for many2one: check context
bzr revid: chm@openerp.com-20130329114449-93yghqpenjb1sd22
2013-03-29 12:44:49 +01:00
Christophe Matthieu e3d1e4fb44 [IMP] view_form: radio button for many2one
bzr revid: chm@openerp.com-20130329113827-me6d3ho6jrp525f0
2013-03-29 12:38:27 +01:00
Fabien Meghazi c94c81c8ac [FIX] Remove dirty flag on save
lp bug: https://launchpad.net/bugs/1099380 fixed

bzr revid: fme@openerp.com-20130328210718-85lemijdjc79hhea
2013-03-28 22:07:18 +01:00
Christophe Matthieu 7e895d90cb [MERGE] from trunk
bzr revid: chm@openerp.com-20130326090427-g78bigwi30rzbthd
2013-03-26 10:04:27 +01:00
Christophe Matthieu 3ecc55c583 [IMP] view_form: radio options
bzr revid: chm@openerp.com-20130321163100-j92sqrut1m4d0zgi
2013-03-21 17:31:00 +01:00
Christophe Matthieu 7d5ea8896e [IMP] view_form radio button with div inline-block
bzr revid: chm@openerp.com-20130321150405-fz61r51opx2m9kmt
2013-03-21 16:04:05 +01:00
niv-openerp 185b405b96 [MERGE] 7.0 branch
bzr revid: nicolas.vanhoren@openerp.com-20130319102859-rj9r9ngqtf5ep3a3
2013-03-19 11:28:59 +01:00
niv-openerp c55de6996f [FIX] small problem with m2o, does not uses context when opening them in read-only mode
bzr revid: nicolas.vanhoren@openerp.com-20130319102719-0gdwvmix4d3x8th5
2013-03-19 11:27:19 +01:00
Olivier Dony 8e06ab16d0 [MERGE] Bugfixes from the 7.0 branch, up to rev. 3845
rev.3845 = launchpad_translations_on_behalf_of_openerp-20130315064417-68iimts1xgj8bn5z

bzr revid: odo@openerp.com-20130315090112-n4h5wpxk2sjhwvrd
2013-03-15 10:01:12 +01:00
Antony Lesuisse 4f6e61a05e [MERGE] base.sass infobox and url text attribute
bzr revid: al@openerp.com-20130314222838-xjf3p76o1n1u2y93
2013-03-14 23:28:38 +01:00
niv-openerp 3d53abcc8e [FIX] corrected small problem that made appear "false" in empty field text
bzr revid: nicolas.vanhoren@openerp.com-20130314135141-lnifcsa405qzjp0j
2013-03-14 14:51:41 +01:00
Quentin (OpenERP) d4181a6625 [MERGE] view_form.js: fixing the statusbar. if there is no domain defined, the statusbar mustn't try to concat with ('|',('id','=',...)) because it is creating a syntactically invalid domain
bzr revid: qdp-launchpad@openerp.com-20130314103233-icm1b664xrisy66k
2013-03-14 11:32:33 +01:00
Fabien Meghazi fe758caa05 [ADD] Added @text attribute to fields@widget=url
bzr revid: fme@openerp.com-20130313154345-6y8s7k5s0vyc3cc8
2013-03-13 16:43:45 +01:00
Cedric Snauwaert ca7aa3ef8d [FIX]view_form : fix invalid domain in widget statusbar when using m2o fields
bzr revid: csn@openerp.com-20130313142554-7k6xgpeq20s8sqru
2013-03-13 15:25:54 +01:00
Thibault Delavallée 408144864b [MERGE] Sync with 7.0
bzr revid: tde@openerp.com-20130313101756-r0b41kr2c4sxzfm8
2013-03-13 11:17:56 +01:00
niv-openerp e35e199064 [FIX] small error, probably due to refactoring, that disabled feature of form buttons.
The feature was to disable button automatically buttons in unsaved o2m to avoid errors.

lp bug: https://launchpad.net/bugs/1095255 fixed

bzr revid: nicolas.vanhoren@openerp.com-20130312170515-qt74ceqm50uscupu
2013-03-12 18:05:15 +01:00
Xavier Morel 18eb55643e [FIX] hide form autofocus trying to focus destroyed fields under the rug
lp bug: https://launchpad.net/bugs/1153437 fixed

bzr revid: xmo@openerp.com-20130312132144-o5enjfemuk5zxilz
2013-03-12 14:21:44 +01:00
Xavier Morel ee46eb8015 [FIX] blurring propagation on m2m tag fields
lp bug: https://launchpad.net/bugs/1153492 fixed

bzr revid: xmo@openerp.com-20130312131412-mtcl932of1466n2j
2013-03-12 14:14:12 +01:00
Xavier Morel 3890039735 [FIX] correctly check for o2m listview validity
if an edition has been canceled, don't check the form's content as it
does not matter.

lp bug: https://launchpad.net/bugs/1103507 fixed

bzr revid: xmo@openerp.com-20130312112244-zmt34jydpzge6yof
2013-03-12 12:22:44 +01:00
Xavier Morel 2dff34a18f [FIX] array extra comma
bzr revid: xmo@openerp.com-20130312110520-aym6nspf6mlcvsqe
2013-03-12 12:05:20 +01:00
Thibault Delavallée 459fce0150 [CLEAN] Removed unnecessary quotes. As Teal'c said: Indeed.
bzr revid: tde@openerp.com-20130311140838-g9pvncskvuibz1wm
2013-03-11 15:08:38 +01:00
Thibault Delavallée 16a89075e0 [FIX] FieldTextHtml: fixed quote error in parameter of cleditor, leading to font-family not taken into account.
bzr revid: tde@openerp.com-20130308131452-8mmmpc6was3lfse8
2013-03-08 14:14:52 +01:00
niv-openerp 3f40cad548 [FIX] problem when o2m and readonly fields, now readonly fields are saved in buffered dataset too
bzr revid: nicolas.vanhoren@openerp.com-20130308104336-u2gslznv24h8n88l
2013-03-08 11:43:36 +01:00
niv-openerp 2328040c3a added readonly fields to buffered dataset cache
bzr revid: nicolas.vanhoren@openerp.com-20130308104050-uqt5qi2n9dmcd2hb
2013-03-08 11:40:50 +01:00
niv-openerp 527e17033c [FIX] typo in previous commit
bzr revid: nicolas.vanhoren@openerp.com-20130306162436-nuitgum452gz6bq9
2013-03-06 17:24:36 +01:00
niv-openerp 13ec67e478 [FIX] visual problem in some cases in field texts, solved by switching field texts to simple html output instead of textarea when in read-only mode
lp bug: https://launchpad.net/bugs/1149640 fixed

bzr revid: nicolas.vanhoren@openerp.com-20130306151306-1qwv04bvw50z81z9
2013-03-06 16:13:06 +01:00
Xavier Morel 32d90f6014 [FIX] cleanup m2o field events when reloading m2o fields
The big issue was the hooking on the closest ui-dialog's scroll event:
if an m2o in a dialog (e.g. wizard-type situations) toggled state from
editable to readonly (workflow action of some sort), the event hook
would remain, and call .$input.autocomplete("widget") which would blow
up because the autocompletion widget hasn't been re-initialized.

Take care to fully unbind all events during the reload process to
avoid this issue (and potentially other such as duplicate bindings and
the like).

lp bug: https://launchpad.net/bugs/1146321 fixed

bzr revid: xmo@openerp.com-20130306145527-sssv7ocfvqxgv896
2013-03-06 15:55:27 +01:00
Xavier Morel 8e9fed0574 [IMP] use @draggable instead of hooking on dragstart to disable image and fake-link dragging
Improves upon xmo@openerp.com-20130218104529-i0i8700v2mwxje4b

bzr revid: xmo@openerp.com-20130305100400-8cqkcnd527yn1hbj
2013-03-05 11:04:00 +01:00
Xavier Morel b438ce5249 [FIX] access rights handling on m2m widgets
m2m lists inherit (from listview/view) the handling of access rights
attributes (e.g. @create, @delete) in which the access rights to the
related model are those checked for the view. This is generally true,
but *not* for m2ms: even if a user has no creation rights to the
related model, he can still create a *relation* between the current
and related models.

The m2m access rights are really governed by the *current* (source)
model, in which case the user won't get to see an "editable" view of
the m2m in the first place.

So just override is_action_enabled to disable it in m2ms.

bzr revid: xmo@openerp.com-20130305091956-zn6qtuo4tl0vh3bs
2013-03-05 10:19:56 +01:00
Xavier ALT b07c1a8461 [FIX] statusbar widget: fix no value display for 'selection' field
* really call initial get_selection() after binding 'change:selection'
 overwise no value are assigned to internal selection list - resulting
 to an empty statusbar when field type is 'selection'

bzr revid: xal@openerp.com-20130304230253-0e959r9sintwsd98
2013-03-05 00:02:53 +01:00
Christophe Matthieu cad21aff66 [IMP] web_form: radio help
bzr revid: chm@openerp.com-20130304090427-p342lf7a2evmuqvn
2013-03-04 10:04:27 +01:00
Christophe Matthieu 39206d8013 [IMP] web_form: radio layout
bzr revid: chm@openerp.com-20130304085819-6q0vx9hc89mm0s0i
2013-03-04 09:58:19 +01:00
Christophe Matthieu e4b805fd7b [IMP] wev_form: radio style width
bzr revid: chm@openerp.com-20130304082254-wyv571d2c7y9y9gj
2013-03-04 09:22:54 +01:00