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.package
Compute Method: _compute_json_popover
| Inputs | Method | Outputs |
|---|---|---|
|
+ for package in self: + if not package._has_issues(): + package.json_popover = False + continue + location_names = package.move_line_ids.location_dest_id.mapped('display_name') + package.json_popover = json.dumps({ + 'title': self.env._("Multiple destinations"), + 'msg': self.env._("This package is currently set to be sent in %(location_names_list)s.", location_names_list=location_names), + 'color': 'text-warning', + 'icon': 'warning', + }) |
|
