Skip to content

Commit

Permalink
[FIX] connector_oxigesti: wrong mrp product type
Browse files Browse the repository at this point in the history
  • Loading branch information
eantones committed Oct 10, 2024
1 parent 9db2d45 commit 1960b75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions connector_oxigesti/models/mrp_production/binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ def _get_valid_components(self):
)
if len(move_raw.product_id) == 0:
raise ValidationError(
_("Production of empty gas bottle type without %s product: %s")
_("Production of empty cylinder type without %s product: %s")
% (mrp_type, self.name)
)
if len(move_raw) > 1 or sum(move_raw.mapped("quantity_done")) > 1:
raise ValidationError(
_(
"The empty gas bottle (%s) has been created with"
"The empty cylinder (%s) has been created with"
" more than one %s"
)
% (self.name, mrp_type)
Expand Down Expand Up @@ -69,7 +69,7 @@ class MrpProductionBinding(models.Model):
def export_data(self, backend, since_date):
domain = [
("company_id", "=", backend.company_id.id),
("product_id.mrp_type", "=", "empty_gas_bottle"),
("product_id.mrp_type", "=", "empty_cylinder"),
("state", "=", "done"),
]
if since_date:
Expand Down

0 comments on commit 1960b75

Please sign in to comment.