-
-
Notifications
You must be signed in to change notification settings - Fork 277
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
[10.0] Medical practitioner #180
Conversation
from odoo import models, fields | ||
|
||
|
||
class MedicalRole(models.Model): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add active = fields.Boolean('Active', default=True)
and show this field in the form view?
That way users can deactivate roles that have become obsolete.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @rgarnau
Shouldn't this PR also deprecate medical.physician
?
) | ||
|
||
active = fields.Boolean( | ||
'Active', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This string is superfluous, Active
is the default
medical_practitioner/README.rst
Outdated
@@ -0,0 +1,91 @@ | |||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | |||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | |||
:alt: License: AGPL-3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGPL
medical_practitioner/README.rst
Outdated
@@ -0,0 +1,91 @@ | |||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | |||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgpl
medical_practitioner/README.rst
Outdated
@@ -0,0 +1,91 @@ | |||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGPL
medical_practitioner/__manifest__.py
Outdated
'version': '10.0.1.0.0', | ||
'summary': 'Defines medical practioners', | ||
'author': 'Creu Blanca', | ||
'maintainer': 'Eficent, Creu Blanca, Odoo Community Association (OCA)', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be the author
key. maintainer
key is a thing, but not used in OCA AFAIK
Also - I see a lot of LasLabs copyrights and credits left here. I don't recognize any of this code, however. Did LasLabs actually have a hand in any of this? If so, we should share author credit as well. Otherwise, please remove our credits.
_description = 'Practitioner Roles' | ||
|
||
name = fields.Char( | ||
required=True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trailing comma
) | ||
|
||
description = fields.Char( | ||
required=True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trailing comma
|
||
active = fields.Boolean( | ||
'Active', | ||
default=True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trailing comma
--> | ||
|
||
<odoo> | ||
<data> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can remove this
<odoo> | ||
<data> | ||
|
||
<menuitem id="medical_conf_practitioner_menu" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason we are creating a top level menu for this? Why not use the pre-existing "Medical Professionals" top level menu that Physicians is currently using?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As this module deprecates Physician, we are replacing this menu https://github.com/LasLabs/vertical-medical/blob/feature/10.0/medical_physician/medical_physician/views/medical_menu.xml#L20 for that new one.
Maybe I don't see your point, but IMO a new menu is necessary.
All the other changes are already added. Thanks!
# Copyright 2017 Eficent Business and IT Consulting Services, S.L. | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). | ||
|
||
from odoo import models, fields |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alphabetical order please
@lasley @mreficent - all changes have been applied. Could you please update? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code review 👍
@rgarnau - isn't this module intended to deprecate |
@lasley - this module does deprecate medical_physician, but what do you mean by 'perform that deprecation'? |
@rgarnau - We would want to delete the module that is no longer valid. So basically just delete Also because we're modifying two isolated modules here, I will not be able to squash on merge. Please also amend f3e2a6b to note the proper module name (it currently says Medical Center), and squash your two 60c8476 b4b260a into each other. |
@lasley - Just changed the module name in the commit and squashed the two other. |
Looks great, thanks @rgarnau!
If you're referring to the LasLabs fork, don't worry about it. We're actually going to have to make an adaptation layer there so that customers currently using it have a clear migration path. Let's do delete it from the OCA repo in this PR though. There's no reason to keep deprecated code around IMO. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Technical and functional review.
Oops, good call! Sorry - so much code 😆 I'm having trouble keeping it all straight. Glad we're finally getting all of this out of incubator |
This module adds medical practitioners.
Practitioner covers all individuals who are engaged in the healthcare process
and healthcare-related services as part of their formal responsibilities.
@lasley @jbeficent @etobella @gmeficent