-
Notifications
You must be signed in to change notification settings - Fork 23.1k
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
[FIX] mrp_account: bypass the timesheet analytic access rule for MRP #162409
[FIX] mrp_account: bypass the timesheet analytic access rule for MRP #162409
Conversation
47ca614
to
7fe2819
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems good to me if mrp_user needs this right
@@ -4,6 +4,7 @@ | |||
from odoo.addons.mrp.tests.common import TestMrpCommon | |||
from odoo.addons.stock_account.tests.test_account_move import TestAccountMove | |||
from odoo.tests import Form, tagged | |||
from odoo import Command |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be first of the from odoo normally
7fe2819
to
97e1e13
Compare
I would |
@Whenrow the error is actually raised when the action returned by the |
97e1e13
to
3c52509
Compare
…flows Steps to reproduce: - Go to settings and activate Analytic Accounting - Create a product with a BOM - In the Miscellaneous tab of the BOM, add: [ASML - HOUR] Costing Account For Hours of Assembly as analytic account. - Settings > Users and companies > Users - Change the access rights of Marc Demo to: - Timesheets: User: own timesheets only - Accounting: None - Connect as mark Demo and create an manufactoring order with your BOM - "Confirm" the MO and "Mark as Done": > Access Error: you are not allowed to modify 'Analytic Line' Cause of the issue: The error is raised due to the ir.rule: "account.analytic.line.timesheet.user.update-unlink": https://github.com/odoo/enterprise/blob/c5ab16b0464cc396fdb02f3968d3d61e68f7cb2e/timesheet_grid/security/timesheet_security.xml#L12-L28 as the analytic lines created from the MO will not be linked to a project and will therefore never pass the domain. opw-3836624
3c52509
to
511fd3c
Compare
robodoo r+ |
…flows Steps to reproduce: - Go to settings and activate Analytic Accounting - Create a product with a BOM - In the Miscellaneous tab of the BOM, add: [ASML - HOUR] Costing Account For Hours of Assembly as analytic account. - Settings > Users and companies > Users - Change the access rights of Marc Demo to: - Timesheets: User: own timesheets only - Accounting: None - Connect as mark Demo and create an manufactoring order with your BOM - "Confirm" the MO and "Mark as Done": > Access Error: you are not allowed to modify 'Analytic Line' Cause of the issue: The error is raised due to the ir.rule: "account.analytic.line.timesheet.user.update-unlink": https://github.com/odoo/enterprise/blob/c5ab16b0464cc396fdb02f3968d3d61e68f7cb2e/timesheet_grid/security/timesheet_security.xml#L12-L28 as the analytic lines created from the MO will not be linked to a project and will therefore never pass the domain. opw-3836624 closes #162409 Signed-off-by: William Henrotin (whe) <whe@odoo.com>
Steps to reproduce:
> Access Error: you are not allowed to modify 'Analytic Line'
Cause of the issue:
The error is raised due to the ir.rule:
"account.analytic.line.timesheet.user.update-unlink": https://github.com/odoo/enterprise/blob/c5ab16b0464cc396fdb02f3968d3d61e68f7cb2e/timesheet_grid/security/timesheet_security.xml#L12-L28
as the analytic lines created from the MO will not be linked to a project and will therefore never pass the domain.
opw-3836624
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr