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

[17.0][MIG] contract_sale: Migration to 17.0 #1074

Merged
merged 29 commits into from
Apr 20, 2024

Conversation

jaydeep32
Copy link
Contributor

No description provided.

Luis M. Ontalba and others added 23 commits April 15, 2024 09:03
* README by fragments
* Adjusted dependency
* Changed root menu XML-ID
[REF] Contract Sale: update translations
The lowest model access for contract.contract model is group_account_invoice group. However the addon adds two smart buttons to res.partner view without any security restrictions and without compute_sudo attribute on computed fields.
This causes the view to crash when a user without the proper permissions tries to access the res.partner form view.
The solution adds groups_id to the partner form views in which the buttons are added, so the only loads when the user has proper permissions.
Other way to solve it would be to add compute_sudo attribute to the relevant fields, but this causes an access error when the user clicks on the smart buttons.
Currently translated at 100.0% (1 of 1 strings)

Translation: contract-12.0/contract-12.0-contract_sale
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-contract_sale/es_CL/
@jaydeep32
Copy link
Contributor Author

jaydeep32 commented Apr 15, 2024

Hello @CRogos , this one is a new PR based on #1049.
I hope everything is good now..

Copy link
Contributor

@CRogos CRogos left a comment

Choose a reason for hiding this comment

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

Yes, looks a lot better now.
You could squash the marked commits according to:
https://github.com/OCA/maintainer-tools/wiki/Merge-commits-in-pull-requests#mergesquash-the-commits-generated-by-bots-or-weblate

or in short:
git config --global --add rebase.instructionFormat "(%an <%ae>) %s"
git rebase -i origin/17.0
than replace "pick" with "f" where needed and close the file.
git push -f

image

contract_sale/__manifest__.py Outdated Show resolved Hide resolved
@jaydeep32 jaydeep32 force-pushed the 17.0-mig-contract_sale branch from fd1b9f0 to 978b98e Compare April 15, 2024 16:24
Copy link
Contributor

@CRogos CRogos left a comment

Choose a reason for hiding this comment

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

Code + Function LGTM

@MohamedOsman7 could you review?

@CRogos
Copy link
Contributor

CRogos commented Apr 15, 2024

Same changes as #1049 but clean commit history.

Copy link

@MohamedOsman7 MohamedOsman7 left a comment

Choose a reason for hiding this comment

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

Code & Functional review LGTM

@CRogos
Copy link
Contributor

CRogos commented Apr 18, 2024

@rousseldenis could you merge?

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@pedrobaeza pedrobaeza changed the title 17.0 mig contract sale [17.0][MIG] contract_sale: Migration to 17.0 Apr 20, 2024
@pedrobaeza
Copy link
Member

/ocabot migration contract_sale
/ocabot merge nobump

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Apr 20, 2024
@OCA-git-bot OCA-git-bot mentioned this pull request Apr 20, 2024
12 tasks
@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 17.0-ocabot-merge-pr-1074-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 0f7079b into OCA:17.0 Apr 20, 2024
5 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at c7af339. Thanks a lot for contributing to OCA. ❤️

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.