diff --git a/addons/account/account.py b/addons/account/account.py
index 3587a1e5424..5826aedb7e6 100755
--- a/addons/account/account.py
+++ b/addons/account/account.py
@@ -418,11 +418,11 @@ class account_account(osv.osv):
c_ids = s_ids
ids = child_ids
return True
-
+
def _check_type(self, cr, uid, ids, context=None):
if context is None:
- context = {}
- accounts = self.browse(cr, uid, ids, context=context)
+ context = {}
+ accounts = self.browse(cr, uid, ids, context=context)
for account in accounts:
if account.child_id and account.type != 'view':
return False
@@ -430,7 +430,7 @@ class account_account(osv.osv):
_constraints = [
(_check_recursion, 'Error ! You can not create recursive accounts.', ['parent_id']),
- (_check_type, 'You cannot create a account! \nMake sure if the account has children then it should be type "View"! ', ['type']),
+ (_check_type, 'You cannot create an account! \nMake sure if the account has children then it should be type "View"! ', ['type']),
]
_sql_constraints = [
('code_company_uniq', 'unique (code,company_id)', 'The code of the account must be unique per company !')
@@ -2307,8 +2307,8 @@ class account_account_template(osv.osv):
def _check_type(self, cr, uid, ids, context=None):
if context is None:
- context = {}
- accounts = self.browse(cr, uid, ids, context=context)
+ context = {}
+ accounts = self.browse(cr, uid, ids, context=context)
for account in accounts:
if account.parent_id and account.parent_id.type != 'view':
return False
@@ -2317,8 +2317,8 @@ class account_account_template(osv.osv):
_check_recursion = check_cycle
_constraints = [
(_check_recursion, 'Error ! You can not create recursive account templates.', ['parent_id']),
- (_check_type, 'You cannot create a account template! \nMake sure if the account template has parent then it should be type "View"! ', ['type']),
-
+ (_check_type, 'You cannot create an account template! \nMake sure if the account template has parent then it should be type "View"! ', ['type']),
+
]
def name_get(self, cr, uid, ids, context=None):
diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml
index d80d95a4bb8..f01c94a07ea 100755
--- a/addons/account/account_view.xml
+++ b/addons/account/account_view.xml
@@ -603,7 +603,7 @@
- account.bank.statement.form
+ account.bank.statement.reconcile.form
account.bank.statement
form
@@ -1520,70 +1520,6 @@
-
- account.bank.statement.form
- account.bank.statement
-
- form
-
-
-
-
-
- Statements reconciliation
- account.bank.statement
- form
- form,tree
-
-
-
-
1050
- other
+ view
Caja
diff --git a/addons/l10n_pl/account_chart.xml b/addons/l10n_pl/account_chart.xml
index 0e6c1342a74..a24e801673e 100755
--- a/addons/l10n_pl/account_chart.xml
+++ b/addons/l10n_pl/account_chart.xml
@@ -702,7 +702,7 @@
113010000
- other
+ view
Rachunek bieżący
diff --git a/addons/l10n_ro/account_chart.xml b/addons/l10n_ro/account_chart.xml
index 0c490ada590..f48cc0de7e4 100755
--- a/addons/l10n_ro/account_chart.xml
+++ b/addons/l10n_ro/account_chart.xml
@@ -2855,7 +2855,7 @@
Dobanzi
518
- other
+ view
@@ -4203,7 +4203,7 @@
Angajamente acordate
801
- other
+ view
@@ -4227,7 +4227,7 @@
Angajamente primite
802
- other
+ view
@@ -4251,7 +4251,7 @@
Alte conturi in afara bilantului
803
- other
+ view
@@ -4323,7 +4323,7 @@
Amortizarea aferenta gradului de neutilizare a mijloacelor fixe
804
- other
+ view
@@ -4339,7 +4339,7 @@
Dobanzi aferente contractelor de leasing si altor contracte asimilate, neajunse la scadenta
805
- other
+ view
diff --git a/addons/l10n_th/account_data.xml b/addons/l10n_th/account_data.xml
index a6689ed2bc2..11d9afe8948 100755
--- a/addons/l10n_th/account_data.xml
+++ b/addons/l10n_th/account_data.xml
@@ -46,7 +46,7 @@
1100
Cash
- other
+ view
@@ -54,7 +54,7 @@
1110
Cash at Bank
- other
+ view
@@ -96,7 +96,7 @@
1410
Building
- other
+ view
@@ -112,7 +112,7 @@
1420
Equipment
- other
+ view
diff --git a/addons/l10n_uk/l10n_uk_chart.xml b/addons/l10n_uk/l10n_uk_chart.xml
index f367d8b5739..9dc51fd3ad9 100755
--- a/addons/l10n_uk/l10n_uk_chart.xml
+++ b/addons/l10n_uk/l10n_uk_chart.xml
@@ -132,7 +132,7 @@
11004
Bank Current Account
- liquidity
+ view
diff --git a/addons/l10n_ve/account_chart.xml b/addons/l10n_ve/account_chart.xml
index 035893e8a4a..b46ff29ef8a 100755
--- a/addons/l10n_ve/account_chart.xml
+++ b/addons/l10n_ve/account_chart.xml
@@ -80,7 +80,7 @@
1050
- other
+ view
Caja
@@ -125,7 +125,7 @@
1200
- other
+ view
Cuentas por Cobrar