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

Syncing from upstream OCA/purchase-workflow (16.0) #1378

Merged
merged 7 commits into from
Feb 28, 2024
Merged

Conversation

bt-admin
Copy link

bt_gitbot

stefan-tecnativa and others added 7 commits February 26, 2024 08:11
- Fine-tune security rules.
- Put sequence on teams.
- Edit teams on tree.
- Convert purchase order team in computed writable.
- Use new_test_user in tests + useless lines for shorten code.
- Extra tests

[FIX] purchase_security: Fine-tune security rules

- PO lines domain was not adjusted
- Team rule doesn't need the second operand
Similar to sales_team_security, partners are restricted according to purchase permissions:
- User (own orders): If you are a follower of the partner or there is no user or you are the partner's user.
- User (team orders): If you are a follower of the partner or there is no user or you are a user of your purchasing team.
- Administrator: Without the restrictions of the other groups.

Add 'Purchase representative' (purchase_user_id) field to partners.
Add 'Purchase team' (purchase_team_id) field to partners.

TT47237
Signed-off-by pedrobaeza
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: purchase-workflow-16.0/purchase-workflow-16.0-purchase_security
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_security/
@bt-admin bt-admin added the 16.0 label Feb 28, 2024
@bt-admin bt-admin merged commit f1e4a36 into brain-tec:16.0 Feb 28, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants