Merge lp:~inddiana/sisb/sisb_solicitud_abastecimiento_partidas_cantidad into lp:sisb

Proposed by Deivis Argenis Laya Vivas
Status: Needs review
Proposed branch: lp:~inddiana/sisb/sisb_solicitud_abastecimiento_partidas_cantidad
Merge into: lp:sisb
Diff against target: 15 lines (+4/-1)
1 file modified
l10n_ve_presupuesto/model/l10n_ve_presupuesto.py (+4/-1)
To merge this branch: bzr merge lp:~inddiana/sisb/sisb_solicitud_abastecimiento_partidas_cantidad
Reviewer Review Type Date Requested Status
[SISB] Edgar Rivero Pending
Review via email: mp+253247@code.launchpad.net

Description of the change

[MOD] Se valida para los productos y servicios que no poseen partidas presupuestarias cuya cantidad de imputacion es igual a 0 al momento de realizar la solicitud de abastecimiento

To post a comment you must log in.

Unmerged revisions

818. By Deivis Argenis Laya Vivas

[MOD] Se valida para los productos y servicios que no poseen partidas presupuestarias cuya cantidad de imputacion es igual a 0 al momento de realizar la solicitud de abastecimiento

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'l10n_ve_presupuesto/model/l10n_ve_presupuesto.py'
2--- l10n_ve_presupuesto/model/l10n_ve_presupuesto.py 2013-10-01 18:51:04 +0000
3+++ l10n_ve_presupuesto/model/l10n_ve_presupuesto.py 2015-03-17 17:42:15 +0000
4@@ -553,7 +553,10 @@
5 if lines.requisition_id.line_ids:
6 prl_id = lines.requisition_id.line_ids[0].id
7 req_lin_obj.write(cr, uid, prl_id, {'accion_especifica_id': ae_id, 'enlace_id': imp_id}, context)
8-
9+ else:
10+ partida = lines.product_id.partida_egreso and lines.product_id.partida_egreso.code or ''
11+ if partida == '':
12+ raise osv.except_osv(('Error !'), ('No hay partida presupuestaria definida para el producto %s.'%lines.product_id.name))
13 return view
14
15 diana_stock_procurement()

Subscribers

People subscribed via source and target branches