Merge lp:~pedro.baeza/openerp-spain/6.1-l10n_es_fiscal_year_closing-imp into lp:~openerp-spain-team/openerp-spain/6.1

Proposed by Pedro Manuel Baeza
Status: Merged
Merged at revision: 396
Proposed branch: lp:~pedro.baeza/openerp-spain/6.1-l10n_es_fiscal_year_closing-imp
Merge into: lp:~openerp-spain-team/openerp-spain/6.1
Diff against target: 22 lines (+7/-4)
1 file modified
l10n_es_fiscal_year_closing/fyc.py (+7/-4)
To merge this branch: bzr merge lp:~pedro.baeza/openerp-spain/6.1-l10n_es_fiscal_year_closing-imp
Reviewer Review Type Date Requested Status
OpenERP Spain Team Pending
Review via email: mp+217780@code.launchpad.net

Description of the change

Optimización de la conciliación de los asientos de cierre, apertura y PyG, tal como ya se hizo en la v7.

To post a comment you must log in.
Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

Paso a hacer el merge tras un tiempo de prueba prudencial.

Un saludo.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'l10n_es_fiscal_year_closing/fyc.py'
--- l10n_es_fiscal_year_closing/fyc.py 2013-07-18 16:08:37 +0000
+++ l10n_es_fiscal_year_closing/fyc.py 2014-04-30 15:50:06 +0000
@@ -644,11 +644,14 @@
644 # reconcile option of an account in the future)644 # reconcile option of an account in the future)
645 #645 #
646 netsvc.Logger().notifyChannel('fyc', netsvc.LOG_DEBUG, "Reconcile %s" % move.ref)646 netsvc.Logger().notifyChannel('fyc', netsvc.LOG_DEBUG, "Reconcile %s" % move.ref)
647 tmp_context = context.copy()
648 tmp_context['fy_closing'] = True # Fiscal year closing = reconcile everything
649 line_ids = [line.id for line in move.line_id]647 line_ids = [line.id for line in move.line_id]
650 self.pool.get('account.move.line').reconcile(cr, uid, line_ids, context=tmp_context)648 r_id = self.pool['account.move.reconcile'].create(cr, uid,
651649 {'type': 'auto',
650 'opening_reconciliation': True})
651 cr.execute("""UPDATE account_move_line
652 SET reconcile_id = %s
653 WHERE id in %s""",
654 (r_id, tuple(line_ids),))
652 #655 #
653 # Close the fiscal year and it's periods656 # Close the fiscal year and it's periods
654 #657 #