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

Task: T004192 #8

Merged
merged 4 commits into from
Oct 20, 2023
Merged

Task: T004192 #8

merged 4 commits into from
Oct 20, 2023

Conversation

usa8bit
Copy link
Contributor

@usa8bit usa8bit commented Sep 29, 2023

No description provided.

@@ -4,6 +4,7 @@

from odoo import api, fields, models
from odoo.tools.safe_eval import safe_eval
from odoo.exceptions import ValidationError
Copy link
Contributor

Choose a reason for hiding this comment

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

Gunakan UserError
from odoo.exceptions import Warning as UserError

('id', '!=', record.id)
])
if items:
raise ValidationError("The risk item '%s - %s' is already used." % (record.item_id.name, record.risk_analysis_id.name))
Copy link
Contributor

Choose a reason for hiding this comment

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

Untuk format pesan error bisa dilihat contohnya disini.
Kedepannya format seperti ini akan menjadi standard kita dalam menuliskan pesan error.

@mikevhe18
Copy link
Contributor

/ocabot merge minor

@ssi-bot
Copy link
Collaborator

ssi-bot commented Oct 20, 2023

What a great day to merge this nice PR. Let's do it!
Prepared branch 14.0-ocabot-merge-pr-8-by-mikevhe18-bump-minor, awaiting test results.

@ssi-bot ssi-bot merged commit 6db604c into 14.0 Oct 20, 2023
5 checks passed
@ssi-bot
Copy link
Collaborator

ssi-bot commented Oct 20, 2023

Congratulations, your PR was merged at 69c1fc9. Thanks a lot for contributing to open-synergy. ❤️

@ssi-bot ssi-bot deleted the 14.0-T004192 branch October 20, 2023 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants