diff --git a/netforce_clinic/layouts/clinic_menu.xml b/netforce_clinic/layouts/clinic_menu.xml index 74810d1..9faba75 100644 --- a/netforce_clinic/layouts/clinic_menu.xml +++ b/netforce_clinic/layouts/clinic_menu.xml @@ -28,7 +28,6 @@ - diff --git a/netforce_clinic/models/import_payment.py b/netforce_clinic/models/import_payment.py index 5d3d3ee..4d24397 100644 --- a/netforce_clinic/models/import_payment.py +++ b/netforce_clinic/models/import_payment.py @@ -1,11 +1,8 @@ -import re import time import xlrd -from datetime import datetime from netforce.model import Model, fields, get_model from netforce.access import get_active_company -from netforce.access import get_active_user, set_active_user from netforce.utils import get_file_path from netforce.utils import get_data_path from netforce.database import get_connection diff --git a/netforce_clinic/models/payment.py b/netforce_clinic/models/payment.py index bba4efb..7e343df 100644 --- a/netforce_clinic/models/payment.py +++ b/netforce_clinic/models/payment.py @@ -11,5 +11,9 @@ class Payment(Model): 'amount': fields.Float("Amount"), } + _defaults={ + 'amount': 0.0, + } + Payment.register() diff --git a/netforce_clinic/scripts b/netforce_clinic/scripts new file mode 160000 index 0000000..c8b4f9d --- /dev/null +++ b/netforce_clinic/scripts @@ -0,0 +1 @@ +Subproject commit c8b4f9d18c7e96db2763ea2089db724140c2c89f diff --git a/netforce_clinic/todo.txt b/netforce_clinic/todo.txt index 8dcd5ec..623c265 100644 --- a/netforce_clinic/todo.txt +++ b/netforce_clinic/todo.txt @@ -1,5 +1,7 @@ === - skip holiday + -> mum + - ==== - import data - payment