Merge lp:~dani-ds/openerp-spain/6.1 into lp:~openerp-spain-team/openerp-spain/6.1

Proposed by Daniel Campos (Avanzosc)
Status: Merged
Merged at revision: 395
Proposed branch: lp:~dani-ds/openerp-spain/6.1
Merge into: lp:~openerp-spain-team/openerp-spain/6.1
Diff against target: 19 lines (+1/-1)
1 file modified
l10n_es_account_asset/account_asset.py (+1/-1)
To merge this branch: bzr merge lp:~dani-ds/openerp-spain/6.1
Reviewer Review Type Date Requested Status
Pedro Manuel Baeza code review Approve
Review via email: mp+220968@code.launchpad.net

Description of the change

Arreglado Bug que cerraba los activos con lineas aún para ser asentadas al ejecutar el asistente de Calcular Activos.

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

Dani, muchas gracias por arreglar este problema. Me lo encontré justamente en una instalación la semana pasada.

Un saludo.

review: Approve (code review)
Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

Puesto que el bug es importante, paso a hacer el merge.

Un saludo.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'l10n_es_account_asset/account_asset.py'
--- l10n_es_account_asset/account_asset.py 2014-03-18 23:58:19 +0000
+++ l10n_es_account_asset/account_asset.py 2014-05-26 14:31:58 +0000
@@ -363,7 +363,6 @@
363 }363 }
364364
365 def create_move(self, cr, uid, ids, context=None):365 def create_move(self, cr, uid, ids, context=None):
366 can_close = False
367 if context is None:366 if context is None:
368 context = {}367 context = {}
369 asset_obj = self.pool.get('account.asset.asset')368 asset_obj = self.pool.get('account.asset.asset')
@@ -373,6 +372,7 @@
373 currency_obj = self.pool.get('res.currency')372 currency_obj = self.pool.get('res.currency')
374 created_move_ids = []373 created_move_ids = []
375 for line in self.browse(cr, uid, ids, context=context):374 for line in self.browse(cr, uid, ids, context=context):
375 can_close = False
376 if currency_obj.is_zero(cr, uid, line.asset_id.currency_id, line.remaining_value):376 if currency_obj.is_zero(cr, uid, line.asset_id.currency_id, line.remaining_value):
377 can_close = True377 can_close = True
378 depreciation_date = line.depreciation_date378 depreciation_date = line.depreciation_date