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

« back to all changes in this revision

Viewing changes to account_override/invoice.py

  • Committer: jf
  • Date: 2014-01-22 16:10:31 UTC
  • mto: This revision was merged to the branch mainline in revision 1974.
  • Revision ID: jfb@tempo-consulting.fr-20140122161031-okyj07eyc5uj4fxi
UF-2294 [FIX] Remove specific treatment for yml unit tests: the same context is set by the sync process

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
        """
128
128
        if not context:
129
129
            context = {}
130
 
        if context.get('update_mode') in ['init', 'update']:
131
 
            logging.getLogger('init').info('INV: set from yml test to True')
132
 
            vals['from_yml_test'] = True
133
130
        # Create a sequence for this new invoice
134
131
        res_seq = self.create_sequence(cr, uid, vals, context)
135
132
        vals.update({'sequence_id': res_seq,})
273
270
        """
274
271
        if not context:
275
272
            context = {}
276
 
        if context.get('update_mode') in ['init', 'update']:
277
 
            logging.getLogger('init').info('INV: set from yml test to True')
278
 
            vals['from_yml_test'] = True
279
273
        # Create new number with invoice sequence
280
274
        if vals.get('invoice_id') and self._name in ['account.invoice.line']:
281
275
            invoice = self.pool.get('account.invoice').browse(cr, uid, vals['invoice_id'])