-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhealth_services.py
41 lines (38 loc) · 1.85 KB
/
health_services.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
##############################################################################
#
# GNU Health: The Free Health and Hospital Information System
# Copyright (C) 2008-2022 Luis Falcon <[email protected]>
# Copyright (C) 2011-2022 GNU Solidario <[email protected]>
#
# Copyright (C) 2011 Adrián Bernardi, Mario Puntin (health_invoice)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import datetime
from trytond.model import ModelView, ModelSQL, fields, Unique
from trytond.transaction import Transaction
from trytond.pyson import Eval, Equal
from trytond.pool import Pool
from trytond.i18n import gettext
from trytond.modules.health.core import get_institution
from trytond.pool import PoolMeta
class HealthService(metaclass=PoolMeta):
'Health Service'
__name__ = 'gnuhealth.health_service'
requestor = fields.Many2One(
'gnuhealth.healthprofessional', 'Prescripteur',
help="Médécin prescripteur", select=True, required=True)
agent = fields.Many2One('commission.agent', 'Agent de Commission',select=True, required=True)
z_remise2 = fields.Numeric("Remise", digits=(3, 2), help="La Remise à appliquer sur la facture", required=False)