summaryrefslogtreecommitdiff
path: root/addons/repair
diff options
context:
space:
mode:
authorArnold Moyaux <arm@odoo.com>2021-01-04 14:01:48 +0000
committerArnold Moyaux <arm@odoo.com>2021-01-04 15:02:46 +0000
commit64de68b4420eb4d82ff2130dfaa310e40775a0b7 (patch)
tree1688e64f60054fbf9e7a5b8375c3db9118277707 /addons/repair
parentb8d7e48f27fc4f0868c538977be8276058944e57 (diff)
[FIX] repair: be able to put service on repair fees
commit 38711e9f9c7a06017d284d75e31198fa9ae3cf37 prevent multi company issues. But it goes a litle too far in restriction and prevent to put a service in the repair fee. Which is a feature since user would like to register and invoice human ressources in maintenance cost. closes odoo/odoo#64019 Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
Diffstat (limited to 'addons/repair')
-rw-r--r--addons/repair/models/repair.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/repair/models/repair.py b/addons/repair/models/repair.py
index 093678ef8e0..4a90fdd4717 100644
--- a/addons/repair/models/repair.py
+++ b/addons/repair/models/repair.py
@@ -749,7 +749,7 @@ class RepairFee(models.Model):
name = fields.Text('Description', index=True, required=True)
product_id = fields.Many2one(
'product.product', 'Product', check_company=True,
- domain="[('type', 'in', ['product', 'consu']), '|', ('company_id', '=', company_id), ('company_id', '=', False)]")
+ domain="[('type', '=', 'service'), '|', ('company_id', '=', company_id), ('company_id', '=', False)]")
product_uom_qty = fields.Float('Quantity', digits='Product Unit of Measure', required=True, default=1.0)
price_unit = fields.Float('Unit Price', required=True, digits='Product Price')
product_uom = fields.Many2one('uom.uom', 'Product Unit of Measure', required=True, domain="[('category_id', '=', product_uom_category_id)]")