Commit Graph

2005 Commits

Author SHA1 Message Date
Xavier Morel 7516028068 [IMP] allow overloading a listview's List and Groups types
bzr revid: xmo@openerp.com-20120614123056-cu3q34m4ysjxzqtt
2012-06-14 14:30:56 +02:00
Xavier Morel 05238cd948 [FIX] don't require an extended class to have a method yet to allow it to be overloaded
bzr revid: xmo@openerp.com-20120614123024-ngby1srdwojv5rmb
2012-06-14 14:30:24 +02:00
Xavier Morel 83eef22856 [FIX] don't break the handling of record index 0 in editable list views: index 0 means something different than index = null
bzr revid: xmo@openerp.com-20120614085009-xuo1ifu2vnlcic72
2012-06-14 10:50:09 +02:00
Xavier Morel 29584df420 [IMP] hide [disk drive] button in o2m editable lists
bzr revid: xmo@openerp.com-20120614084420-0ky3d41kk2r8zlp8
2012-06-14 10:44:20 +02:00
Xavier Morel 49f6ab9853 [FIX] do not break dataset index (at the wrong moment) when clicking on [Create] row
dataset.index was previously set to ``null`` in handler of [Create]
button (to fullfill contract with form view that dataset.index should
be ``null`` to indicate the creation of a new record with no id).

Issue: after setting the index to ``null``, the list view calls
``render_row_as_form`` which starts out trying to save a row being
edited (case: clicking of the [Create] button after having selected a
row for edition or after having written in a new record e.g. [Create]
-> type -> [Create] type -> ...). This tentative to save the existing
form would be performed in the context of a ``null`` dataset.index,
which the form view doesn't (and shouldn't, index should be that of
record *being edited*) expect.

-> first save in whatever dataset state is the current one, and *right
before* creating the new form (after having saved and/or discarded the
previous one) we have the id of the new record to edit (or ``null``),
find the index for *that* and set ``dataset.index`` to that (or
``null``) so the new form view can be created and opened in the right
context.

bzr revid: xmo@openerp.com-20120613153842-pd6xitjs8n003ogs
2012-06-13 17:38:42 +02:00
Xavier Morel 9f9bbcff33 [FIX] in ensure_saved, discard non-dirty editable rows
if the editable row's form isn't dirty, either nothing has been
entered in a new row or an existing row (being edited) has not been
altered, so can just discard the row (and reload it from cache if it's
an edition).

bzr revid: xmo@openerp.com-20120613153633-ms7i8t9lvdarxqi3
2012-06-13 17:36:33 +02:00
Xavier Morel 533f17231c [FIX] if a form is not dirty, always consider the corresponding o2m[list] to be valid
the user has not modified the editable line after opening it (whether to create a new record or to edit an existing one), so shouldn't be invalid

bzr revid: xmo@openerp.com-20120613153555-fq0moy1q464l92yj
2012-06-13 17:35:55 +02:00
Xavier Morel e475bc7a2a [IMP] don;t needlessly wrap values into deferreds in pipes
bzr revid: xmo@openerp.com-20120613153412-c2byqrc66jcn0e97
2012-06-13 17:34:12 +02:00
Xavier Morel 5ec4ecf85d [FIX] O2M validation: correctly proxy validation from/to edited row of the list view, if any
bzr revid: xmo@openerp.com-20120613100819-sw93kst4dpwhnu1p
2012-06-13 12:08:19 +02:00
Xavier Morel 632a4dee0c [FIX] correctly forward arguments in _super() call of editable listview's form widgets override
bzr revid: xmo@openerp.com-20120613094037-3iny9dsdhmp7qspi
2012-06-13 11:40:37 +02:00
Xavier Morel 0240ab1682 [CHG] try saving any row under edition when starting an (other) row edition
editable lists should not lose data unless explicitly asked to forget about it by user action

bzr revid: xmo@openerp.com-20120612150820-z97jxme1vcu3x3jd
2012-06-12 17:08:20 +02:00
Xavier Morel eb83b58e32 [IMP] Deferred usage in editable listview
bzr revid: xmo@openerp.com-20120612150708-0z5dsclcrtj29st3
2012-06-12 17:07:08 +02:00
Xavier Morel 6c4568c548 [FIX] mis-handling of url actions in sidebar
bzr revid: xmo@openerp.com-20120608090619-494wipr0pfekq6ex
2012-06-08 11:06:19 +02:00
Launchpad Translations on behalf of openerp 98e535ec56 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120606053039-a4juyl2r3spflgxr
bzr revid: launchpad_translations_on_behalf_of_openerp-20120607051141-x5vxg958wo48mr5b
bzr revid: launchpad_translations_on_behalf_of_openerp-20120608051529-d5rbbmihnra3sz05
bzr revid: launchpad_translations_on_behalf_of_openerp-20120608051613-be9s789ejsqjffow
2012-06-08 05:16:13 +00:00
niv-openerp 629ffe9370 fixed bug with ir.actions.url
bzr revid: nicolas.vanhoren@openerp.com-20120607140822-bsljpmaqnbg5m2pm
2012-06-07 16:08:22 +02:00
Xavier Morel 79044bc264 [ADD] handling of required attr on m2m fields
bzr revid: xmo@openerp.com-20120607111149-cgf3ap0yjzsxrkjx
2012-06-07 13:11:49 +02:00
Xavier Morel 5dd4134e24 [FIX] Error while deleting a record when there is only one record in pageview
bzr revid: xmo@openerp.com-20120607110503-exd0yhx8cqsimxer
2012-06-07 13:05:03 +02:00
Xavier Morel 9098fdea91 [IMP] display clean error dialog when user tries to create a database which already exists
bzr revid: xmo@openerp.com-20120607110313-rqj2k80cxpskdvx0
2012-06-07 13:03:13 +02:00
Xavier Morel 43f37b457f [FIX] re-display [Add Pad] button after removing the pad from a document
bzr revid: xmo@openerp.com-20120607110035-qxh5p2nnf3p0mj5s
2012-06-07 13:00:35 +02:00
Xavier Morel bab4adf42b [IMP] formatting of o2m and m2m fields in list views, courtesy of William Beltrán
backported from trunk revision xmo@openerp.com-20120607101329-aq0caswlxamd8z0n

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

bzr revid: xmo@openerp.com-20120607103240-edk8759inv2jiw2q
2012-06-07 12:32:40 +02:00
msh-openerp 3dde84cb82 [FIX]Refixed the issue of pad button not rendered when we delete the pad link.
bzr revid: msh@tinyerp.com-20120607083645-nyrk6vu3fjnmj5sv
2012-06-07 14:06:45 +05:30
msh-openerp 9756f7bb7a [FIX]Refixed the issue of database creation which was giving traceback instead of message.
bzr revid: msh@tinyerp.com-20120607072805-htfer9njseaty66w
2012-06-07 12:58:05 +05:30
Amit Dodiya 902694cf86 [FIX] Error while deleting a record when there is only one record in pageview
bzr revid: ado@openerp.com-20120607065207-jwu8qlvo9i5c59jo
2012-06-07 12:22:07 +05:30
Amit Dodiya 60d2e6878c [FIX] Error while deleting a record when there is only one record in pageview
bzr revid: ado@openerp.com-20120607064823-wpwvgq3ep7ufiui4
2012-06-07 12:18:23 +05:30
Amit Dodiya 7c38280c50 [FIX] Error while deleting a record when there is only one record in pageview
bzr revid: ado@openerp.com-20120607064431-2r2gbh0hav11ojeg
2012-06-07 12:14:31 +05:30
Amit Dodiya 7c87017fc2 [FIX] Error while deleting a record when there is only one record in pageview
bzr revid: ado@openerp.com-20120607063146-h22emjasnj0ararc
2012-06-07 12:01:46 +05:30
cpa-openerp 55954ed199 [FIX] Code optimization as per suggestion.
bzr revid: cpa@tinyerp.com-20120607060633-ewnd0kr9qzxw0tey
2012-06-07 11:36:33 +05:30
Launchpad Translations on behalf of openerp 300b3face2 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120607051242-r8pa2ag5y48gicq6
2012-06-07 05:12:42 +00:00
Olivier Dony 51292dca89 [MERGE] OPW 574895: fix incorrect matching of column headers when importing CSV files
- required fields may sometimes be provided by alternative columns,
  and all the alternatives are therefore not required (e.g. for
  a m2o the CSV can provide m2o or m2o/id columns)
- when fields share the same label, precedence when matching
  column headers should be given to the field with the exact
  same name, rather than just the first one encountered

bzr revid: odo@openerp.com-20120606174043-f1nmkad3p17mccyy
2012-06-06 19:40:43 +02:00
Xavier Morel cff511da83 [FIX] incorrect handling of 'None of the following condition must match' advanced search combinator
Introduced during 'simple style fixes' (sic) of rev xmo@openerp.com-20110812094541-zeb5lz6nk0jgq21y

bzr revid: xmo@openerp.com-20120606143721-004xllr8j28sgga9
2012-06-06 16:37:21 +02:00
Xavier Morel af000c9dd2 [IMP] performances when opening an m2o "search" without any filtering term
Don't prefilter via name_search if no data has been entered in the m2o
field, it's going to return all records (not paginated) so it's a
waste of time and resources

bzr revid: xmo@openerp.com-20120606124717-h2p211vbrydazado
2012-06-06 14:47:17 +02:00
Xavier Morel 85f95e6858 [FIX] handling of empty domains, context and view_id in action descriptors
* Some literal actions (not stored) provide an empty string for
  domains and contexts instead of (respectively) an empty array or an
  empty dict literal inside the string. Treat those case as nothing
  being provided.
* Likewise some literal actions provide nonsensical (but falsy, but
  not False) values for view_id (such as an empty list). Yield a
  ``False`` view_id for all falsy ``view_id`` received (``0`` should
  not be a valid view_id, so ``False`` works)

bzr revid: xmo@openerp.com-20120606123508-ndh3jpzw1nabf98n
2012-06-06 14:35:08 +02:00
Xavier Morel bc25bd8cce [FIX] reloading of o2m forms in dialogs (popups) after clicking on a button
bzr revid: xmo@openerp.com-20120606123230-bjwrplz1xeekeecg
2012-06-06 14:32:30 +02:00
Xavier Morel d7ddebed96 [FIX] handling of get_selection in listview in case of non-selectable lists (e.g. editable o2ms?)
OPW 572764

bzr revid: xmo@openerp.com-20120606123115-hilv8huw72di4ovi
2012-06-06 14:31:15 +02:00
Xavier Morel 5b6aed9576 [FIX] handling of empty lines in CSV file being imported (ignore them)
lp bug: https://launchpad.net/bugs/941977 fixed

bzr revid: xmo@openerp.com-20120606103353-k8z51yhp9j1u2irp
2012-06-06 12:33:53 +02:00
Launchpad Translations on behalf of openerp f5404ed23c Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120605051802-bospr54h50wirl0p
bzr revid: launchpad_translations_on_behalf_of_openerp-20120606053111-in0n1qxhmy84ofxp
2012-06-06 05:31:11 +00:00
cpa-openerp 817c495816 [FIX] Fixed in advance search when search on 'None of the following condition must match'.
bzr revid: cpa@tinyerp.com-20120605055415-xgczrlyzb1g92exx
2012-06-05 11:24:15 +05:30
Christophe Simonis d0cd2c0530 [FIX] web: correct jsonp behavior when len(payload) >= 2000
bzr revid: chs@openerp.com-20120531132020-ccagkni2dqu6i75u
2012-05-31 15:20:20 +02:00
Xavier ALT 3fa52c12b7 [FIX] web: data import: correctly handle 'required' many2one - user can provided any of base fieldname or with the '/id'
bzr revid: xal@openerp.com-20120530101715-oe86b3vk6qynp29e
2012-05-30 12:17:15 +02:00
Xavier ALT 6700a95d79 [FIX] web: data import: fields matching have to be done first on exactfieldname, then only on string
bzr revid: xal@openerp.com-20120530101608-8al6jw332oz0v2c0
2012-05-30 12:16:08 +02:00
msh-openerp 0777583ac9 [FIX]Fixed the issue of pad button not rendered when deletes a pad from the attachment area.
bzr revid: msh@tinyerp.com-20120529074017-6woyh00mz8fl18v0
2012-05-29 13:10:17 +05:30
Launchpad Translations on behalf of openerp fc4e1d83ad Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120524213424-x3a0wrqs23ajbuis
bzr revid: launchpad_translations_on_behalf_of_openerp-20120525051613-agxylrbtcu18fvfn
bzr revid: launchpad_translations_on_behalf_of_openerp-20120526055429-ynzxc3q4rj46capp
bzr revid: launchpad_translations_on_behalf_of_openerp-20120526055458-l7qk8vixvz2wot1k
2012-05-26 05:54:58 +00:00
Xavier ALT 27c16a7721 [FIX] OPW 574218: many2one: do not prefilter records when user click on 'Search More' with empty text
- Normally when user click on 'Search More' on many2one fields, relation
   object records are prefiltered based on the text user entered in the
   many2one field.
       But if user do not enter any text before click on 'Search More',
   system will call name_search() with an empty search criteria - and
   this could be quite expensive depending on the size of the dataset!.
   (this of name_search() on more that 10.000 products...)
   
   We now do not prefilter records if search value is empty (standard domain
   filtering still apply).

bzr revid: xal@openerp.com-20120525131416-ie958wu0cihjslgc
2012-05-25 15:14:16 +02:00
Olivier Dony 6379e7899c [FIX] data_import: allow importing m2o via name_search() on top of their XML ID
We do default to exporting the XML ID, but there are
many cases where completely new data needs to be
imported and there is no XML ID available to do so.
In that case allowing name_search() to be used as in
6.0 is a life-saver. This patch simply makes the
m2o field itself visible during import, so users can
use it in their CSV file or manually select it.

Some trivial examples:
- you need to import 2000 new leads with their countries,
  obviously you can't guess that base.be should be used
  for country Belgium
- you need to update 2000 unassigned leads in the system
  and assign them to some of the salemen... but you don't
  have their XML IDs and even if you had, the match is
  quite hard to do.

bzr revid: odo@openerp.com-20120525070859-y4q3bnamvag2pzcq
2012-05-25 09:08:59 +02:00
Launchpad Translations on behalf of openerp 7cb1c1407a Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120524213622-rae1o3f29fxv3fu6
bzr revid: launchpad_translations_on_behalf_of_openerp-20120525051647-xkl6b7w74bo8py9v
2012-05-25 05:16:47 +00:00
msh-openerp 53a989c711 [FIX]Fixed the issue of duplicate database creation which was giving traceback instead of user-freindly message.
bzr revid: msh@tinyerp.com-20120522090826-f8hslx26drsxe83e
2012-05-22 14:38:26 +05:30
Ravi Gohil (Open ERP) 47815f1c0a [FIX] Performed boolean check for context and domain and removed redundant condition: (Maintenance Case : 574769)
bzr revid: rgo@tinyerp.com-20120521095011-4ji9wf6efbhr4yry
2012-05-21 15:20:11 +05:30
Launchpad Translations on behalf of openerp 2680931f2f Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120519055722-0hi7qegprrfoq62g
bzr revid: launchpad_translations_on_behalf_of_openerp-20120519055746-39chgoaf0iqhh271
2012-05-19 05:57:46 +00:00
Xavier Morel f03d64365b [FIX] correctly save group_by context key when saving a search to a dashboard
bzr revid: xmo@openerp.com-20120518094443-boszrcvibitbrozf
2012-05-18 11:44:43 +02:00
Ravi Gohil (Open ERP) b39904ad4a [FIX] To prevent the leak when domain and context passed blank and view_id is passed as blank list by the server action : (Maintenance Case : 574769)
bzr revid: rgo@tinyerp.com-20120517102359-7u10pq22ynd3219k
2012-05-17 15:53:59 +05:30