diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml
index 12ec848bb9a..b21c4239e3b 100644
--- a/addons/account/account_view.xml
+++ b/addons/account/account_view.xml
@@ -1086,8 +1086,7 @@
-
-
+
@@ -2631,7 +2630,6 @@ action = pool.get('res.config').next(cr, uid, [], context)
-
-
-
+
-
-
-
+
+
+
-
-
-
+
+
+
diff --git a/addons/account_budget/account_budget_view.xml b/addons/account_budget/account_budget_view.xml
index f653a9d3691..16f13881034 100644
--- a/addons/account_budget/account_budget_view.xml
+++ b/addons/account_budget/account_budget_view.xml
@@ -117,7 +117,7 @@
-
+
diff --git a/addons/account_check_writing/account_voucher_view.xml b/addons/account_check_writing/account_voucher_view.xml
index b725c1c2d06..9fafdcd30c3 100644
--- a/addons/account_check_writing/account_voucher_view.xml
+++ b/addons/account_check_writing/account_voucher_view.xml
@@ -82,35 +82,33 @@
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
diff --git a/addons/l10n_be_invoice_bba/account_invoice_view.xml b/addons/l10n_be_invoice_bba/account_invoice_view.xml
index ffa6ad68d65..2d3ebbd4cd2 100644
--- a/addons/l10n_be_invoice_bba/account_invoice_view.xml
+++ b/addons/l10n_be_invoice_bba/account_invoice_view.xml
@@ -13,7 +13,7 @@
+ on_change="generate_bbacomm(type,reference_type, False, partner_id,reference)" colspan="1"/>
diff --git a/addons/l10n_be_invoice_bba/invoice.py b/addons/l10n_be_invoice_bba/invoice.py
index 0c767f3a54c..0cf55e5be64 100644
--- a/addons/l10n_be_invoice_bba/invoice.py
+++ b/addons/l10n_be_invoice_bba/invoice.py
@@ -78,7 +78,7 @@ class account_invoice(osv.osv):
algorithm = self.pool.get('res.partner').browse(cr, uid, partner_id).out_inv_comm_algorithm
if not algorithm:
algorithm = 'random'
- reference = self.generate_bbacomm(cr, uid, ids, type, reference_type, partner_id, '', algorithm)['value']['reference']
+ reference = self.generate_bbacomm(cr, uid, ids, type, reference_type, algorithm, partner_id, '')['value']['reference']
res_update = {
'reference_type': reference_type or 'none',
'reference': reference,
@@ -86,7 +86,7 @@ class account_invoice(osv.osv):
result['value'].update(res_update)
return result
#algorithm is not defined as field in any account related modules.so pass it as false argument.
- def generate_bbacomm(self, cr, uid, ids, type, reference_type, partner_id, reference, algorithm=False):
+ def generate_bbacomm(self, cr, uid, ids, type, reference_type, algorithm, partner_id, reference):
partner_obj = self.pool.get('res.partner')
reference = reference or ''
if (type == 'out_invoice'):