~therp-nl/therp-addons/7.0-hr_timesheet_subscribe_manager

« back to all changes in this revision

Viewing changes to fetchmail_invoice/model/fetchmail_invoice.py

  • Committer: Holger Brunn
  • Author(s): stefan at therp
  • Date: 2013-10-14 13:00:34 UTC
  • mfrom: (83.1.2 therp-addons)
  • Revision ID: hbrunn@therp.nl-20131014130034-3k0mxlxicrnfik43
[FIX] Created invoices select sales journal because of missing invoice
type

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
        if custom_values is None:
49
49
            custom_values = {}
50
50
 
51
 
        custom_values.update({
 
51
        local_context = dict(context)
 
52
        local_context.update({
52
53
                'type': 'in_invoice',
53
54
                })       
54
55
 
78
79
 
79
80
        # Create the resource
80
81
        res_id = super(account_invoice, self).message_new(
81
 
            cr, uid, msg_dict, custom_values=custom_values, context=context)
 
82
            cr, uid, msg_dict, custom_values=custom_values, context=local_context)
82
83
        
83
84
        return res_id