Merge lp://staging/~sebastiken/openerp-argentina/ou_account_payment-5.0 into lp://staging/~openerp-argentina-team/openerp-argentina/l10n_ar_account_payment-5.0

Proposed by Sebastian Kennedy
Status: Merged
Approved by: Bruno M. Villasanti (Thymbra)
Approved revision: 13
Merged at revision: 14
Proposed branch: lp://staging/~sebastiken/openerp-argentina/ou_account_payment-5.0
Merge into: lp://staging/~openerp-argentina-team/openerp-argentina/l10n_ar_account_payment-5.0
Diff against target: 26 lines (+4/-5)
1 file modified
ou_account_payment/recibos.py (+4/-5)
To merge this branch: bzr merge lp://staging/~sebastiken/openerp-argentina/ou_account_payment-5.0
Reviewer Review Type Date Requested Status
Bruno M. Villasanti (Thymbra) Approve
Review via email: mp+77799@code.staging.launchpad.net

Commit message

[MERGE] Fixed bug #853917

Description of the change

Se fixea el bug #853917 que no permitía la instalación del módulo ou_account_payment.
Se debía a que el código estaba incompleto en la función button_advance.

Diff:

=== modified file 'ou_account_payment/recibos.py'
--- ou_account_payment/recibos.py 2011-09-15 16:48:03 +0000
+++ ou_account_payment/recibos.py 2011-10-01 22:02:56 +0000
@@ -641,10 +641,10 @@
         for id in ids:
             rec = self.browse(cr, uid, id)
             if rec.line_ids:
- #print 'Rec3: ', rec.line_ids
- # TODO: TENEMOS QUE BORRAR LAS LINEAS DEL RECIBO
- #self.write(cr, uid, id, {'line_ids': [(2, )]})
- #print 'Rec4: ', rec.line_ids
+ for l in rec.line_ids:
+ # Borramos las lineas del recibo, ya que es solo adelanto
+ self.write(cr, uid, id, {'line_ids': [(2, l.id)]})
+
             self.write(cr, uid, id, {'only_advance': True})
             rec = self.browse(cr, uid, id)

To post a comment you must log in.
Revision history for this message
Bruno M. Villasanti (Thymbra) (brunovillasanti) wrote :

Merge aceptado.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.