mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[MIG] contract_variable_quantity: Migration to 15.0
TT40289
This commit is contained in:
committed by
Carolina Fernandez
parent
1d6cec8247
commit
aa78b00e21
@@ -33,6 +33,6 @@ class ContractLineFormula(models.Model):
|
||||
except Exception as e:
|
||||
raise exceptions.ValidationError(
|
||||
_("Error evaluating code.\nDetails: %s") % e
|
||||
)
|
||||
) from e
|
||||
if "result" not in eval_context:
|
||||
raise exceptions.ValidationError(_("No valid result returned."))
|
||||
|
||||
Reference in New Issue
Block a user