Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Inventory
Entity: stock.lot
Compute Method: _compute_display_complete
| Inputs | Method | Outputs |
|---|---|---|
|
""" Defines if we want to display all fields in the stock.production.lot form view.
It will if the record exists (`id` set) or if we precised it into the context.
This compute depends on field `name` because as it has always a default value, it'll be
always triggered.
"""
for prod_lot in self:
- prod_lot.display_complete = prod_lot.id or self._context.get('display_complete')
+ prod_lot.display_complete = prod_lot.id or self.env.context.get('display_complete')
|
|
