Commit Graph

4079 Commits

Author SHA1 Message Date
Launchpad Translations on behalf of openerp fefe50549d Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121217044438-1j3k23g7l6ypkwoe
2012-12-17 04:44:38 +00:00
Fabien Pinckaers 4cf0ce7473 [IMP] company form view
bzr revid: fp@tinyerp.com-20121216161013-08ymsrtnk17z0lxd
2012-12-16 17:10:13 +01:00
Launchpad Translations on behalf of openerp 04a1fe3553 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121216044514-h60p9z11ckzaiug9
2012-12-16 04:45:14 +00:00
Antony Lesuisse 14ad37779c cleanups
bzr revid: al@openerp.com-20121216015214-kfo6zlarh4gdccrx
2012-12-16 02:52:14 +01:00
Antony Lesuisse f6fe592152 [MERGE] trunk
bzr revid: al@openerp.com-20121216014404-oonymtva4uww7bwk
2012-12-16 02:44:04 +01:00
Fabien Pinckaers 50be9a8903 [IMP] logo of company: False or OpenERP logo if demo data
bzr revid: fp@tinyerp.com-20121215213219-j7vhocg70mi9jjw6
2012-12-15 22:32:19 +01:00
Antony Lesuisse 5fc754b5d3 [MERGE] manually merge customizable web logo, by chs
bzr revid: al@openerp.com-20121215192606-9p66tpo1f4344e20
2012-12-15 20:26:06 +01:00
Antony Lesuisse 0a35f78974 [MERGE] remove res.partner.address by chs
it also removes an ugly hack in the orm.

bzr revid: al@openerp.com-20121215182836-y15v2mwgdg9wyubi
2012-12-15 19:28:36 +01:00
Fabien Pinckaers b8008dc7e4 [IMP] better thumbnail generation
bzr revid: fp@tinyerp.com-20121215104647-p4xnj04v5hxdz5wb
2012-12-15 11:46:47 +01:00
Launchpad Translations on behalf of openerp 809c92fdef Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121214053618-1gz9xun2cb10afle
bzr revid: launchpad_translations_on_behalf_of_openerp-20121215050358-th0pl9jeams3pwkr
bzr revid: launchpad_translations_on_behalf_of_openerp-20121215050620-y27swfcuh62k8u32
bzr revid: launchpad_translations_on_behalf_of_openerp-20121215051723-6cnx1julk94gkm66
2012-12-15 05:17:23 +00:00
Vo Minh Thu 08a082f63f [FIX] registry: Set the fields_by_model attribute in __init__(), use None to flag non-existing fields-per-model cache.
bzr revid: vmt@openerp.com-20121214141114-em9r66e3sfy21t2r
2012-12-14 15:11:14 +01:00
Vo Minh Thu 3667e3c619 [IMP] module loading: removed unnecessary indentation, added comments.
bzr revid: vmt@openerp.com-20121214105820-9nlgzu9pm7cvh1pz
2012-12-14 11:58:20 +01:00
Olivier Dony 1565e8c708 [IMP] ir.ui.menu: deleting a menu should orphan its children w/o corrupting the `parent_store` struct: test + fix
ir.ui.menu was recently changed to use _parent_store,
which precludes using ondelete=set null for the parent_id
column. We nevertheless need to be certain that menus
can always be deleted but *never* cascade-deleted,
due the possible presence of user-created menus.
Overriding menu.unlink() is therefore necessary,
and care must be taken to bypass the default menu
visibility (using the `ir.ui.menu.full_list` context
flag while doing so)

bzr revid: odo@openerp.com-20121213145821-u2ipdvffu00rsgdg
2012-12-13 15:58:21 +01:00
Olivier Dony 90c0eea54a [IMP] ir.ui.menu: enable `parent_store` to allow using the `child_of` operator efficiently when loading the menu hierarchy
The menu loading logic in openerp-web was adapted to use
`child_of`.

bzr revid: odo@openerp.com-20121212210451-40ew3lp5wgps64gy
2012-12-12 22:04:51 +01:00
Olivier Dony e660b70ecb [IMP] orm: do not warn about missing ondelete cascade rule if ondelete is restrict - that's safe as well
bzr revid: odo@openerp.com-20121212210247-emrz5rf9ewcwdggu
2012-12-12 22:02:47 +01:00
Olivier Dony 9aa0701836 [FIX] res.users: whitelist recently added `tz_offset` field so that users can read it on their own record (even the anonymous user)
bzr revid: odo@openerp.com-20121212210137-u0vwkth5wt0au6qc
2012-12-12 22:01:37 +01:00
Olivier Dony e493303e18 [REVERT] Undo r.4617, introduced a bug in menu hierarchy retrieval
Browsing the menu data as super-user is not correct
because when we load the children menu the ORM
recursively calls menu.search(), this time as
admin, hence the groups of the admin are applied
or submenus, instead of the groups of the user.
The patch was also un-necessary, so there is no
reason to keep it.

r.4617 = chs@openerp.com-20121129172145-0ionmbffc72hwxoa

bzr revid: odo@openerp.com-20121212210027-i5yn1uyzmfho0jh0
2012-12-12 22:00:27 +01:00
Quentin (OpenERP) c8d9c5e73b [MERGE] branch removing a typo in a view
bzr revid: qdp-launchpad@openerp.com-20121212105146-5xfqsqaqu086t7wh
2012-12-12 11:51:46 +01:00
Launchpad Translations on behalf of openerp 2e7f68e09f Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121212043903-maiyd94p4ifgdqew
bzr revid: launchpad_translations_on_behalf_of_openerp-20121212044145-k216g0bcavdlf2o3
bzr revid: launchpad_translations_on_behalf_of_openerp-20121212045414-tgg69aaw4dz72b0p
2012-12-12 04:54:14 +00:00
Antony Lesuisse 1db5e67ed4 [MERGE] autoinstall at least one dependency must be to install by rco
bzr revid: al@openerp.com-20121211185310-jq6cci7740n54b4a
2012-12-11 19:53:10 +01:00
Christophe Simonis ea542472c9 [FIX] res.partner: column "address" does not exists anymore.
bzr revid: chs@openerp.com-20121211184624-b7v3ffn0jsoa1jbq
2012-12-11 19:46:24 +01:00
Christophe Simonis 74b431298e [FIX] remove res.partner.address model
bzr revid: chs@openerp.com-20121211182934-up3sxi0pcw20qrit
2012-12-11 19:29:34 +01:00
Raphael Collet fbc37241cc [IMP] modify the condition to auto-install a module: at least one dependency must be 'to install'
bzr revid: rco@openerp.com-20121211144010-3bbszb3ajxr3doup
2012-12-11 15:40:10 +01:00
Vo Minh Thu f668a123d9 [IMP] Reduce considerably the loading time of a new registry.
Loading time was mesured on the loading of a second database (identical to the
first one), i.e. by passing -d xx,yy on the command line, using cProfile. The
databases were installed with sale, mrp, and the crm.

The cProfile code is commited as part of this patch and should be removed (or
maybe guarded by some command-line flag) (just as the commenting-out of the
cron startup).

The patch was also applied on top of the trunk-simple-table-stats-vmt branch
which provides SQL queries counters.

Results indicate that the number of SQL queries are reduced from about 2100 to
27. Loading time is reduced from 1.3s to 0.26s (i.e. improved by 5).

Changes:

All calls to ir_model_fields to fetch manual (custom) fields are done in a
single call (prior to instanciate all models).

Checks for empty module descriptions are not done unless we are in init or
update mode. (The behavior was the opposite, which was probably a mistake).

Some calls to ir_translation, passing en_US because there was no lang in the
context, are not done anymore.

The improved time is also a result of a change in the decimal_precision module
where precision_get fetches all digits/applications instead of one at a time
(and thus implements its own caching instead of relying on
openerp.tools.ormache).

bzr revid: vmt@openerp.com-20121211105954-lwgs5js7yw3tzghs
2012-12-11 11:59:54 +01:00
Christophe Simonis 88eb634fd5 [IMP] tools.image: size can have width or height optional
bzr revid: chs@openerp.com-20121211100631-th6jjwnc7b1u957v
2012-12-11 11:06:31 +01:00
Launchpad Translations on behalf of openerp 6ae5cc7b8d Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121211044616-c47ciibjkh660n1z
2012-12-11 04:46:16 +00:00
Antony Lesuisse c4fcf264c0 [IMP] workers request count on exit
bzr revid: al@openerp.com-20121211012436-gnr3vxhoye1xf0dh
2012-12-11 02:24:36 +01:00
Thibault Delavallée bd0bae6625 [MERGE] Perform auto-join and mailboxes+needaction speed udpate. Server-side branch, holding a refactoring of expression.parse and the addition of _auto_join feature on relational fields.
expression.parse: refactored the main parsing loop, now using source and result stacks. Leaf elements are encapsulated into a specific object, allowing to delegate the join condition formation, working table management and table aliases generation to them. The parsing is now a simple loop taking a leaf, doing one action on it, and putting the result back to be analyzed or in the results. This allows to avoid having nested loops and uncontrolled results.

Other modifications :
- updated the generation of order_by to take into account the table now referred using aliases
- updated Query object to use the aliases
- fixed an outstanding bug about _order, now handled as order. This means that putting direct SQL into _order of models will not be supported anymore, because of the computing complexity now that we have multiple joins in queries. The branch holds the patch from Paulius Sladkevičius
- updated and added tests
- added a basic documentation for the freature

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

bzr revid: tde@openerp.com-20121210154652-6sab9usb38i7adlh
2012-12-10 16:46:52 +01:00
Thibault Delavallée 733cb0d96a [MERGE] Sync with trunk, because conflicting with ir_ui_menu lastly udpated.
bzr revid: tde@openerp.com-20121210132204-39p7chispvogelux
2012-12-10 14:22:04 +01:00
Christophe Simonis 507c02aaa2 [REV] close_socket is back in netsvc.py
bzr revid: chs@openerp.com-20121210132133-m1z2hb72y1r1wsei
2012-12-10 14:21:33 +01:00
Thibault Delavallée 3446b35874 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121210125418-l8ntl5o5mnb2dq3h
2012-12-10 13:54:18 +01:00
Anand Patel (OpenERP) b3ab5a63ae [MERGE] Merged with latest trunk
bzr revid: pan@tinyerp.com-20121210084122-n7qyuh8hm6jvgmd9
2012-12-10 14:11:22 +05:30
Thibault Delavallée f0abd6f49e [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121210083805-1t45n6xxmptpo28o
2012-12-10 09:38:05 +01:00
Launchpad Translations on behalf of openerp 798e44b1e4 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121210043632-9tdic74gwliyynmq
2012-12-10 04:36:32 +00:00
Antony Lesuisse 96f632224f [IMP] workers document defaults
bzr revid: al@openerp.com-20121209225349-k0f9jpg7n0nxc70t
2012-12-09 23:53:49 +01:00
Antony Lesuisse 0801f22e04 [IMP] workers setproctitle if available
bzr revid: al@openerp.com-20121209215336-rvmy0dejfpmy1awi
2012-12-09 22:53:36 +01:00
Antony Lesuisse cf31a12d94 [IMP] workers cron dont keep cursors
need for saas and demo

bzr revid: al@openerp.com-20121209212242-s3a91vxg8bixqls7
2012-12-09 22:22:42 +01:00
Antony Lesuisse 97ab217893 [IMP] workers cron logging and chorus
bzr revid: al@openerp.com-20121209204544-7w98xboxh6uytz43
2012-12-09 21:45:44 +01:00
Antony Lesuisse 099ae0f70c [IMP] workers better logging
bzr revid: al@openerp.com-20121209203134-sobl1m3q53bjne2i
2012-12-09 21:31:34 +01:00
Antony Lesuisse a4fcf06301 [FIX] temporary fix workers cron for missing openerp.addons.base
bzr revid: al@openerp.com-20121209200018-bvzdy7nhkyo6kaun
2012-12-09 21:00:18 +01:00
Antony Lesuisse 2f1f17ead9 [IMP] fields warning display args to locate them
bzr revid: al@openerp.com-20121209193952-ukk0aie3d8fg18q2
2012-12-09 20:39:52 +01:00
Antony Lesuisse 17ec9a3422 [FIX] workers graceful shutdown
bzr revid: al@openerp.com-20121209193022-r4h1ksmqrk2cfnds
2012-12-09 20:30:22 +01:00
Antony Lesuisse ae45df93a4 misc
bzr revid: al@openerp.com-20121209190543-83hmvyfcu1af7wiv
2012-12-09 20:05:43 +01:00
Antony Lesuisse c41d63f300 netrpc flip default, backward compatible for a few days
bzr revid: al@openerp.com-20121209185651-7i4vlvul5b3jgnmy
2012-12-09 19:56:51 +01:00
Antony Lesuisse 0cfa89dff7 netrpc flip default
bzr revid: al@openerp.com-20121209185442-1kgtc0hvds4fpng0
2012-12-09 19:54:42 +01:00
Antony Lesuisse 3d3eac7c50 service cleanups, more wizard removal
bzr revid: al@openerp.com-20121209184632-hp9b9fbbn9g4h2lw
2012-12-09 19:46:32 +01:00
Antony Lesuisse 0ef9f2e4b6 [MERGE] trunk
bzr revid: al@openerp.com-20121209182643-9fv5ge2b2r2hrpbv
2012-12-09 19:26:43 +01:00
Antony Lesuisse 5790312d65 netsvc, netrpc, wizardcleanup
bzr revid: al@openerp.com-20121209181536-au8u47557i45wizl
2012-12-09 19:15:36 +01:00
Antony Lesuisse f4977b1f44 cron registrymanager removal
bzr revid: al@openerp.com-20121209175300-rhwf9n0y29o7ct19
2012-12-09 18:53:00 +01:00
Antony Lesuisse 42f292af93 cron cleanup, back to the Kernighan KISS roots 1min poll time, rely only on database, multiprocess/multiserver ready.
Nota: If we replace sequence signaling for cache invalidation with pg
listen/notify in the future, we will use the same mechanism for more accurate
cron timing.

bzr revid: al@openerp.com-20121209170447-zs0k3jazokylwvar
2012-12-09 18:04:47 +01:00