2
# -*- encoding: utf-8 -*-
3
###########################################################################
4
# Module Writen to OpenERP, Open Source Management Solution
5
# Copyright (C) OpenERP Venezuela (<http://openerp.com.ve>).
7
# Credits######################################################
8
# Coded by: Vauxoo C.A.
9
# Planified by: Nhomar Hernandez
10
# Audited by: Vauxoo C.A.
11
#############################################################################
12
# This program is free software: you can redistribute it and/or modify
13
# it under the terms of the GNU Affero General Public License as published by
14
# the Free Software Foundation, either version 3 of the License, or
15
# (at your option) any later version.
17
# This program is distributed in the hope that it will be useful,
18
# but WITHOUT ANY WARRANTY; without even the implied warranty of
19
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
# GNU Affero General Public License for more details.
22
# You should have received a copy of the GNU Affero General Public License
23
# along with this program. If not, see <http://www.gnu.org/licenses/>.
24
##########################################################################
26
from openerp.osv import osv, fields
27
from openerp.tools.translate import _
29
from datetime import datetime
30
from DateTime import DateTime
34
class account_invoice(osv.Model):
36
_inherit = 'account.invoice'
39
'payment_terms_id':fields.many2one('payment.terms.partner',
41
help='Select the payment term '
42
'agreed by company for '
49
class payments_term_partner(osv.Model):
51
'''Payments terms agreed by company to define how to will
54
_name = 'payment.terms.partner'
57
'name':fields.char('Name', 50,
58
help='Name to identify payment term'),