Files
odoo_source/addons/website/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.2 KiB

1idnamemodel_id:idgroup_id:idperm_readperm_writeperm_createperm_unlink
2access_website_publicwebsitewebsite.model_website1000
3access_website_designerwebsitewebsite.model_websitegroup_website_designer1111
4access_website_menuaccess_website_menumodel_website_menu1000
5access_website_menu_designerWeb Menu Managermodel_website_menugroup_website_designer1111
6access_website_rewriteaccess_website_rewritemodel_website_rewrite0000
7access_website_rewrite_designerWeb Rewrite Managermodel_website_rewritegroup_website_designer1111
8access_website_pageaccess_website_pagemodel_website_page1000
9access_website_page_designerWeb Page Managermodel_website_pagegroup_website_designer1111
10access_websiteweb menu managerwebsite.model_websitegroup_website_designer1111
11access_website_ir_ui_viewaccess_website_ir_ui_viewmodel_ir_ui_viewgroup_website_designer1111
12access_seo_publicaccess_seo_publicmodel_website_seo_metadata1000
13access_seo_manageraccess_seo_managermodel_website_seo_metadatagroup_website_designer1111
14access_seo_designeraccess_seo_designermodel_website_seo_metadatagroup_website_designer1111
15access_website_visitor_designeraccess_website_visitor_designermodel_website_visitorwebsite.group_website_designer1101
16access_website_visitor_systemaccess_website_visitor_systemmodel_website_visitorbase.group_system1111
17access_website_track_designeraccess_website_track_designermodel_website_trackwebsite.group_website_designer1111
18access_website_track_systemaccess_website_track_systemmodel_website_trackbase.group_system1111
19access_website_route_designeraccess_website_designer_routemodel_website_routegroup_website_designer1111
20access_theme_ir_ui_viewaccess_theme_ir_ui_viewmodel_theme_ir_ui_viewbase.group_system1111
21access_theme_ir_attachmentaccess_theme_ir_attachmentmodel_theme_ir_attachmentbase.group_system1111
22access_theme_website_menuaccess_theme_website_menumodel_theme_website_menubase.group_system1111
23access_theme_website_pageaccess_theme_website_pagemodel_theme_website_pagebase.group_system1111
24access_website_robotsaccess.website.robotsmodel_website_robotswebsite.group_website_designer1110