Files
odoo_source/addons/website_slides/security/ir.model.access.csv
T
Martin Trigaux 65530dfd6a [ADD] *: add ir.model.access on all transient models
Following changes needing ir.model.access on transient models too.
Remove groups declaration on the action to move it to ir.model.access
when possible.
Rules are strict by default with no unlink access by default and high
priviledge asked. Adaptations may be needed later.
Write access is given as a wizard may need to be modified in case the
action triggers an error and the user has to correct a value

account*: use account.group_account_user for all transient by default
	  remove account.print.journal relic
stock*: use stock.group_stock_user by default
survey: survey user can send invitations
mail: allow any employee to execute wizards
      additional verifications are made to ensure they are executed
      only on the documents the user has access to you
      give portal access to mail.compose.message as portal still does
      some actions like posting messages on the forum
      add ir.rule to avoid reading somebody else messages
      increase the query count because of undeterminist count
crm: saleman for lead2opp, manager for massmailing
     partner manager for actions linked to partners
     avoid a write in test_lead_lost
sms: any employee can send sms
mrp: mrp user can execute wizards
     give unlink access as making write during do_produce operation
base_import: employees can import files
delivery: stock user can deliver
event_sale: sale user can configure the wizards
	    event user inherit from  sale rights
gamification: employee can give badge
google_service: resolve FIXME
hr: add specific rights
    manager can set a plan according to group on button
    anyone who can write on an employee can register a departure
hr_expense: set rights based on buttons
hr_holidays: an approver can make a summary report
hr_recruitment: recruiter can refuse a candidate
hr_timesheet: can use the wizard if can create a timesheet
l10n_eu_service: managers can create fiscal positions
mass_mailing: same group as on mass.mailing.list
membership: accountant can create invoice from membership
payment: accountant can create a link
	 as the source is an account.move
	 keep the payment.acquirer.onboarding.wizard to system user
	 only as it is called during company configuration
point_of_sale: PoS manager only can use wizards
	       never create closing_balance_confirm_wizard records
product_expiry: stock user has rights on stock.picking
product_margin: access from accounting menus
repair: same rules as for above models
sale: set ir.rule for self wizard only
      add rule from model introduced in payment to add salesman group
sale_crm: saleman can create a quotation from a lead
sale_coupon: any saleman can generate coupon
	     add self ir.rule
sale_product_configurator: salesman can select product variants
snailmail: employee can send letters
website: designers can write on website
website_crm_partner_assign: same rule as group on action
website_sale: sale ACL as for payment.acquirer.onboarding.wizard
website_slides: anyone can send invitation

base: base.language.*: allow employee (cf lang_install)
      change.password.user: can not read change password wizard of
      other users
      test.*: no access is needed

Courtesy of Damien Bouvy, William Andre and Antoine Prieëls for review
of acl
2020-02-04 17:54:18 +01:00

2.9 KiB

1idnamemodel_id:idgroup_id:idperm_readperm_writeperm_createperm_unlink
2access_slide_slide_allslide.slide.allmodel_slide_slide1000
3access_slide_slide_officerslide.slide.officermodel_slide_slidewebsite_slides.group_website_slides_officer1110
4access_slide_slide_managerslide.slide.managermodel_slide_slidewebsite_slides.group_website_slides_manager1111
5access_slide_slide_partner_allslide.slide.partner.allmodel_slide_slide_partner0000
6access_slide_slide_partner_systemslide.slide.partner.systemmodel_slide_slide_partnerwebsite_slides.group_website_slides_officer1111
7access_slide_question_allslide.question.allmodel_slide_question1000
8access_slide_question_officerslide.question.officermodel_slide_questionwebsite_slides.group_website_slides_officer1111
9access_slide_answer_allslide.answer.allmodel_slide_answer0000
10access_slide_answer_officerslide.answer.officermodel_slide_answerwebsite_slides.group_website_slides_officer1111
11access_slide_tag_allslide.tag.allmodel_slide_tag1000
12access_slide_tag_officerslide.tag.officermodel_slide_tagwebsite_slides.group_website_slides_officer1111
13access_slide_channel_tag_allslide.channel.tag.allmodel_slide_channel_tag1000
14access_slide_channel_tag_userslide.channel.tag.usermodel_slide_channel_tagwebsite_slides.group_website_slides_officer1111
15access_slide_channel_tag_group_allslide.channel.tag.group.allmodel_slide_channel_tag_group1000
16access_slide_channel_tag_group_userslide.channel.tag.group.usermodel_slide_channel_tag_groupwebsite_slides.group_website_slides_officer1111
17access_slide_channel_allslide.channel.allmodel_slide_channel1000
18access_slide_channel_officerslide.channel.officermodel_slide_channelwebsite_slides.group_website_slides_officer1110
19access_slide_channel_managerslide.channel.managermodel_slide_channelwebsite_slides.group_website_slides_manager1111
20access_slide_channel_partners_allslide.channel.users.allmodel_slide_channel_partner0000
21access_slide_channel_partners_systemslide.channel.users.systemmodel_slide_channel_partnerwebsite_slides.group_website_slides_officer1111
22access_slide_embed_allslide.embed.allmodel_slide_embed1000
23access_slide_embed_userslide.embed.usermodel_slide_embedbase.group_user1111
24access_slide_slide_link_allslide.slide.link.allmodel_slide_slide_link1000
25access_slide_slide_link_officerslide.slide.link.officermodel_slide_slide_linkwebsite_slides.group_website_slides_officer1111
26access_slide_slide_resource_allslide.slide.resource.allmodel_slide_slide_resource1000
27access_slide_slide_resource_publicslide.slide.resource.publicmodel_slide_slide_resourcebase.group_public0000
28access_slide_slide_resource_publisherslide.slide.resource.publishermodel_slide_slide_resourcewebsite_slides.group_website_slides_officer1111
29access_slide_channel_inviteaccess.slide.channel.invitemodel_slide_channel_invitebase.group_user1110