Commit Graph

317 Commits

Author SHA1 Message Date
Fabien Meghazi 2ea7dae91f [FIX] Fix default field focus that was broken
bzr revid: fme@openerp.com-20120112151527-peee706mfv7nciye
2012-01-12 16:15:27 +01:00
Fabien Meghazi 301ccd20b2 [REM] Commented out a debug logging
bzr revid: fme@openerp.com-20120112144547-s4vziyeazy1at8ag
2012-01-12 15:45:47 +01:00
Fabien Meghazi 5be2f1123f [REM] Commented out some debug output
bzr revid: fme@openerp.com-20120112124456-yvegpuajefyg26uo
2012-01-12 13:44:56 +01:00
niv-openerp a03bd12a44 [fix] problem in o2m
bzr revid: nicolas.vanhoren@openerp.com-20120111143712-fln5ddnfobp84ieb
2012-01-11 15:37:12 +01:00
Fabien Meghazi 5f3e6fdd9e [IMP] Disable right click on m2o button
bzr revid: fme@openerp.com-20120111140222-cirxtmubrma6qj9b
2012-01-11 15:02:22 +01:00
Fabien Meghazi 946b33ad9c [FIX] Binary Field shouldn't load all base64 data when the object data is loaded
lp bug: https://launchpad.net/bugs/914272 fixed

bzr revid: fme@openerp.com-20120111124911-73ee4heyy8xqq4zp
2012-01-11 13:49:11 +01:00
Fabien Meghazi 37f923fb0f [REM] Refactored Dataset. Removed callbacks for #read_ids, #read_slice, #read_index and #default_get
Added options argument where needed

bzr revid: fme@openerp.com-20120111111539-wr0afax30sf66rmk
2012-01-11 12:15:39 +01:00
Fabien Meghazi fca894050a [IMP] Refactored web.Dialog (again)
bzr revid: fme@openerp.com-20120111110648-thxst5ot0te60fj5
2012-01-11 12:06:48 +01:00
Fabien Meghazi fe4526b2d8 [MERGE] Merge last trunk
bzr revid: fme@openerp.com-20120111085337-u65f0pyr1n60mkaw
2012-01-11 09:53:37 +01:00
Vidhin Mehta (OpenERP) 377b9a81ed [IMP]use CompoundContext class.
bzr revid: vme@tinyerp.com-20120111052401-5vvf6aggna5nfykl
2012-01-11 10:54:01 +05:30
niv-openerp b83ad9acd3 [fix] forgot to rename all references to reload_lock
bzr revid: nicolas.vanhoren@openerp.com-20120110165802-kmt07aa82g14mluq
2012-01-10 17:58:02 +01:00
Fabien Meghazi e9ca86dd63 [IMP] More dataset refactoring
bzr revid: fme@openerp.com-20120110165451-pvchn668y0b1p645
2012-01-10 17:54:51 +01:00
Xavier Morel 8fd07cc0b8 [ADD] handling of binary fields in list views
lp bug: https://launchpad.net/bugs/914267 fixed

bzr revid: xmo@openerp.com-20120110155106-p3g85wbh5g4wlbdi
2012-01-10 16:51:06 +01:00
Fabien Meghazi 0a08bf26e7 [IMP] Improved m2o dialogs
bzr revid: fme@openerp.com-20120110152110-5n4og71gyucnhwte
2012-01-10 16:21:10 +01:00
niv-openerp d764f06196 [fix] added exception in o2m when we query the value and the view is not yet intialized
bzr revid: nicolas.vanhoren@openerp.com-20120110145829-kscrhk88d5t1nkk0
2012-01-10 15:58:29 +01:00
Fabien Meghazi 6b242208c2 [FIX] Fixed m2o dialogs
bzr revid: fme@openerp.com-20120110145129-7akak1kszzpobf37
2012-01-10 15:51:29 +01:00
niv-openerp 7f945253c7 [imp] cosmetic improvements in form view
bzr revid: nicolas.vanhoren@openerp.com-20120110144709-wamuhmj682pa2a07
2012-01-10 15:47:09 +01:00
niv-openerp 756d989a87 [imp] refactored form view some more to use Mutex
bzr revid: nicolas.vanhoren@openerp.com-20120110144420-0bxkguwxgvt2oi9a
2012-01-10 15:44:20 +01:00
niv-openerp 3dbb95ec2b [imp] refactored a part of form view to use Mutex
bzr revid: nicolas.vanhoren@openerp.com-20120110144113-1x67nu7u9q51g7ny
2012-01-10 15:41:13 +01:00
Xavier Morel ee9a9558c0 [IMP] add doc to Binary.saveas, and rename a field for clarity
bzr revid: xmo@openerp.com-20120110143518-ircd8x1feyf5rquf
2012-01-10 15:35:18 +01:00
niv-openerp 53b3529b12 [imp] removed default_get handling in xml views
bzr revid: nicolas.vanhoren@openerp.com-20120110142055-1ocyfzt24f4uuvaf
2012-01-10 15:20:55 +01:00
Fabien Meghazi f784f63e49 [IMP] Improved form view do_show()
bzr revid: fme@openerp.com-20120110125413-aowjb8bzse6mo92s
2012-01-10 13:54:13 +01:00
Fabien Meghazi 83607b97b0 [IMP] Only show formview when record is loaded in order to avoid flickering of fields
bzr revid: fme@openerp.com-20120109104540-uetxrrlvga9z9259
2012-01-09 11:45:40 +01:00
Christophe Simonis 76f85b16e4 [FIX] correct default date on calendar popups
bzr revid: chs@openerp.com-20120104170118-jmvxk4vqaqgad858
2012-01-04 18:01:18 +01:00
niv-openerp 2f1dace76a [fix] rollback 1873 & 1871 to correct bugs related to login page & dialogs
bzr revid: nicolas.vanhoren@openerp.com-20120104155329-tfk6gt4mjhme82od
2012-01-04 16:53:29 +01:00
niv-openerp dcef579eae [imp] modified web client to be a div instead of a body
bzr revid: nicolas.vanhoren@openerp.com-20120104113555-yiudv22gxr4s3k6k
2012-01-04 12:35:55 +01:00
niv-openerp d9671ec190 [fix] problem with on changes and o2m
bzr revid: nicolas.vanhoren@openerp.com-20120103171713-qxviaorw7e8ccyvc
2012-01-03 18:17:13 +01:00
niv-openerp 3ef09f301a [fix] small code previously forgotten
bzr revid: nicolas.vanhoren@openerp.com-20120103163442-s6p8fythay0bgtch
2012-01-03 17:34:42 +01:00
niv-openerp b6d6389bcc [fix] some style correction
bzr revid: nicolas.vanhoren@openerp.com-20120103161831-q3lvgheqdcobmlx0
2012-01-03 17:18:31 +01:00
Antony Lesuisse 1c74a545c0 [FIX] o2m m2m readonly dont diplay edit icon
bzr revid: al@openerp.com-20111228162952-9qdrx2lrzkluu9mg
2011-12-28 17:29:52 +01:00
Antony Lesuisse eb6ae984ba [IMP] m2m move button into list view header
bzr revid: al@openerp.com-20111228155333-0leh7vlklordcc31
2011-12-28 16:53:33 +01:00
Antony Lesuisse 3ca07993d7 [FIX] template rename
bzr revid: al@openerp.com-20111227214011-lbg947ggehoh1alr
2011-12-27 22:40:11 +01:00
Vidhin Mehta (OpenERP) 1e23dca365 [IMP]remove error.
bzr revid: vme@tinyerp.com-20111227115734-i7fkcsn7yhohbh90
2011-12-27 17:27:34 +05:30
Vidhin Mehta (OpenERP) 07005c983a [FIX]extend two context.
lp bug: https://launchpad.net/bugs/906236 fixed

bzr revid: vme@tinyerp.com-20111227114409-czwzx077hvjvjnee
2011-12-27 17:14:09 +05:30
niv-openerp 3314eb1062 [fix] problem in o2m readonly, showed too much buttons
lp bug: https://launchpad.net/bugs/907736 fixed

bzr revid: nicolas.vanhoren@openerp.com-20111223111211-bxly88xx2fz0owz8
2011-12-23 12:12:11 +01:00
niv-openerp 13e46ecebf [fix] problem with list view o2m: not refreshing the view after we clicked
bzr revid: nicolas.vanhoren@openerp.com-20111222132447-rkcieookqbnanyas
2011-12-22 14:24:47 +01:00
Fabien Meghazi 00344dace3 [MERGE] Merge with last trunk
bzr revid: fme@openerp.com-20111222095248-yt36zxntdyt5kce5
2011-12-22 10:52:48 +01:00
Fabien Meghazi f442c65759 [IMP] Prefix dialog titles with translated action
bzr revid: fme@openerp.com-20111222094012-ldm50y0kbeb63o1l
2011-12-22 10:40:12 +01:00
Fabien Meghazi 0354c117a1 [ADD] Add resize_textarea option to FirmView and use it for Edit View debug feature
Note: resize_textarea can also be an integer forcing maximal height

bzr revid: fme@openerp.com-20111221171602-rbpe76f7s7hwmapz
2011-12-21 18:16:02 +01:00
Fabien Meghazi 5727e989c5 [ADD] Add 'Create' button in o2m's formviews
bzr revid: fme@openerp.com-20111221164335-vy7zh9w3b7l1b0pa
2011-12-21 17:43:35 +01:00
Xavier Morel 67770b12ec [IMP] form tooltip formatting, provide more horizontal room for insanely huge tooltips
lp bug: https://launchpad.net/bugs/907187 fixed

bzr revid: xmo@openerp.com-20111221155607-lamxvq4z8hm0yl5t
2011-12-21 16:56:07 +01:00
niv-openerp a4dc7ace66 [fix] problem with buttons in form o2m
bzr revid: nicolas.vanhoren@openerp.com-20111221153229-tzue6bev8fb83gzl
2011-12-21 16:32:29 +01:00
Xavier Morel ac0b72d363 [ADD] HTML widget in form and page views
bzr revid: xmo@openerp.com-20111221152527-q0vmxj7gsux8kn9y
2011-12-21 16:25:27 +01:00
niv-openerp 4a8efef6a4 [imp] added possibility to disable quick create
bzr revid: nicolas.vanhoren@openerp.com-20111221150831-739fj3srfb8gjpar
2011-12-21 16:08:31 +01:00
Fabien Meghazi a2e2399772 [FIX] Fixed form dialog for o2m
bzr revid: fme@openerp.com-20111221145606-8z88qdmv1ep0nefl
2011-12-21 15:56:06 +01:00
Xavier Morel bab4a5316c [FIX] fields rendering: go through WidgetFrame to ensure everything is set up as it should instead of trying to replicate what it does
bzr revid: xmo@openerp.com-20111221105440-dpns1tr00ky12gz5
2011-12-21 11:54:40 +01:00
Xavier Morel c49498e0a4 [FIX] attributes handling on HTML nodes
bzr revid: xmo@openerp.com-20111221103750-wemo7rszah8vvvxa
2011-12-21 11:37:50 +01:00
Fabien Meghazi 92f1526a2f [IMP] Improved pager
bzr revid: fme@openerp.com-20111220173740-qynxxqksvyr4zntr
2011-12-20 18:37:40 +01:00
Fabien Meghazi e3dc8cb303 [FIX] Deferred not resolve by default
lp bug: https://launchpad.net/bugs/906806 fixed

bzr revid: fme@openerp.com-20111220155643-j6sv2tdet1us7cy7
2011-12-20 16:56:43 +01:00
niv-openerp 69bf67948a [fix] problem with the name_get in a m2o
lp bug: https://launchpad.net/bugs/896909 fixed

bzr revid: nicolas.vanhoren@openerp.com-20111220154145-wcxb87dfpseitgvj
2011-12-20 16:41:45 +01:00
Fabien Meghazi a26f4b1de7 [FIX] Fix sidebar attachment deletion
bzr revid: fme@openerp.com-20111220104327-1zif2g20625mtcdc
2011-12-20 11:43:27 +01:00
niv-openerp 5058bfd6bf [fix] problem in o2m, querying the value of a o2m during a on_change in that o2m
bzr revid: nicolas.vanhoren@openerp.com-20111219173055-i5sn1u79v4zstho4
2011-12-19 18:30:55 +01:00
Fabien Meghazi 7f9b7b1f66 [FIX] FormView#do_show() uses has_been_loaded deferred
bzr revid: fme@openerp.com-20111219163051-2gt4p3a5voplysog
2011-12-19 17:30:51 +01:00
niv-openerp f295808ff1 [imp] replaced many usages of setTimeout by async_when
bzr revid: nicolas.vanhoren@openerp.com-20111219162805-0ibqw4hn23imkfuj
2011-12-19 17:28:05 +01:00
niv-openerp 10bd9f1aee [imp] implemented synchronized mode to be used in the o2m
bzr revid: nicolas.vanhoren@openerp.com-20111219161441-1117wec0btanqii2
2011-12-19 17:14:41 +01:00
Xavier Morel 7af1a8662c [ADD] basic structure for HTML form widget
lp bug: https://launchpad.net/bugs/902156 fixed

bzr revid: xmo@openerp.com-20111219095924-eqr227mth2li8egr
2011-12-19 10:59:24 +01:00
Xavier Morel a8286263ff [ADD] lazy translation function, to correctly translate strings in contexts evaluated before the translation db has been loaded
bzr revid: xmo@openerp.com-20111216130000-56qd717d79529opy
2011-12-16 14:00:00 +01:00
Xavier Morel 265d9e1ef4 [ADD] translatable name to views
lp bug: https://launchpad.net/bugs/904989 fixed

bzr revid: xmo@openerp.com-20111216112054-xys9q3ap6dcatppr
2011-12-16 12:20:54 +01:00
Christophe Simonis af2e4fe2b5 [FIX] url handling of record id
bzr revid: chs@openerp.com-20111215142939-j2lz1irzoj10fy3v
2011-12-15 15:29:39 +01:00
Fabien Meghazi 63296c0142 [IMP] Improved binary file display
bzr revid: fme@openerp.com-20111215120415-2wwzywko3qyg0bvj
2011-12-15 13:04:15 +01:00
Xavier Morel b5a797ba0a [IMP] mark a bunch of dialog stuff as exportable (mostly buttons, but also dialog titles)
bzr revid: xmo@openerp.com-20111215104031-h2xjkf0zwf8x8zjk
2011-12-15 11:40:31 +01:00
Xavier Morel fd96386cd4 [FIX] translatability of addition button label in listview
* Original label is evaluated very early (before translation database is loaded), defer its execution
* Replacement 'add' label in m2m list views wasn't marked for translation
* Also mark a few strings in form view

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

bzr revid: xmo@openerp.com-20111215100652-8iujastl6bvi7feu
2011-12-15 11:06:52 +01:00
Antony Lesuisse 4b67791920 [FIX] working urls
bzr revid: al@openerp.com-20111214180442-51bny4wq12qs4okk
2011-12-14 19:04:42 +01:00
Antony Lesuisse 7991d820f5 [MERGE] trunk
bzr revid: al@openerp.com-20111214172434-u2i6im40bviq229q
2011-12-14 18:24:34 +01:00
Antony Lesuisse d1ddc1ee78 [IMP] factorise View.do_show do_hide
bzr revid: al@openerp.com-20111214171811-c4bka4nwylp3wn21
2011-12-14 18:18:11 +01:00
Christophe Simonis 99ffc0507f [WIP] better url management, only views are allowed to call this.do_push_state
bzr revid: chs@openerp.com-20111214160958-fb0dtboz2smakb6p
2011-12-14 17:09:58 +01:00
Fabien Meghazi 5eb0b2a10f [IMP] o2m: do not display action buttons in views used by one2many
bzr revid: fme@openerp.com-20111214155441-8o7ba0yf35f9hy7m
2011-12-14 16:54:41 +01:00
Fabien Meghazi ce67d2252c [FIX] Make Field boolean readonly inherit of form's view boolean Field
bzr revid: fme@openerp.com-20111214132306-l33r94vm16lpxeko
2011-12-14 14:23:06 +01:00
Xavier Morel 5e451bd3a3 [IMP] remove deferred stack
bzr revid: xmo@openerp.com-20111213153343-oj2ph04h3ac32pm6
2011-12-13 16:33:43 +01:00
Xavier Morel 987a9cc07b [IMP] merge title of o2m list view into list header
bzr revid: xmo@openerp.com-20111213144955-o4menzpyak0c1ugx
2011-12-13 15:49:55 +01:00
Antony Lesuisse e59a573534 [REM] revert arrow navigation in editable list (postponed)
bzr revid: al@openerp.com-20111211153010-mrydgknz0tg2tbqq
2011-12-11 16:30:10 +01:00
Xavier Morel 9268a1c680 [ADD] editable list navigation via KEY_UP and KEY_DOWN
Both start by saving the row being edited, then (if the save is successful) going to the record above or below them

bzr revid: xmo@openerp.com-20111208141923-1p1rm4mu0hikls6m
2011-12-08 15:19:23 +01:00
Xavier Morel 54f3f38957 [IMP] ListView#save_row internals by taking advantage of Deferred#pipe
and FormView#do_save returning a deferred of course.

bzr revid: xmo@openerp.com-20111208123846-dp3cgbsljl41q82k
2011-12-08 13:38:46 +01:00
Xavier Morel 37dee90724 [IMP] API for ListView#save_row (better use returned deferred)
* Deferred now provides creation flag and which record was edited on resolution
* Moved logic for editing next record (or creating a new one) to keyboard event handler
* Extracted keyboard even handler to prepare for new edition keys

bzr revid: xmo@openerp.com-20111208122946-221yve4amubqo1be
2011-12-08 13:29:46 +01:00
Fabien Meghazi 0ce87ab853 [FIX] Fix problem with reference field. Field is not reset when set_value(false)
bzr revid: fme@openerp.com-20111208122851-gd2v732m4105x3bh
2011-12-08 13:28:51 +01:00
Xavier Morel eacd5ff1f2 [FIX] have readonly m2m fields open their form popup in readonly mode
bzr revid: xmo@openerp.com-20111208104742-k8rapp1l49wyayst
2011-12-08 11:47:42 +01:00
Xavier Morel 22fb18bcbf [ADD] special case: creating a record from list goes back to page view, not list view
bzr revid: xmo@openerp.com-20111207153101-kzpolvmvmxnjl20m
2011-12-07 16:31:01 +01:00
Fabien Meghazi ec123c78db [FIX] Disable tooltip when clicking on action buttons
bzr revid: fme@openerp.com-20111207113559-128r2hkg4x62in2i
2011-12-07 12:35:59 +01:00
Xavier Morel f3c671cbd8 [ADD] push/pop API for views
lp bug: https://launchpad.net/bugs/900225 fixed

bzr revid: xmo@openerp.com-20111207104503-gcy0gbin36s4uudh
2011-12-07 11:45:03 +01:00
Xavier Morel d313f16078 [FIX] use page view in readonly o2ms, readonly form popups
bzr revid: xmo@openerp.com-20111207094242-0m1hdadhy4xaqkm0
2011-12-07 10:42:42 +01:00
Xavier Morel edcbc3830e [MERGE] trunk
bzr revid: xmo@openerp.com-20111207091404-1zdmhmsnvhveq7c4
2011-12-07 10:14:04 +01:00
Xavier Morel b7aa4e4712 [FIX] ensure o2m widget has saved its sub-views before it returns its value to its parent form view
This is currently highly faillible as saving a form or a list view can
be an async operation, yet the FormView's `Widget#get_value` call can
only be synchronous. As a result, there are cases where saving a form
view can fail to get the correct value for its o2m fields.

Ideally, `Widget#get_value` should be an async API (or a sync/async API)

bzr revid: xmo@openerp.com-20111205153813-nvgy5413oyf5zsla
2011-12-05 16:38:13 +01:00
Fabien Meghazi 986ff55624 [FIX] Fix form and page buttons
bzr revid: fme@openerp.com-20111205135037-g9y8obto3y8rsuki
2011-12-05 14:50:37 +01:00
Fabien Meghazi 8aadbe5288 [IMP] Disable dirty form check until page view and buttons refactoring is done
bzr revid: fme@openerp.com-20111205094838-lddbf0tv64e8rxn1
2011-12-05 10:48:38 +01:00
Fabien Meghazi 06e9cc9fb5 [FIX] On new record, FormView shall apply on_changes to fields using same order as defined in view
bzr revid: fme@openerp.com-20111201155029-bi4zjgvwkt7gjapy
2011-12-01 16:50:29 +01:00
Roberto López López (OpenERP) 04ce8687aa [ADD] cleanup JS calls/functions for the new page view
bzr revid: rlo@openerp.com-20111201122233-6bh2zilnixvz7m2r
2011-12-01 13:22:33 +01:00
Xavier Morel e1350e9847 [IMP] client looks
bzr revid: xmo@openerp.com-20111201085457-pqejp3mgopwf7yxy
2011-12-01 09:54:57 +01:00
Xavier Morel 70b2384215 [FIX] default alignment of paragraphs
lp bug: https://launchpad.net/bugs/898193 fixed

bzr revid: xmo@openerp.com-20111130155534-xzgq8tkg0zhyjceg
2011-11-30 16:55:34 +01:00
Antoine Huvelle 502ce13561 resolving kanban.css
bzr revid: ahu@openerp.com-20111130102450-j82xrxm70j8x3msf
2011-11-30 11:24:50 +01:00
Roberto López López (OpenERP) 5b0783dd7a [ADD] page view split out from form view
bzr revid: rlo@openerp.com-20111129143911-ac4ptj0nh2nsbdqo
2011-11-29 15:39:11 +01:00
Fabien Meghazi 32d3c44e3e [FIX] Do not alter field.selection in SelectionField. Clone the array instead.
Revert #1550: debug information should not be altered.

bzr revid: fme@openerp.com-20111124134627-mx3k2s22naht07go
2011-11-24 14:46:27 +01:00
Antoine Huvelle 637398a538 [ADD] adding a new css class 'oe_form_readonly' to the uneditable form to ease css selection and changes
bzr revid: ahu@openerp.com-20111124130253-zcmgizy9vmhk90yb
2011-11-24 14:02:53 +01:00
Xavier Morel 6ae439dab0 [FIX] default search values set on m2o field contexts were not propagated to the m2o search dialog
on selecting 'search more' in autocompletion or 'search' from icon menu

bzr revid: xmo@openerp.com-20111124104305-kfr33cqcq5uuvzye
2011-11-24 11:43:05 +01:00
Tejas (OpenERP) c671dfb9f1 search_defaults move inside anonymous function and declare variable with var
bzr revid: tta@openerp.com-20111124055521-1il265hvfdvfihx1
2011-11-24 11:25:21 +05:30
Vaibhav (OpenERP) 2aea3b278a [FIX] Dialog popup title in m2m,o2m,m2m.
lp bug: https://launchpad.net/bugs/890205 fixed

bzr revid: vda@tinyerp.com-20111123122635-d2xmyfshday933o3
2011-11-23 17:56:35 +05:30
Tejas (OpenERP) 11a967f38e [tta] use rpc to get right context, search with right contexts
bzr revid: tta@openerp.com-20111123103000-vf6zrj1lzgrm6gbo
2011-11-23 16:00:00 +05:30
Xavier Morel 5251a34a62 [FIX] extend size of statusbar widget by 1 if we're removing the label from it
lp bug: https://launchpad.net/bugs/889224 fixed

bzr revid: xmo@openerp.com-20111122143554-p1j1v8b1652djc58
2011-11-22 15:35:54 +01:00
Xavier Morel 998fd0dab6 [ADD] support for literal numbers in on_change specs
bzr revid: xmo@openerp.com-20111122124353-kfibt1cdvmy2pzp4
2011-11-22 13:43:53 +01:00
Tejas (OpenERP) 733941e979 Fix search m2o field, default added
bzr revid: tta@openerp.com-20111122104145-ce1z32beh8ef6346
2011-11-22 16:11:45 +05:30
Xavier Morel a738f4390f [FIX] do not reload sidebar during form's on_loaded if it's already setup
There's no information provided to FormView#on_loaded which should
change the sidebar and reloading it apparently breaks
stuff... severely.

So just don't touch it if it's already setup (assigned to instance
variable), everything works right (as the readonly mode fundamentally
only changes the way the form is displayed, it should not alter its
internal behaviors)

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

bzr revid: xmo@openerp.com-20111122102609-faldd3xkc0xhzvu2
2011-11-22 11:26:09 +01:00