Commit Graph
36849 Commits
Author SHA1 Message Date
Olivier Dony dd2ff5e7ba [IMP] account_invoice_layout: missing state field in list view (used for states modifiers)
bzr revid: odo@openerp.com-20111006102402-cdjcw8rv2xfea6v3
2011-10-06 12:24:02 +02:00
Xavier Morel 06787922c0 [FIX] selection field value in case there's no value (haha)
bzr revid: xmo@openerp.com-20111006100235-2x41tzki77sk6i3v
2011-10-06 12:02:35 +02:00
Xavier Morel 0fc5a423e3 [FIX] don't screw up typing of selection values in search view
bzr revid: xmo@openerp.com-20111006095301-98cda38m1y270f3m
2011-10-06 11:53:01 +02:00
Xavier Morel 69c6913915 [FIX] forgot to filter installed modules outside
bzr revid: xmo@openerp.com-20111006093430-knl8fcjh4avc2dvh
2011-10-06 11:34:30 +02:00
Fabien Meghazi 5df08eb7d7 [FIX] m2o: Search More cause a traceback. (views now excpect to receive evaluated domain, context and group_by)
bzr revid: fme@openerp.com-20111006092247-zcbnrdbld00somam
2011-10-06 11:22:47 +02:00
Xavier Morel 03918aefa7 [IMP] avoid static home crashing after server side was completely broken
bzr revid: xmo@openerp.com-20111006090331-x6euo8vsnzuqqf73
2011-10-06 11:03:31 +02:00
Fabien Meghazi 9380f9ae30 [FIX] 'Select' button for file upload not working in wizards
lp bug: https://launchpad.net/bugs/860736 fixed

bzr revid: fme@openerp.com-20111006085138-dqezqznktrimhrxm
2011-10-06 10:51:38 +02:00
Vo Minh Thu 4dc26443d1 [MERGE] orm: cleand get_pg_type(). Changes as written in the merge prop.:
* Extracted creation of VARCHAR pg_type into a separate function, make missing 
  size (or size 0) create an unlimited VARCHAR field (effectively limited by
  postgres to 1GB data)
* Extracted fields to pg_types mapping outside of get_pg_type
* Made fields.function recursively forward to get_pg_type (via a type overload) 
  instead of reimplementing half get_pg_type in itself
* Simplified some get_pg_type cases

Note: if this is merged, it might be nice to convert fields.selection to use an 
API similar to fields.function: default to VARCHAR storage, if there's a type
attribute override use that type. Currently, fields.selection is handled the
following way:

* If the selection is a list and the type of the first half of the first item 
  is an integer, use type int4
* If the field has a __size=-1__ attribute, use type int4
* Else use type varchar (with size specified on the field, if any)

One change from previous version is that if type of the first half of the first 
item of the selection was str or unicode, it tried to find the longest string
and used that as the field's size. This meant silent loss of data if new,
longer items were added to the selection without recreating the whole db (or at
least manually altering the relevant fields). It also used the field's size or
*16* as a minimum default, for some reason, and if there was no size specified
on the selection (or size=0) it just hardcoded the size to 16.

bzr revid: vmt@openerp.com-20111006081336-uka6srvdmvs0s4lm
2011-10-06 10:13:36 +02:00
Xavier Morel c73c70550f [FIX] originally correct to-be-merged code broken during merge
bzr revid: xmo@openerp.com-20111006081119-zyzazce6fkc8oq0q
2011-10-06 10:11:19 +02:00
Vo Minh Thu 3606959a1a [MERGE] expression: no active_test when rewriting the main query.
bzr revid: vmt@openerp.com-20111006075655-gl444vgzcbu1j887
2011-10-06 09:56:55 +02:00
Vo Minh Thu f8e797ea28 [MERGE] fields.property: correctly tests for many2one/relative fields.
bzr revid: vmt@openerp.com-20111006074753-e505g95tcz8js5ju
2011-10-06 09:47:53 +02:00
Xavier Morel a3a45e18b3 [FIX] m2o fields with selection widget in search view
Plan was originally to just ignore this because "it should just work"
 but turns out m2o and m2o[@widget=selection] fields have very
 different behaviors when it comes to default values, especially
 custom domains and contexts:

 * An m2o field uses its string value always (behaves like a char
   field), for UI and clarity purposes we added an [[name, '=', id]]
   case when the user specifically selects an autocompletion value,
   but that's not "cannon", when it comes to dealing with custom
   domains (filter_domain) and contexts the field always uses its
   string value.

* An m2o[@widget=selection] field on the other hand uses its ids
  always (behaves like a selection field).

  That's not entirely true, really, because it has the converse to
  what we implemented on the m2o field in the web client (in the GTK
  client): if there is no @filter_domain *and* the user has entered a
  value which is not in the dropdown (it's a combobox in the GTK
  client), then it falls back on using 'ilike'. This string value is
  *not* used in custom domains and custom filters, which simply are
  not submitted.

  This second section has *not* been implemented so far in the web
  client, we'll come round to it if people actually need it.

bzr revid: xmo@openerp.com-20111006063949-fl5rbg3wwubcaay8
2011-10-06 08:39:49 +02:00
Launchpad Translations on behalf of openerp aed28ba69b Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20111006043633-2qqugk8decu2zcj1
2011-10-06 04:36:33 +00:00
Antony Lesuisse 82f4829a64 [IMP] redhat remove unused stuff
bzr revid: al@openerp.com-20111006031426-6vkjnku1tygyhptb
2011-10-06 05:14:26 +02:00
Antony Lesuisse 45e0b0a671 [FIX] packaging rename doc python rpm build does not tolerate spaces in files
bzr revid: al@openerp.com-20111006030516-uy8p3b5y1d2pbia0
2011-10-06 05:05:16 +02:00
Antony Lesuisse 56408a52a0 [FIX] packaging rename doc python rpm build does not tolerate spaces in files
bzr revid: al@openerp.com-20111006025617-0frl240letuc4gov
2011-10-06 04:56:17 +02:00
Antony Lesuisse 7ef2b87d40 [IMP] debian missing deps
bzr revid: al@openerp.com-20111006021841-blwc0r0uz3x07mxh
2011-10-06 04:18:41 +02:00
Antony Lesuisse f7d34d9c2d [FIX] web_chat flagged as not installable
bzr revid: al@openerp.com-20111006020250-6wkp8uxqzo3ezes5
2011-10-06 04:02:50 +02:00
Antony Lesuisse ee5f341ec7 [IMP] debian remove unused info
bzr revid: al@openerp.com-20111006001810-ew5fm6w2lsr790xy
2011-10-06 02:18:10 +02:00
Antony Lesuisse cbbf60412e [IMP] debian remove unused po files
bzr revid: al@openerp.com-20111006001357-29sfz3h2qk7d7zt8
2011-10-06 02:13:57 +02:00
Antony Lesuisse 527fe0ff65 [IMP] README cleanups
bzr revid: al@openerp.com-20111006001218-uzsqgl8ilkndxfr0
2011-10-06 02:12:18 +02:00
Antony Lesuisse e29e8f80de [FIX] debian packaging only happens if you used previous openerp packages
bzr revid: al@openerp.com-20111005200458-7ggpb7envf16yvfw
2011-10-05 22:04:58 +02:00
Antony Lesuisse 71dd8fd138 [FIX] forgot to add xml2json.py
bzr revid: al@openerp.com-20111005181529-dbfsmptdi671l94z
2011-10-05 20:15:29 +02:00
Antony Lesuisse 545765173e [FIX] crm tests, openid import
bzr revid: al@openerp.com-20111005180601-z55oq92j3g883akf
2011-10-05 20:06:01 +02:00
Antony Lesuisse 0d79dca93f [IMP] cleanup of web.common
bzr revid: al@openerp.com-20111005175826-7fzk3wesvz198kpm
2011-10-05 19:58:26 +02:00
Antony Lesuisse caec244322 [MERGE] fixmodloading by chs
bzr revid: al@openerp.com-20111005172010-ii718o6v1oe6gijk
2011-10-05 19:20:10 +02:00
Antony Lesuisse 7a06e4c05d [MERGE] base_setup dynamic introspecting ir_module_module
bzr revid: al@openerp.com-20111005165504-ohkyy7edqhykirei
2011-10-05 18:55:04 +02:00
Antony Lesuisse 21ebf62d23 [MERGE] base_setup dynamic category defintions
bzr revid: al@openerp.com-20111005165259-2xbmw8vo5k1neikn
2011-10-05 18:52:59 +02:00
Antony Lesuisse d72bf86b59 [FIX] category selection
bzr revid: al@openerp.com-20111005165202-s3jv23v7n5py4mx1
2011-10-05 18:52:02 +02:00
Antony Lesuisse 55e0541b0f [FIX] sed substitution
bzr revid: al@openerp.com-20111005163514-dzvvpsdg1hhhzb5t
2011-10-05 18:35:14 +02:00
Fabien Meghazi 1cde2fa2de [FIX] Fixed addons path for binaries. Improved placeholder.
bzr revid: fme@openerp.com-20111005155740-ufdr7lwp4abpsfsu
2011-10-05 17:57:40 +02:00
Vo Minh Thu 491dc693d6 [IMP] fields.property: be more explicit when testing if something is a browse_record.
bzr revid: vmt@openerp.com-20111005154857-ic3yzb3dead33us3
2011-10-05 17:48:57 +02:00
Fabien Meghazi 65745d5142 [FIX] Do not compute modifiers for aggregates in list view.
lp bug: https://launchpad.net/bugs/865188 fixed

bzr revid: fme@openerp.com-20111005153202-4ao575zh3885ukuy
2011-10-05 17:32:02 +02:00
Stephane Wirtel b9302052c8 [MERGE] Upstream
bzr revid: stw@openerp.com-20111005145931-piwiavbep6sr8nx3
2011-10-05 16:59:31 +02:00
Stephane Wirtel b8f9bad1a1 [IMP] base_setup: Add the shortcut 'Add More Features' and reindent the code
bzr revid: stw@openerp.com-20111005145855-hu14h1whjiv669iq
2011-10-05 16:58:55 +02:00
Stephane Wirtel db5775888b [FIX] stock: set the right category
bzr revid: stw@openerp.com-20111005145822-r0thbg86zt52lis3
2011-10-05 16:58:22 +02:00
Stephane Wirtel 61c65fc0a0 [FIX] base: set the right category for base
bzr revid: stw@openerp.com-20111005144249-p46i4up2omsuymqj
2011-10-05 16:42:49 +02:00
Antony Lesuisse 77a3624fa1 [IMP] set module category to Hidden
bzr revid: al@openerp.com-20111005143607-7p5z3gn4ddt3pios
2011-10-05 16:36:07 +02:00
Stephane Wirtel 54fcb73fc1 [FIX] base: Add the visible field in the ir.module.category, this field will be used by the new base.setup.installer
bzr revid: stw@openerp.com-20111005142315-r9ypz1jeqbi8rfpo
2011-10-05 16:23:15 +02:00
Stephane Wirtel 7fdabc5b66 [MERGE] Upstream
bzr revid: stw@openerp.com-20111005142057-qshud5cor3s7j8v7
2011-10-05 16:20:57 +02:00
Stephane Wirtel edf0e57305 [FIX] base_setup: Use a new flag of the ir.module.category object for the listing of applications
bzr revid: stw@openerp.com-20111005141932-mw8n1ccs1msino92
2011-10-05 16:19:32 +02:00
Stephane Wirtel 3dc8168974 [FIX] Set the categories
bzr revid: stw@openerp.com-20111005141902-72du0lku4x176ix9
2011-10-05 16:19:02 +02:00
Vo Minh Thu c629763a0f [FIX] two loops one loop (a previous commit) was wrongly done :(.
bzr revid: vmt@openerp.com-20111005135549-xvhtt57fl1ib7o6e
2011-10-05 15:55:49 +02:00
Vo Minh Thu 25a883b2aa [FIX] expression: we dont add any restriction on the main ids
as the possible active=True/False is already present in the main domain.

bzr revid: vmt@openerp.com-20111005133337-p8nvv26tlii7x253
2011-10-05 15:33:37 +02:00
Xavier Morel d801f21146 [REV] 1150, broke filter_domain in case of empty field
bzr revid: xmo@openerp.com-20111005130252-oovrpbo4a1pjavwd
2011-10-05 15:02:52 +02:00
Vo Minh Thu 478854aac0 [FIX] fields.reference: post-process reference fields to test if the referenced record exists.
bzr revid: vmt@openerp.com-20111005113434-itjuj0u3d6fhryn8
2011-10-05 13:34:34 +02:00
Xavier Morel 5eeeb67e6d [IMP] raise error when iterating over browse_record
Python has an iteration fallback protocol: when iterating over an
object which does not define __iter__, if the object defines
__getitem__ it considers that it's a list, and invokes __getitem__
from index `0`.

This can be a problem in openerp in methods which expect an list of
ids but are only given a single id (not a singleton list), in that
case self.browse() will return a single browse_record (instea of a
list) and the method tries to iterate over it by calling
browse_record.__getitem__.

Problem is that browse_record.__getitem__ is pretty deep and does
little validation, so the error appears 3 frames below where the
actual issue is with a completely cryptic message of "KeyError: 0",
which makes the actual harder to track.

By raising an error immediately in browse_record.__iter__, this kind
of issues is much easier to handle, the stack points precisely to the
frame in error with a clearer message.

bzr revid: xmo@openerp.com-20111005112444-jcp9fw6pa36ahpsd
2011-10-05 13:24:44 +02:00
Xavier Morel 072bb3d8ec [FIX] viewmanageraction loading: auto_search is the default, not the exception
this means if the auto_search attribute is missing, search automatically. Search should only
be prevented if auto_search is precisely false

bzr revid: xmo@openerp.com-20111005111210-qju8ocbhvqahczsz
2011-10-05 13:12:10 +02:00
Xavier Morel 68cd9188b9 [FIX] handling of value and default domain in search m2o
bzr revid: xmo@openerp.com-20111005105731-9431uvhay91bt10c
2011-10-05 12:57:31 +02:00
Vo Minh Thu 7ccc7f388f [IMP] fields.reference: two loops one loop.
bzr revid: vmt@openerp.com-20111005105103-cutnuvfkgsjej3vc
2011-10-05 12:51:03 +02:00