Mercurial > hgweb > health
changeset 4796:21dea08f3aec
health_services: Completed task #16048: Include a validation check on services
| author | Luis Falcon <falcon@gnuhealth.org> |
|---|---|
| date | Wed, 24 Nov 2021 13:00:24 +0000 |
| parents | 320d3c300fed |
| children | a050b3464875 |
| files | tryton/health_services/health_services.py tryton/health_services/view/gnuhealth_health_service_line.xml tryton/health_services/view/gnuhealth_health_service_line_tree.xml |
| diffstat | 3 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tryton/health_services/health_services.py +++ b/tryton/health_services/health_services.py @@ -139,6 +139,13 @@ qty = fields.Integer('Qty') from_date = fields.Date('From') to_date = fields.Date('To') + action_required = fields.Boolean('Action required', help='This optional field' + ' is used in the context of validation' + ' on the service line. Mark it if there' + ' is any administrative or other type' + ' that needs action') + + remarks = fields.Char('Remarks') @staticmethod def default_qty():
--- a/tryton/health_services/view/gnuhealth_health_service_line.xml +++ b/tryton/health_services/view/gnuhealth_health_service_line.xml @@ -16,4 +16,8 @@ <field name="to_date"/> <label name="appointment"/> <field name="appointment"/> + <label name="action_required"/> + <field name="action_required"/> + <label name="remarks"/> + <field name="remarks"/> </form>
--- a/tryton/health_services/view/gnuhealth_health_service_line_tree.xml +++ b/tryton/health_services/view/gnuhealth_health_service_line_tree.xml @@ -1,9 +1,11 @@ <?xml version="1.0"?> <tree editable="1"> + <field name="action_required" expand="1"/> <field name="to_invoice" expand="1"/> <field name="product" expand="1"/> <field name="desc" expand="1"/> <field name="qty" expand="1"/> <field name="from_date" expand="1"/> <field name="to_date" expand="1"/> + <field name="remarks" expand="1"/> </tree>
