| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Invoicing (account) • Purchase (purchase) • Inventory (stock) |
| Community Apps Dependencies | Show |
| Lines of code | 14951 |
| Technical Name |
grev_od_farm_veterinary |
| License | OPL-1 |
| Website | https://www.grevlin.com |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Invoicing (account) • Purchase (purchase) • Inventory (stock) |
| Community Apps Dependencies | Show |
| Lines of code | 14951 |
| Technical Name |
grev_od_farm_veterinary |
| License | OPL-1 |
| Website | https://www.grevlin.com |
🦺 Farm Veterinary ServicesHealthier herds, safer products, fewer surprises at delivery ✅ Odoo 19.0 Community / Enterprise | Add-on for Contract Farming |
|
|
|
Need Help?Email support@grevlin.com | X @GrevlinGlobal 🎁 30 days free support included |
Farm Veterinary Services
The Farm Veterinary Services module brings the vet into the Grevlin contract farming pipeline. It manages veterinary visits, individual animal lifecycles with pedigree, treatments with drug-withdrawal compliance, vaccination schedules and batches, and a daily-recomputed farm-level health risk score.
Overview
This module assumes Contract Farming is installed and extends the same grev.contract.farming.farm registry with veterinary metrics. It is designed for organizations sourcing milk, meat, eggs or live animals from contract farms and needing food-safety controls and herd-health tracking.
Key Features
- Veterinary Visits — health status (healthy → critical), herd size, mortality count, photos, follow-up dates and dual-step review.
- Treatments — medication, dosage, quantity, cost, outcome and link to individual animals.
- Drug Withdrawal Compliance — registry of medication classes with milk, meat and egg withdrawal periods per regulator (EMA, FDA, WHO, national). Treatments auto-compute clear dates.
- Individual Animal Lifecycle — ear-tag, RFID, breed, gender, weight, computed age in months, sire/dam pedigree, status and photos.
- Vaccination Schedules — templates per animal type with required age range, repeat interval, regulatory flag and target coverage.
- Vaccination Batches — execute scheduled vaccinations as planned → in-progress → done batches with coverage KPIs.
- Farm Health Risk Score — daily-recomputed score weighted across mortality, antibiotic use, vaccination coverage and visit frequency with low / medium / high / critical category and escalation activities.
- Public API — check_partner_withdrawal() exposes blocking treatments to integrations such as commodity delivery.
Configuration
Animal Types
Define the animal species your farms keep:
- Navigate to :menuselection:`Veterinary Services --> Configuration --> Animal Types`
- Click :guilabel:`Create`
- Enter the code, name and description
- Click :guilabel:`Save`
Medication Withdrawal Registry
Define drug classes and their withdrawal periods:
- Navigate to :menuselection:`Veterinary Services --> Configuration --> Medication Withdrawal`
- Click :guilabel:`Create`
- Enter the medication name, class, regulator, and the withdrawal periods in days for milk, meat and eggs
- Click :guilabel:`Save`
Vaccination Schedules
Define vaccination templates per animal type:
- Navigate to :menuselection:`Veterinary Services --> Configuration --> Vaccination Schedules`
- Click :guilabel:`Create`
- Pick the animal type and vaccine
- Enter the required age range, repeat interval and target coverage %
- Click :guilabel:`Save`
Security
This module relies on multi-company record rules only — no custom security groups are defined. Access is controlled by company membership and the underlying contract farming groups inherited from grev_od_commodity_base.
Usage
Recording a Veterinary Visit
- Navigate to :menuselection:`Veterinary Services --> Veterinary Visits`
- Click :guilabel:`Create`
- Pick the farm, animal type and herd size
- Record the health status and any disease detected
- Add treatment lines with medication, dosage and outcome
- Set the follow-up date if needed
- Click :guilabel:`Submit` then :guilabel:`Review`
Tip
When you pick a medication that has withdrawal periods in the registry, the treatment line auto-computes the milk, meat and egg clear dates.
Registering an Individual Animal
- Navigate to :menuselection:`Veterinary Services --> Animals`
- Click :guilabel:`Create`
- Enter the ear-tag and (optionally) the RFID code
- Pick the breed, gender and date of birth — age in months is auto-computed
- Pick sire and dam if known
- Click :guilabel:`Save`
Note
Ear-tag and RFID codes must be unique per company.
Running a Vaccination Batch
- Navigate to :menuselection:`Veterinary Services --> Vaccination Batches`
- Click :guilabel:`Create`
- Pick the schedule and the planned date
- Add the eligible animals
- Click :guilabel:`Start` then :guilabel:`Done` as the batch is executed
- Coverage % is computed against the schedule's target
Reading the Farm Health Risk Score
- Open any farm record to see health_risk_score, health_risk_category and the rolling 90-day metrics.
- The cron recomputes scores daily and creates an activity when a farm transitions into critical.
- Categories: low, medium, high, critical.
Blocking Unsafe Deliveries
External integrations (for example commodity delivery) can call grev.farm.medication.withdrawal.registry.check_partner_withdrawal( partner_id, check_date, product_type) to detect treatments still within their withdrawal window and block deliveries of milk, meat or eggs from the affected farm.
Technical Details
Models
grev.farm.vet.visit
Veterinary visit with health assessment and dual review.
grev.farm.vet.treatment
Treatment record with medication, dosage, outcome and computed withdrawal end dates.
grev.farm.animal.type
Animal species master data.
grev.farm.animal.individual
Individual animal lifecycle with ear-tag, RFID, pedigree and status.
grev.farm.medication.withdrawal.registry
Drug withdrawal periods per regulator with public compliance API.
grev.farm.vaccination.schedule
Vaccination template per animal type.
grev.farm.vaccination.batch
Vaccination event execution with coverage KPIs.
Scheduled Actions
- Vet Follow-up Alerts — daily activities for overdue follow-ups.
- Vaccination Overdue Alerts — daily activities for overdue planned batches.
- Recompute Farm Health Risk Score — daily, with critical escalation.
See Also
- :doc:`../../grev_od_contract_farming/doc/index` — required dependency
- Farm Advisory, Farm Infrastructure — sibling farm productivity modules
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module