1
1
# -*- coding: utf-8 -*-
3
###############################################################################~!!~~!!!
5
# Copyright (c) 2011-2012, Open Technologies for Information Advance, S.L.
6
# (en adelante "OPENTIA", CIF ES-B84267889) sobre las modificaciones realizadas
7
# Licencia: todos los derechos reservados
9
# Author : Equipo de desarrollo y consultoría OPENTIA
11
# Copyright (c) 2005-2012, de sus respectivos autores sobre el código
12
# que se pueda descargar libremente de los repositorios de OpenERP, S.A.
13
# y otros repositorios de acceso público.
15
# Author : OpenERP, S.A. y otros
17
# WARNING: This program as such is intended to be used by professional
18
# programmers who take the whole responsability of assessing all potential
19
# consequences resulting from its eventual inadequacies and bugs
20
# End users who are looking for a ready-to-use solution with commercial
21
# garantees and support are strongly adviced to contract a Free Software
24
# The original (not modified by OPENTIA) parts of this program,
25
# as can be taken from OpenERP official
26
# repositories are Free Software; you can redistribute them and/or
27
# modify them under the terms of the GNU General Public License
28
# as published by the Free Software Foundation; either version 2
29
# of the License, or (at your option) any later version.
31
# This program is distributed in the hope that it will be useful,
32
# but WITHOUT ANY WARRANTY; without even the implied warranty of
33
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34
# GNU General Public License for more details.
36
# You should have received a copy of the GNU General Public License
37
# along with this program; if not, write to the Free Software
38
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
40
###############################################################################
2
###############################################################################~!!~~!!!
4
# Copyright (c) 2010-2012, OPENTIA Group (<http://opentia.com>)
5
# The word "OPENTIA" is an European Community Trademark property of the Opentia Group
7
# @author: Opentia "Happy Hacking" Team
8
# @e-mail: consultoria@opentia·es
10
# This program is free software: you can redistribute it and/or modify
11
# it under the terms of the GNU Affero General Public License as
12
# published by the Free Software Foundation, either version 3 of the
13
# License, or (at your option) any later version.
15
# This program is distributed in the hope that it will be useful,
16
# but WITHOUT ANY WARRANTY; without even the implied warranty of
17
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
# GNU Affero General Public License for more details.
20
# You should have received a copy of the GNU Affero General Public License
21
# along with this program. If not, see <http://www.gnu.org/licenses/>.
22
###############################################################################~!!~~!!!
42
24
from osv import osv, fields
43
25
import decimal_precision as dp