Dhruti Shastri has proposed merging 
lp:~openerp-dev/openobject-server/6.1-opw-574360-dhs into 
lp:openobject-server/6.1.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-server/6.1-opw-574360-dhs/+merge/111009

To reproduce:
- install a bare DB
- create a custom module that will just load the following YAML data:
==========
-
  !record {model: res.users, id: new_user}:
    name: John Doe
    login: john
    password: john
==========
- load this module in the DB so that the new user is created

Expected behavior:
- the new user can login

Current behavior:
- the user is forbidden the read access to all res.users record, thus cannot 
login
-- 
https://code.launchpad.net/~openerp-dev/openobject-server/6.1-opw-574360-dhs/+merge/111009
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-server/6.1-opw-574360-dhs.
=== modified file 'openerp/tools/yaml_import.py'
--- openerp/tools/yaml_import.py	2012-01-24 14:00:56 +0000
+++ openerp/tools/yaml_import.py	2012-06-19 12:54:20 +0000
@@ -374,6 +374,11 @@
                     val = []
                 if len(val) and type(val[0]) == dict:
                     val = map(lambda x: (0,0,x), val)
+            elif (fg[key]['type']=='many2many'):
+                if val is False:
+                    val = []
+                if len(val):
+                    val = map (lambda x: [6,0,[x]], val)
             return val
 
         # Process all on_change calls

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to