Commit Graph

2846 Commits

Author SHA1 Message Date
Xavier Morel c6079dd6bb [REM] unnecessary parens
bzr revid: xmo@openerp.com-20121214123803-6xu2s1ndnoyj4i3e
2012-12-14 13:38:03 +01:00
Xavier Morel a5cb8460c6 [FIX] __init__ can't return values
bzr revid: xmo@openerp.com-20121214122525-bd5207viiz4vqi8x
2012-12-14 13:25:25 +01:00
Xavier Morel affda60c8e [FIX] spaceify tabs
bzr revid: xmo@openerp.com-20121214122423-j8hla3cf3uir7ypt
2012-12-14 13:24:23 +01:00
Xavier Morel 2270f8e8dd [IMP] merge extraneous setitem into literal dict creation
bzr revid: xmo@openerp.com-20121214122223-91elxxp0m6ska8ua
2012-12-14 13:22:23 +01:00
Xavier Morel 4cb3685f70 [IMP] compare to None by identity
bzr revid: xmo@openerp.com-20121214121638-6k5h0ztg94i4f5t6
2012-12-14 13:16:38 +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 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
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
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
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
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 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
Antony Lesuisse a6700e0e3f [MERGE] multiprocess signaling
trying trunk, feature branch fails with Address already in use

bzr revid: al@openerp.com-20121208210954-pi55sib4x7eyamem
2012-12-08 22:09:54 +01:00
Antony Lesuisse 3d2a09a973 multiprocessing signaling manually backported from 6.1
bzr revid: al@openerp.com-20121208181151-lfy956ysnok5b5hf
2012-12-08 19:11:51 +01:00
Fabien Pinckaers c9d430c32c [IMP] small improvement readonly type on ir.actions
bzr revid: fp@tinyerp.com-20121208163040-uzdnu0f6rg3gba6y
2012-12-08 17:30:40 +01:00
Launchpad Translations on behalf of openerp a325343c42 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121208045847-0s126yjr8uwtmumb
bzr revid: launchpad_translations_on_behalf_of_openerp-20121208045953-wihh2b6ioie9o11i
bzr revid: launchpad_translations_on_behalf_of_openerp-20121208052110-nf16120fhniyh9zh
2012-12-08 05:21:10 +00:00
Thibault Delavallée a786f8406b [REV] ir_ui_menu: coding-style changes reverted, because not necessary. Only a store=True on needaction_enabled is sufficient.
bzr revid: tde@openerp.com-20121207160539-6pqj932lvznxofd4
2012-12-07 17:05:39 +01:00
Thibault Delavallée 61a2a82174 [MERGE] Merged branch holding a proposal to solve the generate_order_by issue (see lp:1070757). As requested by Olivier Donny, this fix has been moved into generate_order_by. Deleted previous workaround done in this branch. Patch courtesy of Paulius Sladkevičius
bzr revid: tde@openerp.com-20121207155825-9bjvuxhyr0x937l7
2012-12-07 16:58:25 +01:00
Thibault Delavallée 1ca2c45d41 [IMP] [TESTS] Cleaned and updated tests about order_by with inherits and m2o fields.
bzr revid: tde@openerp.com-20121207134946-h0p1em7iq80ux0js
2012-12-07 14:49:46 +01:00
Quentin (OpenERP) f491097220 [MERGE] part of addons 28: supplier field should be visible on res.partner
bzr revid: qdp-launchpad@openerp.com-20121207132256-t1m3ewgzmgjnz0dh
2012-12-07 14:22:56 +01:00
Thibault Delavallée e36b44e82f [IMP] [WIP] order_by: now using aliases in _generate_order_by, _generate_o2m_order_by, _inherits_join_add, ... added some tests. Next comits will clean a bit the code, because currently it is a bit messy.
bzr revid: tde@openerp.com-20121207115424-x8gkjcqpi8dz96g2
2012-12-07 12:54:24 +01:00
Thibault Delavallée f810fb0526 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121207093350-kinvhwjzgrmif4d6
2012-12-07 10:33:50 +01:00
Launchpad Translations on behalf of openerp 595b9e2d85 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121207043434-1dvo9j9slfscwdjt
2012-12-07 04:34:34 +00:00
Thibault Delavallée d588388ae4 [IMP] [CLEAN] expression.parse: updated and cleaned a bit the tests. Removed print statements.
bzr revid: tde@openerp.com-20121206162219-n1c48dkjghc4nu63
2012-12-06 17:22:19 +01:00
Thibault Delavallée a0b8a58174 [IMP] [REVIEW] _auto_join on many2many now raises a NotImplementedError; added a test case for that.
bzr revid: tde@openerp.com-20121206092745-a8t62khs4x37db1g
2012-12-06 10:27:45 +01:00
Thibault Delavallée 3f34f24c02 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121206090241-vpbmp1fwd6gcddev
2012-12-06 10:02:41 +01:00
Launchpad Translations on behalf of openerp 6fb47cf443 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121206043933-i6nbcy70edyb04ax
2012-12-06 04:39:33 +00:00
Christophe Simonis 84aa05b4cc [FIX] do not hardcode ids in tests
bzr revid: chs@openerp.com-20121205173733-t686x9m2yylp552w
2012-12-05 18:37:33 +01:00
Christophe Simonis 5483836f51 [FIX] do not hardcode ids in tests
bzr revid: chs@openerp.com-20121205171707-r073wdt2eza82qyt
2012-12-05 18:17:07 +01:00
Antony Lesuisse f54055bda1 [IMP] ir_actions add a server action to run config wizards
bzr revid: al@openerp.com-20121205160015-lsst6j3218bn4usa
2012-12-05 17:00:15 +01:00
Thibault Delavallée 37051bbe91 [FIX] needaction: returns a count-like result.
bzr revid: tde@openerp.com-20121205143238-xbna8akgqduap2t5
2012-12-05 15:32:38 +01:00
Thibault Delavallée ae6f7b3a08 [IMP] ir_needaction: search is now without count but with a limit (to 100), and a simplified order by. This allows much faster queries as postgresql does not have to worry about order and things like that.
bzr revid: tde@openerp.com-20121205140726-z1o4ueclat7y96pl
2012-12-05 15:07:26 +01:00
Thibault Delavallée 003752f7f1 [REF] ir_ui_menu: needaction_enabled is now stored, because there are no reasons not to be (this is something mainly statically defined). needaction_counter is removed, but a method on the menu allows to have the information back, calling get_needaction_data. A web-side branch will call asynchronously this method with some menu ids, allowing to separate the menu loading from the needaction loading.
bzr revid: tde@openerp.com-20121205102052-pn1uwhrl9mn46c4x
2012-12-05 11:20:52 +01:00
Thibault Delavallée 1652bb1e83 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121205092215-g6a8fpxtd1fq3nwn
2012-12-05 10:22:15 +01:00
Launchpad Translations on behalf of openerp 43fe4eeed8 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121205051850-of8z1b1xzvayuk9t
2012-12-05 05:18:50 +00:00
Thibault Delavallée a8359924c2 [IMP] expression.parse: added the support of domain on one2many fields when _auto_true is activated. Leaf creation from an existing leaf moved as a method in expression object. Added some comments. Added / updated some tests.
bzr revid: tde@openerp.com-20121204170744-rv8e0zlteqoyj60o
2012-12-04 18:07:44 +01:00
Thibault Delavallée 52bd6459ef [REV] ir_ui_menu: needaction on menus back to their previous state (as in current trunk as ok 2012/12/04; another branch exist for speeding them up, this one is for improving the parsing.
bzr revid: tde@openerp.com-20121204145608-lah4uk40ok5litf0
2012-12-04 15:56:08 +01:00
Thibault Delavallée 9e6c2805ab [REF] [IMP] 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 and aliases generation, as well as working_table management to them. The main parsing loop is now a 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 while loops inside a main while loop with some weird corner effects.
bzr revid: tde@openerp.com-20121204142650-gkhmjdeu5upi25kp
2012-12-04 15:26:50 +01:00
Vo Minh Thu a1e2fdb69c [MERGE] fix the serialized field domain in the model view.
bzr revid: vmt@openerp.com-20121204150004-lq8t7qgeimeskysf
2012-12-04 16:00:04 +01:00
Thibault Delavallée 638fc20618 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121130093658-uvm0gbo90su88psh
bzr revid: tde@openerp.com-20121203131657-4gcp4wreylnmw2or
bzr revid: tde@openerp.com-20121204082427-7zdzn6f21xzvxby9
2012-12-04 09:24:27 +01:00
Launchpad Translations on behalf of openerp 2be8fdd030 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121204050358-y59q1n93uu6j3s03
2012-12-04 05:03:58 +00:00
Olivier Dony bac2638a2f [I18N] Removed duplicated terms for inherited [_sql]_constraints
bzr revid: odo@openerp.com-20121203162834-78jvf03c2octss1w
2012-12-03 17:28:34 +01:00
Ajay Chauhan (OpenERP) 2469d3b4ab [MERGE] merge with lp:openobject-server
bzr revid: cha@tinyerp.com-20121203062636-xnhqfm6491lib2hl
2012-12-03 11:56:36 +05:30