Code Monkey home page Code Monkey logo

vertical-medical's Introduction

Runboat Pre-commit Status Build Status codecov Translation Status

Open Source Healthcare System for Odoo

TODO: add repo description.

This part will be replaced when running the oca-gen-addons-table script from OCA/maintainer-tools.

Licenses

This repository is licensed under AGPL-3.0.

However, each module can have a totally different license, as long as they adhere to Odoo Community Association (OCA) policy. Consult each module's __manifest__.py file, which contains a license key that explains its license.


OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

vertical-medical's People

Contributors

etobella avatar oca-git-bot avatar sbidoul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vertical-medical's Issues

Run as Production

The readme explains how to run the code in a development environment.

How would you run it as production?

There is also no list of required modules (postgres) or instructions of how to install them.

[RFC] sale_medical_insurance: Insurance sales and adjudication

This module will allow for a medical.insurance.plan to be applied to a sale.order, using a select box similar to the way that Carrier Rates are currently selected.

A field will also be added to select the patient that the order is associated with, which would be domain restricted to any patient that is related or a child of the partner_id in the sale.

From a high level, there are two ways for an insurance transaction to take place:

  • Insurance payment is made directly to the provider after services are rendered and bill submitted by provider
  • Insurance reimburses patient after services are rendered and bill submitted by patient

In the event of a direct payment to the provider, a pre-authorization is required. In the US, we have two types of pre-auths:

  • Prospective - This is typically used in clinical settings, to see what an insurance is willing to pay before the procedure is performed or medicine prescribed.
  • Retrospective - This is the most common pre-auth, and is after a procedure is performed or drug is dispensed. It is to determine what the patient pays, and what the insurer pays.

As I see it, Prospective would be during quote stage & Retrospective would be at sale invoicing.

When the sale is invoiced, two invoices will be generated - one to the insurance company and one to the customer. The customer is then responsible for their portion, in a process similar to a down payment. The transaction would be completed in the books once the insurance portion is received.

In the event that a patient is being reimbursed, the clinic or pharmacy would be unaware of the insurance from a billing perspective. In that case, I believe it would go through the standard cash process from the viewpoint of the provider. The patient would then submit their bill of the full service to their insurance provider in the hopes of receiving money back.

cc @LasLabs

Error in installing

Hi,

I have install the Odoo Medical Module in my Odoo Version 8 running on Ubuntu Instance.

I try to install all other module but was being prompt about the following attached.
odoo medical error
odoo medical error2

Error on install medical.patient.disease

medical.patient.disease (most current version) errors out on initial install. I haven't T/S'd or anything yet, just dropping this here so I remember. Pulled from Acsone/8.0-incubator-medical_disease-jne

ParseError: "ValidateError
Field(s) `arch` failed against a constraint: Invalid view definition

Error details:
Element '<xpath expr="//div[@name='buttons']">' cannot be located in parent view

Error context:
View `medical.patient.form (medical_disease)`
[view_id: 1702, xml_id: n/a, model: medical.patient, parent_id: 1679]" while parsing /usr/lib/python2.7/dist-packages/openerp/addons/medical_disease/views/medical_patient_view.xml:4, near
<record id="medical_patient_view_form" model="ir.ui.view">
            <field name="name">medical.patient.form (medical_disease)</field>
            <field name="model">medical.patient</field>
            <field name="inherit_id" ref="medical.view_medical_patient_form"/>
            <field name="arch" type="xml">
                <xpath expr="//div[@name='buttons']" position="inside">
                    <button name="%(medical_disease.medical_patient_disease_action)d" type="action" class="oe_stat_button" icon="fa-list" context="{'search_default_patient_id': active_id}">
                        <field name="count_disease_ids" widget="statinfo" string="Diseases"/>
                    </button>
                </xpath>
            </field>
        </record>

Istallation Error with Oemedical v7 on odoo v7

Hello
last time i had try to install Oemedical oca/vertical-medical on Odoo v7 and i got this Error: ValidateError Error occurred while validating the field(s) arch: Invalid XML for View Architecture!

Someone can help pls???????????

'Installable', False

Hi again,

I've also found that most ported modules on branch 8.0 have the installable parameter set to false in the openerp.py.

Thanks,
Nuria

Project Translation

Is there any project translation on transifex where one would contribute by translating the term on the modules?

Improve Documentation

All of the ReadMes in Vertical Medical need:

  • Configuration (if applicable)
  • Usage Instructions
  • Screenshots
  • Definitions - things like Pathology, Medicament, etc. What is the scope of the context (nice to have)

Modules already on v9:

  • medical
  • medical_base_us - N/A
  • medical_medicament
  • medical_medication
  • medical_pathology - #135
  • medical_patient_disease
  • medical_patient_disease_allergy
  • medical_patient_dob
  • medical_patient_pharmacy
  • medical_physician
  • medical_prescription
  • medical_lab - #137

All other modules should be handled during migration.

I have also attached a set of minor definitions to this issue for reference.

Medical-Definitions-Export.pdf

References to oemedical on branch 8.0

Hi,

Dependencies on openerp.py files seem to point out to oemedical instead of medical, which causes install to fail.

I think this has been fixed on branch 9.0 but not on 8.0

Ta,
Nuria

Permission denied (publickey)

hi everybody
when I try to execute $git clone [email protected]:oca/vertical-medical.git
I have the next error :
.....
Cloning into 'vertical-medical'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
..
thank you for the help

Migration to version 9.0

Todo

https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-9.0

Modules to migrate

  • medical - @lasley #69
  • medical_family
  • medical_insurance - #102
  • medical_insurance_us - @lasley
  • medical_medicament - #74
  • medical_medicament_attributes - @lasley
  • medical_medication - #75
  • medical_medication_us - #76
  • medical_disease - #71 (Renamed to medical_pathology)
  • medical_patient_disease - #72
  • medical_patient_ethnicity - @lasley
  • medical_patient_occupation - @lasley
  • medical_prescription - #79
  • medical_pharmacy - #77
  • medical_pharmacy_us - #78
  • medical_prescription_thread - @lasley
  • medical_his
  • medical_emr
  • medical_emr_data
  • medical_operational
  • omedical_genetics
  • oemedical_gynecology_and_obstetrics
  • oemedical_icu
  • oemedical_invoice
  • oemedical_lab - (renamed to medical_lab) - #137
  • oemedical_lifestyle
  • oemedical_pediatrics
  • oemedical_socioeconomics
  • oemedical_surgery
  • web_doc_oemedical

Medical Manufacturer

Hi @bmw65 and @lasley

Good activity in this repository, nice.

Sure your modules will have nice success in a near future in all over the world.

Just one point. Your module medical_manufacturer seems to be generic, not specific to medical.

It's not a problem for me, you can let it as it. But maybe you can get less maintenance work on your side putting it this module in partner-contact or manufacture repo, don't you think ?

Error installing oemedical_emr_data

After installing:

  • oemedical
  • oemedical_emr

I get this error installing oemedical_emr_data module:

openerp.tools.convert: Parse error in oemedical_emr_data/data/WHO_list_of_essential_medicines.xml:6: 
<record model="oemedical.medicament" id="meds_em1">
        <field name="name" search="[('name', '=', 'halothane')]"/>
        <field name="active_component">halothane</field>
        <field name="category" model="oemedical.medicament.category" ref="em_1_1_1"/>
        <field name="pregnancy_warning">True</field>
        <field name="pregnancy_category">C</field>
        <field name="notes">Inhalation</field>
    </record>
Traceback (most recent call last):
  File "C:\Users\Nanni\git\odoo\openerp\tools\convert.py", line 852, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "C:\Users\Nanni\git\odoo\openerp\tools\convert.py", line 788, in _tag_record
    assert f_model, 'Define an attribute model="..." in your .XML file !'
AssertionError: Define an attribute model="..." in your .XML file !
2015-09-05 16:36:18,704 5340 ERROR TOSA_DEBUG openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
  File "C:\Users\Nanni\git\odoo\openerp\osv\osv.py", line 132, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "C:\Users\Nanni\git\odoo\openerp\osv\osv.py", line 199, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "C:\Users\Nanni\git\odoo\openerp\osv\osv.py", line 187, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "C:\Users\Nanni\git\odoo\openerp\addons\base\module\module.py", line 426, in button_immediate_install
    return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
  File "C:\Users\Nanni\git\odoo\openerp\addons\base\module\module.py", line 473, in _button_immediate_function
    _, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "C:\Users\Nanni\git\odoo\openerp\pooler.py", line 39, in restart_pool
    registry = RegistryManager.new(db_name, force_demo, status, update_module)
  File "C:\Users\Nanni\git\odoo\openerp\modules\registry.py", line 233, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "C:\Users\Nanni\git\odoo\openerp\modules\loading.py", line 355, in load_modules
    loaded_modules, update_module)
  File "C:\Users\Nanni\git\odoo\openerp\modules\loading.py", line 256, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  File "C:\Users\Nanni\git\odoo\openerp\modules\loading.py", line 188, in load_module_graph
    load_data(module_name, idref, mode)
  File "C:\Users\Nanni\git\odoo\openerp\modules\loading.py", line 76, in <lambda>
    load_data = lambda *args: _load_data(cr, *args, kind='data')
  File "C:\Users\Nanni\git\odoo\openerp\modules\loading.py", line 124, in _load_data
    tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)
  File "C:\Users\Nanni\git\odoo\openerp\tools\convert.py", line 959, in convert_xml_import
    obj.parse(doc.getroot())
  File "C:\Users\Nanni\git\odoo\openerp\tools\convert.py", line 852, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "C:\Users\Nanni\git\odoo\openerp\tools\convert.py", line 788, in _tag_record
    assert f_model, 'Define an attribute model="..." in your .XML file !'
AssertionError: Define an attribute model="..." in your .XML file !
2015-09-05 16:36:18,707 5340 ERROR TOSA_DEBUG openerp.netsvc: Define an attribute model="..." in your .XML file !
Traceback (most recent call last):
  File "C:\Users\Nanni\git\odoo\openerp\netsvc.py", line 300, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "C:\Users\Nanni\git\odoo\openerp\service\web_services.py", line 632, in dispatch
    res = fn(db, uid, *params)
  File "C:\Users\Nanni\git\odoo\openerp\osv\osv.py", line 190, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "C:\Users\Nanni\git\odoo\openerp\osv\osv.py", line 132, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "C:\Users\Nanni\git\odoo\openerp\osv\osv.py", line 199, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "C:\Users\Nanni\git\odoo\openerp\osv\osv.py", line 187, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "C:\Users\Nanni\git\odoo\openerp\addons\base\module\module.py", line 426, in button_immediate_install
    return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
  File "C:\Users\Nanni\git\odoo\openerp\addons\base\module\module.py", line 473, in _button_immediate_function
    _, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "C:\Users\Nanni\git\odoo\openerp\pooler.py", line 39, in restart_pool
    registry = RegistryManager.new(db_name, force_demo, status, update_module)
  File "C:\Users\Nanni\git\odoo\openerp\modules\registry.py", line 233, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "C:\Users\Nanni\git\odoo\openerp\modules\loading.py", line 355, in load_modules
    loaded_modules, update_module)
  File "C:\Users\Nanni\git\odoo\openerp\modules\loading.py", line 256, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  File "C:\Users\Nanni\git\odoo\openerp\modules\loading.py", line 188, in load_module_graph
    load_data(module_name, idref, mode)
  File "C:\Users\Nanni\git\odoo\openerp\modules\loading.py", line 76, in <lambda>
    load_data = lambda *args: _load_data(cr, *args, kind='data')
  File "C:\Users\Nanni\git\odoo\openerp\modules\loading.py", line 124, in _load_data
    tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)
  File "C:\Users\Nanni\git\odoo\openerp\tools\convert.py", line 959, in convert_xml_import
    obj.parse(doc.getroot())
  File "C:\Users\Nanni\git\odoo\openerp\tools\convert.py", line 852, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "C:\Users\Nanni\git\odoo\openerp\tools\convert.py", line 788, in _tag_record
    assert f_model, 'Define an attribute model="..." in your .XML file !'
AssertionError: Define an attribute model="..." in your .XML file !

Why make it not installable?

Thank you for this project, I was trying to study this module somehow but i found all modules are flaged "installable = fasle", So why are these modules uninstallable now?

*The way I use this project: *
Paste the total "vertical-medical" folder to my odoo path, then add it to the "addons-path" in the config file. Then modify the "medical/openerp.py" and mark installable true. Then restart the server.

Following error message occurs when click the install button from the localhost:app page:

File "/home/summersun/Dev/odoo9.0erp/odoo9.0erp/openerp/modules/registry.py", line 84, in getitem
return self.models[model_name]
ParseError: "ir.sequence.type" while parsing /home/summersun/Dev/odoo9.0erp/odoo9.0erp/vertical-medical/medical/views/medical_sequence.xml:6, near

Medical Patient
medical.patient

My odoo version is 9, is that of any reflect?

Thank you and best regards

Migration to version 10.0

Todo

https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-10.0

Modules to migrate

Patient age computation +1d when birthdate & calc on Feb 29

Patient age computation is +1 birth day and calculation day is Feb 29.

https://travis-ci.org/laslabs/vertical-medical/jobs/112172775

2016-02-29 17:32:28,777 23653 ERROR openerp_test openerp.addons.medical.tests.test_medical_patient: FAIL: test_age_computation (openerp.addons.medical.tests.test_medical_patient.TestMedicalPatient)
2016-02-29 17:32:28,777 23653 ERROR openerp_test openerp.addons.medical.tests.test_medical_patient: ` Check value of age depending of the birth_date
2016-02-29 17:32:28,778 23653 ERROR openerp_test openerp.addons.medical.tests.test_medical_patient: Traceback (most recent call last):
2016-02-29 17:32:28,778 23653 ERROR openerp_test openerp.addons.medical.tests.test_medical_patient: `   File "/home/travis/build/laslabs/vertical-medical/medical/tests/test_medical_patient.py", line 47, in test_age_computation
2016-02-29 17:32:28,778 23653 ERROR openerp_test openerp.addons.medical.tests.test_medical_patient: `     patient_id.age, complete_age
2016-02-29 17:32:28,778 23653 ERROR openerp_test openerp.addons.medical.tests.test_medical_patient: ` AssertionError: Should be the same age.
2016-02-29 17:32:28,778 23653 ERROR openerp_test openerp.addons.medical.tests.test_medical_patient: ` Got: 10y 0m 1d
2016-02-29 17:32:28,779 23653 ERROR openerp_test openerp.addons.medical.tests.test_medical_patient: ` Expected: 10y 0m 0d

[RFC][11.0] Medical Menu Redesign

I am working on a redesign for the layout of medical menus for v10. Currently everything is under a central Medical app with a series of submenus, most of which are under Configuration (screenshot at bottom of this message). The current layout is unwieldy in terms of usage for Community web, and looks like absolute garbage on Enterprise or web_responsive.

Current plan is as follows:

  • Dashboard (TBD what this actually is)
  • Inventory
    • Medicaments
    • Insurance Plans
  • Patient
    • Patients
    • Diseases
    • Medications
  • Scheduling
    • Appointments

Leftovers that need to be placed:

  • Prescription
    • Prescription Orders
    • Prescription Order Lines
  • Configuration
    • Disease
    • Pathologies
    • Pathology Categories
    • Pathology Groups
  • Health Professionals
    • Physician [Self]
    • Physician [Assistant]
  • Medicaments
    • Medicaments
    • Attribute Types
    • Attributes
    • Storage Instructions
    • Medication Template
    • Medical Manufacturers
    • Drug Admin Route
    • Drug Form
    • Medication Dosage
  • Misc
    • Medical Specialty
    • Insurance
      • Insurance Providers
      • Insurance Plans
      • Insurance Plan Templates
    • Pharmacies

Current Menus:

image

Error in medical_insurance_company

When I try tocreate an "insurance provider", I get this error :

Traceback (most recent call last):
File "/home/it-6it/aoe-dev_80/base/openerp/http.py", line 539, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/it-6it/aoe-dev_80/base/openerp/http.py", line 576, in dispatch
result = self._call_function(**self.params)
File "/home/it-6it/aoe-dev_80/base/openerp/http.py", line 312, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/it-6it/aoe-dev_80/base/openerp/service/model.py", line 118, in wrapper
return f(dbname, *args, **kwargs)
File "/home/it-6it/aoe-dev_80/base/openerp/http.py", line 309, in checked_call
return self.endpoint(*a, **kw)
File "/home/it-6it/aoe-dev_80/base/openerp/http.py", line 805, in call
return self.method(*args, **kw)
File "/home/it-6it/aoe-dev_80/base/openerp/http.py", line 405, in response_wrap
response = f(*args, **kw)
File "/home/it-6it/aoe-dev_80/base/addons/web/controllers/main.py", line 944, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/home/it-6it/aoe-dev_80/base/addons/web/controllers/main.py", line 936, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/home/it-6it/aoe-dev_80/base/openerp/api.py", line 268, in wrapper
return old_api(self, *args, **kwargs)
File "/home/it-6it/aoe-dev_80/base/openerp/api.py", line 399, in old_api
result = method(recs, *args, **kwargs)
File "/home/it-6it/aoe-dev_80/base/openerp/models.py", line 5956, in onchange
record._onchange_eval(name, field_onchange[name], result)
File "/home/it-6it/aoe-dev_80/base/openerp/models.py", line 5861, in _onchange_eval
method_res = getattr(self._model, method)(*args, context=self._context)
AttributeError: 'medical.insurance.company' object has no attribute 'onchange_address'

AttributeError: 'list' object has no attribute '_onchange'

Issue on Odoo 8 installing Medical Medication

Traceback (most recent call last):
  File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/http.py", line 517, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/http.py", line 538, in dispatch
    result = self._call_function(**self.params)
  File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/http.py", line 294, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/service/model.py", line 113, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/http.py", line 291, in checked_call
    return self.endpoint(*a, **kw)
  File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/http.py", line 754, in __call__
    return self.method(*args, **kw)
  File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/http.py", line 387, in response_wrap
    response = f(*args, **kw)
  File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/addons/web/controllers/main.py", line 953, in call_button
    action = self._call_kw(model, method, args, {})
  File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/addons/web/controllers/main.py", line 941, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/addons/base/module/module.py", line 450, in button_immediate_install
    return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
  File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/addons/base/module/module.py", line 498, in _button_immediate_function
    registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
  File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/modules/registry.py", line 341, in new
    openerp.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/modules/loading.py", line 358, in load_modules
    loaded_modules, update_module)
  File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/modules/loading.py", line 263, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/modules/loading.py", line 162, in load_module_graph
    registry.setup_models(cr, partial=True)
  File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/modules/registry.py", line 169, in setup_models
    model._setup_fields(cr, SUPERUSER_ID, context=context)
  File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/api.py", line 332, in old_api
    result = method(recs, *args, **kwargs)
  File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/models.py", line 2986, in _setup_fields
    _logger.warning("@onchange%r parameters must be field names", func._onchange)
AttributeError: 'list' object has no attribute '_onchange'

Tradução - Portugês Brasil

Olá, gostaria de saber quais são os arquivos de idioma do modulo, gostaria de traduzir e quem sabe usar. notei que ele não usa o mesmo padrão de idioma que a grande maioria dos módulos odoo.

Odoo v9 : Medical appointment

Hi Community,

Just installed the medical appointment module and got this error after selecting the appointment menu from Medical:

Odoo Server Error
Traceback (most recent call last):
File "E:\Program Files\Odoo 9.0-20160729\server.\openerp\http.py", line 647, in _handle_exception
File "E:\Program Files\Odoo 9.0-20160729\server.\openerp\http.py", line 684, in dispatch
File "E:\Program Files\Odoo 9.0-20160729\server.\openerp\http.py", line 320, in _call_function
File "E:\Program Files\Odoo 9.0-20160729\server.\openerp\service\model.py", line 118, in wrapper
File "E:\Program Files\Odoo 9.0-20160729\server.\openerp\http.py", line 313, in checked_call
File "E:\Program Files\Odoo 9.0-20160729\server.\openerp\http.py", line 963, in call
File "E:\Program Files\Odoo 9.0-20160729\server.\openerp\http.py", line 513, in response_wrap
File "E:\Program Files\Odoo 9.0-20160729\server\openerp\addons\web\controllers\main.py", line 897, in call_kw
File "E:\Program Files\Odoo 9.0-20160729\server\openerp\addons\web\controllers\main.py", line 889, in _call_kw
File "E:\Program Files\Odoo 9.0-20160729\server.\openerp\api.py", line 250, in wrapper
File "E:\Program Files\Odoo 9.0-20160729\server.\openerp\models.py", line 2146, in read_group
File "E:\Program Files\Odoo 9.0-20160729\server.\openerp\api.py", line 250, in wrapper
File "E:\Program Files\Odoo 9.0-20160729\server.\openerp\models.py", line 1819, in _read_group_fill_results
TypeError: () takes exactly 1 argument (8 given)

It's seems its not in the appointment modul itself. Any clue for this error?

Thank you
Pri

Appointment in the same time

in runbot: 8.0-incubator

It don't have a timetable of physician to do the appointment. You can make an appointment with the same physician at the same time:

appointment odoo

Appointment - Change state

in runbot: 8.0-incubator

When you treu to change the appointment state, you get this error:

Traceback (most recent call last):
File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3117067-8-0-incubator-0edf75/openerp/http.py", line 537, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3117067-8-0-incubator-0edf75/openerp/http.py", line 574, in dispatch
result = self._call_function(*_self.params)
File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3117067-8-0-incubator-0edf75/openerp/http.py", line 310, in _call_function
return checked_call(self.db, *args, *_kwargs)
File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3117067-8-0-incubator-0edf75/openerp/service/model.py", line 113, in wrapper
return f(dbname, _args, *_kwargs)
File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3117067-8-0-incubator-0edf75/openerp/http.py", line 307, in checked_call
return self.endpoint(_a, *_kw)
File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3117067-8-0-incubator-0edf75/openerp/http.py", line 803, in call
return self.method(_args, *_kw)
File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3117067-8-0-incubator-0edf75/openerp/http.py", line 403, in response_wrap
response = f(_args, *_kw)
File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3117067-8-0-incubator-0edf75/openerp/addons/web/controllers/main.py", line 948, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3117067-8-0-incubator-0edf75/openerp/addons/web/controllers/main.py", line 940, in _call_kw
return checked_call(request.db, _args, *_kwargs)
File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3117067-8-0-incubator-0edf75/openerp/service/model.py", line 113, in wrapper
return f(dbname, _args, *_kwargs)
File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3117067-8-0-incubator-0edf75/openerp/addons/web/controllers/main.py", line 939, in checked_call
return getattr(request.registry.get(model), method)(request.cr, request.uid, _args, *_kwargs)
File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3117067-8-0-incubator-0edf75/openerp/api.py", line 250, in wrapper
return old_api(self, _args, *_kwargs)
File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3117067-8-0-incubator-0edf75/openerp/addons/medical/models/medical_appointment.py", line 243, in write
lang_id)[0]
File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3117067-8-0-incubator-0edf75/openerp/models.py", line 5617, in getitem
return self._browse(self.env, (self._ids[key],))
IndexError: tuple index out of range

OpenERP doesn't find oemedical modules

Hi

I'm trying to install all this suite of modules.

But neither Odoo v8 or Odoo v7 can find ALL of these modules when declared as addons.

The only one I can see and install is main oemedical, am I missing something?

Thanks in advance.

medical_medication Discussion

Not really sure of a better way to start this discussion, so please let me know if there is one. Wiki seemed a bit hard to manage in terms of understanding opinions. This is a blocker in our current project, so I'll be tackling it next.

I noticed @JonathanNEMRY's change notes in the wiki for the EMR module, and I fully agree about the modularity. Maybe we should start by breaking the two functional improvement suggestions into their own module (medications, templates, dosages, medicaments + categories => medical_medication or similar)

I'm going to copy/paste the wiki entry then provide my thoughts as a comment just to keep the two separate.


Medication And Medication Template

Major issue is that the start-end date is defined on medication and not on medication template.
So this forces to create as much template as patient

Data model should be review with inclusion of an abstract concept. (to discuss)

Medicament:

Current implemented version introduce a ambigous relation between 'medical.medicament' and 'product.product' which may possibly beeing a source of additional complexity into the invoicing process of Odoo as product is the core of its billing process
This notion has to be reviewed with two possible solution

  • remove medical.medicament and add complementary fields into product.product just as membership (is_membership) or expend (can_be_expend)
    (side effects: product table become too big and user see useless things (more complex views management))
    or
  • use a real inherits to 'product.product' and keep additionals fields introduced by medical.medicament (possible problems: there already is a inherits from product.product to product.template)

[8.0 on runbot] Application error when changing the state of an appointment

File "/root/odoo-8.0/addons/web/controllers/main.py", line 936, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/.repo_requirements/odoo/openerp/api.py", line 268, in wrapper
return old_api(self, *args, **kwargs)
File "/root/build/OCA/vertical-medical/medical/models/medical_appointment.py", line 245, in write
lang_id)[0]
File "/.repo_requirements/odoo/openerp/models.py", line 5660, in getitem
return self._browse(self.env, (self._ids[key],))
IndexError: tuple index out of range

DoB calendar bug

64 bit Debian Wheezy 7.8
Odoo 8.0.20150515
in lxc container
using Firefox 39.0

Hi,

I installed the medical base module for testing and noticed a small bug on the DoB calendar when creating a new patient.

When you click on the year drop down, you only have a selection of years from 2005, and it shows lots of future years.

I clicked on the earliest it allowed me (2005) and saved it.

Then I edited again the patient and clicked on the DoB year selection, and earlier years came up.

I clicked on the earliest year, which this time was 1995, but when I pressed "Done" it didn't change and it didn't save it.

I thought you would like to know.

All the best,
Nuria

Error installing the "Medical EMR" module

Hi, I have managed to install all the modules of vertical-medical except for "Medical EMR", when I try I get the following error:

2016-07-27 14:07:43,200 27738 CRITICAL odoo_db openerp.modules.module: Couldn't load module medical_emr
2016-07-27 14:07:43,200 27738 CRITICAL odoo_db openerp.modules.module: cannot import name medical_pathology_category
> /home/sirius/Projects/vertical-medical/medical_emr/models/__init__.py(23)<module>()
-> from . import medical_pathology_category

Any ideas regarding this error?

IntegrityError: insert or update on table "medical_appointment" violates foreign key constraint "medical_appointment_consultations_fkey"

Hi, I have a really annoying bug on medical module, when I install it the first time it's ok, I can inherit from it and create modules, update views and all, everything's fine.
But when there's data inputed (appointments, physicians) and I update medical module (with -u or update button in odoo) it's belzebut :

2016-03-03 10:18:41,057 31738 DEBUG dev-cm openerp.models.schema: Table 'medical_appointment': added foreign key 'consultations' with definition=REFERENCES "medical_physician_services" ON DELETE set null
2016-03-03 10:18:41,196 31738 ERROR dev-cm openerp.sql_db: bad query: ALTER TABLE "medical_appointment" ADD FOREIGN KEY ("consultations") REFERENCES "medical_physician_services" ON DELETE set null
Traceback (most recent call last):
  File "/Users/akz/Projects/agile/dev/OCB/openerp/sql_db.py", line 234, in execute
    res = self._obj.execute(query, params)
IntegrityError: insert or update on table "medical_appointment" violates foreign key constraint "medical_appointment_consultations_fkey"
DETAIL:  Key (consultations)=(2) is not present in table "medical_physician_services".

> /Users/akz/Projects/agile/dev/OCB/openerp/sql_db.py(234)execute()
-> res = self._obj.execute(query, params)
(Pdb) 2016-03-03 10:18:49,985 31738 DEBUG ? openerp.service.server: cron0 polling for jobs
2016-03-03 10:18:50,984 31738 DEBUG ? openerp.service.server: cron1 polling for jobs
c
2016-03-03 10:19:16,186 31738 ERROR dev-cm openerp.http: Exception during JSON request handling.
Traceback (most recent call last):
  File "/Users/akz/Projects/agile/dev/OCB/openerp/http.py", line 537, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/Users/akz/Projects/agile/dev/OCB/openerp/http.py", line 574, in dispatch
    result = self._call_function(**self.params)
  File "/Users/akz/Projects/agile/dev/OCB/openerp/http.py", line 310, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/Users/akz/Projects/agile/dev/OCB/openerp/service/model.py", line 131, in wrapper
    registry = openerp.registry(dbname)
  File "/Users/akz/Projects/agile/dev/OCB/openerp/__init__.py", line 68, in registry
    return modules.registry.RegistryManager.get(database_name)
  File "/Users/akz/Projects/agile/dev/OCB/openerp/modules/registry.py", line 339, in get
    update_module)
  File "/Users/akz/Projects/agile/dev/OCB/openerp/modules/registry.py", line 370, in new
    openerp.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/Users/akz/Projects/agile/dev/OCB/openerp/modules/loading.py", line 351, in load_modules
    force, status, report, loaded_modules, update_module)
  File "/Users/akz/Projects/agile/dev/OCB/openerp/modules/loading.py", line 255, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  File "/Users/akz/Projects/agile/dev/OCB/openerp/modules/loading.py", line 157, in load_module_graph
    init_module_models(cr, package.name, models)
  File "/Users/akz/Projects/agile/dev/OCB/openerp/modules/module.py", line 293, in init_module_models
    obj._auto_end(cr, {'module': module_name})
  File "/Users/akz/Projects/agile/dev/OCB/openerp/api.py", line 268, in wrapper
    return old_api(self, *args, **kwargs)
  File "/Users/akz/Projects/agile/dev/OCB/openerp/models.py", line 2711, in _auto_end
    cr.execute('ALTER TABLE "%s" ADD FOREIGN KEY ("%s") REFERENCES "%s" ON DELETE %s' % (t, k, r, d))
  File "/Users/akz/Projects/agile/dev/OCB/openerp/sql_db.py", line 158, in wrapper
    return f(self, *args, **kwargs)
  File "/Users/akz/Projects/agile/dev/OCB/openerp/sql_db.py", line 234, in execute
    res = self._obj.execute(query, params)
IntegrityError: insert or update on table "medical_appointment" violates foreign key constraint "medical_appointment_consultations_fkey"
DETAIL:  Key (consultations)=(2) is not present in table "medical_physician_services".

I tried to figure out why but this get over me. Thanks for your time.

Can't install V8

Get this error message when I attempt to Update Modules List in V8.

Odoo Server Error


Traceback (most recent call last):
File "/odoo/odoo-server/openerp/http.py", line 539, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/odoo/odoo-server/openerp/http.py", line 576, in dispatch
result = self._call_function(*_self.params)
File "/odoo/odoo-server/openerp/http.py", line 312, in _call_function
return checked_call(self.db, *args, *_kwargs)
File "/odoo/odoo-server/openerp/service/model.py", line 118, in wrapper
return f(dbname, _args, *_kwargs)
File "/odoo/odoo-server/openerp/http.py", line 309, in checked_call
return self.endpoint(_a, *_kw)
File "/odoo/odoo-server/openerp/http.py", line 805, in call
return self.method(_args, *_kw)
File "/odoo/odoo-server/openerp/http.py", line 405, in response_wrap
response = f(_args, *_kw)
File "/odoo/odoo-server/addons/web/controllers/main.py", line 1247, in load
action = request.session.model(action_type).read([action_id], False, ctx)
File "/odoo/odoo-server/openerp/http.py", line 910, in proxy
result = meth(cr, request.uid, _args, *_kw)
File "/odoo/odoo-server/openerp/api.py", line 268, in wrapper
return old_api(self, _args, *_kwargs)
File "/odoo/odoo-server/openerp/addons/base/ir/ir_actions.py", line 326, in read
results = super(ir_actions_act_window, self).read(cr, uid, ids, fields=fields, context=context, load=load)
File "/odoo/odoo-server/openerp/api.py", line 268, in wrapper
return old_api(self, _args, *_kwargs)
File "/odoo/odoo-server/openerp/models.py", line 3144, in read
result = BaseModel.read(records, fields, load=load)
File "/odoo/odoo-server/openerp/api.py", line 266, in wrapper
return new_api(self, _args, *_kwargs)
File "/odoo/odoo-server/openerp/models.py", line 3179, in read
self._read_from_database(stored, inherited)
File "/odoo/odoo-server/openerp/api.py", line 266, in wrapper
return new_api(self, _args, *_kwargs)
File "/odoo/odoo-server/openerp/models.py", line 3366, in _read_from_database
res2 = self._columns[f].get(cr, self._model, ids, f, user, context=context, values=result)
File "/odoo/odoo-server/openerp/osv/fields.py", line 1460, in get
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
File "/odoo/odoo-server/openerp/addons/base/ir/ir_actions.py", line 268, in _search_view
'search', context=context)
File "/odoo/odoo-server/openerp/api.py", line 268, in wrapper
return old_api(self, _args, *_kwargs)
File "/odoo/odoo-server/openerp/models.py", line 1545, in fields_view_get
xarch, xfields = View.postprocess_and_fields(cr, uid, self._name, etree.fromstring(result['arch']), view_id, context=ctx)
File "/odoo/odoo-server/openerp/api.py", line 268, in wrapper
return old_api(self, _args, *_kwargs)
File "/odoo/odoo-server/openerp/addons/base/ir/ir_ui_view.py", line 808, in postprocess_and_fields
fields = Model.fields_get(cr, user, None, context=context)
File "/odoo/odoo-server/openerp/api.py", line 268, in wrapper
return old_api(self, _args, *_kwargs)
File "/odoo/odoo-server/openerp/models.py", line 3089, in fields_get
description = field.get_description(recs.env)
File "/odoo/odoo-server/openerp/fields.py", line 661, in get_description
value = value(env)
File "/odoo/odoo-server/openerp/fields.py", line 1393, in _description_selection
return [(value, translate(label) if label else label) for value, label in selection]
File "/odoo/odoo-server/openerp/api.py", line 266, in wrapper
return new_api(self, _args, *_kwargs)
File "/odoo/odoo-server/openerp/api.py", line 487, in new_api
result = method(self._model, cr, uid, _args, *_kwargs)
File "/odoo/odoo-server/openerp/addons/base/ir/ir_translation.py", line 378, in _get_source
return self.__get_source(cr, uid, name, types, lang, source, res_id)
File "/odoo/odoo-server/openerp/api.py", line 268, in wrapper
return old_api(self, _args, *_kwargs)
File "", line 2, in __get_source
File "/odoo/odoo-server/openerp/tools/cache.py", line 74, in lookup
value = d[key] = self.method(_args, *_kwargs)
File "/odoo/odoo-server/openerp/addons/base/ir/ir_translation.py", line 345, in __get_source
cr.execute(query, params)
File "/odoo/odoo-server/openerp/sql_db.py", line 158, in wrapper
return f(self, _args, *_kwargs)
File "/odoo/odoo-server/openerp/sql_db.py", line 234, in execute
res = self._obj.execute(query, params)
InternalError: index "ir_translation_src_hash_idx" contains unexpected zero page at block 0
HINT: Please REINDEX it.

[RFC][11.0] Translation of Imported Data (ICD-10, etc.)

The current plan in #134 is to outright remove the giant data files that we have in oe_medical_emr_data in favor of import systems for dynamic update of data. These XML files are more than 10 MiB each & are updated yearly, so this is essentially the only way to go about handling these processes in a forward-efficient manor.

This brings up an interesting problem that I will not be solving in that PR - translations.

Most of the code data files are available in other languages, so obtaining translations for the data itself won't be an issue. What will though is when two languages come into play for the same datasets. For example:

  • English ICD-10-CM is imported
  • French ICD-10-CM is needed

In order to import the French ICD-10 data, the English data would either need to be replaced or duplicated if using standard record creates/writes. This is because records are naive of languages.

My only idea is to convert all translatable text in imports into a unique identifier string for the field (uuid-4 or something). The import would then create/update a record of the non-translatable data + all of the identifier strings. It would then add the actual text into ir.translation so that the identifiers are translated by the system.

The disadvantage here is that translations essentially become impossible to maintain manually, although I'm not sure if this was an option anyways given the size of the data. There will also likely be data duplications due to the identifier system not taking into account word lemmas.

I think this disadvantage is negligible though and outweighed the advantage of not storing and maintaining these giant XML files in source control.

I'm wondering if anyone has some ideas or strategies for the translations that I'm not thinking of?

trying to inherit calendar.event from medical.appointment

Hi, I'm trying to enhance your appointment's module by inherit calendar.event instead of re-create a calendar.
The main goal is to get native event recurrence and attendee's functionality, or maybe I'm wrong with doing that and I need to create my recurrence code in appointments? (not sure ahah)
I'm pretty new in odoo development but I made the whole part I think.
There's an error when I'm trying to create an appointment saying that :

## Logging vals var of medical.appointment create func :
2016-05-30 16:06:47,050 6644 DEBUG erp-cdm-virgin openerp.addons.medical.models.medical_appointment: {'message_follower_ids': False, 'consultations': 2, 'categ_ids': [[6, False, []]], 'we': False, 'month_by': 'date', 'allday': False, 'byday': False, 'duration': 0.0, 'final_date': False, 'message_ids': False, 'user_id': 1, 'start': '2016-05-30 16:06:41', 'tu': False, 'recurrency': False, 'week_list': False, 'show_as': 'busy', 'attendee_ids': [], 'state': 'confirm', 'location': False, 'th': False, 'partner_ids': [[6, False, [3]]], 'physician_id': 2, 'start_date': None, 'start_datetime': '2016-05-30 16:06:41', 'recurrent_id_date': False, 'description': False, 'appointment_date': '2016-05-30 00:00:00', 'stop_date': None, 'stop': '2016-05-30 16:06:45', 'stop_datetime': '2016-05-30 16:06:45', 'fr': False, 'alarm_ids': [[6, False, []]], 'class': 'public', 'day': 0, 'count': 1, 'end_type': 'count', 'name': 'Testing', 'mo': False, 'interval': 1, 'su': False, 'patient_id': 1, 'recurrent_id': 0, 'sa': False, 'rrule_type': False}
2016-05-30 16:06:47,191 6644 ERROR erp-cdm-virgin openerp.sql_db: bad query: INSERT INTO "calendar_attendee" ("id", "event_id", "access_token", "state", "partner_id", "email", "create_uid", "write_uid", "create_date", "write_date") VALUES(nextval('calendar_attendee_id_seq'), 1, 'c663559e27fe46c9bca7d94b8bb83aa2', 'accepted', 3, '[email protected]', 1, 1, (now() at time zone 'UTC'), (now() at time zone 'UTC')) RETURNING id

# The three errors are below

Traceback (most recent call last):
  File "/home/maxime/Projects/agile/dev/OCB/openerp/sql_db.py", line 234, in execute
    res = self._obj.execute(query, params)
IntegrityError: insert or update on table "calendar_attendee" violates foreign key constraint "calendar_attendee_event_id_fkey"
DETAIL:  Key (event_id)=(1) is not present in table "calendar_event".

2016-05-30 16:06:47,192 6644 DEBUG erp-cdm-virgin openerp.service.model: IntegrityError
Traceback (most recent call last):
  File "/home/maxime/Projects/agile/dev/OCB/openerp/service/model.py", line 118, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/maxime/Projects/agile/dev/OCB/openerp/http.py", line 309, in checked_call
    return self.endpoint(*a, **kw)
  File "/home/maxime/Projects/agile/dev/OCB/openerp/http.py", line 805, in __call__
    return self.method(*args, **kw)
  File "/home/maxime/Projects/agile/dev/OCB/openerp/http.py", line 405, in response_wrap
    response = f(*args, **kw)
  File "/home/maxime/Projects/agile/dev/OCB/addons/web/controllers/main.py", line 944, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/home/maxime/Projects/agile/dev/OCB/addons/web/controllers/main.py", line 936, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/home/maxime/Projects/agile/dev/OCB/openerp/api.py", line 268, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/maxime/Projects/agile/dev/medicagile-master/medical_appointment_invoice/models/medical_appointment.py", line 60, in create
    res = super(appointment, self).create(cr, uid, values, context=context)
  File "/home/maxime/Projects/agile/dev/OCB/openerp/api.py", line 268, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/maxime/Projects/agile/dev/OCB/addons/calendar/calendar.py", line 1646, in create
    self.create_attendees(cr, uid, [res], context=context)
  File "/home/maxime/Projects/agile/dev/OCB/openerp/api.py", line 268, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/maxime/Projects/agile/dev/OCB/addons/calendar/calendar.py", line 1112, in create_attendees
    att_id = self.pool['calendar.attendee'].create(cr, uid, values, context=context)
  File "/home/maxime/Projects/agile/dev/OCB/openerp/api.py", line 268, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/maxime/Projects/agile/dev/OCB/addons/calendar/calendar.py", line 288, in create
    res = super(calendar_attendee, self).create(cr, uid, vals, context=context)
  File "/home/maxime/Projects/agile/dev/OCB/openerp/api.py", line 268, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/maxime/Projects/agile/dev/OCB/openerp/api.py", line 372, in old_api
    result = method(recs, *args, **kwargs)
  File "/home/maxime/Projects/agile/dev/OCB/openerp/models.py", line 4094, in create
    record = self.browse(self._create(old_vals))
  File "/home/maxime/Projects/agile/dev/OCB/openerp/api.py", line 266, in wrapper
    return new_api(self, *args, **kwargs)
  File "/home/maxime/Projects/agile/dev/OCB/openerp/api.py", line 508, in new_api
    result = method(self._model, cr, uid, *args, **old_kwargs)
  File "/home/maxime/Projects/agile/dev/OCB/openerp/models.py", line 4232, in _create
    tuple([u[2] for u in updates if len(u) > 2])
  File "/home/maxime/Projects/agile/dev/OCB/openerp/sql_db.py", line 158, in wrapper
    return f(self, *args, **kwargs)
  File "/home/maxime/Projects/agile/dev/OCB/openerp/sql_db.py", line 234, in execute
    res = self._obj.execute(query, params)
IntegrityError: insert or update on table "calendar_attendee" violates foreign key constraint "calendar_attendee_event_id_fkey"
DETAIL:  Key (event_id)=(1) is not present in table "calendar_event".

2016-05-30 16:06:47,195 6644 ERROR erp-cdm-virgin openerp.http: Exception during JSON request handling.
Traceback (most recent call last):
  File "/home/maxime/Projects/agile/dev/OCB/openerp/http.py", line 539, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/maxime/Projects/agile/dev/OCB/openerp/http.py", line 576, in dispatch
    result = self._call_function(**self.params)
  File "/home/maxime/Projects/agile/dev/OCB/openerp/http.py", line 312, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/maxime/Projects/agile/dev/OCB/openerp/service/model.py", line 154, in wrapper
    raise openerp.osv.orm.except_orm(_('Integrity Error'), msg)

    except_orm: (u"Erreur d'int\xe9grit\xe9", u"L'op\xe9ration n'a pas pu \xeatre termin\xe9e, probablement \xe0 la suite d'une :\n- suppression : vous essayez de supprimer un enregistrement auquel d'autres enregistrements font r\xe9f\xe9rence\n- cr\xe9ation/modification : un champ requis n'est pas correctement rempli\n\n[objet r\xe9f\xe9renc\xe9 : Event - calendar.event]")

I'll be glad to hear advices I must forget something.
The actual work is here https://github.com/BusinessAgile/vertical-medical/tree/recurrency
Don't bother of appointment cluster's it isn't the problem.

Thanks for your good work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.