diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2017-03-09 16:28:34 +0100 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2017-03-10 09:21:49 +0100 |
| commit | abf946086de2d4e105befb2d1f52b3c7bef77b6c (patch) | |
| tree | 5a33cff06ef294221456c93b07bcd0a81db83233 | |
| parent | 8be16e7a1c32a5a9ac3e5c582b92d795f00836ea (diff) | |
[FIX] mrp_repair: fees
- Create a repair order
- In the "Fees" list, select a product
The default information is not loaded (description, price).
opw-709368
| -rw-r--r-- | addons/mrp_repair/models/mrp_repair.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mrp_repair/models/mrp_repair.py b/addons/mrp_repair/models/mrp_repair.py index 18c3bee3463..4273baf9271 100644 --- a/addons/mrp_repair/models/mrp_repair.py +++ b/addons/mrp_repair/models/mrp_repair.py @@ -521,7 +521,7 @@ class RepairFee(models.Model): index=True, ondelete='cascade', required=True) name = fields.Char('Description', index=True, required=True) product_id = fields.Many2one('product.product', 'Product') - product_uom_qty = fields.Float('Quantity', digits=dp.get_precision('Product Unit of Measure'), required=True) + product_uom_qty = fields.Float('Quantity', digits=dp.get_precision('Product Unit of Measure'), required=True, default=1.0) price_unit = fields.Float('Unit Price', required=True) product_uom = fields.Many2one('product.uom', 'Product Unit of Measure', required=True) price_subtotal = fields.Float('Subtotal', compute='_compute_price_subtotal', digits=0) |
