Commit Graph

1638 Commits

Author SHA1 Message Date
Vo Minh Thu 084af04092 [FIX] import-hook: correctly import the server-wide-module (i.e
use the openerp.addons namespace), and correctly set the submodules in
sys.modules (instead of only the top-level package).

bzr revid: vmt@openerp.com-20120201152710-s7sxlgibwd3lwr5l
2012-02-01 16:27:10 +01:00
Raphael Collet c86ddaad57 [MERGE] lp:924783 (fix dropping database before any connection, contrib from Ronald Portier)
bzr revid: rco@openerp.com-20120201130957-ra3ot62j0bbxjnu1
2012-02-01 14:09:57 +01:00
Raphael Collet bdf04f8ad9 [MERGE] base: adds the format for addresses in the Netherlands (Stefan Rijnhart)
bzr revid: rco@openerp.com-20120201125532-yvp0dgb11mc457y2
2012-02-01 13:55:32 +01:00
Ronald Portier 64773ba357 [FIX] drop database fails when done before connecting to server.
lp bug: https://launchpad.net/bugs/924783 fixed

bzr revid: ronald@therp.nl-20120201113759-wi2kogl2x1lsxk7g
2012-02-01 12:37:59 +01:00
Launchpad Translations on behalf of openerp 810e73513a Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120201045532-i8okrs9w77l78yn5
2012-02-01 04:55:32 +00:00
Stefan Rijnhart 5271b9f2ed [ADD] Address format for the Netherlands
bzr revid: stefan@therp.nl-20120131232741-1c0ap325wrmt4638
2012-02-01 00:27:41 +01:00
Raphael Collet ac205cd443 [MERGE] small fixes (typo in tooltip, char field size)
bzr revid: rco@openerp.com-20120131132112-y526k22lrltqnocm
2012-01-31 14:21:12 +01:00
Olivier Dony b281791ff5 [IMP] db dump: correct reference URL in comments
bzr revid: odo@openerp.com-20120131113642-z6z4vs11fcwkyaqq
2012-01-31 12:36:42 +01:00
Olivier Dony f11e1de5eb [FIX] db dump: report errors due to missing password + pass PGPASSWORD even on Unix
Even on Unix systems the PGPASSWORD env var
is necessary when Postgres is configured to
deny unix socket connections or to require
a password anyway. This avoids asking admins
to manually create a ~/.pgpass file in order
to use the dump/restore tools.
Also did some cleanup to ensure the PGPASSWORD
var is removed from the environment as soon
as the operation is done.

lp bug: https://launchpad.net/bugs/790164 fixed
lp bug: https://launchpad.net/bugs/919100 fixed

bzr revid: odo@openerp.com-20120131110849-tji6ipjovxc9oi4v
2012-01-31 12:08:49 +01:00
Launchpad Translations on behalf of openerp 69910d967c Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120131050031-o00wn1tnzbkgjt6j
bzr revid: launchpad_translations_on_behalf_of_openerp-20120131050331-w0omtl1lmfqzciwq
bzr revid: launchpad_translations_on_behalf_of_openerp-20120131052309-jtfsc2m4h3liyzb5
2012-01-31 05:23:09 +00:00
Antony Lesuisse 6f52a1b09f [MERGE] publisher warranty stats
bzr revid: al@openerp.com-20120130220515-vsjnxhll3znxcmut
2012-01-30 23:05:15 +01:00
Antony Lesuisse 562fbb3578 [MERGE] active becomes auto_install: install this module when its dependencies (that can be empty) are satisfied
bzr revid: al@openerp.com-20120130211001-ytqx759fl920uegc
2012-01-30 22:10:01 +01:00
Antony Lesuisse 89e411fb39 remove warning
bzr revid: al@openerp.com-20120130210429-zw7aziwhkhi0yhqv
2012-01-30 22:04:29 +01:00
Vo Minh Thu c22e8190da [IMP] manifest: still support the old `active` entry (but deprecate it and display a warning).
bzr revid: vmt@openerp.com-20120130113116-msjaej7jxp96tbvh
2012-01-30 12:31:16 +01:00
Olivier Dony 7e1df36f9c [IMP] res.company: moved bank accounts tab from account_bank_statement_extension to base
The inherited part in account_bank_statement_extension
was removed from addons at revision 6439
revision-id: odo@openerp.com-20120130111654-7fmacaxdtdiiejs9

bzr revid: odo@openerp.com-20120130112318-d84yr7hlhxmwiwic
2012-01-30 12:23:18 +01:00
Olivier Dony 3f123d6e7a [IMP] res.users: better tooltip for Timezone user pref
bzr revid: odo@openerp.com-20120130112007-g0yheu62uo9j133p
2012-01-30 12:20:07 +01:00
Vo Minh Thu 15a8f08170 [IMP] manifest: renamed active to auto_install.
bzr revid: vmt@openerp.com-20120130102041-aensqjeqkftq8nm5
2012-01-30 11:20:41 +01:00
Vo Minh Thu c447ac4b9a [IMP] manifest: removed the Hidden/Links category.
bzr revid: vmt@openerp.com-20120130095307-cqhysxf6pzovikog
2012-01-30 10:53:07 +01:00
Vo Minh Thu 0d86e08450 [IMP] manifest: `auto_installable` renamed to `auto_install`.
bzr revid: vmt@openerp.com-20120130095238-x2by4y11joeytipr
2012-01-30 10:52:38 +01:00
Launchpad Translations on behalf of openerp ffbff476df Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120128050312-sep3uryazw4j1xz6
bzr revid: launchpad_translations_on_behalf_of_openerp-20120129052156-67wqllfafijp6h1m
bzr revid: launchpad_translations_on_behalf_of_openerp-20120130044112-h04p0g5ne16y1nav
bzr revid: launchpad_translations_on_behalf_of_openerp-20120128050513-ncpdbsqyyk18pc67
bzr revid: launchpad_translations_on_behalf_of_openerp-20120129052226-dfcf7sm2r00y1s3s
bzr revid: launchpad_translations_on_behalf_of_openerp-20120130044131-sdsyvt62gvyzo0e3
2012-01-30 04:41:31 +00:00
Alexis De Lattre ff67c965eb [FIX] Base: removed ambigious entries for _rec_name for res.partner.bank model
lp bug: https://launchpad.net/bugs/922670 fixed

bzr revid: support@serpentcs.com-20120127195148-hdnn9x2m1v7sapm2
2012-01-28 01:21:48 +05:30
Serpent Consulting Services ed8d6780d3 [REM] Removed the _rec_name change
bzr revid: support@serpentcs.com-20120127194929-bwvy3h3qqe6f7m90
2012-01-28 01:19:29 +05:30
Serpent Consulting Services 2ab84f0ab2 [FIX] Base : Corrected the size of the field 'owner_name' for res.partner.bank model,other minor edits included
lp bug: https://launchpad.net/bugs/922781 fixed

bzr revid: support@serpentcs.com-20120127194134-momdokqzf4qfhzqn
2012-01-28 01:11:34 +05:30
niv-openerp 65238372b7 [imp] added some more info in pings
bzr revid: nicolas.vanhoren@openerp.com-20120127114236-3mw4clp9jdy6gimd
2012-01-27 12:42:36 +01:00
Raphael Collet 6c6e5d291c [MERGE] lp:918120 (res.partner.bank: improve name_get() when no bank_name is given)
bzr revid: rco@openerp.com-20120127085133-hwzn9up9gp12cwgi
2012-01-27 09:51:33 +01:00
Launchpad Translations on behalf of openerp 5d68387d26 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120127052810-l3zq5o282fymrd70
bzr revid: launchpad_translations_on_behalf_of_openerp-20120127052825-ba6wz1r33349c1dd
2012-01-27 05:28:25 +00:00
Vo Minh Thu 5b63c4f560 [IMP] ir.module.module: change `active` flag to
`auto_installable`. An auto-installable module is a module automatically
installed by the OpenERP server as soon as its dependencies are
satisfied, without explicit user action.

bzr revid: vmt@openerp.com-20120126164049-smrcvrojy0b1z6f8
2012-01-26 17:40:49 +01:00
Xavier Morel 3049760fe6 [FIX] race condition in ir.ui.menu leading to incomplete menus in web client
See bug, issue occurs with variable frequency when changing between
simple and extended views in a user account (non-administrator at
least): saving the user account leads to a clearing of the menu cache,
this is followed by two search/read in parallel (one to get the full
menu listing and one to get the list of applications for the home
page), which leads to ir_ui_menu.search (thus
ir_ui_menu._filter_visible_menus) being called concurrently, and this
apparently somehow wrecks havoc on some browse_record's caches
yielding to incoherent behaviors (menus which do have children in db
not having children in the browse_record, and thus being pruned from
the list of menus).

Putting a big lock around 1. clear_cache (just in case) and
2. _filter_visible_menu (to make cache-filling essentially atomic)
seems to solve the issue or at least make it disappear, ideally more
time should be spent understanding what breaks in browse_record.

A reentrant lock is needed as _filter_visible_menu may recurse when
accessing e.g. a menu's child_id (which yield a
search([parent_id=menu.id]) and thus a _filter_visible_menu)

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

bzr revid: xmo@openerp.com-20120125115823-rpu03zdv14t11lp3
2012-01-25 12:58:23 +01:00
Xavier Morel d181a5e7ac [IMP] move browse_record to logging, __init__ docstring to sphinx info fields
bzr revid: xmo@openerp.com-20120125113429-6stglci05rxpfo5j
2012-01-25 12:34:29 +01:00
Xavier Morel e5ab103d2a [IMP] optimize imports in record files
bzr revid: xmo@openerp.com-20120125113248-298g2t2mckgjwk9x
2012-01-25 12:32:48 +01:00
Launchpad Translations on behalf of openerp a6042ec08c Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120122053029-q0dszyf1d5joxomf
bzr revid: launchpad_translations_on_behalf_of_openerp-20120124052910-tzpibbaw7b1w2w83
bzr revid: launchpad_translations_on_behalf_of_openerp-20120125052509-uyix5j8ir1rdsuum
2012-01-25 05:25:09 +00:00
Vo Minh Thu 5e293f04ae [MERGE] added resources (virt. memory and CPU time) limits when using gunicorn.
bzr revid: vmt@openerp.com-20120120172018-dlde0c1qn6oh9922
2012-01-20 18:20:18 +01:00
Vo Minh Thu 30d7253fef [IMP] gunicorn: changed `print` with `logging.info`.
bzr revid: vmt@openerp.com-20120120160409-cu1vcw7cfa3z0zgy
2012-01-20 17:04:09 +01:00
Vo Minh Thu 5e2721aaf2 [IMP] gunicorn: commit suicide in the post_request hook instead of the pre_request hook.
bzr revid: vmt@openerp.com-20120120154322-f23rxofv0169tbsm
2012-01-20 16:43:22 +01:00
Vo Minh Thu 09347af434 [IMP] gunicorn: moved gunicorn hook to openerp.wsgi (just like previous hooks), added new command-line options.
bzr revid: vmt@openerp.com-20120120150050-3o3hg6k1n17alup0
2012-01-20 16:00:50 +01:00
Vo Minh Thu ba178be7c0 [IMP] gunicorn: add CPU and memory limits.
bzr revid: vmt@openerp.com-20120120114612-xowu57yy3f5uxi0j
2012-01-20 12:46:12 +01:00
Olivier Dony c68045e497 [FIX] expression: properly care for implicitly defined m2m fields used in search() domains
Now that m2m fields may be defined without explicitly
specifying the name of the relationship table and its
foreign key columns, all access to these internal
names should be done via m2m._sql_names().
This seems better than lazily initializing these
internal names and hoping that nothing accesses
them before the init.

bzr revid: odo@openerp.com-20120119151012-c38k5zl7rqherhth
2012-01-19 16:10:12 +01:00
Jagdish Panchal (Open ERP) 272b5f9db5 [FIX] res_bank.py: set the prefix on bank
lp bug: https://launchpad.net/bugs/918120 fixed

bzr revid: jap@tinyerp.com-20120119095106-3ukg6cabh3kejf0e
2012-01-19 15:21:06 +05:30
Launchpad Translations on behalf of openerp 035b5b8bd5 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120119045028-1hxblsnuw1g2r2vj
2012-01-19 04:50:28 +00:00
Vo Minh Thu 418739cf3e [MERGE] cleaned some imports, removed some code for older python versions.
bzr revid: vmt@openerp.com-20120118160305-ucennaoqehjuut1z
2012-01-18 17:03:05 +01:00
Vo Minh Thu 5b57b7c5a9 [MERGE] added --db-template option.
bzr revid: vmt@openerp.com-20120118145334-sa190ihcos9iflcu
2012-01-18 15:53:34 +01:00
Olivier Dony fbc0545842 [IMP] base: change conflicting address-related "State" fields to "Fed. State"
This will avoid ambiguous translations, until we can
implement some sort of context-sensitive translation
system.

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

bzr revid: odo@openerp.com-20120118132900-427nc6j0p4h25bdn
2012-01-18 14:29:00 +01:00
Vo Minh Thu 0f9721533d [IMP] fields: use simplejson instead of json (for consistency with orm.py).
bzr revid: vmt@openerp.com-20120118123334-xxunyo1ph8jiwxc0
2012-01-18 13:33:34 +01:00
Vo Minh Thu c7094ab49f [IMP] tools: removed our copy of the copy module.
bzr revid: vmt@openerp.com-20120118115743-ce6p993l8v2kqlux
2012-01-18 12:57:43 +01:00
Vo Minh Thu a236a3ac75 [IMP] tools: removed deprecated debug() function.
bzr revid: vmt@openerp.com-20120118114910-xrynwguzu0e5zsng
2012-01-18 12:49:10 +01:00
Vo Minh Thu 8c3daeea12 [IMP] tools: removed __builtin__.{all,any} (they were there for previous python versions).
bzr revid: vmt@openerp.com-20120118114640-sm71f9fi48n4qn3q
2012-01-18 12:46:40 +01:00
Vo Minh Thu b5caa70b83 [IMP] tools: removed some functools functions (they were there for previous python versions).
bzr revid: vmt@openerp.com-20120118114109-txh1cjv503xautty
2012-01-18 12:41:09 +01:00
Vo Minh Thu 4d77130107 [IMP] tools: removed literal_eval as we drop python 2.6 support.
bzr revid: vmt@openerp.com-20120118112400-n7uulbbwm7wr5lpu
2012-01-18 12:24:00 +01:00
Vo Minh Thu ec597e354d [MERGE] cleaned imports.
bzr revid: vmt@openerp.com-20120118111226-an43skezei7dla2v
2012-01-18 12:12:26 +01:00
Vo Minh Thu 14acff6cc4 [MERGE] use an import hook instead of appending to sys.path.
This replaces sys.path mutation with an import hook. It removes the clash 
between our own 'resource' addons and the standard Python resource module. It
provides a transition between our current practice and a cleaner
'openerp.addons' namespace.

The import hook makes it possible to either 'import openerp.addons.hr' or 
'import hr' in the addons (ie. both paths are set in sys.modules). When trying 
to import an already existing (non-openerp) Python module (e.g. resource), it
will indeed load the Python module and print a warning (to invite you to use
openerp.addons.resource if this is the one you want).

Unfortunately, the import hook doesn't support self-referential imports. E.g. 
hr.wizard.xxx can't use 'import hr.yyy' or 'from hr import yyy'. Python will
fail to load hr with cryptic error messages or even a segmentation fault.

Beginning with this patch, 'import openerp.addons.xxx' is the way to go, 
'import xxx' is deprecated. Once 'import xxx' support can be removed, we will
probably support pkgutil or setuptool namespaces.

bzr revid: vmt@openerp.com-20120118104505-tns626ga47dwl7it
2012-01-18 11:45:05 +01:00