Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][FIX] product_contract recordset in constrains #1092

Open
wants to merge 1 commit into
base: 14.0
Choose a base branch
from

Conversation

sergiocorato
Copy link
Contributor

No description provided.

@OCA-git-bot
Copy link
Contributor

Hi @sbejaoui,
some modules you are maintaining are being modified, check this out!

Copy link

@TheMule71 TheMule71 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

raise ValidationError(_("Contract product should be service type"))
for record in self:
if record.is_contract and record.type != "service":
raise ValidationError(_("Contract product should be service type"))
Copy link
Sponsor Contributor

@rousseldenis rousseldenis Jun 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
raise ValidationError(_("Contract product should be service type"))
raise ValidationError(_("Contract product (%(product_name)s) should be service type", product_name=record.name))

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, thanks!

@sergiocorato sergiocorato force-pushed the 14.0-fix-product_contract-recordset branch from f2ea474 to 031dadb Compare June 19, 2024 06:40
@sergiocorato
Copy link
Contributor Author

@sergiocorato sergiocorato force-pushed the 14.0-fix-product_contract-recordset branch from 031dadb to 90aca03 Compare June 30, 2024 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants