diff options
| author | Arnold Moyaux <arm@odoo.com> | 2019-09-25 08:11:20 +0000 |
|---|---|---|
| committer | Arnold Moyaux <arm@odoo.com> | 2019-09-25 08:11:20 +0000 |
| commit | 02dfe1e8e789ee783f58f667efdf47c017585298 (patch) | |
| tree | ca714a5c19cf96cc4c91e9cdef01d5fa28acaaa2 | |
| parent | e75ea301f6f909ff918428ba2942bebe15d0db1b (diff) | |
[FIX] mrp: mobile byproduct BoM form view
On Mobile the byproduct One2many only empty line.
It's due to default kanban view using the _rec_name
in order to display the byproduct name. On byproduct the
_rec_name is not defined nor the field name so the kanban
is empty.
closes odoo/odoo#37403
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
| -rw-r--r-- | addons/mrp/models/mrp_bom.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/mrp/models/mrp_bom.py b/addons/mrp/models/mrp_bom.py index 0e777b64243..4a61ca92cd3 100644 --- a/addons/mrp/models/mrp_bom.py +++ b/addons/mrp/models/mrp_bom.py @@ -382,6 +382,7 @@ class MrpBomLine(models.Model): class MrpByProduct(models.Model): _name = 'mrp.bom.byproduct' _description = 'Byproduct' + _rec_name = "product_id" _check_company_auto = True product_id = fields.Many2one('product.product', 'By-product', required=True, check_company=True) |
