[Openerp-community] Access rights on relational field such as one2many , many2many
Hello I have tried its quite frustrating that iam not able to assign access rights to my customized module. Iam inheriting stock.picking module. Following code- class stock_picking(osv.osv): _inherit = 'stock.picking' _description = Picking List _columns = { 'ads':fields.one2many('stock.picking.ads, 'stock_id', 'Advertisements') } class stock_picking_ads(osv.osv): _name = 'stock.picking.ads' _description = 'Picking Ads' _columns = { 'name':fields.datetime('Date'), 'stock_id':fields.many2one('stock.picking', 'Delivery orders'), 'ads_no':fields.text('ads'), } stock_picking_ads() Now i create new group , assign user and access right as READ CREATE to object stock.picking.ads but nothing is reflected , iam able to delete and write which should not happen. Very Strange!!! -- View this message in context: http://openerp-community.2306076.n4.nabble.com/Access-rights-on-relational-field-such-as-one2many-many2many-tp4644775.html Sent from the OpenERP Community mailing list archive at Nabble.com. ___ Mailing list: https://launchpad.net/~openerp-community Post to : openerp-community@lists.launchpad.net Unsubscribe : https://launchpad.net/~openerp-community More help : https://help.launchpad.net/ListHelp
Re: [Openerp-community] Access rights on relational field such as one2many , many2many
hi, Have you restarted and upgraded server ? you should tell us how you give user access right so that we can help finding the answer. 在 2014年2月21日,下午9:39,shazz0020 shazu@hotmail.com 写道: Hello I have tried its quite frustrating that iam not able to assign access rights to my customized module. Iam inheriting stock.picking module. Following code- class stock_picking(osv.osv): _inherit = 'stock.picking' _description = Picking List _columns = { 'ads':fields.one2many('stock.picking.ads, 'stock_id', 'Advertisements') } class stock_picking_ads(osv.osv): _name = 'stock.picking.ads' _description = 'Picking Ads' _columns = { 'name':fields.datetime('Date'), 'stock_id':fields.many2one('stock.picking', 'Delivery orders'), 'ads_no':fields.text('ads'), } stock_picking_ads() Now i create new group , assign user and access right as READ CREATE to object stock.picking.ads but nothing is reflected , iam able to delete and write which should not happen. Very Strange!!! -- View this message in context: http://openerp-community.2306076.n4.nabble.com/Access-rights-on-relational-field-such-as-one2many-many2many-tp4644775.html Sent from the OpenERP Community mailing list archive at Nabble.com. ___ Mailing list: https://launchpad.net/~openerp-community Post to : openerp-community@lists.launchpad.net Unsubscribe : https://launchpad.net/~openerp-community More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openerp-community Post to : openerp-community@lists.launchpad.net Unsubscribe : https://launchpad.net/~openerp-community More help : https://help.launchpad.net/ListHelp
Re: [Openerp-community] Access rights on relational field such as one2many , many2many
Hi Which user are you using for testing? You need create a simple user with your custom group for your model, because if you use admin user, he can always change everything without any restriction On Fri, Feb 21, 2014 at 9:09 AM, shazz0020 shazu@hotmail.com wrote: Hello I have tried its quite frustrating that iam not able to assign access rights to my customized module. Iam inheriting stock.picking module. Following code- class stock_picking(osv.osv): _inherit = 'stock.picking' _description = Picking List _columns = { 'ads':fields.one2many('stock.picking.ads, 'stock_id', 'Advertisements') } class stock_picking_ads(osv.osv): _name = 'stock.picking.ads' _description = 'Picking Ads' _columns = { 'name':fields.datetime('Date'), 'stock_id':fields.many2one('stock.picking', 'Delivery orders'), 'ads_no':fields.text('ads'), } stock_picking_ads() Now i create new group , assign user and access right as READ CREATE to object stock.picking.ads but nothing is reflected , iam able to delete and write which should not happen. Very Strange!!! -- View this message in context: http://openerp-community.2306076.n4.nabble.com/Access-rights-on-relational-field-such-as-one2many-many2many-tp4644775.html Sent from the OpenERP Community mailing list archive at Nabble.com. ___ Mailing list: https://launchpad.net/~openerp-community Post to : openerp-community@lists.launchpad.net Unsubscribe : https://launchpad.net/~openerp-community More help : https://help.launchpad.net/ListHelp -- Jose Morales Senior Developer Site: http://vauxoo.com Email: j rsil...@vauxoo.como...@vauxoo.com Twitter: @joseamoralesp Skype: joseamoralesp LPUser: https://launchpad.net/~josemoralesp Linux-Counter: 564569 Phone: +58 (426) 310 69 65 ___ Mailing list: https://launchpad.net/~openerp-community Post to : openerp-community@lists.launchpad.net Unsubscribe : https://launchpad.net/~openerp-community More help : https://help.launchpad.net/ListHelp