Animal Prescriptions

animal_prescription
REPOSITORY
REPOSITORYOCA/vertical-agriculture
GIT
GIThttps://github.com/OCA/vertical-agriculture.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/vertical-agriculture/tree/14.0/animal_prescription
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYSales
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSDavid Beal, Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/vertical-agriculture
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:40:50
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/partner-contact:
    - animal_owner
    - animal
OCA/sale-workflow:
    - sale_order_lot_selection
OCA/stock-logistics-workflow:
    - stock_restrict_lot
    - product_expiry_simple
OCA/vertical-agriculture:
    - herd
    - animal_medicament
odoo/odoo:
    - mail
    - base
    - base_setup
    - web
    - bus
    - web_tour
    - sale_management
    - sale
    - sales_team
    - payment
    - account
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - utm
    - sale_stock
    - stock_account
    - stock
    - barcodes
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
posology_tree_view posology xpath Inherits animal_medicament.posology_tree_view
view_herd_tree herd field Inherits herd.view_herd_tree
view_order_form sale.order field Inherits sale.view_order_form
view_order_tree sale.order field Inherits sale.view_order_tree
view_physiology_tree physiology tree New
Models touched (4)

New fields (3)
  • active Boolean
    default=True
  • name Char
  • sequence Integer
Public methods (0)

No public methods.

New fields (1)
  • physiology_id Many2one → physiology
    comodel_name='physiology'
Public methods (0)

No public methods.

New fields (4)
  • animal_ids Many2many → animal
    comodel_name='animal' string='Animals'
  • herd_id Many2one → herd
    comodel_name='herd' string='Herd'
  • specie_id Many2one
    related='herd_id.specie_id'
  • total_quantity Float
    compute='_compute_total_quantity' help='Used on report'
Public methods (0)

No public methods.

New fields (14)
  • animal_count Integer
    help='Animals number' string='Headcount'
  • animal_ids Many2many → animal
    comodel_name='animal' string='Animals'
  • lot_date Date
    related='lot_id.expiry_date'
  • lot_name Char
    related='lot_id.name'
  • meat_time_str Char
    compute='_compute_time_fields' copy=False help='Waiting time for meat case by unit' readonly=False store=True string='Meat Delay'
  • milk_time_str Char
    compute='_compute_time_fields' help='Waiting time for milk case by unit' readonly=False store=True string='Milk Delay'
  • parent_specie_id Many2one
    related='order_id.herd_id.specie_id'
  • physiology_id Many2one → physiology
    comodel_name='physiology'
  • poso_description Text
  • posology_id Many2one → posology
    comodel_name='posology' compute='_compute_posology' store=True
  • product_tracking Selection
    related='product_id.tracking'
  • specie_id Many2one → animal.species
    comodel_name='animal.species'
  • unit_meat Selection
    selection=MEAT
  • unit_milk Selection
    selection=MILK
Public methods (2)
  • get_animals(self)
  • get_sale_order_line_multiline_description_sale(self, product)