feat(#7): Extender stock.lot para gestion de muestras
This commit is contained in:
parent
291ceb9bfd
commit
ade39f9310
|
@ -1,5 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from . import partner
|
||||
from . import product
|
||||
from . import analysis_range
|
||||
from . import sale_order
|
||||
from . import product
|
||||
from . import partner
|
||||
from . import sale_order
|
||||
from . import stock_lot
|
||||
|
|
Binary file not shown.
BIN
lims_management/models/__pycache__/stock_lot.cpython-312.pyc
Normal file
BIN
lims_management/models/__pycache__/stock_lot.cpython-312.pyc
Normal file
Binary file not shown.
29
lims_management/models/stock_lot.py
Normal file
29
lims_management/models/stock_lot.py
Normal file
|
@ -0,0 +1,29 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from odoo import models, fields
|
||||
|
||||
class StockLot(models.Model):
|
||||
_inherit = 'stock.lot'
|
||||
|
||||
is_lab_sample = fields.Boolean(string='Is a Laboratory Sample')
|
||||
|
||||
patient_id = fields.Many2one(
|
||||
'res.partner',
|
||||
string='Patient',
|
||||
domain="[('is_patient', '=', True)]"
|
||||
)
|
||||
|
||||
request_id = fields.Many2one(
|
||||
'sale.order',
|
||||
string='Lab Request',
|
||||
domain="[('is_lab_request', '=', True)]"
|
||||
)
|
||||
|
||||
collection_date = fields.Datetime(string='Collection Date')
|
||||
|
||||
container_type = fields.Selection([
|
||||
('serum_tube', 'Serum Tube'),
|
||||
('edta_tube', 'EDTA Tube'),
|
||||
('swab', 'Swab'),
|
||||
('urine', 'Urine Container'),
|
||||
('other', 'Other')
|
||||
], string='Container Type')
|
Loading…
Reference in New Issue
Block a user