1
# -*- encoding: utf-8 -*-
2
#################################################################################
4
# Copyright (C) 2011 Renato Lima - Akretion #
6
#This program is free software: you can redistribute it and/or modify #
7
#it under the terms of the GNU General Public License as published by #
8
#the Free Software Foundation, either version 3 of the License, or #
9
#(at your option) any later version. #
11
#This program is distributed in the hope that it will be useful, #
12
#but WITHOUT ANY WARRANTY; without even the implied warranty of #
13
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14
#GNU General Public License for more details. #
16
#You should have received a copy of the GNU General Public License #
17
#along with this program. If not, see <http://www.gnu.org/licenses/>. #
18
#################################################################################
22
from osv import fields, osv
23
import decimal_precision as dp
25
from tools import config
26
from tools.translate import _
27
from datetime import datetime
29
class account_invoice(osv.osv):
30
_inherit = 'account.invoice'
32
def onchange_partner_id(self, cr, uid, ids, type, partner_id,\
33
date_invoice=False, payment_term=False, partner_bank_id=False, company_id=False, fiscal_operation_category_id=False):
35
result = super(account_invoice, self).onchange_partner_id(cr, uid, ids, type, partner_id, date_invoice, payment_term, partner_bank_id, company_id)
40
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: