Open QuocDuong1306 opened 1 month ago
Hi @etobella, @simahawk, some modules you are maintaining are being modified, check this out!
Hello @simahawk , I updated as you suggested, could you have a look?
Hi @simahawk , I pushed 1 fixup commit for cases:
Assume that DB has already installed edi_sale_oca
, edi_stock_oca
, edi_product_oca
, edi_partner_oca
.. . On their form (sale.order, stock.picking, product.template,...) will limit the access right because their group was not implied base_edi.group_edi_user
to read records on edi.exchange.consumer.mixin (big problem because of breaking flows and tests)
I suggest that:
base.group_user
, but should create read queue.job
permission for base_edi.group_edi_user
, for that edi user can access to edi.exchange.record
form (not accepted for base.group_user
)Ex: Break when accessing to res.partner
if users have not implied edi user group
Hi @simahawk , I pushed 1 fixup commit for cases:
Assume that DB has already installed
edi_sale_oca
,edi_stock_oca
,edi_product_oca
,edi_partner_oca
.. . On their form (sale.order, stock.picking, product.template,...) will limit the access right because their group was not impliedbase_edi.group_edi_user
to read records on edi.exchange.consumer.mixin (big problem because of breaking flows and tests)I suggest that:
* Keep creating access rights to EDI stack for `base.group_user`, but should create read `queue.job` permission for `base_edi.group_edi_user`, for that edi user can access to `edi.exchange.record` form (not accepted for `base.group_user`)
Ex: Break when accessing to
res.partner
if users have not implied edi user group
Can't we have a migration step to fix this? If not, let's go as you propose but we should some how log a deprecation.
Hi @simahawk do you agree with these levels of access:
(3) EDI Manager: full configuration access
If yes, then this PR does not introduce any change, just implements (2)
Hi @simahawk do you agree with these levels of access:
* (1) **Internal User**: might be an EDI user without even knowing about it, triggering EDI flows by some of his actions on business records; does not need access to related queue jobs * (2) (new) **EDI User**: more conscious EDI user that might sometimes need to debug things a bit further and thus needs access to related queue jobs * (3) **EDI Manager**: full configuration access
If yes, then this PR does not introduce any change, just implements (2)
@nilshamerlinck thanks for the summary! I'm ok w/ this then. @QuocDuong1306 could you please add this info somewhere? Maybe a section "Jobs" in "CONFIGURE.rst" is appropriate. @etobella could you please pass by for a review?
Hello @simahawk , the PR is updated
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). 🤖
conflicts
This PR adds a smart button in record form to show all related queue jobs
Depend on: