~acsone-openerp/banking-addons/ba-70-missing-transfer-account

« back to all changes in this revision

Viewing changes to account_banking_payment/model/account_payment.py

  • Committer: Holger Brunn
  • Author(s): stefan at therp
  • Date: 2013-07-29 06:17:31 UTC
  • mfrom: (174.1.1 banking-addons-70)
  • Revision ID: hbrunn@therp.nl-20130729061731-qtsw379gbolrveqr
[FIX] Clearing lines should not have a partner, because of the new
constraint

Show diffs side-by-side

added added

removed removed

Lines of Context:
315
315
                        line.move_line_id.invoice.number or 
316
316
                        line.move_line_id.name),
317
317
                    'move_id': move_id,
318
 
                    'partner_id': line.partner_id.id,
 
318
                    'partner_id': False,
319
319
                    'account_id': order.mode.transfer_account_id.id,
320
320
                    'credit': (order.payment_order_type == 'payment'
321
321
                               and line.amount or 0.0),
329
329
 
330
330
                # create the debit move line on the receivable account
331
331
                vals.update({
 
332
                        'partner_id': line.partner_id.id,
332
333
                        'account_id': line.move_line_id.account_id.id,
333
334
                        'credit': (order.payment_order_type == 'debit'
334
335
                                   and line.amount or 0.0),