Files
odoo_source/addons/gamification/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
2goal_employeeGoal Employeemodel_gamification_goalbase.group_user1100
3goal_managerGoal Managermodel_gamification_goalbase.group_erp_manager1111
4goal_portalGoal Portalgamification.model_gamification_goalbase.group_portal1100
5goal_definition_employeeGoal Definition Employeemodel_gamification_goal_definitionbase.group_user1000
6goal_definition_managerGoal Definition Managermodel_gamification_goal_definitionbase.group_erp_manager1111
7goal_definition_portalGoal Definition Portalgamification.model_gamification_goal_definitionbase.group_portal1000
8challenge_employeeGoal Challenge Employeemodel_gamification_challengebase.group_user1000
9challenge_managerGoal Challenge Managermodel_gamification_challengebase.group_erp_manager1111
10challenge_portalGoal Challenge Portalgamification.model_gamification_challengebase.group_portal1000
11challenge_line_employeeChallenge Line Employeemodel_gamification_challenge_linebase.group_user1000
12challenge_line_managerChallenge Line Managermodel_gamification_challenge_linebase.group_erp_manager1111
13challenge_line_portalChallenge Line Portalgamification.model_gamification_challenge_linebase.group_portal1000
14badge_employeeBadge Employeemodel_gamification_badgebase.group_user1000
15badge_managerBadge Managermodel_gamification_badgebase.group_erp_manager1111
16badge_portalBadge Portalgamification.model_gamification_badgebase.group_portal1000
17badge_publicBadge Publicgamification.model_gamification_badgebase.group_public1000
18badge_user_employeeBadge-user Employeemodel_gamification_badge_userbase.group_user1110
19badge_user_managerBadge-user Managermodel_gamification_badge_userbase.group_erp_manager1111
20badge_user_portalBadge-user Portalgamification.model_gamification_badge_userbase.group_portal1110
21badge_user_publicBadge-user Publicgamification.model_gamification_badge_userbase.group_public1000
22gamification_karma_rank_access_allgamification.karma.rank.access.allgamification.model_gamification_karma_rank1000
23gamification_karma_rank_access_user_managergamification.karma.rank.access.user.managergamification.model_gamification_karma_rankbase.group_system1111
24gamification_karma_tracking_access_allgamification.karma.tracking.access.allgamification.model_gamification_karma_tracking0000
25gamification_karma_tracking_access_user_managergamification.karma.tracking.access.user.managergamification.model_gamification_karma_trackingbase.group_system1111
26access_gamification_goal_wizardaccess.gamification.goal.wizardmodel_gamification_goal_wizardbase.group_user1110
27access_gamification_badge_user_wizardaccess.gamification.badge.user.wizardmodel_gamification_badge_user_wizardbase.group_user1110