~camptocamp/account-invoicing/correct_payment_term_balance_mdh

« back to all changes in this revision

Viewing changes to invoice_validation_wkfl/invoice.py

  • Committer: Guewen Baconnier
  • Author(s): Matthieu Dietrich
  • Date: 2014-02-28 13:03:23 UTC
  • mfrom: (25.1.1 account-invoicing)
  • Revision ID: guewen.baconnier@camptocamp.com-20140228130323-fymu6xr4ebr4ogdd
[FIX] issue with write-off regarding date

Show diffs side-by-side

added added

removed removed

Lines of Context:
161
161
                        account_m_line_obj.reconcile(cr, uid, to_reconcile_ids[account],
162
162
                                        writeoff_period_id=period,
163
163
                                        writeoff_journal_id = inv.journal_id.id,
164
 
                                        writeoff_acc_id=inv.account_id.id
165
 
                                        )
 
164
                                        writeoff_acc_id=inv.account_id.id,
 
165
                                        context={'date_p': date})
166
166
                    if mode == 'modify':
167
167
                        invoice = inv_obj.read(cr, uid, [inv.id],
168
168
                                    ['name', 'type', 'number', 'reference',