Skip to content
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
124 changes: 124 additions & 0 deletions lims/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

====
Lims
====

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:05b7fd50b44f8d195624bc3de3642e125de904aa3b3dd42d9f5cebb7f4917ead
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fconnector--lims-lightgray.png?logo=github
:target: https://github.com/OCA/connector-lims/tree/19.0/lims
:alt: OCA/connector-lims
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/connector-lims-19-0/connector-lims-19-0-lims
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/connector-lims&target_branch=19.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows to manage a Laboratory from an odoo instance.

It implements a simple LIMS for your company.

**Table of contents**

.. contents::
:local:

Use Cases / Context
===================

This module gives a base for a vertical for laboratory companies.

By default, it adds Samples and Analysis and some configurations related
to it.

In order to keep odoo modular, we will split some functionality to make
it more feasible later on.

Usage
=====

1. A sampler user will create a sample from LIMS > Sample > Samples

1. Add a sample date, customer and sample type
2. Add the different analysis you will do
3. Receive the sample

2. An analyst user will review al the samples to analyze and will set
the value. Once it has been set, he will submit the results

3. A verifier user will verify all the results. The verifier must be
different than the analyst

Known issues / Roadmap
======================

The following characteristics are still Work In Progress:

- Usage of worklist
- Integration with devices
- Integration with sales / accounting
- Calculations
- Quality controls
- Batching of samples
- Sample storage

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/connector-lims/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/connector-lims/issues/new?body=module:%20lims%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Dixmit
* Creu Blanca

Contributors
------------

- Dixmit

- Enric Tobella

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.

This module is part of the `OCA/connector-lims <https://github.com/OCA/connector-lims/tree/19.0/lims>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions lims/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
41 changes: 41 additions & 0 deletions lims/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Copyright 2023 Dixmit
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

{
"name": "Lims",
"summary": """
Laboratory Information Management System""",
"version": "19.0.1.0.0",
"license": "LGPL-3",
"author": "Dixmit, Creu Blanca,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/connector-lims",
"depends": ["mail", "uom", "account"],
# Account is needed to add subsections...
# things that you cannot understand from odoo...
"data": [
"security/security.xml",
"security/ir.model.access.csv",
"data/ir_sequence_data.xml",
"data/uom_data.xml",
"views/menu.xml",
"views/lims_analyte.xml",
"views/lims_sample_type.xml",
"views/lims_sample.xml",
"views/lims_analysis.xml",
"reports/lims_sample_report.xml",
],
"demo": ["demo/demo.xml"],
"assets": {
"web.assets_backend": [
"lims/static/src/**/*.esm.js",
"lims/static/src/**/*.xml",
"lims/static/src/**/*.scss",
],
"web.assets_unit_tests": [
"lims/static/tests/**/*",
],
"web.report_assets_common": [
"lims/static/src/report.scss",
],
},
}
19 changes: 19 additions & 0 deletions lims/data/ir_sequence_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright 2023 Dixmit
License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
-->
<odoo noupdate="1">
<record id="seq_lims_sample" model="ir.sequence" forcecreate="1">
<field name="name">LIMS Sample sequence</field>
<field name="code">lims.sample</field>
<field name="prefix">SPL</field>
<field name="padding">6</field>
</record>
<record id="seq_lims_analysis" model="ir.sequence" forcecreate="1">
<field name="name">LIMS Analysis sequence</field>
<field name="code">lims.analysis</field>
<field name="prefix">LA</field>
<field name="padding">6</field>
</record>
</odoo>
12 changes: 12 additions & 0 deletions lims/data/uom_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright 2026 Dixmit
License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
-->
<odoo noupdate="1">
<record id="product_uom_mg" model="uom.uom">
<field name="name">mg</field>
<field name="relative_factor" eval="0.001" />
<field name="relative_uom_id" ref="uom.product_uom_gram" />
</record>
</odoo>
76 changes: 76 additions & 0 deletions lims/demo/demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2026 Dixmit
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->
<odoo noupdate="1">
<record model="res.partner" id="lims_demo_laboratory">
<field name="name">Demo Laboratory</field>
<field name="is_laboratory" eval="True" />
<field name="parent_id" ref="base.main_partner" />
</record>
<record model="lims.sample.type" id="lims_water_sample_type">
<field name="name">Water</field>
</record>
<record model="lims.sample.type" id="lims_blood_sample_type">
<field name="name">Blood</field>
</record>
<record model="lims.analyte" id="lims_calcium">
<field name="name">Calcium</field>
<field name="uom_id" ref="product_uom_mg" />
<field name="code">Ca</field>
</record>
<record model="lims.analyte.specs" id="lims_calcium_spec">
<field name="analyte_id" ref="lims_calcium" />
<field name="sample_type_id" ref="lims_water_sample_type" />
<field name="min_value" eval="9" />
<field name="min_warning_value" eval="9.5" />
<field name="min_operator">lt</field>
<field name="max_value" eval="11" />
<field name="max_warning_value" eval="10.5" />
<field name="max_operator">gt</field>
</record>
<record model="lims.analyte" id="lims_magnesium">
<field name="name">Magnesium</field>
<field name="uom_id" ref="product_uom_mg" />
<field name="code">Mg</field>
</record>
<record model="lims.analyte.specs" id="lims_magnesium_spec">
<field name="analyte_id" ref="lims_magnesium" />
<field name="sample_type_id" ref="lims_water_sample_type" />
<field name="min_value" eval="9" />
<field name="min_warning_value" eval="9.5" />
<field name="min_operator">lt</field>
<field name="max_value" eval="11" />
<field name="max_warning_value" eval="10.5" />
<field name="max_operator">gt</field>
</record>
<record model="lims.analyte" id="lims_total_hardness">
<field name="name">Total Hardness</field>
<field name="uom_id" ref="product_uom_mg" />
<field name="code">THCaCO3</field>
</record>
<record model="lims.analyte.specs" id="lims_total_hardness_spec">
<field name="analyte_id" ref="lims_total_hardness" />
<field name="sample_type_id" ref="lims_water_sample_type" />
<field name="min_value" eval="9" />
<field name="min_warning_value" eval="9.5" />
<field name="min_operator">lt</field>
<field name="max_value" eval="11" />
<field name="max_warning_value" eval="10.5" />
<field name="max_operator">gt</field>
</record>
<record model="lims.analyte" id="lims_ph">
<field name="name">pH</field>
<field name="uom_id" ref="product_uom_mg" />
<field name="code">pH</field>
</record>
<record model="lims.analyte.specs" id="lims_ph_blood_spec">
<field name="analyte_id" ref="lims_ph" />
<field name="sample_type_id" ref="lims_blood_sample_type" />
<field name="min_value" eval="7.35" />
<field name="min_warning_value" eval="7.35" />
<field name="min_operator">lt</field>
<field name="max_value" eval="7.45" />
<field name="max_warning_value" eval="7.45" />
<field name="max_operator">gt</field>
</record>
</odoo>
4 changes: 4 additions & 0 deletions lims/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from . import lims_sample
from . import lims_sample_type
from . import lims_analysis
from . import lims_analyte
Loading