~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to account_override/account.py

  • Committer: jf
  • Date: 2013-07-05 12:55:33 UTC
  • mfrom: (1638.8.17 UF_1991)
  • Revision ID: jfb@tempo-consulting.fr-20130705125533-747mz6rhzhutdi9o
UF-1991 [FIX] Finance data migration - Bugs at import
lp:~unifield-team/unifield-wm/UF_1991

Show diffs side-by-side

added added

removed removed

Lines of Context:
325
325
            for m in self.browse(cr, uid, ids):
326
326
                if m.status == 'manu' and m.state == 'draft':
327
327
                    to_delete.append(m.id)
328
 
        # First delete move lines to avoid UF-2018 problem
 
328
        # First delete move lines to avoid "check=True" problem on account_move_line item
329
329
        if to_delete:
330
330
            ml_ids = self.pool.get('account.move.line').search(cr, uid, [('move_id', 'in', to_delete)])
331
331
            if ml_ids: