~vauxoo/addons-vauxoo/7.0_fix_account_move_validate_multi_wizard_dev_jorge

« back to all changes in this revision

Viewing changes to hr_expense_replenishment/model/account_invoice.py

[MERGE] [hr_expense_replenishment]

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
            exp_obj.write(cr, uid, exp_id, {'line_ids': data}, context=context)
59
59
        return True
60
60
 
 
61
    def copy(self, cr, uid, id, default=None, context=None):
 
62
        if default is None:
 
63
            default = {}
 
64
        default = default.copy()
 
65
        default.update({'expense_id': False})
 
66
        return super(account_invoice, self).copy(cr, uid, id, default, context=context)
61
67
 
62
68
class account_invoice_line(osv.Model):
63
69
    _inherit = 'account.invoice.line'