Skip to content

Commit

Permalink
[Rahul] | BAH-3775 | Add. Odoo Order Type To Shop Mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
rahu1ramesh committed May 1, 2024
1 parent 0d2d26d commit 8b70529
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 31 deletions.
3 changes: 1 addition & 2 deletions bahmni_api_feed/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
'views/order_type_shop_map_view.xml',
'views/res_users_view.xml',
'data/mrs_person_attributes_data.xml',
'views/menus.xml',
'data/syncable_units_mapping.xml'
'views/menus.xml'
],
'demo': [],
'qweb': [],
Expand Down
17 changes: 0 additions & 17 deletions bahmni_api_feed/data/order_type_shop_map.xml

This file was deleted.

9 changes: 0 additions & 9 deletions bahmni_api_feed/data/syncable_units_mapping.xml

This file was deleted.

4 changes: 2 additions & 2 deletions bahmni_initializer/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
'security/ir.model.access.csv',
'data/address.seed.csv',
'data/uom_seed.xml',
'data/order_type.xml',
'data/sale_shop.xml'
'data/sale_shop.xml',
'data/order_type.xml'
],
'demo': [],
'qweb': [],
Expand Down
18 changes: 18 additions & 0 deletions package/resources/data/order_type.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,22 @@
<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>
2 changes: 1 addition & 1 deletion package/resources/data/sale_shop.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="sale_shop" model="sale.shop">
<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>
Expand Down

0 comments on commit 8b70529

Please sign in to comment.