Commit Graph

50 Commits

Author SHA1 Message Date
Olivier Dony 109f51e125 [ADD] osv: initial basic implementation of Query object:
- added basic Query object to support more complex ORM use cases (LEFT OUTER JOINS at the moment)
- added trivial unit tests for query object + run_test.py executable to launch them 
Warning: this is very basic and was only done as a low-risk fix to introduce support for OUTER joins in some cases.
This will need to be improved and extended a lot to be really useful -> targeted for after v6.0...

bzr revid: odo@openerp.com-20100930132403-2dx0k9znzromsig7
2010-09-30 15:24:03 +02:00
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
Olivier Dony 9f00ec5d53 [IMP] ir.rule: stop computing empty domains earlier
bzr revid: odo@openerp.com-20100817183550-14ultob1xfav3gtd
2010-08-17 20:35:50 +02:00
Christophe Simonis 96570d318e [FIX] base: clear ir.rule cache at user modification
bzr revid: chs@openerp.com-20100610145722-6qbznzgsa8q2q8ez
2010-06-10 16:57:22 +02:00
Olivier Dony b020dc8363 [IMP] work-in-progress: initial version of safe_eval implementation -- still need fixing
bzr revid: odo@openerp.com-20100503234953-qgbk64bmir95jvzd
2010-05-04 00:49:53 +01:00
Olivier Dony e121a29cba [IMP] improved the new ir.rule form view + improved caching mechanism for ir.rules
bzr revid: odo@openerp.com-20100429153512-6zygzt7900dnygk9
2010-04-29 17:35:12 +02:00
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
RVO(OpenERP) 5420c142e2 [IMP] security-rule-improvement
bzr revid: hda@tinyerp.com-20100319105838-m3gy80pai28t0mcc
2010-03-19 16:28:38 +05:30
HDA (OpenERP) a0ba43d800 Merged with stable
bzr revid: hda@tinyerp.com-20100216063114-d2crv3zayarq2vk6
2010-02-16 12:01:14 +05:30
Stephane Wirtel 9633423bcc [FIX] Disable the cache for the ir.rules
lp bug: https://launchpad.net/bugs/372747 fixed

bzr revid: stephane@openerp.com-20100129093846-b1hbz5as9p4olvv4
2010-01-29 10:38:46 +01:00
HDA (OpenERP) 8a887ad4e0 Merged
bzr revid: hda@tinyerp.com-20100112104830-x35l4g08og2gacwo
2010-01-12 16:18:30 +05:30
Jay (Open ERP) 3477398a60 [FIX] Record Rules : domain_force made working
lp bug: https://launchpad.net/bugs/500571 fixed

bzr revid: jvo@tinyerp.com-20091231074511-tv6abhnbb9je2uka
2009-12-31 13:15:11 +05:30
Fabien Pinckaers 03624bd6e0 [FIX] bugfix
bzr revid: fp@tinyerp.com-20091222212807-2p2q39aaqvnihldo
2009-12-22 22:28:07 +01:00
Fabien Pinckaers 89be98debf [FIX] multi company, speed improvement
bzr revid: fp@tinyerp.com-20091222212036-oeekt3f06k5j0ize
2009-12-22 22:20:36 +01:00
Fabien Pinckaers cb32d72dfa [FIX] rule and multi-company
bzr revid: fp@tinyerp.com-20091222205600-3h0fow08pndm7y0f
2009-12-22 21:56:00 +01:00
Fabien Pinckaers eb665f6e1d [FIX] improve multi-company and rule system
bzr revid: fp@tinyerp.com-20091222190158-lwknqi2vcgj1e94d
2009-12-22 20:01:58 +01:00
fabian f2c19896da [FIX] Bugfix domain_force
[IMP] Added customer_id field in view

bzr revid: fabian@fabian-openerp-20091125163718-5q7064l71c8hv101
2009-11-25 17:37:18 +01:00
Harry (Open ERP) c436917517 [Merge] merge stable/5.0 branch
bzr revid: hmo@tinyerp.com-20091104064434-fijc4n2motwgsu13
2009-11-04 12:14:34 +05:30
UCO,JVO db8f833229 [FIX] Record rule : domain evaluation problem corrected
lp bug: https://launchpad.net/bugs/410191 fixed

bzr revid: jvo@tinyerp.com-20091027131256-7q2gl9vzf21jsuir
2009-10-27 18:42:56 +05:30
pap(openerp) 251b6720ca Changed encoding to coding ref: PEP: 0263
bzr revid: hda@tinyerp.com-20091020105223-2o94yr2iv2v10axr
2009-10-20 16:22:23 +05:30
PSO(OpenERP) 4d7134cd99 Changed licencing
bzr revid: hda@tinyerp.com-20091014123215-nuyqs18090whzt5o
2009-10-14 18:02:15 +05:30
Fabien Pinckaers 552de8630d [FIX] bug 371768 bad tooltip
bzr revid: fp@tinyerp.com-20090706194153-asiybgnwywsdgwv9
2009-07-06 21:41:53 +02:00
Fabien Pinckaers df9ab13905 [FIX] avoid required parameters rule (domain_force)
bzr revid: fp@tinyerp.com-20090624054312-o21d8rcuc6r04q1u
2009-06-24 07:43:12 +02:00
Jay (Open ERP) 349a2f3763 Ir_rule corrected(ref:Corentin Pouhet-Brunerie)
bzr revid: jvo@tinyerp.com-20090225111435-6e2pee1j2b6721id
2009-02-25 16:44:35 +05:30
Geoff Gardiner 18b90ecdcf Set of label improvements to Open ERP Server.
bzr revid: gsg@pinot-grigio-20090126174029-y6niysxn4adegdxu
2009-01-26 17:40:29 +00:00
Christophe Simonis 5a20219f9b [IMP] improve cache system
[FIX] cache now take in account default parameters
[IMP] new way to clear the cache
[FIX] clearing the cache is now made by database

bzr revid: christophe@tinyerp.com-20090105211746-o1fapuu319ozi7nv
2009-01-05 22:17:46 +01:00
Stephane Wirtel 9d293d1f00 [IMP] Update the copyright to 2009
bzr revid: stephane@tinyerp.com-20090104221329-rem11cbgwu30xnji
2009-01-04 23:13:29 +01:00
Christophe Simonis c2cc3a3049 [FIX] psycopg2: in queries we must now use %s everywhere (no more %d or %f)
bzr revid: christophe@tinyerp.com-20081209123722-4kmv4pecjwiw3tm3
2008-12-09 13:37:22 +01:00
Christophe Simonis e404e54e38 passing in GPL-3
bzr revid: christophe@tinyerp.com-20081103182716-6c6xyeewubx4uas0
2008-11-03 19:27:16 +01:00
Fabien Pinckaers 4e4e10b4c9 Renamed Model to Object
bzr revid: fp@tinyerp.com-20080821134955-iuoq8kwn17i6u4gn
2008-08-21 15:49:55 +02:00
Christophe Simonis 2eb6b8265b add encoding comment and vim comment
bzr revid: christophe@tinyerp.com-20080723150127-fmitw7zgeokcualh
2008-07-23 17:01:27 +02:00
Christophe Simonis 2dd9723b8b convert tabs to 4 spaces
bzr revid: christophe@tinyerp.com-20080722142436-143iu4ryy47w3av0
2008-07-22 16:24:36 +02:00
qdp 7641121ba9 *modified behavior of global rules: they are now at the same level than other rules (OR between the global rules and others)
bzr revid: qdp@tinyerp.com-20080715111504-irlodwg3pzaqnqjy
2008-07-15 13:15:04 +02:00
qdp 0d094852c4 *removed simple quote, bugfix
bzr revid: qdp-22af50442a5141715e63177d869ed8f681dfad8b
2008-06-19 08:59:03 +00:00
qdp f49da35cab *bugfix 1: there were too many arguments (uid was twice) removed one
*bugfix 2: simple quotes were missing

diff:
Index: 4.2/server/bin/addons/base/ir/ir_rule.py
===================================================================
--- 4.2/server/bin/addons/base/ir/ir_rule.py    (revision 8632)
+++ 4.2/server/bin/addons/base/ir/ir_rule.py    (working copy)
@@ -152,10 +152,10 @@
                                JOIN (ir_rule_group g
                                        JOIN ir_model m ON (g.model_id = m.id))
                                        ON (g.id = r.rule_group)
-                               WHERE m.model = %s
+                               WHERE m.model = '%s'
                                AND (g.id IN (SELECT rule_group_id FROM group_rule_group_rel g_rel
                                                        JOIN res_groups_users_rel u_rel ON (g_rel.group_id = u_rel.gid)
-                                                       WHERE u_rel.uid = %d) OR g.global)""", (model_name, uid, uid))
+                                                       WHERE u_rel.uid = %d) OR g.global)""", (model_name, uid))

bzr revid: qdp-ea1786beea6e242a9927c8f66323acb27a6b0755
2008-06-19 08:53:24 +00:00
Fabien Pinckaers 43e717ad30 Removed rules on users
bzr revid: fp@tinyerp.com-df7d77f75d29c1a746bba23c2807751a3c2a31ac
2008-06-19 05:09:48 +00:00
stw 7134784787 add Copyright and GPL license into the Header of Python files
bzr revid: stw-eb6ee9b006e577bda6338caa450ec9795b12f9bc
2008-06-16 11:00:21 +00:00
Fabien Pinckaers c5c654f72d Bugfix
bzr revid: fp@tinyerp.com-13cb74bdd675121ccde034da4a736497100cbe1e
2008-02-08 16:15:41 +00:00
Fabien Pinckaers 6215af103f Modifs
bzr revid: fp@tinyerp.com-76633cac8ff236dd21695101c6e4a8e10057602c
2008-02-08 16:09:03 +00:00
Fabien Pinckaers ffa98ae4e7 Improved Rules System
bzr revid: fp@tinyerp.com-e04f6fe9c0cc68d8aa49f010590d828fcb627a0a
2008-02-08 15:55:30 +00:00
ced d57ffb41d2 Allow to use xxx2many in the rules and make the group rule that have no rule are always true
bzr revid: ced-724e5e82afdf750de193cb4dccd720220c01cb3a
2007-08-22 05:17:13 +00:00
ced 1d274fe2c4 Fix rule to have the same behavior if no global than the access control.
Global=> AND (restrictive)
Group/User=> OR (take the best)

bzr revid: ced-e6c223d3e7b08f7c2a4648f1810a495a2081505a
2007-08-22 05:17:08 +00:00
ced 6c4b31cf08 kernel,base,account: fix multi company rule and property
- provide the rule to add active condition
- add main company to property that are linked to object that have company_id

bzr revid: ced-c4efb4ec04d47883c4570266f63beace14387499
2007-07-23 05:16:24 +00:00
ced 7fda03b1d2 base: add flush rule cache when write rule group
bzr revid: ced-f244ec7f8a11e71f97e9cd4c71f8fb22abb6b5a9
2007-07-23 05:16:18 +00:00
ced 588fbd837f KERNEL,BASE: fix _where_calc and domain get for rule
bzr revid: ced-7a8713933b54f837db2312e605a7afad7dbf91c5
2007-06-07 10:35:05 +00:00
ced 1edadd4f76 KERNEL, MULTI_COMPANY_*, STOCK, BASE: extend search child_of
bzr revid: ced-7181fea25ddbb261cae5d70e3cfae2b01a7795d9
2007-06-07 08:43:46 +00:00
ced 5ac07652b4 BASE, MULTI_COMPANY_*: improve rules
- prevent infinit recursion
- add global rules
- more generic rules

bzr revid: ced-9a1b5479e7a7349a82c2f45d3fff912867b2e1e1
2007-06-06 10:53:38 +00:00
bch 605fde9553 IR_RULES :
- new object to define versatile access rules.
- provide cache to keep fast access.
- associated with user or user group.

The orm layer is modified to use them. This modification and
pre-defined rules in xml data replace the most part of implicit magic
around company_id.

bzr revid: bch-73e82904c54c3ad4f5a7454a446af30572ae156d
2007-05-18 12:29:43 +00:00