summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2015-07-22 19:11:44 +0200
committerChristophe Simonis <chs@odoo.com>2015-07-22 19:11:44 +0200
commit3ea8d14d2b06643a87fa5bf794d3e16180a6e1af (patch)
tree204ab1451bcc5a7c4757fe133e46496d5abfc0e6 /addons
parente182f196945385d6381c9f52c5e51062b80947df (diff)
[FIX] account,analytic: move test from account to analytic
Diffstat (limited to 'addons')
-rw-r--r--addons/account/__openerp__.py3
-rw-r--r--addons/analytic/__openerp__.py3
-rw-r--r--addons/analytic/security/ir.model.access.csv5
-rw-r--r--addons/analytic/test/analytic_hierarchy.yml (renamed from addons/account/test/analytic_hierarchy.yml)2
4 files changed, 7 insertions, 6 deletions
diff --git a/addons/account/__openerp__.py b/addons/account/__openerp__.py
index dbaf00dad70..0411532ab27 100644
--- a/addons/account/__openerp__.py
+++ b/addons/account/__openerp__.py
@@ -58,9 +58,6 @@ You could use this simplified accounting in case you work with an (external) acc
"static/src/xml/account_payment.xml",
"static/src/xml/account_report_backend.xml",
],
- 'test': [
- 'test/analytic_hierarchy.yml',
- ],
'installable': True,
'application': True,
'auto_install': False,
diff --git a/addons/analytic/__openerp__.py b/addons/analytic/__openerp__.py
index df9834af534..d9acfcc8501 100644
--- a/addons/analytic/__openerp__.py
+++ b/addons/analytic/__openerp__.py
@@ -38,6 +38,9 @@ that have no counterpart in the general financial accounts.
'data/analytic_demo.xml',
'data/analytic_account_demo.xml',
],
+ 'test': [
+ 'test/analytic_hierarchy.yml',
+ ],
'installable': True,
'auto_install': False,
}
diff --git a/addons/analytic/security/ir.model.access.csv b/addons/analytic/security/ir.model.access.csv
index 58262d4440d..9ca53cdff14 100644
--- a/addons/analytic/security/ir.model.access.csv
+++ b/addons/analytic/security/ir.model.access.csv
@@ -1 +1,4 @@
-id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink \ No newline at end of file
+id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
+access_account_analytic_account,access_account_analytic_account,model_account_analytic_account,group_analytic_accounting,1,0,0,0
+access_account_analytic_line,access_account_analytic_line,model_account_analytic_line,group_analytic_accounting,1,0,0,0
+access_account_analytic_journal,access_account_analytic_journal,model_account_analytic_journal,group_analytic_accounting,1,0,0,0
diff --git a/addons/account/test/analytic_hierarchy.yml b/addons/analytic/test/analytic_hierarchy.yml
index 117d6506b21..222e03aa062 100644
--- a/addons/account/test/analytic_hierarchy.yml
+++ b/addons/analytic/test/analytic_hierarchy.yml
@@ -27,13 +27,11 @@
name: 'Analytic line 1'
account_id: analytic_account1
journal_id: analytic_journal1
- general_account_id: account.a_expense
-
!record {model: account.analytic.line, id: analytic_line2}:
name: 'Analytic line 2'
account_id: analytic_account2
journal_id: analytic_journal1
- general_account_id: account.a_expense
-
Now we copy the toplevel account
-