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

« back to all changes in this revision

Viewing changes to account_invoice_split/invoice.py

  • Committer: Olivier DOSSMANN
  • Date: 2013-05-31 14:22:09 UTC
  • mto: This revision was merged to the branch mainline in revision 1687.
  • Revision ID: od@tempo-consulting.fr-20130531142209-sbcwvzuema11guzz
UF-1991 [FIX] Problem with wizard on "msg" field. Change it to "name".

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    _name = 'account.invoice.line'
30
30
    _inherit = 'account.invoice.line'
31
31
 
32
 
    def copy(self, cr, uid, id, default={}, context={}):
 
32
    def copy(self, cr, uid, id, default=None, context=None):
33
33
        if not context:
34
34
            context = {}
35
35
        if not default:
62
62
 
63
63
    _inherit = 'account.invoice'
64
64
 
65
 
    def copy(self, cr, uid, id, default={}, context={}):
 
65
    def copy(self, cr, uid, id, default=None, context=None):
66
66
        if not context:
67
67
            context = {}
68
68
        if not default:
90
90
 
91
91
        return new_id
92
92
 
93
 
    def button_split_invoice(self, cr, uid, ids, context={}):
 
93
    def button_split_invoice(self, cr, uid, ids, context=None):
94
94
        """
95
95
        Launch the split invoice wizard to split an invoice in two elements.
96
96
        """