Amit Dodiya (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.0-opw-382055-ado into 
lp:openobject-addons/6.0.

Requested reviews:
  nel (nel-tinyerp)
  Leonardo Pistone - Agile BG - Domsense (lpistone)
  Amit Dodiya (OpenERP) (ado-openerp)
  Naresh(OpenERP) (nch-openerp)
Related bugs:
  Bug #925553 in OpenERP Addons: "Accounting managers cannot create a new 
journal (permissions on ir.sequence.type)"
  https://bugs.launchpad.net/openobject-addons/+bug/925553

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-382055-ado/+merge/92941

Hello,

[FIX] Accounting managers cannot create a new journal (permissions on ir 
sequence type)"

Accounting/Managers have access to accounting configuration. 

However, if they try to create a journal, they get the error :
"You can not create this document (ir.sequence.type) ! Be sure your user 
belongs to one of these groups: Administration / Configuration."

Thanks,
Amit
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-382055-ado/+merge/92941
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.0-opw-382055-ado.
=== modified file 'account/account.py'
--- account/account.py	2012-01-31 11:03:20 +0000
+++ account/account.py	2012-02-14 10:25:26 +0000
@@ -689,7 +689,7 @@
 
     def create(self, cr, uid, vals, context=None):
         if not 'sequence_id' in vals or not vals['sequence_id']:
-            vals.update({'sequence_id': self.create_sequence(cr, uid, vals, context)})
+            vals.update({'sequence_id': self.create_sequence(cr, 1, vals, context)})
         return super(account_journal, self).create(cr, uid, vals, context)
 
     def name_get(self, cr, user, ids, context=None):

_______________________________________________
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