Skip to content

Commit

Permalink
[ADD] pharmaceuticals_retailers: updated the review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dhrs-odoo committed Dec 11, 2023
1 parent aa7dc3f commit c4124d7
Show file tree
Hide file tree
Showing 24 changed files with 496 additions and 679 deletions.
2 changes: 0 additions & 2 deletions pharmaceuticals_retailers/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
This setup is for pharmacy retail companies that purchase and sell products.
They maintain the stock lot wise and also manage the expiry of the lots.
""",
'author': 'Odoo S.A',
'depends': [
'account_followup',
'calendar',
Expand Down Expand Up @@ -63,7 +62,6 @@
'demo/sale_order_line.xml',
'demo/sale_order_post.xml',
],
'application': False,
'license': 'OPL-1',
'images': ['images/main.png'],
}
38 changes: 10 additions & 28 deletions pharmaceuticals_retailers/data/ir_actions_act_window.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record id="doctor_34fd41e9-4456-47f4-bb18-88a9886e843e" model="ir.actions.act_window">
<record id="actions_doctor_partner_pharma" model="ir.actions.act_window">
<field name="name">Doctor</field>
<field name="res_model">res.partner</field>
<field name="view_mode">kanban,tree,form,map,activity</field>
<field name="context">{'x_studio_is_a_doctor': True, 'default_x_studio_is_a_doctor': 1}</field>
<field name="context">{'x_is_a_doctor': True, 'default_x_is_a_doctor': 1}</field>
<field name="help">
<![CDATA[
<p class="o_view_nocontent_smiling_face">
Expand All @@ -15,28 +15,10 @@
You can start customizing these screens by clicking on the Studio icon on the top right corner (you can also customize this help message there).
</p>]]>
</field>
<field name="domain">[('x_studio_is_a_doctor','=', True)]</field>
<field name="domain">[('x_is_a_doctor','=', True)]</field>
<field name="filter" eval="True" />
</record>
<record id="doctor_8e81eebe-9a34-47ca-a643-73a2fc1a2696" model="ir.actions.act_window">
<field name="name">Doctor</field>
<field name="res_model">res.partner</field>
<field name="view_mode">kanban,tree,form,map,activity</field>
<field name="context">{'x_studio_is_a_doctor': True, 'default_x_studio_is_a_doctor': 1}</field>
<field name="help">
<![CDATA[
<p class="o_view_nocontent_smiling_face">
This is your new action.
</p>
<p>By default, it contains a list and a form view and possibly other view types depending on the options you chose for your model.</p>
<p>
You can start customizing these screens by clicking on the Studio icon on the top right corner (you can also customize this help message there).
</p>]]>
</field>
<field name="domain">[('x_studio_is_a_doctor','=', True)]</field>
<field name="filter" eval="True" />
</record>
<record id="generic_name_9f8fada1-7fb6-4e3f-abf7-84afe5d521a1" model="ir.actions.act_window">
<record id="actions_generic_name_pharma" model="ir.actions.act_window">
<field name="name">Generic Name</field>
<field name="res_model">x_generic_name</field>
<field name="help">
Expand All @@ -50,7 +32,7 @@
</p>]]>
</field>
</record>
<record id="kind_of_medicine_167e49f0-9a4b-44b6-900f-252c0977da5e" model="ir.actions.act_window">
<record id="actions_kind_of_medicine_pharma" model="ir.actions.act_window">
<field name="name">Kind of Medicine</field>
<field name="res_model">x_kind_of_medicine</field>
<field name="help">
Expand All @@ -64,11 +46,11 @@
</p>]]>
</field>
</record>
<record id="manufacturer_52536ca6-3684-428e-a7c3-d3c4172c7a04" model="ir.actions.act_window">
<record id="actions_manufacturer_pharma" model="ir.actions.act_window">
<field name="name">Manufacturer</field>
<field name="res_model">res.partner</field>
<field name="view_mode">kanban,tree,form,map,activity</field>
<field name="context">{'x_studio_is_a_doctor': True, 'default_x_studio_is_a_manufacturer': 1}</field>
<field name="context">{'x_is_a_doctor': True, 'default_x_is_a_manufacturer': 1}</field>
<field name="help">
<![CDATA[
<p class="o_view_nocontent_smiling_face">
Expand All @@ -79,10 +61,10 @@
You can start customizing these screens by clicking on the Studio icon on the top right corner (you can also customize this help message there).
</p>]]>
</field>
<field name="domain">[('x_studio_is_a_manufacturer','=', True)]</field>
<field name="domain">[('x_is_a_manufacturer','=', True)]</field>
<field name="filter" eval="True" />
</record>
<record id="medical_item_type_886f61a1-d16a-4b85-90de-c8ac7e83b5fb" model="ir.actions.act_window">
<record id="actions_medical_item_type_pharma" model="ir.actions.act_window">
<field name="name">Medical Item Type</field>
<field name="res_model">x_medical_item_type</field>
<field name="help">
Expand All @@ -96,7 +78,7 @@
</p>]]>
</field>
</record>
<record id="therapeutic_classifi_6e60b121-77ef-409c-8071-6ee9a4bb5a0e" model="ir.actions.act_window">
<record id="actions_therapeutic_classifi_pharma" model="ir.actions.act_window">
<field name="name">Therapeutic Classification</field>
<field name="res_model">x_therapeutic_classifi</field>
<field name="help">
Expand Down
16 changes: 8 additions & 8 deletions pharmaceuticals_retailers/data/ir_model_access.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record id="generic_name_group_s_b0925917-99ee-4fbe-b5d5-05a4f48a825b" model="ir.model.access">
<record id="generic_name_group_s_pharma" model="ir.model.access">
<field name="name">Generic Name group_system</field>
<field name="model_id" ref="model_generic_name" />
<field name="group_id" ref="base.group_system" />
Expand All @@ -9,15 +9,15 @@
<field name="perm_unlink" eval="True" />
<field name="perm_write" eval="True" />
</record>
<record id="generic_name_group_u_074ae6bc-364b-489a-95ba-91c14cb4585f" model="ir.model.access">
<record id="generic_name_group_u_pharma" model="ir.model.access">
<field name="name">Generic Name group_user</field>
<field name="model_id" ref="model_generic_name" />
<field name="group_id" ref="base.group_user" />
<field name="perm_create" eval="True" />
<field name="perm_read" eval="True" />
<field name="perm_write" eval="True" />
</record>
<record id="kind_of_medicine_gro_8b16cdfc-6f4a-4286-9063-621b695c374c" model="ir.model.access">
<record id="kind_of_medicine_gro_s_pharma" model="ir.model.access">
<field name="name">Kind of Medicine group_system</field>
<field name="model_id" ref="model_kind_of_medicine" />
<field name="group_id" ref="base.group_system" />
Expand All @@ -26,15 +26,15 @@
<field name="perm_unlink" eval="True" />
<field name="perm_write" eval="True" />
</record>
<record id="kind_of_medicine_gro_f0095b78-99ad-49d9-86cc-de3401d05aa3" model="ir.model.access">
<record id="kind_of_medicine_gro_u_pharma" model="ir.model.access">
<field name="name">Kind of Medicine group_user</field>
<field name="model_id" ref="model_kind_of_medicine" />
<field name="group_id" ref="base.group_user" />
<field name="perm_create" eval="True" />
<field name="perm_read" eval="True" />
<field name="perm_write" eval="True" />
</record>
<record id="medical_item_type_gr_2c6e1147-6a38-46c2-82f3-498c8d90bad7" model="ir.model.access">
<record id="medical_item_type_gr_s_pharma" model="ir.model.access">
<field name="name">Medical Item Type group_system</field>
<field name="model_id" ref="model_medical_item_type" />
<field name="group_id" ref="base.group_system" />
Expand All @@ -43,23 +43,23 @@
<field name="perm_unlink" eval="True" />
<field name="perm_write" eval="True" />
</record>
<record id="medical_item_type_gr_95206a68-2b2c-453f-89f6-88c845bccd61" model="ir.model.access">
<record id="medical_item_type_gr_u_pharma" model="ir.model.access">
<field name="name">Medical Item Type group_user</field>
<field name="model_id" ref="model_medical_item_type" />
<field name="group_id" ref="base.group_user" />
<field name="perm_create" eval="True" />
<field name="perm_read" eval="True" />
<field name="perm_write" eval="True" />
</record>
<record id="therapeutic_classifi_4c8b703d-03e9-43e0-a64e-1f5bb1fd54e7" model="ir.model.access">
<record id="therapeutic_classifi_u_pharma" model="ir.model.access">
<field name="name">Therapeutic Classification group_user</field>
<field name="model_id" ref="model_therapeutic_classifi" />
<field name="group_id" ref="base.group_user" />
<field name="perm_create" eval="True" />
<field name="perm_read" eval="True" />
<field name="perm_write" eval="True" />
</record>
<record id="therapeutic_classifi_d73fe885-61c9-4e96-9759-a0abf33686af" model="ir.model.access">
<record id="therapeutic_classifi_s_pharma" model="ir.model.access">
<field name="name">Therapeutic Classification group_system</field>
<field name="model_id" ref="model_therapeutic_classifi" />
<field name="group_id" ref="base.group_system" />
Expand Down

0 comments on commit c4124d7

Please sign in to comment.