Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Filesystem Storage Backend
Entity: fs.storage
Compute Method: _compute_field_ids
| Inputs | Method | Outputs |
|---|---|---|
|
+ """ + Use the char field (containing all field xmlids) to fulfill the o2m field. + """ + for rec in self: + xmlids = ( + rec.field_xmlids.split(",") if isinstance(rec.field_xmlids, str) else [] + ) + field_ids = [] + for xmlid in xmlids: + # Method returns False if no field is found for this xmlid + field_id = self.env["ir.model.data"]._xmlid_to_res_id(xmlid) + if field_id: + field_ids.append(field_id) + rec.field_ids = [(6, 0, field_ids)] |
|
