Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Products & Pricelists
Entity: product.template
Compute Method: _compute_barcode
| Inputs | Method | Outputs |
|---|---|---|
|
- self._compute_template_field_from_variant_field('barcode') + for template in self.filtered(lambda template: len(template.product_variant_ids) == 1): + template.barcode = template.product_variant_ids.barcode |
|
