Browse Source

Feb 10 [UPDT] : Updated 'medical_lab_management'

pull/352/merge
AjmalCybro 2 months ago
parent
commit
9a973a04c6
  1. 2
      medical_lab_management/__manifest__.py
  2. 5
      medical_lab_management/doc/RELEASE_NOTES.md
  3. 15
      medical_lab_management/views/lab_appointment_views.xml
  4. 10
      medical_lab_management/views/lab_request_views.xml

2
medical_lab_management/__manifest__.py

@ -21,7 +21,7 @@
############################################################################# #############################################################################
{ {
'name': "Medical Lab Management", 'name': "Medical Lab Management",
'version': '17.0.1.0.0', 'version': '17.0.1.0.1',
'category': 'Industries', 'category': 'Industries',
'summary': """Manage Medical Lab Operations.""", 'summary': """Manage Medical Lab Operations.""",
'description': """Manage Medical Laboratory Operations, 'description': """Manage Medical Laboratory Operations,

5
medical_lab_management/doc/RELEASE_NOTES.md

@ -4,3 +4,8 @@
#### Version 17.0.1.0.0 #### Version 17.0.1.0.0
#### ADD #### ADD
- Initial Commit for Medical Lab Management. - Initial Commit for Medical Lab Management.
#### 07.02.2025
#### Version 17.0.1.0.1
#### UPDT
- Added readonly fields in views based on state.

15
medical_lab_management/views/lab_appointment_views.xml

@ -140,19 +140,20 @@
</div> </div>
<group> <group>
<group col="4" colspan="4"> <group col="4" colspan="4">
<field name="patient_id"/> <field name="patient_id" readonly="state != 'draft'"/>
<field name="priority" widget="priority"/> <field name="priority" widget="priority" readonly="state != 'draft'"/>
<field name="name"/> <field name="name" readonly="state != 'draft'"/>
<field name="date"/> <field name="date" readonly="state != 'draft'"/>
<field name="appointment_date"/> <field name="appointment_date" readonly="state != 'draft'"/>
<field name="physician_id" <field name="physician_id"
readonly="state != 'draft'"
domain="[('is_physician','=',True)]" domain="[('is_physician','=',True)]"
context="{'search_default_is_physician':1, 'default_is_physician':1}"/> context="{'search_default_is_physician':1, 'default_is_physician':1}"/>
</group> </group>
</group> </group>
<notebook colspan="4"> <notebook colspan="4">
<page string="Lab Requests"> <page string="Lab Requests">
<field name="appointment_line_ids"> <field name="appointment_line_ids" readonly="state != 'draft'">
<tree string="Lab Request" <tree string="Lab Request"
editable="bottom"> editable="bottom">
<field name="lab_test_id"/> <field name="lab_test_id"/>
@ -162,7 +163,7 @@
</page> </page>
<page name="Note" <page name="Note"
string="Note"> string="Note">
<field name="comment"/> <field name="comment" readonly="state != 'draft'"/>
</page> </page>
</notebook> </notebook>
</sheet> </sheet>

10
medical_lab_management/views/lab_request_views.xml

@ -38,15 +38,15 @@
<group> <group>
<group col="4" colspan="4"> <group col="4" colspan="4">
<field name="lab_requestor" readonly="state != 'draft'"/> <field name="lab_requestor" readonly="state != 'draft'"/>
<field name="lab_request_id"/> <field name="lab_request_id" readonly="state == 'completed'"/>
<field name="lab_requesting_date" /> <field name="lab_requesting_date" readonly="state == 'completed'"/>
<field name="test_request"/> <field name="test_request" readonly="state == 'completed'"/>
<field name="app_id" invisible="1"/> <field name="app_id" invisible="1"/>
</group> </group>
</group> </group>
<notebook colspan="4"> <notebook colspan="4">
<page string="Test lines"> <page string="Test lines">
<field name="request_line"> <field name="request_line" readonly="state == 'completed'">
<tree string="Test lines" editable="bottom"> <tree string="Test lines" editable="bottom">
<field name="test_content" /> <field name="test_content" />
<field name="unit"/> <field name="unit"/>
@ -57,7 +57,7 @@
</page> </page>
<page name="Note" <page name="Note"
string="Note"> string="Note">
<field name="comment"/> <field name="comment" readonly="state == 'completed'"/>
</page> </page>
</notebook> </notebook>
</sheet> </sheet>

Loading…
Cancel
Save