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

[16.0][MIG] contract_sale: Migration to 16.0 #915

Closed

Conversation

urvisha-serpentcs
Copy link

No description provided.

Luis M. Ontalba and others added 30 commits January 12, 2023 16:54
* README by fragments
* Adjusted dependency
* Changed root menu XML-ID
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/gl/
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/zh_CN/
[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/
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/
@urvisha-serpentcs
Copy link
Author

Maybe test cases fail because of the contract module dependency, we have open PR of the contract module #887 if we merge first then test cases fails is solved

Copy link

@manuelcalerosolis manuelcalerosolis left a comment

Choose a reason for hiding this comment

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

Functional review ok!

@pedrobaeza pedrobaeza changed the title 16.0 mig contract sale [16.0][MIG] contract_sale: Migration to 16.0 Mar 16, 2023
@pedrobaeza
Copy link
Member

Please rebase to see the proper CI status.

@jado95 jado95 mentioned this pull request Apr 17, 2023
12 tasks
@CRogos CRogos mentioned this pull request May 15, 2023
@rousseldenis
Copy link
Sponsor Contributor

@urvisha-serpentcs Do you mind if we switch to #949 ?

@urvisha-serpentcs
Copy link
Author

@rousseldenis you can switch

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