From b277aa171b56c9357bbad7b1909e9cdd8e098036 Mon Sep 17 00:00:00 2001 From: Hardik Suthar Date: Wed, 29 Oct 2025 19:40:23 +0530 Subject: [PATCH] [18.0][ADD] lims_bromatology --- lims_bromatology/README.rst | 97 ++++ lims_bromatology/__init__.py | 1 + lims_bromatology/__manifest__.py | 15 + lims_bromatology/data/lims_stage_data.xml | 55 +++ lims_bromatology/models/__init__.py | 1 + lims_bromatology/models/lims_stage.py | 10 + lims_bromatology/pyproject.toml | 3 + lims_bromatology/readme/CONFIGURE.md | 1 + lims_bromatology/readme/CONTRIBUTORS.md | 4 + lims_bromatology/readme/DESCRIPTION.md | 6 + lims_bromatology/readme/USAGE.md | 1 + .../static/description/index.html | 438 ++++++++++++++++++ 12 files changed, 632 insertions(+) create mode 100644 lims_bromatology/README.rst create mode 100644 lims_bromatology/__init__.py create mode 100644 lims_bromatology/__manifest__.py create mode 100644 lims_bromatology/data/lims_stage_data.xml create mode 100644 lims_bromatology/models/__init__.py create mode 100644 lims_bromatology/models/lims_stage.py create mode 100644 lims_bromatology/pyproject.toml create mode 100644 lims_bromatology/readme/CONFIGURE.md create mode 100644 lims_bromatology/readme/CONTRIBUTORS.md create mode 100644 lims_bromatology/readme/DESCRIPTION.md create mode 100644 lims_bromatology/readme/USAGE.md create mode 100644 lims_bromatology/static/description/index.html diff --git a/lims_bromatology/README.rst b/lims_bromatology/README.rst new file mode 100644 index 0000000..95ac56f --- /dev/null +++ b/lims_bromatology/README.rst @@ -0,0 +1,97 @@ +================ +LIMS Bromotology +================ + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:27be762cd66e71ee98d18b715db33bcc98bde59ad90b70e99e43fb2453accbbb + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fconnector--lims-lightgray.png?logo=github + :target: https://github.com/OCA/connector-lims/tree/18.0/lims_bromatology + :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-18-0/connector-lims-18-0-lims_bromatology + :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=18.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +**Features** +------------ + +- Introduces new ``stage_type`` = *Bromatology*. +- Defines standard stages: New → Reception → Drying → Grinding → + Analysis → Validation → Done. +- Integrates with ``lims_stock`` for specimen tracking. + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +Adds configuration and workflow stages to support Bromatology (food +composition) analysis in LIMS. + +Usage +===== + +The ``lims_bromatology`` module extends the LIMS system to support +**bromatology** workflows (food and chemical composition analysis). + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Open Source Integrators + +Contributors +------------ + +- Rodrigo Madrid rmadrid@opensourceintegrators.com +- Adriana Alpizar aalpizar@opensourceintegrators.com +- Maxime Chambreuil mchambreuil@opensourceintegrators.com +- Hardik Suthar hsuthar@opensourceintegrators.com + +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 `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/lims_bromatology/__init__.py b/lims_bromatology/__init__.py new file mode 100644 index 0000000..9a7e03e --- /dev/null +++ b/lims_bromatology/__init__.py @@ -0,0 +1 @@ +from . import models \ No newline at end of file diff --git a/lims_bromatology/__manifest__.py b/lims_bromatology/__manifest__.py new file mode 100644 index 0000000..2f72b46 --- /dev/null +++ b/lims_bromatology/__manifest__.py @@ -0,0 +1,15 @@ +{ + "name": "LIMS Bromotology", + "version": "18.0.1.0.0", + "summary": "Track specimens using Bromotology for LIMS", + "author": "Open Source Integrators, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/connector-lims", + "license": "AGPL-3", + "category": "LIMS", + "depends": ["lims", "lims_stock"], + "data": [ + "data/lims_stage_data.xml", + ], + "installable": True, + "application": False, +} diff --git a/lims_bromatology/data/lims_stage_data.xml b/lims_bromatology/data/lims_stage_data.xml new file mode 100644 index 0000000..7c31ceb --- /dev/null +++ b/lims_bromatology/data/lims_stage_data.xml @@ -0,0 +1,55 @@ + + + + + New + 1 + bromatology + Initial creation of the bromatology order. + True + + + + + Reception + 2 + bromatology + Sample reception and labeling. + + + + Drying + 3 + bromatology + Sample drying process before grinding. + + + + Grinding + 4 + bromatology + Sample grinding for uniform analysis. + + + + Analysis + 5 + bromatology + Performing bromatology tests and measurements. + + + + Validation + 6 + bromatology + Validation and quality control of analysis results. + + + + Done + 7 + bromatology + Bromatology process completed successfully. + True + + diff --git a/lims_bromatology/models/__init__.py b/lims_bromatology/models/__init__.py new file mode 100644 index 0000000..93ff520 --- /dev/null +++ b/lims_bromatology/models/__init__.py @@ -0,0 +1 @@ +from . import lims_stage \ No newline at end of file diff --git a/lims_bromatology/models/lims_stage.py b/lims_bromatology/models/lims_stage.py new file mode 100644 index 0000000..b2ecacf --- /dev/null +++ b/lims_bromatology/models/lims_stage.py @@ -0,0 +1,10 @@ +from odoo import fields, models + + +class LimsStage(models.Model): + _inherit = "lims.stage" + + stage_type = fields.Selection( + selection_add=[("bromatology", "Bromatology")], + ondelete={"bromatology": "cascade"}, + ) diff --git a/lims_bromatology/pyproject.toml b/lims_bromatology/pyproject.toml new file mode 100644 index 0000000..4231d0c --- /dev/null +++ b/lims_bromatology/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/lims_bromatology/readme/CONFIGURE.md b/lims_bromatology/readme/CONFIGURE.md new file mode 100644 index 0000000..067b040 --- /dev/null +++ b/lims_bromatology/readme/CONFIGURE.md @@ -0,0 +1 @@ +Adds configuration and workflow stages to support Bromatology (food composition) analysis in LIMS. diff --git a/lims_bromatology/readme/CONTRIBUTORS.md b/lims_bromatology/readme/CONTRIBUTORS.md new file mode 100644 index 0000000..5ed15fa --- /dev/null +++ b/lims_bromatology/readme/CONTRIBUTORS.md @@ -0,0 +1,4 @@ + - Rodrigo Madrid + - Adriana Alpizar + - Maxime Chambreuil + - Hardik Suthar \ No newline at end of file diff --git a/lims_bromatology/readme/DESCRIPTION.md b/lims_bromatology/readme/DESCRIPTION.md new file mode 100644 index 0000000..19cf898 --- /dev/null +++ b/lims_bromatology/readme/DESCRIPTION.md @@ -0,0 +1,6 @@ +**Features** +------------- +* Introduces new ``stage_type`` = *Bromatology*. +* Defines standard stages: + New → Reception → Drying → Grinding → Analysis → Validation → Done. +* Integrates with ``lims_stock`` for specimen tracking. diff --git a/lims_bromatology/readme/USAGE.md b/lims_bromatology/readme/USAGE.md new file mode 100644 index 0000000..6e11c66 --- /dev/null +++ b/lims_bromatology/readme/USAGE.md @@ -0,0 +1 @@ +The `lims_bromatology` module extends the LIMS system to support **bromatology** workflows (food and chemical composition analysis). diff --git a/lims_bromatology/static/description/index.html b/lims_bromatology/static/description/index.html new file mode 100644 index 0000000..37233db --- /dev/null +++ b/lims_bromatology/static/description/index.html @@ -0,0 +1,438 @@ + + + + + +LIMS Bromotology + + + +
+

LIMS Bromotology

+ + +

Beta License: AGPL-3 OCA/connector-lims Translate me on Weblate Try me on Runboat

+
+

Features

+
    +
  • Introduces new stage_type = Bromatology.
  • +
  • Defines standard stages: New → Reception → Drying → Grinding → +Analysis → Validation → Done.
  • +
  • Integrates with lims_stock for specimen tracking.
  • +
+

Table of contents

+ +
+

Configuration

+

Adds configuration and workflow stages to support Bromatology (food +composition) analysis in LIMS.

+
+
+

Usage

+

The lims_bromatology module extends the LIMS system to support +bromatology workflows (food and chemical composition analysis).

+
+
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

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

+
+ +
+
+

Authors

+
    +
  • Open Source Integrators
  • +
+
+ +
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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 project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+ +