Commit Graph

3563 Commits

Author SHA1 Message Date
Odowan Kenobi 55f8e0485b [IMP] yaml_import: allow to use a view from another module when creating a record in yaml by prefixing it with <module_name> + '.' (e.g: account.supplier_invoice_form_view). A great patch from odony. Hooray
bzr revid: qdp-launchpad@openerp.com-20121030152824-0n2gazacag2hzkbj
2012-10-30 16:28:24 +01:00
Vo Minh Thu c902eb4539 [DOC] openerp.tests.common: now included in the test-framework page.
bzr revid: vmt@openerp.com-20121030113737-10h045k368pbrldq
2012-10-30 12:37:37 +01:00
Olivier Dony 485e437440 [FIX] orm: _validate should not immediately rollback
For some obscure reason _validate used to immediately
rollback the current transaction as soon as a constraint
failed anywhere. This is completely incorrect and
violates the transaction abstraction: the responsibility
of creating and closing transactions belongs to the
RPC dispatch layer, or whatever takes its place (e.g. the
test setup/teardown for tests). Rolling back or committing
in the middle of a transaction precludes special
error treatment and can have very bad side effects.

bzr revid: odo@openerp.com-20121029180742-2gw08kobdh7w5njc
2012-10-29 19:07:42 +01:00
Olivier Dony 290baa5be7 [FIX] yaml: more explicit error if !record has missing parameters
bzr revid: odo@openerp.com-20121029173421-bbx9kn0xp10bpeh1
2012-10-29 18:34:21 +01:00
Antonin Bourguignon 46e94a312c [IMP] usability of menus by displaying their full hierarchy
this will avoid confusion while organizing menu items hierarchy

bzr revid: abo@openerp.com-20121029145946-6fz0rvi7ewzbtp43
2012-10-29 15:59:46 +01:00
Vo Minh Thu d45e2db49b [MERGE] added single transaction unit test base case.
bzr revid: vmt@openerp.com-20121029145723-ov1efsnh5b834cy4
2012-10-29 15:57:23 +01:00
Vo Minh Thu 3ffc363cd2 [IMP] tests: added a whole-class setup/teardown base class to tests/common.
bzr revid: vmt@openerp.com-20121029142302-ug3phcx3c26cxd91
2012-10-29 15:23:02 +01:00
Quentin (OpenERP) e67b730ba9 [IMP] base: usability in module form view
bzr revid: qdp-launchpad@openerp.com-20121029141631-2ybbmaoif0lgn33x
2012-10-29 15:16:31 +01:00
Antonin Bourguignon d3a09bfcfc [MERGE] trunk
bzr revid: abo@openerp.com-20121029105213-3eofoz6e0jmwh5r7
2012-10-29 11:52:13 +01:00
Antonin Bourguignon c0cbbc3b03 [IMP] define a name_get() that includes the complete hierarchy of menus
also improve code style (var names)

bzr revid: abo@openerp.com-20121029104636-6psw5ucyjy3zoyro
2012-10-29 11:46:36 +01:00
Fabien Pinckaers f721ff1d14 [FIX] launch config wizards after changing settings
bzr revid: fp@openerp.com-20121028123216-sj9ds9xa9wtiuzyy
2012-10-28 13:32:16 +01:00
Vo Minh Thu 56c1a398a0 [IMP] expression.py: added comments to the in/not in many2many tests.
bzr revid: vmt@openerp.com-20121026110109-l212flw0p5cklc6p
2012-10-26 13:01:09 +02:00
Vo Minh Thu 0537147d95 [IMP] expression.py: added tests for the in/not in operators involving a many2many.
bzr revid: vmt@openerp.com-20121026100819-b2o4q9a082um6p2m
2012-10-26 12:08:19 +02:00
Fabien Pinckaers 2776f5b7e6 [[FIX] country code not required
bzr revid: fp@tinyerp.com-20121026065143-bnwzfum1zp8p3wrv
2012-10-26 08:51:43 +02:00
Launchpad Translations on behalf of openerp 93be12ab1e Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121026045553-t4k1bgsmirz090jr
bzr revid: launchpad_translations_on_behalf_of_openerp-20121026045641-3opz9ueu2crfb479
bzr revid: launchpad_translations_on_behalf_of_openerp-20121026051921-6vyyfhq3fpp22atu
2012-10-26 05:19:21 +00:00
Olivier Dony 9582a8bc82 [FIX] res.lang: ar_AR does not exist (Arabic in Argentina?!) -> replaced with ar_SY
ar_SY is the default locale alias for the `ar`
code in babel, so we can use that until a
translation team asks for a regional
variation of Arabic.

This should also fix an issue in the web
client, where ar_AR was not working, because
silently replaced with ar_SY.

This will only work for new databases,
old ones should be manually fixed.

bzr revid: odo@openerp.com-20121024161527-vec2r46a4o5lk47x
2012-10-24 18:15:27 +02:00
Olivier Dony 4c591fa606 [FIX] ir_attachment: fix regression when counting attachments (OPW 576295)
Cherry-pick forward-port of rev-id odo@openerp.com-20120816154020-5s6wbwfb5l2xsnyv
from 6.1. Fixes regression introduced by r.4069.

bzr revid: odo@openerp.com-20121024124709-28w8rh8xnelvuhwg
2012-10-24 14:47:09 +02:00
Antony Lesuisse aebe743964 [FIX] revert remove password fp merge
Overriding the reset password meachnism should be done in auth signup/reset password addons.

bzr revid: al@openerp.com-20121024111746-r94n1uqyb01a4x0m
2012-10-24 13:17:46 +02:00
Fabien Pinckaers 2067192d37 [IMP] rename columns for importation
bzr revid: fp@tinyerp.com-20121024084409-ad4kuccw6bki3zdg
2012-10-24 10:44:09 +02:00
Launchpad Translations on behalf of openerp b7feab731b Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121024045536-py0ehkq8nazb5en1
bzr revid: launchpad_translations_on_behalf_of_openerp-20121024045556-v4pmdh85f6qnn1f6
bzr revid: launchpad_translations_on_behalf_of_openerp-20121024052044-ajcrxdgxe6plx868
2012-10-24 05:20:44 +00:00
Fabien Pinckaers 7501a8b9ad [MERGE] trunk-fp
bzr revid: fp@tinyerp.com-20121022174451-ez1yw4d37y3okfk6
2012-10-22 19:44:51 +02:00
Fabien Pinckaers 7ee91c1d29 [MERGE] add parent_id in partner lists, invisible for groupby
bzr revid: fp@tinyerp.com-20121022171612-al88r881j7wjdc83
2012-10-22 19:16:12 +02:00
Fabien Pinckaers fec5454b3b [MERGE] preference remove change passwd
bzr revid: fp@tinyerp.com-20121022171502-frmdoqnazzuzfk1j
2012-10-22 19:15:02 +02:00
Olivier Dony b5b19a7a01 [FIX] generate_tracking_message_id: use more randomness to avoid duplicates
When several message IDs had to be generated for the same
record at the same time, there was a high chance to
get non-unique results. This possibly lead to data loss because
some mail implementations might ignore multiple mails with the
same ID (including OpenERP itself). On most operating systems
the available time resolution precision is better than what
we used (due to the float rounding of `%s`).
Adding a bit of randomness doesn't hurt, as OpenERP will
be used in increasingly distributed environments, so
we now add an extra random part as well.

bzr revid: odo@openerp.com-20121022162421-qr7nq8idihp5781u
2012-10-22 18:24:21 +02:00
Vo Minh Thu 749ee11eb2 [MERGE] removed a few warnings.
bzr revid: vmt@openerp.com-20121022132759-64qupagcv9cdqnkq
2012-10-22 15:27:59 +02:00
Quentin (OpenERP) 107e84c659 [MERGE] osv/orm: call the fct_inv for functional fields that are stored=True + tools/yamp_import: on record creation, do not consider fields that wouldn't be returned by the client because readonly in the view
bzr revid: qdp-launchpad@openerp.com-20121022130319-1v8mtihg8se01sso
2012-10-22 15:03:19 +02:00
Quentin (OpenERP) e6e4e8d4c1 [REV] osv/orm: revert of a previous patch that was unifying the behavior for fields.related and fields.function at creation time because it's a bit dangereous to treat it right now, and may need the add of a new field attribute. "I'll be back", said the patch
bzr revid: qdp-launchpad@openerp.com-20121022123100-wwr7lnmpqebddxon
2012-10-22 14:31:00 +02:00
Vo Minh Thu 5554379e1b [MERGE] The `State` label is now `Status`. A few zipcode have dropped the two-letter code.
bzr revid: vmt@openerp.com-20121022120656-hq1q0jcu2fpv52v8
2012-10-22 14:06:56 +02:00
Vo Minh Thu 09dcb09f8a [MERGE] merged trunk.
bzr revid: mma@tinyerp.com-20121019105411-c616nxo2helwr2l0
bzr revid: vmt@openerp.com-20121022114206-ejyrhnwf4fjfqmox
2012-10-22 13:42:06 +02:00
Vo Minh Thu 815100e535 [IMP] res.partner ir.rule: made the rule similar to the one for res.partner.
bzr revid: vmt@openerp.com-20121022113700-hn65uabpd0ttuxyt
2012-10-22 13:37:00 +02:00
Vo Minh Thu 218d25b130 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20121022101716-491hv1k50abqd8k9
2012-10-22 12:17:16 +02:00
Vo Minh Thu f4b6f015b3 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20121022095659-j1w8tdkkmwuhuniq
2012-10-22 11:56:59 +02:00
Launchpad Translations on behalf of openerp f702b42105 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121020050656-mv3gu0dj38rcys4w
2012-10-20 05:06:56 +00:00
Quentin (OpenERP) 7e357dab82 [MERGE] tools, yaml_import: the values given to the creation should only include the fields that aren't readonly in the view. Because that's what clients do
bzr revid: qdp-launchpad@openerp.com-20121019121438-z4cgpb0w3ejgb57o
2012-10-19 14:14:38 +02:00
Quentin (OpenERP) 7c91102e87 [MERGE] trunk
bzr revid: qdp-launchpad@openerp.com-20121019121308-uwqg1em4hdn10xev
2012-10-19 14:13:08 +02:00
Quentin (OpenERP) 820c2551bb [IMP] tools, yaml_import: the values given to the creation should only include the fields that aren't readonly in the view. Because that's what clients do
bzr revid: qdp-launchpad@openerp.com-20121019110604-1gvfcgqvwd1izh71
2012-10-19 13:06:04 +02:00
Jigar Amin a1cb39e65c [MERGE] Sync with trunk
bzr revid: jam@tinyerp.com-20121019042856-w7u49cd295i2ilvi
2012-10-19 09:58:56 +05:30
Quentin (OpenERP) 536cb8775c [TEST] removing values at record creation in yaml
bzr revid: qdp-launchpad@openerp.com-20121018184323-5kq9fb54slij3ioo
2012-10-18 20:43:23 +02:00
Olivier Dony 361c0acd2a [FIX] expression: negative operators (e.g. NOT IN) where not working on o2m fields - tests added
bzr revid: odo@openerp.com-20121018124750-bkea51a7zkvwwygi
2012-10-18 14:47:50 +02:00
Amit (OpenERP) 3d1defaa68 [IMP] Imporved the indentation problem
bzr revid: amp@tinyerp.com-20121018075759-70m5yv1yrotnuhao
2012-10-18 13:27:59 +05:30
Quentin (OpenERP) ece82902a4 [TEST] attempt to detect what the hell that crazy bug is coming from
bzr revid: qdp-launchpad@openerp.com-20121018072733-78g195u6yeq0m7jj
2012-10-18 09:27:33 +02:00
Atul Patel (OpenERP) 6c491aa26c [FIX]: Fix parent_id problem when group by company in partner tree view
bzr revid: atp@tinyerp.com-20121018072719-xb5kjnnrvrjnhexo
2012-10-18 12:57:19 +05:30
Antony Lesuisse ce552adba0 [MERGE] therp-nl/openobject-server/openobject-server_ormcache_key cache not working correctly with skiparg
bzr revid: al@openerp.com-20121017162555-tkydd6uq6fpm3a5i
2012-10-17 18:25:55 +02:00
Antony Lesuisse ed08f59e1f [MERGE] safe_eval opcode updates
bzr revid: al@openerp.com-20121017155526-o0ro53rno8d8cql2
2012-10-17 17:55:26 +02:00
Quentin (OpenERP) 38067dffc9 [FIX] osv/orm: compute the _fct_inv() of stored functional fields at the record creation. Compute also the _fct_inv() of related fields (because there is no reason not to do it). That last patch revert a 'fix' of lp bug 544087 introduced in revision 4182, i don't get the purpose of it but that bug is not repdocutible anymore...
bzr revid: qdp-launchpad@openerp.com-20121017102821-tjx7gqiz86v7sn54
2012-10-17 12:28:21 +02:00
Jigar Amin 3c38b1c4d1 [REVERT] Reverted the changes of depricated fieldread changes of the Revision#4482
bzr revid: jam@tinyerp.com-20121017095959-jlztk0qjg85qplvr
2012-10-17 15:29:59 +05:30
Jigar Amin 4e35350f3c [MERGE] Sync with trunk
bzr revid: jam@tinyerp.com-20121017043806-3z0d69nqzy9v3ojr
2012-10-17 10:08:06 +05:30
Vo Minh Thu a3cef23827 [MERGE] Make sure we pass only lists, tuples or dicts to Cursor.execute().
This fixes a call in the login code where a single untupled string was passed.
Psycopg does not see the problem: it iterates over the string, and as long as
the string length matches the number of needed parameters, everything seems
fine. Yeah for dynamic typing and SQL queries.

bzr revid: vmt@openerp.com-20121016125408-q537r71k5cisyxs0
2012-10-16 14:54:08 +02:00
Fabien Meghazi e8c0f38927 [REM] Removed useless css class in res.partner kanban view
bzr revid: fme@openerp.com-20121016102229-c3slg9mogr04h822
2012-10-16 12:22:29 +02:00
Mayur Maheshwari (OpenERP) 43eaf2a51e [MERGE]: Merge with lp:openobject-server
bzr revid: mma@tinyerp.com-20121016054451-ciq04vauebotgoe5
2012-10-16 11:14:51 +05:30