From ec283ff4ac3abff9ce70f33e11d793024f4d27d1 Mon Sep 17 00:00:00 2001 From: Paramjit Singh Sahota Date: Wed, 22 Aug 2012 18:03:48 +0530 Subject: [PATCH 1/5] [IMP] Given the access rights for the account.journal.cashbox.line in ACCOUNT. bzr revid: psa@tinyerp.com-20120822123348-2gghmwi0k78oopkr --- addons/account/security/ir.model.access.csv | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account/security/ir.model.access.csv b/addons/account/security/ir.model.access.csv index a5049c0a345..28bedbf65a1 100644 --- a/addons/account/security/ir.model.access.csv +++ b/addons/account/security/ir.model.access.csv @@ -82,6 +82,7 @@ access_account_entries_report_invoice,account.entries.report,model_account_entri access_account_entries_report_employee,account.entries.report employee,model_account_entries_report,base.group_user,1,0,0,0 access_analytic_entries_report_manager,analytic.entries.report,model_analytic_entries_report,account.group_account_manager,1,0,0,0 access_account_cashbox_line,account.cashbox.line,model_account_cashbox_line,account.group_account_user,1,1,1,1 +access_account_journal_cashbox_line,account.journal.cashbox.line,model_account_journal_cashbox_line,account.group_account_user,1,1,1,0 access_account_journal_view_invoice,account.journal.view invoice,model_account_journal_view,account.group_account_invoice,1,1,1,1 access_account_journal_column_invoice,account.journal.column invoice,model_account_journal_column,account.group_account_invoice,1,1,1,1 access_account_invoice_tax_accountant,account.invoice.tax accountant,model_account_invoice_tax,account.group_account_user,1,0,0,0 From 189a5ef346add8487e0ef3738b150bf1148e82c0 Mon Sep 17 00:00:00 2001 From: "Bhumi Thakkar (Open ERP)" Date: Wed, 22 Aug 2012 18:45:49 +0530 Subject: [PATCH 2/5] [IMP] report_type function field is be stored in table. bzr revid: bth@tinyerp.com-20120822131549-hkmnezfia8g03zm3 --- addons/account/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account.py b/addons/account/account.py index fa30b20f2ca..7da0753be8f 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -184,7 +184,7 @@ class account_account_type(osv.osv): ('income', _('Profit & Loss (Income account)')), ('expense', _('Profit & Loss (Expense account)')), ('asset', _('Balance Sheet (Asset account)')), - ('liability', _('Balance Sheet (Liability account)'))], help="This field is used to generate legal reports: profit and loss, balance sheet.", required=True), + ('liability', _('Balance Sheet (Liability account)'))], store=True, help="This field is used to generate legal reports: profit and loss, balance sheet.", required=True), 'note': fields.text('Description'), } _defaults = { From 3f7265df3c38f518509b9741097930fab6c64619 Mon Sep 17 00:00:00 2001 From: Paramjit Singh Sahota Date: Mon, 3 Sep 2012 10:37:31 +0530 Subject: [PATCH 3/5] [ADD] Added the security folder and access rightz file in auth_oauth module. bzr revid: psa@tinyerp.com-20120903050731-0da4en6k8fdkmiwh --- addons/auth_oauth/security/ir.model.access.csv | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 addons/auth_oauth/security/ir.model.access.csv diff --git a/addons/auth_oauth/security/ir.model.access.csv b/addons/auth_oauth/security/ir.model.access.csv new file mode 100644 index 00000000000..65fd2f54bbf --- /dev/null +++ b/addons/auth_oauth/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_auth_oauth_provider,auth_oauth_provider,model_auth_oauth_provider,base.group_system,1,1,1,1 From 326699dc3c33f2df85a27fb33ebfaf0be94550e5 Mon Sep 17 00:00:00 2001 From: Paramjit Singh Sahota Date: Mon, 3 Sep 2012 12:04:57 +0530 Subject: [PATCH 4/5] [IMP] Register ir.model.access.csv file in openerp.py. bzr revid: psa@tinyerp.com-20120903063457-2yays9j7gtv5z89t --- addons/auth_oauth/__openerp__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/auth_oauth/__openerp__.py b/addons/auth_oauth/__openerp__.py index f0be1234721..d43815e8018 100644 --- a/addons/auth_oauth/__openerp__.py +++ b/addons/auth_oauth/__openerp__.py @@ -34,7 +34,8 @@ Allow users to login through Google OAuth2. 'depends': ['base', 'web', 'base_setup'], 'data': [ 'auth_oauth_data.xml', - 'auth_oauth_view.xml' + 'auth_oauth_view.xml', + 'security/ir.model.access.csv' ], 'js': ['static/src/js/auth_oauth.js'], 'css': ['static/lib/zocial/css/zocial.css'], From 317c487183076788ef8f68ddd030662e9a32750b Mon Sep 17 00:00:00 2001 From: Paramjit Singh Sahota Date: Mon, 3 Sep 2012 14:59:33 +0530 Subject: [PATCH 5/5] [IMP] improved. bzr revid: psa@tinyerp.com-20120903092933-tt5vcyeq0dq8xtn3 --- addons/account/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account.py b/addons/account/account.py index 16d52cfddb5..e0012e5b1f1 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -186,7 +186,7 @@ class account_account_type(osv.osv): ('income', _('Profit & Loss (Income account)')), ('expense', _('Profit & Loss (Expense account)')), ('asset', _('Balance Sheet (Asset account)')), - ('liability', _('Balance Sheet (Liability account)'))], store=True, help="This field is used to generate legal reports: profit and loss, balance sheet.", required=True), + ('liability', _('Balance Sheet (Liability account)'))], help="This field is used to generate legal reports: profit and loss, balance sheet.", required=True), 'note': fields.text('Description'), } _defaults = {