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

Fix bugs and usability issues identified in LABS-362 #205

Open
wants to merge 9 commits into
base: release/10.0
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
661 changes: 0 additions & 661 deletions LICENSE

This file was deleted.

768 changes: 391 additions & 377 deletions LICENSE.md

Large diffs are not rendered by default.

27 changes: 25 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,31 @@ records in Odoo.
Many of the workflows were built in alignment with existing Odoo processes to allow for
seamless operation with other record types.

This project is moving towards organization and data models inspired by [HL7 FHIR v3](
https://www.hl7.org/fhir/overview.html).
# Licensing history
The current project as it is today represents an evolution of the original work
from from started from Luis Falcon. See https://sourceforge.net/projects/medical/files/Oldfiles/1.0.1,
that later became GNU Health (see
http://health.gnu.org/). The original code was licensed under GPL.

On Nov 27, 2012 derivative code was published in https://github.com/OCA/vertical-medical,
by Tech-Receptives Solutions Pvt. Ltd., licensed
under AGPL. The license change was unauthorized by the original
author. See https://github.com/OCA/vertical-medical/commit/f0a664749edaea36f6749c34bfb04f1fc4cc9ea4

On Feb 17, 2017 the branch 9.0 of the project was relicensed to GPL.
https://github.com/OCA/vertical-medical/pull/166. Various prior contributors
approved the relicense, but not all.

On Jan 25, 2018, GNU Health claimed that the original code and attribution
should be respected, and after further investigation the Odoo Community
Association Board agreed to switch the license back to GPL v3 to respect the
rights of the original author.

Although no trace of relationship was found between the code at the date
and the original code from 2012, through the commit history of the project one
can see that the current status of the project is the end result of an
evolutionary process. The Odoo Community Association Board concluded that
the original license should be respected for ethical reasons.

[//]: # (addons)
This part will be replaced when running the oca-gen-addons-table script from OCA/maintainer-tools.
Expand Down
4 changes: 2 additions & 2 deletions mail_thread_medical_prescription/README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg
.. image:: https://img.shields.io/badge/license-GPL--3-blue.svg
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
:alt: License: GPL-3

===========================
Medical Prescription Thread
Expand Down
2 changes: 1 addition & 1 deletion mail_thread_medical_prescription/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
# License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

from . import models
4 changes: 2 additions & 2 deletions mail_thread_medical_prescription/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
# License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

{

Expand All @@ -12,7 +12,7 @@
'medical_prescription',
],
'website': 'https://laslabs.com/',
'license': 'LGPL-3',
'license': 'GPL-3',
'data': [
'views/medical_prescription_order_view.xml',
'views/medical_prescription_order_line_view.xml'
Expand Down
2 changes: 1 addition & 1 deletion mail_thread_medical_prescription/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
# License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

from . import medical_prescription_order
from . import medical_prescription_order_line
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
# License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

from odoo import models

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
# License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

from odoo import models

Expand Down
2 changes: 1 addition & 1 deletion mail_thread_medical_prescription/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
# License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

from . import test_prescription_order
from . import test_prescription_order_line
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
# License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

from odoo.tests.common import TransactionCase

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
# License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

from odoo.tests.common import TransactionCase

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!--
Copyright 2016 LasLabs Inc.
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
-->

<odoo>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!--
Copyright 2016 LasLabs Inc.
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
-->

<odoo>
Expand Down
31 changes: 29 additions & 2 deletions medical/README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg
.. image:: https://img.shields.io/badge/license-GPL--3-blue.svg
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
:alt: License: GPL-3

============
Odoo Medical
Expand Down Expand Up @@ -105,6 +105,33 @@ Contributors
* Brett Wood <[email protected]>
* Jordi Ballester Alomar <[email protected]>

The current project as it is today represents an evolution of the original work
started by Luis Falcon. See https://sourceforge.net/projects/medical/files/Oldfiles/1.0.1,
that later became GNU Health (see
http://health.gnu.org/). The original code was licensed under GPL.

On Nov 27, 2012 derivative code was published in https://github.com/OCA/vertical-medical,
by Tech-Receptives Solutions Pvt. Ltd., licensed
under AGPL. The license change was unauthorized by the original
author. See https://github.com/OCA/vertical-medical/commit/f0a664749edaea36f6749c34bfb04f1fc4cc9ea4

On Feb 17, 2017 the branch 9.0 of the project was relicensed to LGPL.
https://github.com/OCA/vertical-medical/pull/166. Various prior contributors
approved the relicense, but not all.

On Jan 25, 2018, GNU Health claimed that the original code and attribution
should be respected, and after further investigation the Odoo Community
Association Board agreed to switch the license back to GPL v3 to respect the
rights of the original author.

Although no trace of relationship was found between the code at the date
and the original code from 2012, through the commit history of the project one
can see that the current status of the project is the end result of an
evolutionary process. The Odoo Community Association Board concluded that
the original license should be respected for ethical reasons.

More information can be read here - https://odoo-community.org/blog/our-blog-1/post/vertical-medical-75.

Maintainer
----------

Expand Down
2 changes: 1 addition & 1 deletion medical/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
# License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

from . import models
10 changes: 5 additions & 5 deletions medical/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# -*- coding: utf-8 -*-
# Copyright 2004-2009 Tiny SPRL
# Copyright 2016 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
# Copyright 2016-2018 LasLabs Inc.
# License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

{
'name': 'Odoo Medical',
'version': '10.0.1.0.2',
'version': '10.0.1.0.4',
'category': 'Medical',
'depends': [
'product',
'base_locale_uom_default'
],
'author': 'LasLabs, Odoo Community Association (OCA)',
'website': 'https://odoo-community.org/',
'license': 'LGPL-3',
'license': 'GPL-3',
'data': [
'security/medical_security.xml',
'security/ir.model.access.csv',
Expand Down
2 changes: 1 addition & 1 deletion medical/demo/medical_patient_demo.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2016 LasLabs Inc.
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->
License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->

<odoo>

Expand Down
2 changes: 1 addition & 1 deletion medical/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
# License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

from . import medical_abstract_entity
from . import medical_patient
Expand Down
2 changes: 1 addition & 1 deletion medical/models/medical_abstract_entity.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
# License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

import threading

Expand Down
3 changes: 2 additions & 1 deletion medical/models/medical_patient.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
# Copyright 2008 Luis Falcon <[email protected]>
# Copyright 2016 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
# License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

from datetime import date, datetime
from dateutil.relativedelta import relativedelta
Expand Down
3 changes: 2 additions & 1 deletion medical/models/res_partner.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
# Copyright 2008 Luis Falcon <[email protected]>
# Copyright 2016 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
# License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

from datetime import datetime

Expand Down
2 changes: 1 addition & 1 deletion medical/static/src/js/medical.tour.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright 2016 LasLabs Inc.
* License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */
* License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */

odoo.define("medical.tour", function (require) {
"use strict";
Expand Down
2 changes: 1 addition & 1 deletion medical/templates/assets.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2016 LasLabs Inc.
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->
License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->

<odoo>

Expand Down
2 changes: 1 addition & 1 deletion medical/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
# License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

from . import test_res_partner
from . import test_medical_patient
2 changes: 1 addition & 1 deletion medical/tests/test_medical_patient.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# Copyright 2015 ACSONE SA/NV
# Copyright 2016 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
# License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

from datetime import date, datetime, timedelta
from dateutil.relativedelta import relativedelta
Expand Down
2 changes: 1 addition & 1 deletion medical/tests/test_res_partner.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
# License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

from odoo.tests.common import TransactionCase

Expand Down
8 changes: 3 additions & 5 deletions medical/views/medical_abstract_entity.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2016 LasLabs Inc.
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->
<!-- Copyright 2016-2018 LasLabs Inc.
License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->

<odoo>

Expand Down Expand Up @@ -123,6 +123,7 @@
attrs="{'invisible': [('is_company', '=', True)]}"
/>
<field name="lang" />
<field name="gender" attrs="{'invisible': [('is_company', '=', True)]}"/>
</group>
</group>
<group name="main_data">
Expand Down Expand Up @@ -385,9 +386,6 @@
<field name="partner_id" invisible="1" />
<filter string="Deactivated"
domain="[('active', '=', 0)]" />
<filter string="Tag"
domain="[]"
context="{'group_by':'category_id'}" />
<filter string="Parent"
domain="[]"
context="{'group_by':'parent_id'}" />
Expand Down
2 changes: 1 addition & 1 deletion medical/views/medical_menu.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2016 LasLabs Inc.
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->
License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->

<odoo>

Expand Down
2 changes: 1 addition & 1 deletion medical/views/medical_patient.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2016 LasLabs Inc.
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->
License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->

<odoo>

Expand Down
2 changes: 1 addition & 1 deletion medical/views/res_partner.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2016 LasLabs Inc.
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->
License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->

<odoo>

Expand Down
4 changes: 2 additions & 2 deletions medical_app_pharmacy/README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg
.. image:: https://img.shields.io/badge/license-GPL--3-blue.svg
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
:alt: License: GPL-3

=======================
Medical Apps - Pharmacy
Expand Down
2 changes: 1 addition & 1 deletion medical_app_pharmacy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2016-2017 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl)
# License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl)
4 changes: 2 additions & 2 deletions medical_app_pharmacy/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# -*- coding: utf-8 -*-
# Copyright 2016-2017 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl)
# License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl)

{
'name': 'Medical Apps - Pharmacy',
'version': '10.0.1.0.0',
'author': 'LasLabs, Odoo Community Association (OCA)',
'category': 'Medical',
'website': 'https://laslabs.com',
'license': 'LGPL-3',
'license': 'GPL-3',
'application': True,
'installable': True,
'depends': [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright 2016-2017 LasLabs Inc.
* License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl) */
* License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl) */

odoo.define('medical_app_pharmacy.tour', function (require) {
'use strict';
Expand Down
2 changes: 1 addition & 1 deletion medical_app_pharmacy/templates/assets.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2016-2017 LasLabs Inc.
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl) -->
License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl) -->

<odoo>
<template id="assets_backend" inherit_id="web.assets_backend" name="Pharmacy App - Backend Assets">
Expand Down
2 changes: 1 addition & 1 deletion medical_app_pharmacy/views/medical_app_pharmacy_menu.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2016-2017 LasLabs Inc.
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl) -->
License GPL-3.0 or later (http://www.gnu.org/licenses/lgpl) -->

<odoo>
<menuitem id="pharmacy_app_menu"
Expand Down
Loading