diff --git a/addons/account/account.py b/addons/account/account.py
index ecf346d2592..a841a299a67 100644
--- a/addons/account/account.py
+++ b/addons/account/account.py
@@ -681,7 +681,6 @@ class account_fiscalyear(osv.osv):
_inherit = "account.fiscalyear"
_description = "Fiscal Year"
_columns = {
- 'start_journal_period_id':fields.many2one('account.journal.period','New Entries Journal'),
'end_journal_period_id':fields.many2one('account.journal.period','End of Year Entries Journal', readonly=True),
}
diff --git a/addons/account/account_end_fy.xml b/addons/account/account_end_fy.xml
index 8ac41eadd6d..ee2ad952e6a 100644
--- a/addons/account/account_end_fy.xml
+++ b/addons/account/account_end_fy.xml
@@ -3,13 +3,17 @@
- Close Period
+ Close a Period
account.period
form
[('state','=','draft')]
-
+
diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py
index 2e2a6913882..5bd28e505c6 100644
--- a/addons/account/account_move_line.py
+++ b/addons/account/account_move_line.py
@@ -558,7 +558,7 @@ class account_move_line(osv.osv):
GROUP BY account_id,reconcile_id')
r = cr.fetchall()
#TODO: move this check to a constraint in the account_move_reconcile object
- if len(r) != 1:
+ if (len(r) != 1) and context.get('same_account', True):
raise osv.except_osv(_('Error'), _('Entries are not of the same account or already reconciled ! '))
if not unrec_lines:
raise osv.except_osv(_('Error'), _('Entry is already reconciled'))
diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml
index 5c5e2df1e82..8b8f3e0eb9e 100644
--- a/addons/account/account_view.xml
+++ b/addons/account/account_view.xml
@@ -16,7 +16,6 @@
-
diff --git a/addons/account/account_wizard.xml b/addons/account/account_wizard.xml
index b90e663712d..07a6ac6eecc 100644
--- a/addons/account/account_wizard.xml
+++ b/addons/account/account_wizard.xml
@@ -9,13 +9,27 @@
-
+
-
-
+
+
diff --git a/addons/account/invoice.py b/addons/account/invoice.py
index 44a36e7c2d4..e0854cf3eae 100644
--- a/addons/account/invoice.py
+++ b/addons/account/invoice.py
@@ -107,8 +107,8 @@ class account_invoice(osv.osv):
paid_amt = 0.0
to_pay = inv.amount_total
for lines in inv.move_lines:
- paid_amt = paid_amt + lines.credit + lines.debit
- res[inv.id] = to_pay - paid_amt
+ paid_amt = paid_amt - lines.credit + lines.debit
+ res[inv.id] = to_pay - abs(paid_amt)
return res
def _get_lines(self, cr, uid, ids, name, arg, context=None):
diff --git a/addons/account/wizard/wizard_fiscalyear_close.py b/addons/account/wizard/wizard_fiscalyear_close.py
index 8af3ed8a353..3dd8c8f799f 100644
--- a/addons/account/wizard/wizard_fiscalyear_close.py
+++ b/addons/account/wizard/wizard_fiscalyear_close.py
@@ -29,7 +29,9 @@ _transaction_form = '''
"""