Commit Graph

198 Commits

Author SHA1 Message Date
Fabien Pinckaers 8bc146d459 fix_logging
bzr revid: fp@tinyerp.com-20110115170802-n8o5kmx9vblfn0jw
2011-01-15 18:08:02 +01:00
Fabien Pinckaers fd9c04edcd fix
bzr revid: fp@tinyerp.com-20110114190038-0h62306fd35pe0sp
2011-01-14 20:00:38 +01:00
Olivier Dony 41bf6551bd [MERGE] ir.model.fields: changes to custom fields now take effect immediately (courtesy of xrg)
lp bug: https://launchpad.net/bugs/631547 fixed

bzr revid: odo@openerp.com-20110110123302-weq6zt1ivshhgogq
2011-01-10 13:33:02 +01:00
P. Christeas 89ec68926d ir.model.fields: implement the write(), allow custom fields to change
Implement the missing feature of being able to modify those custom
fields in the database, through the ORM interface. Now, using the
ir.model or ir.model.fields forms, the admin is able to alter properties
of custom fields on a live server (without server restart).

In the future, we may even remove the fuse for base fields and allow
them to change, too.

bzr revid: p_christ@hol.gr-20110107092917-xh00qjbap7ixggwr
2011-01-07 11:29:17 +02:00
P. Christeas 1a3432b439 ir.model: move the check inside create() and write(), simplfy defaults.
Since the create() function does call cr.commit(), the validity check
for selection options shall happen before the call to orm._auto_init().

bzr revid: p_christ@hol.gr-20110107092655-kokkx3pz2ilawyc0
2011-01-07 11:26:55 +02:00
Olivier Dony 7d3375f49f [MERGE] bugfixes: default language for partners, password change, validation of custom selection fields, ...
See the bug links

lp bug: https://launchpad.net/bugs/670264 fixed
lp bug: https://launchpad.net/bugs/692891 fixed
lp bug: https://launchpad.net/bugs/695678 fixed
lp bug: https://launchpad.net/bugs/631547 fixed
lp bug: https://launchpad.net/bugs/632927 fixed

bzr revid: odo@openerp.com-20110106173828-kdv1gtdvbws1ceb5
2011-01-06 18:38:28 +01:00
Yogesh Sakhreliya 4e806c6d30 [FIX] add constraints in ir.model.fields for selection values.
bzr revid: ysa@tinyerp.com-20110103110333-xb8lm08mejv8nn4i
2011-01-03 16:33:33 +05:30
Fabien Pinckaers 0e387e388d [IMP] better error message on access rights
bzr revid: fp@tinyerp.com-20101229124427-a0yr0pfaimnplz22
2010-12-29 13:44:27 +01:00
Olivier Dony 6961047414 [IMP] base: default _order for most internal data models (courtesy of Ferdinand Gassauer) + sorted fields in technical module guide
This should give a more consistent output in most lists involving those objects, as well as in the technical guide report.

lp bug: https://launchpad.net/bugs/655075 fixed
lp bug: https://launchpad.net/bugs/676990 fixed

bzr revid: odo@openerp.com-20101210224258-ljubjit2nl4d28vy
2010-12-10 23:42:58 +01:00
Olivier Dony 9daa68e67c [IMP] orm,base: added context to _constraints functions + use generic osv.osv.check_recursion()
lp bug: https://launchpad.net/bugs/525808 fixed

bzr revid: odo@openerp.com-20101209105733-j3uffwp4rl07nzc4
2010-12-09 11:57:33 +01:00
Olivier Dony ec9d236589 [IMP] ir_model,ir_module,tools: tweaks for improving module install/loading time
bzr revid: odo@openerp.com-20101127030450-m44krmwbnpd57omf
2010-11-27 04:04:50 +01:00
P. Christeas, O. Dony 6a69f37cf0 [MERGE] many improvements regarding translations, logging, reports, http, speed
bzr revid: odo@openerp.com-20101125142219-8bkqfboyuslzpvyo
2010-11-25 15:22:19 +01:00
Olivier Dony 6ff627d275 [IMP] ir.model.data,res.log: allow marking res.log entries as read upon creation via context + do it during module install to avoid useless log spam
bzr revid: odo@openerp.com-20101123160506-qsxa7gm5j8scphdz
2010-11-23 17:05:06 +01:00
P. Christeas ec2c32e2fe ir.model: simplify some defaults
bzr revid: p_christ@hol.gr-20101123154335-tl2jm6litwx3ysro
2010-11-23 17:43:35 +02:00
P. Christeas a62f0bede4 ir.model: mutable argument fix
bzr revid: p_christ@hol.gr-20101123154032-tuoe1aiy9wpnjp2y
2010-11-23 17:40:32 +02:00
P. Christeas c8f52b8c98 ORM, ir_*: convert standard constraint messages to callables
Also, fix way that callable constraints are passed with the context so
that they can have translatable strings inside (but not on the results
of the callable).

Conflicts:

	bin/addons/base/ir/ir_model.py
	bin/addons/base/module/module.py
	bin/tools/translate.py

bzr revid: p_christ@hol.gr-20101118164721-19rgx43d3p96b2lf
2010-11-18 18:47:21 +02:00
rpa (Open ERP) 7c5dce1072 [FIX]: Fixed translation of warning messages
lp bug: https://launchpad.net/bugs/660494 fixed

bzr revid: rpa@tinyerp.com-20101027133601-caqy1wdk9pduxyem
2010-10-27 19:06:01 +05:30
Olivier Dony 973af690b5 [IMP] base: improve some error messages/translations (modified patch from P. Christeas)
bzr revid: odo@openerp.com-20101020171739-2uc9a6fechrl5iaj
2010-10-20 19:17:39 +02:00
Olivier Dony 88117959b5 [REM] base, workflow: removed res.roles object, replaced by dedicated res.groups
bzr revid: odo@openerp.com-20101013215340-jaiihef9chsym48z
2010-10-13 23:53:40 +02:00
Anup (OpenERP) bce8ba79ae [REF] base : Corrections
bzr revid: ach@tinyerp.com-20101012061115-mlr5laakmficmoal
2010-10-12 11:41:15 +05:30
Anup (OpenERP) 69147e278f [FIX] base : Translations Corrected
bzr revid: ach@tinyerp.com-20101012052702-qrka8uld1apdpwg0
2010-10-12 10:57:02 +05:30
Anup (OpenERP) 1cb3e4e099 [REF] base: Refactored Code
bzr revid: ach@tinyerp.com-20101011064948-ust4ovsiy9tyjs85
2010-10-11 12:19:48 +05:30
fp 18c3f9511d useability
bzr revid: fp@fp-laptop-20101010190942-d5wo2tilixnzj7yx
2010-10-10 21:09:42 +02:00
jas b4779a1bd3 [IMP/FIX]: base : Improvement in User,Security menu
bzr revid: jas@tinyerp.com-20100929111200-fs00cbqhpo4uzz3z
2010-09-29 16:42:00 +05:30
jas 55bec50ff0 [IMP]: base : Improvements in base module
bzr revid: jas@tinyerp.com-20100929075801-l569rvj9tiq2ha9w
2010-09-29 13:28:01 +05:30
Anup (OpenERP) 245ace0a3b [FIX] _read_flat mehthod corrected
bzr revid: ach@tinyerp.com-20100909110211-6sbl74zfnca0hlpf
2010-09-09 16:32:11 +05:30
Olivier Dony 6cb0f0c23b [REVERT] incorrect patch to tools.translate - not yet reviewed
bzr revid: odo@openerp.com-20100908172708-vgqbwc8e2an30hxw
2010-09-08 19:27:08 +02:00
Anup (OpenERP) 7c3e6a6ed6 [FIX] message of _sql_constraint is being translated now
bzr revid: ach@tinyerp.com-20100908162403-pcau9acjq0xhhxu0
2010-09-08 21:54:03 +05:30
uco (Open ERP) cfbdd091ea [REVERT]: Reverted wrong commit
bzr revid: uco@tinyerp.com-20100826091046-vkn84n6iqxt8qpe4
2010-08-26 14:40:46 +05:30
rpa (Open ERP) b7183b5725 [IMP]: base: Improvement in view as per piratepad
bzr revid: rpa@tinyerp.com-20100823134151-u3yjgx9c1xwxv39r
2010-08-23 19:11:51 +05:30
rpa (Open ERP) 03bc10f188 [IMP,ADD]: base: Improvement in views of ir.model
bzr revid: rpa@tinyerp.com-20100823120047-smqicsknkioqqjmj
2010-08-23 17:30:47 +05:30
Olivier Dony 5fe9188615 [FIX] osv_memory: fixed access rights for osv_memory: a user always has full access, but only to her own records, except the superuser
bzr revid: odo@openerp.com-20100805181458-gaq8f8rbp0xwyoy9
2010-08-05 20:14:58 +02:00
Olivier Dony a967c6e21f [IMP] orm.fields_get: renamed read_access parameter to write_access, reflecting its real usage. Also cleaned up some mess leftover by commit 1338 in orm.field_get_keys() + other cleanup
bzr revid: odo@openerp.com-20100712141513-akwx4gcujoboia1y
2010-07-12 16:15:13 +02:00
Olivier Dony da08ca7756 [ADD] ir.model.data: added get_object_reference() and get_object() convenience methods to make target object easier to obtain
bzr revid: odo@openerp.com-20100709110252-fwn0osdcgnk5f88g
2010-07-09 13:02:52 +02:00
Ferdinand Gassauer, Olivier Dony a439ae096b [IMP] ir_model_*: added some missing database indices
lp bug: https://launchpad.net/bugs/572848 fixed

bzr revid: odo@openerp.com-20100705175805-tld1s0crm68otsq4
2010-07-05 19:58:05 +02:00
Olivier Dony 09297baccf [IMP] osv_memory: disabled regular ir_model_access access rights and switched to per-user access only. also did some cleanup
bzr revid: odo@openerp.com-20100624155602-noiat5i91uyeyy5t
2010-06-24 17:56:02 +02:00
vra 1cf10a7daa [FIX][IMP] SQL-Injection ,minor improvement.
bzr revid: vra@tinyerp.com-20100618140537-mjbviu7sxxwn83x8
2010-06-18 19:35:37 +05:30
Anup (OpenERP) e0d94956c1 [IMP] SQL injection Refactored
bzr revid: ach@tinyerp.com-20100618101641-84cdea9n1pzx36v2
2010-06-18 15:46:41 +05:30
Olivier Dony 569af073c1 [IMP] ir_model: name_search working on model description *and* model name
bzr revid: odo@openerp.com-20100602111826-v3qbiv65t1mq3np8
2010-06-02 13:18:26 +02:00
Anup (OpenERP) aed8e4e957 [FIX] Ir_model : Made an offensive check of context
bzr revid: ach@tinyerp.com-20100512115933-b3f3ti4g3epjrw8z
2010-05-12 17:29:33 +05:30
Anup (OpenERP) d05d9bccc4 [FIX] Raise a detailed exception if the record does not exist in the ir_model_data object
bzr revid: ach@tinyerp.com-20100511115355-9kdfpqaupsb718jj
2010-05-11 17:23:55 +05:30
Anup (OpenERP) 2d69e871a3 [FIX] Copy() of ir_model_fields corected
bzr revid: ach@tinyerp.com-20100511105508-n4png61qm0w8ctot
2010-05-11 16:25:08 +05:30
Anup (OpenERP) d8672f0f3a [FIX] Groups if removed, should remove relavent access rights too
bzr revid: ach@tinyerp.com-20100511083033-gbpbgiaopyesfzvv
2010-05-11 14:00:33 +05:30
Rvo (Open ERP) c9720d28f5 [IMP+ADD]:improved ir.rule code, added constraint on ir.rule for osv_memory objects
bzr revid: rvo@tinyerp.co.in-20100429120158-rt4p9t1o6kkj78fh
2010-04-29 17:31:58 +05:30
Fabien Pinckaers f2f2bde0f3 [FIX] Custom Objects with x_name field
bzr revid: fp@tinyerp.com-20100419210117-2cuj8jdgrnh11pze
2010-04-19 23:01:17 +02:00
Julien Thewys 3f8b66799f [REF] Cleanup ir_model_data._unlink
bzr revid: jth@openerp.com-20100402081546-deiqbx40q2hkucck
2010-04-02 10:15:46 +02:00
Xavier Morel ca39947d11 [fix] for some addons, multiple toplevel menus with the same name are created, generating a single ir.ui.menu entry but multiple ir.model.data for the (ir.ui.menu, @id) specified. Ensure that we remove all ir.model.data matching a given ir.ui.menu, not just a random one or upgrade fails when we try to go from the leftover ir.model.data to the (now missing) ir.ui.menu
lp bug: https://launchpad.net/bugs/530835 fixed

bzr revid: xmo@tinyerp.com-20100303154041-37hzymi7e5ur9yb6
2010-03-03 16:40:41 +01:00
HDA (OpenERP) a0ba43d800 Merged with stable
bzr revid: hda@tinyerp.com-20100216063114-d2crv3zayarq2vk6
2010-02-16 12:01:14 +05:30
Jay (Open ERP) ba22f3edfa [FIX] Custom fields won't disturb anything while updating server
lp bug: https://launchpad.net/bugs/493657 fixed

bzr revid: jvo@tinyerp.com-20100209091328-sllcv1fjo4qq59a3
2010-02-09 14:43:28 +05:30
Jay (Open ERP) abc44a50cb [FIX] Custom fields should be removed from _columns too
lp bug: https://launchpad.net/bugs/490125 fixed

bzr revid: jvo@tinyerp.com-20100201114605-6klss5f5bqw5yb6o
2010-02-01 17:16:05 +05:30