Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BAH-3786 | Add. Odoo 16 Metadata #139

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions odoo/data/address.seed.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
city_village,sub_district,district,state,country
Kodungallur,Mukundapuram,Thrissur,Kerala,India
Chalakudy,Mukundapuram,Thrissur,Kerala,India
Nadavaramba,Mukundapuram,Thrissur,Kerala,India
Vellangallur,Mukundapuram,Thrissur,Kerala,India
Irinjalakuda,Mukundapuram,Thrissur,Kerala,India
Guruvayur,Chavakkad,Thrissur,Kerala,India
Kochi,Ernakulam,Ernakulam,Kerala,India
Egmore,Chennai City North,Chennai,Tamil Nadu,India
Ganapathy,Coimbatore North,Coimbatore,Tamil Nadu,India
Adambakkam,Chennai City North,Chennai,Tamil Nadu,India
Adyar,Chennai City North,Chennai,Tamil Nadu,India
Alwarpet,Chennai City North,Chennai,Tamil Nadu,India
Alwarthirunagar,Chennai City North,Chennai,Tamil Nadu,India
Aminjikarai,Chennai City North,Chennai,Tamil Nadu,India
Anna Nagar,Chennai City North,Chennai,Tamil Nadu,India
Arumbakkam,Chennai City North,Chennai,Tamil Nadu,India
Ashok Nagar,Chennai City North,Chennai,Tamil Nadu,India
Ayanavaram,Chennai City North,Chennai,Tamil Nadu,India
Basin Bridge,Chennai City North,Chennai,Tamil Nadu,India
Besant Nagar,Chennai City North,Chennai,Tamil Nadu,India
Chetpauk,Chennai City North,Chennai,Tamil Nadu,India
Chintadripet,Chennai City North,Chennai,Tamil Nadu,India
Choolai,Chennai City North,Chennai,Tamil Nadu,India
Choolaimedu,Chennai City North,Chennai,Tamil Nadu,India
Chrompet,Chennai City North,Chennai,Tamil Nadu,India
Ekkaduthangal,Chennai City North,Chennai,Tamil Nadu,India
Fort St. George,Chennai City North,Chennai,Tamil Nadu,India
George Town,Chennai City North,Chennai,Tamil Nadu,India
Guindy,Chennai City North,Chennai,Tamil Nadu,India
ICF,Chennai City North,Chennai,Tamil Nadu,India
IIT Madras,Chennai City North,Chennai,Tamil Nadu,India
Iyappathangal,Chennai City North,Chennai,Tamil Nadu,India
Jafferkhanpet,Chennai City North,Chennai,Tamil Nadu,India
K.K. Nagar,Chennai City North,Chennai,Tamil Nadu,India
Keelkattalai,Chennai City North,Chennai,Tamil Nadu,India
Kilpauk,Chennai City North,Chennai,Tamil Nadu,India
Kodambakkam,Chennai City North,Chennai,Tamil Nadu,India
Kodungaiyur,Chennai City North,Chennai,Tamil Nadu,India
Kolathur,Chennai City North,Chennai,Tamil Nadu,India
Korattur,Chennai City North,Chennai,Tamil Nadu,India
Korukkupet,Chennai City North,Chennai,Tamil Nadu,India
Kottivakkam,Chennai City North,Chennai,Tamil Nadu,India
Kotturpuram,Chennai City North,Chennai,Tamil Nadu,India
Shakar Pur Bramad,Gandhi Nagar,Delhi East,Delhi,India
Shakar Pur Khas,Gandhi Nagar,Delhi East,Delhi,India
Chilla Saroda Banger,Preet Vihar,Delhi East,Delhi,India
Chilla Saroda Khadar,Preet Vihar,Delhi East,Delhi,India
Dalu Pura,Preet Vihar,Delhi East,Delhi,India
Gazi Pur,Preet Vihar,Delhi East,Delhi,India
Gharauli,Preet Vihar,Delhi East,Delhi,India
33 changes: 33 additions & 0 deletions odoo/data/order_type.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="order_type_drug" model="order.type">
<field name="name">Drug Order</field>
<field name="description">This order type is used for prescribing medications to patients. It includes details such as the name of the medication, dosage, frequency, and duration of treatment.</field>
</record>
<record id="order_type_lab" model="order.type">
<field name="name">Lab Order</field>
<field name="description">Lab orders are used to request various laboratory tests and investigations for patients. They specify the type of test required, along with any specific instructions or details for the lab to follow.</field>
</record>
<record id="order_type_radiology" model="order.type">
<field name="name">Radiology Order</field>
<field name="description">Radiology orders are used to request imaging studies such as X-rays, CT scans, MRI scans, and ultrasound examinations for patients. These orders provide details about the type of imaging study needed, the body part to be examined, and any relevant clinical information.</field>
</record>
<record id="order_type_shop_map_drug" model="order.type.shop.map">
<field name="order_type" ref="order_type_drug"/>
<field name="shop_id" ref="sale_shop_pharmacy"/>
<field name="location_name">General Ward</field>
<field name="location_id">8</field>
</record>
<record id="order_type_shop_map_lab" model="order.type.shop.map">
<field name="order_type" ref="order_type_lab"/>
<field name="shop_id" ref="sale_shop_pharmacy"/>
<field name="location_name">General Ward</field>
<field name="location_id">8</field>
</record>
<record id="order_type_shop_map_radio" model="order.type.shop.map">
<field name="order_type" ref="order_type_radiology"/>
<field name="shop_id" ref="sale_shop_pharmacy"/>
<field name="location_name">General Ward</field>
<field name="location_id">8</field>
</record>
</odoo>
11 changes: 11 additions & 0 deletions odoo/data/sale_shop.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="sale_shop_pharmacy" model="sale.shop">
<field name="name">Pharmacy</field>
<field name="warehouse_id">1</field>
<field name="location_id">8</field>
<field name="payment_default_id">1</field>
</record>
</data>
</odoo>
138 changes: 138 additions & 0 deletions odoo/data/uom_seed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="uom_category_bahmni" model="uom.category">
<field name="name">Bahmni</field>
</record>
<record id="uom_uom_1" model="uom.uom">
<field name="name">Unit(s)</field>
<field name="category_id" ref="uom_category_bahmni"/>
<field name="factor">1.0</field>
<field name="rounding">0.01</field>
<field name="uom_type">reference</field>
<field name="active" eval="True"/>
</record>
<record id="uom_uom_2" model="uom.uom">
<field name="name">Tablet(s)</field>
<field name="category_id" ref="uom_category_bahmni"/>
<field name="factor">1.0</field>
<field name="rounding">0.01</field>
<field name="uom_type">bigger</field>
<field name="active" eval="True"/>
</record>
<record id="uom_uom_3" model="uom.uom">
<field name="name">Capsule(s)</field>
<field name="category_id" ref="uom_category_bahmni"/>
<field name="factor">1.0</field>
<field name="rounding">0.01</field>
<field name="uom_type">bigger</field>
<field name="active" eval="True"/>
</record>
<record id="uom_uom_4" model="uom.uom">
<field name="name">International Unit</field>
<field name="category_id" ref="uom_category_bahmni"/>
<field name="factor">1.0</field>
<field name="rounding">0.01</field>
<field name="uom_type">smaller</field>
<field name="active" eval="True"/>
</record>
<record id="uom_uom_5" model="uom.uom">
<field name="name">ml</field>
<field name="category_id" ref="uom.product_uom_categ_vol"/>
<field name="factor">1000.0</field>
<field name="rounding">0.01</field>
<field name="uom_type">smaller</field>
<field name="active" eval="True"/>
</record>
<record id="uom_uom_6" model="uom.uom">
<field name="name">mg</field>
<field name="category_id" ref="uom.product_uom_categ_kgm"/>
<field name="factor">1000000.0</field>
<field name="rounding">0.01</field>
<field name="uom_type">smaller</field>
<field name="active" eval="True"/>
</record>
<record id="uom_uom_7" model="uom.uom">
<field name="name">Drops</field>
<field name="category_id" ref="uom_category_bahmni"/>
<field name="factor">1.0</field>
<field name="rounding">0.01</field>
<field name="uom_type">smaller</field>
<field name="active" eval="True"/>
</record>
<record id="uom_uom_8" model="uom.uom">
<field name="name">Teaspoon</field>
<field name="category_id" ref="uom_category_bahmni"/>
<field name="factor">1.0</field>
<field name="rounding">0.01</field>
<field name="uom_type">smaller</field>
<field name="active" eval="True"/>
</record>
<record id="uom_uom_9" model="uom.uom">
<field name="name">Tablespoon</field>
<field name="category_id" ref="uom_category_bahmni"/>
<field name="factor">1.0</field>
<field name="rounding">0.01</field>
<field name="uom_type">smaller</field>
<field name="active" eval="True"/>
</record>
<record id="uom_uom_10" model="uom.uom">
<field name="name">Puffs</field>
<field name="category_id" ref="uom_category_bahmni"/>
<field name="factor">1.0</field>
<field name="rounding">0.01</field>
<field name="uom_type">smaller</field>
<field name="active" eval="True"/>
</record>
<record id="uom_uom_11" model="uom.uom">
<field name="name">Service</field>
<field name="category_id" ref="uom_category_bahmni"/>
<field name="factor">1.0</field>
<field name="rounding">0.01</field>
<field name="uom_type">smaller</field>
<field name="active" eval="True"/>
</record>
<record id="syncable_units_mapping_1" model="syncable.units.mapping">
<field name="name">Unit(s)</field>
<field name="unit_of_measure" ref="uom.product_uom_unit"/>
</record>
<record id="syncable_units_mapping_2" model="syncable.units.mapping">
<field name="name">Tablet(s)</field>
<field name="unit_of_measure" ref="uom.product_uom_unit"/>
</record>
<record id="syncable_units_mapping_3" model="syncable.units.mapping">
<field name="name">Capsule(s)</field>
<field name="unit_of_measure" ref="uom.product_uom_unit"/>
</record>
<record id="syncable_units_mapping_4" model="syncable.units.mapping">
<field name="name">International Unit</field>
<field name="unit_of_measure" ref="uom.product_uom_unit"/>
</record>
<record id="syncable_units_mapping_5" model="syncable.units.mapping">
<field name="name">ml</field>
<field name="unit_of_measure" ref="uom.product_uom_unit"/>
</record>
<record id="syncable_units_mapping_6" model="syncable.units.mapping">
<field name="name">mg</field>
<field name="unit_of_measure" ref="uom.product_uom_unit"/>
</record>
<record id="syncable_units_mapping_7" model="syncable.units.mapping">
<field name="name">Drops</field>
<field name="unit_of_measure" ref="uom.product_uom_unit"/>
</record>
<record id="syncable_units_mapping_8" model="syncable.units.mapping">
<field name="name">Teaspoon</field>
<field name="unit_of_measure" ref="uom.product_uom_unit"/>
</record>
<record id="syncable_units_mapping_9" model="syncable.units.mapping">
<field name="name">Tablespoon</field>
<field name="unit_of_measure" ref="uom.product_uom_unit"/>
</record>
<record id="syncable_units_mapping_10" model="syncable.units.mapping">
<field name="name">Puffs</field>
<field name="unit_of_measure" ref="uom.product_uom_unit"/>
</record>
<record id="syncable_units_mapping_11" model="syncable.units.mapping">
<field name="name">Service</field>
<field name="unit_of_measure" ref="uom.product_uom_unit"/>
</record>
</odoo>
1 change: 1 addition & 0 deletions package/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ COPY openmrs /etc/bahmni_config/openmrs
COPY masterdata /etc/bahmni_config/masterdata
COPY openelis /etc/bahmni_config/openelis
COPY offline /etc/bahmni_config/offline
COPY odoo/ /etc/bahmni_config/odoo

COPY package/docker/start.sh start.sh
RUN chmod +x start.sh
Expand Down