Commit Graph

36896 Commits

Author SHA1 Message Date
Vo Minh Thu d239f6bcd1 [IMP] openerp-server: start services, load any server-wide module, then preload some registries.
bzr revid: vmt@openerp.com-20111007131902-bcq26tpmc2u6iwlh
2011-10-07 15:19:02 +02:00
Quentin (OpenERP) c6f3186571 [MERGE] lp862140: phase_id in context of field survey_request_ids
bzr revid: qdp-launchpad@openerp.com-20111007123130-7dkjdmnprqnkntzu
2011-10-07 14:31:30 +02:00
Quentin (OpenERP) 560d750661 [MERGE] lp865296
bzr revid: qdp-launchpad@openerp.com-20111007122753-iy190ull4etq9sr4
2011-10-07 14:27:53 +02:00
Quentin (OpenERP) 2c745676db [MERGE] lp:865227
bzr revid: qdp-launchpad@openerp.com-20111007122513-lx88aisi1rccbsln
2011-10-07 14:25:13 +02:00
Quentin (OpenERP) 7d20b50af1 [MERGE] lp:842381
bzr revid: qdp-launchpad@openerp.com-20111007122316-dr4a50ftf4bt4sc4
2011-10-07 14:23:16 +02:00
Quentin (OpenERP) 67f7e01980 [MERGE] lp:866048
bzr revid: qdp-launchpad@openerp.com-20111007121929-nlac0u8wsf5i8dkb
2011-10-07 14:19:29 +02:00
Quentin (OpenERP) 9d9762042a [MERGE] lp798739: no translation of warning message in holidays confirmation. Note that this will only work once the server will propagate the context through the workflow triggers
bzr revid: qdp-launchpad@openerp.com-20111007104149-j4m9i68ysi4bf14z
2011-10-07 12:41:49 +02:00
Vo Minh Thu 3aa47b7075 [FIX] document_ftp: tests: smash those tests with lots of commits.
(Otherwise changes happening on one cursor are not visible to the other one.)
Normally, as those yaml files commit(), they sould be inside demo data
instead of tests. But really we want to test a completely initialized
database, not being executed while the database is being initialized
(as the demo data are). This is just a matter of convention as the
tests are only executed when you also install demo data.

bzr revid: vmt@openerp.com-20111007091737-2dzocv2rgm2gfbi2
2011-10-07 11:17:37 +02:00
Olivier Dony b2b70870e5 [I18N] update PO templates for all addons after enabling LP translation sync
bzr revid: odo@openerp.com-20111007083949-0mz4q7fwtmyps8nu
2011-10-07 10:39:49 +02:00
Xavier Morel 342b8e680b [FIX] search selection default value in case no default is set: select option with value 'false' if there's any
bzr revid: xmo@openerp.com-20111007082905-86zc0dzwu0bv4bwz
2011-10-07 10:29:05 +02:00
Vo Minh Thu 9f11dfe53c [IMP] startup script: added little reminder when the `web` module can not be imported.
bzr revid: vmt@openerp.com-20111007073330-t0mh6x7ohv82i1g6
2011-10-07 09:33:30 +02:00
Xavier Morel 28b0daeaff [FIX] correctly update pager when adding a new record in an editable list
bzr revid: xmo@openerp.com-20111007072019-l59qcgikjeu71v26
2011-10-07 09:20:19 +02:00
Xavier Morel acc3d54316 [ADD] update pager on record deletion
bzr revid: xmo@openerp.com-20111007071756-h73imu0g4tl3fhay
2011-10-07 09:17:56 +02:00
Launchpad Translations on behalf of openerp 4bee5d20fa Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20111007043631-kklsn4cdxnp790tt
2011-10-07 04:36:31 +00:00
Xavier Morel a12c082d55 [IMP] modules have quite a number of fields we don't need, get only the name
bzr revid: xmo@openerp.com-20111006153959-mft8gh1g08s4vzqz
2011-10-06 17:39:59 +02:00
Xavier Morel 18ec203641 [IMP] use sets for modules to load instead of value-less dicts
bzr revid: xmo@openerp.com-20111006153622-i6g5pmk25dal358e
2011-10-06 17:36:22 +02:00
Xavier Morel 6c1499ecd9 [FIX] clear in search views should clear small filters as well
bzr revid: xmo@openerp.com-20111006152332-g0ifsv53jwq66u9u
2011-10-06 17:23:32 +02:00
Xavier Morel 404db3a08b [FIX] correctly handle 'false' value on selection fields
bzr revid: xmo@openerp.com-20111006145439-mklud8aaezmd2b1p
2011-10-06 16:54:39 +02:00
Antony Lesuisse bfb7cb0d6e [FIX] compute modules list fixed
bzr revid: al@openerp.com-20111006143457-i74b719vjic34ie4
2011-10-06 16:34:57 +02:00
Xavier Morel f5d22f9391 [ADD] modifiers setup on account.move.line override of fields_view_get
this way, the web clients correctly gets @required fields, and hides the columns which should be hidden

bzr revid: xmo@openerp.com-20111006143452-xxlv81axttm29m2n
2011-10-06 16:34:52 +02:00
Stephane Wirtel 2d817dfaa1 [FIX] base_setup: Set the right xml_id for the hidden/link category
bzr revid: stw@openerp.com-20111006143137-vj6y3pczx7euy13i
2011-10-06 16:31:37 +02:00
Xavier Morel 4e44e08920 [FIX] setup and serialize modifiers on overridden view for account.move.line
bzr revid: xmo@openerp.com-20111006143008-awuryu2n7otgaij6
2011-10-06 16:30:08 +02:00
Stephane Wirtel 33963719aa [FIX] base: set the right xml_id for the hidden/link category
bzr revid: stw@openerp.com-20111006142946-qebop8c2gs620ma7
2011-10-06 16:29:46 +02:00
Xavier Morel 65456808bc [ADD] wrapper to the modifiers setup process to simplify its call by third parties
bzr revid: xmo@openerp.com-20111006142727-spfj8foiln6m2jb9
2011-10-06 16:27:27 +02:00
Xavier Morel 20411473be [IMP] account: unpack field tuple on the fly in iteration to generate view fields in account.move.line
also remove unused name (third item of the tuple)

bzr revid: xmo@openerp.com-20111006132307-7fikg28u10023bty
2011-10-06 15:23:07 +02:00
Fabien Meghazi 5db16cd946 [FIX] Confirmation dialog buttons won't close the dialog
bzr revid: fme@openerp.com-20111006132241-b4491vh5jm4ct974
2011-10-06 15:22:41 +02:00
Xavier Morel 39c490a842 [IMP] lxml-ify fields_view_get override in account.move.line
bzr revid: xmo@openerp.com-20111006132009-ci16jjrylmb23nnn
2011-10-06 15:20:09 +02:00
Stephane Wirtel eab1356855 [FIX] base_setup: Set the right modules of the category
bzr revid: stw@openerp.com-20111006130909-9sqjw6mgnldeammf
2011-10-06 15:09:09 +02:00
Fabien Meghazi 84a94d7ec9 [FIX] Button@special=cancel should not trigger form save
bzr revid: fme@openerp.com-20111006121411-sltmagi0n068fbym
2011-10-06 14:14:11 +02:00
Xavier Morel bcaac70b1b [FIX] make m2o form fields focusable
bzr revid: xmo@openerp.com-20111006120425-z154ck3xez87ufbr
2011-10-06 14:04:25 +02:00
Stephane Wirtel 253467dfe2 [FIX] base_setup: Fix a problem with categories to show
bzr revid: stw@openerp.com-20111006120338-9zetw1glf0rdxo27
2011-10-06 14:03:38 +02:00
Vo Minh Thu 9990d8126e [IMP] orm: added small comment.
bzr revid: vmt@openerp.com-20111006114444-4llzirnl4tg4p5qy
2011-10-06 13:44:44 +02:00
Xavier Morel cecd7f5e55 [FIX] duplicated element_class on form widgets (on container and widget), and some incorrect element_id breaking click-on-label behavior
bzr revid: xmo@openerp.com-20111006114127-vc4mbflum68pjlbo
2011-10-06 13:41:27 +02:00
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