Files
odoo_source/addons/stock/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

10 KiB

1idnamemodel_id:idgroup_id:idperm_readperm_writeperm_createperm_unlink
2access_procurement_groupprocurement.groupmodel_procurement_groupbase.group_user1110
3access_stock_rulestock.rulemodel_stock_rulebase.group_user1110
4access_stock_warehouse_managerstock.warehouse.managermodel_stock_warehousestock.group_stock_manager1111
5access_stock_warehouse_userstock.warehouse.usermodel_stock_warehousebase.group_user1000
6access_stock_location__partner_managerstock.location.partner.managermodel_stock_locationbase.group_partner_manager1000
7access_stock_location_managerstock.location.managermodel_stock_locationstock.group_stock_manager1111
8access_stock_location_userstock.location.usermodel_stock_locationbase.group_user1000
9access_stock_picking_userstock.picking usermodel_stock_pickingstock.group_stock_user1111
10access_stock_picking_managerstock.picking managermodel_stock_pickingstock.group_stock_manager1111
11access_stock_picking_portalstock.pickingstock.model_stock_pickingbase.group_portal1000
12access_stock_picking_type_allstock.picking.type all usersmodel_stock_picking_typebase.group_user1000
13access_stock_picking_type_userstock.picking.type usermodel_stock_picking_typestock.group_stock_user1000
14access_stock_picking_type_managerstock.picking.type managermodel_stock_picking_typestock.group_stock_manager1111
15access_stock_picking_type_portalstock.picking.type portalstock.model_stock_picking_typebase.group_portal0000
16access_stock_production_lot_userstock.production.lot usermodel_stock_production_lotstock.group_stock_user1111
17access_stock_move_managerstock.move managermodel_stock_movestock.group_stock_manager1111
18access_stock_move_userstock.move usermodel_stock_movestock.group_stock_user1110
19access_stock_move_portalstock.movestock.model_stock_movebase.group_portal0000
20access_stock_inventory_userstock.inventory usermodel_stock_inventorystock.group_stock_user1110
21access_stock_inventory_managerstock.inventory managermodel_stock_inventorystock.group_stock_manager1111
22access_stock_inventory_line_userstock.inventory.line usermodel_stock_inventory_linestock.group_stock_user1110
23access_stock_inventory_line_managerstock.inventory.line managermodel_stock_inventory_linestock.group_stock_manager1111
24access_stock_location_stock_managerstock.location stock managermodel_stock_locationstock.group_stock_manager1000
25access_product_product_stock_userproduct_product_stock_userproduct.model_product_productstock.group_stock_user1000
26access_product_template_stock_userproduct.template stock userproduct.model_product_templatestock.group_stock_user1000
27access_uom_category_stock_manageruom.category stock_manageruom.model_uom_categorystock.group_stock_manager1111
28access_uom_uom_stock_manageruom.uom stock_manageruom.model_uom_uomstock.group_stock_manager1111
29access_product_category_stock_managerproduct.category stock_managerproduct.model_product_categorystock.group_stock_manager1111
30access_product_template_stock_managerproduct.template stock_managerproduct.model_product_templatestock.group_stock_manager1111
31access_product_product_stock_managerproduct.product stock_managerproduct.model_product_productstock.group_stock_manager1111
32access_product_packaging_stock_managerproduct.packaging stock_managerproduct.model_product_packagingstock.group_stock_manager1111
33access_product_supplierinfo_stock_managerproduct.supplierinfo stock_managerproduct.model_product_supplierinfostock.group_stock_manager1111
34access_product_pricelist_stock_managerproduct.pricelist stock_managerproduct.model_product_priceliststock.group_stock_manager1111
35access_ir_property_group_stock_managerir_property group_stock_managerbase.model_ir_propertystock.group_stock_manager1111
36access_product_group_res_partner_stock_managerres_partner group_stock_managerbase.model_res_partnerstock.group_stock_manager1110
37access_product_pricelist_item_stock_managerproduct.pricelist.item stock_managerproduct.model_product_pricelist_itemstock.group_stock_manager1111
38access_stock_warehouse_orderpointstock.warehouse.orderpointmodel_stock_warehouse_orderpointstock.group_stock_user1000
39access_stock_warehouse_orderpoint_systemstock.warehouse.orderpoint systemmodel_stock_warehouse_orderpointstock.group_stock_manager1111
40access_stock_warehouse_orderpoint_portalstock.warehouse.orderpointstock.model_stock_warehouse_orderpointbase.group_portal0000
41access_stock_quant_managerstock.quant managermodel_stock_quantstock.group_stock_manager1000
42access_stock_quant_userstock.quant usermodel_stock_quantstock.group_stock_user1000
43access_stock_quant_allstock.quant all usersmodel_stock_quantbase.group_user1000
44access_stock_quant_package_allstock.quant.package all usersmodel_stock_quant_packagebase.group_user1000
45access_stock_quant_package_stock_managerstock.quant.package stock managermodel_stock_quant_packagestock.group_stock_manager1111
46access_stock_quant_package_stock_userstock.quant.package stock usermodel_stock_quant_packagestock.group_stock_user1111
47access_stock_package_level_allstock.package_level all usersmodel_stock_package_levelbase.group_user1000
48access_stock_package_level_stock_managerstock.package_level stock managermodel_stock_package_levelstock.group_stock_manager1111
49access_stock_package_level_stock_userstock.package_level stock usermodel_stock_package_levelstock.group_stock_user1111
50access_stock_rule_userstock_rule usermodel_stock_rulestock.group_stock_user1000
51access_stock_rule_managerstock_rule managermodel_stock_rulestock.group_stock_manager1111
52access_stock_rule_stock_managerstock_rule stock managermodel_stock_rulestock.group_stock_manager1111
53access_stock_location_route_stock_managerstock.location.routemodel_stock_location_routestock.group_stock_manager1111
54access_stock_location_routestock.location.routemodel_stock_location_routebase.group_user1000
55access_stock_rule_internalstock.rule.flow internalmodel_stock_rulebase.group_user1000
56access_stock_move_line_managerstock.move.line managermodel_stock_move_linestock.group_stock_manager1111
57access_stock_move_line_userstock.move.line usermodel_stock_move_linestock.group_stock_user1111
58access_stock_move_line_allstock.move.line all usersmodel_stock_move_linebase.group_user1111
59access_stock_putaway_allstock.putaway.rule all usersmodel_stock_putaway_rulebase.group_user1000
60access_stock_putaway_managerstock.putaway.rule all managersmodel_stock_putaway_rulestock.group_stock_manager1111
61access_stock_removal_allproduct.removal all usersmodel_product_removalbase.group_user1000
62access_stock_move_line_portalstock.move.line portalstock.model_stock_move_linebase.group_portal0000
63access_barcode_nomenclature_stock_userbarcode.nomenclature.stock.userbarcodes.model_barcode_nomenclaturestock.group_stock_user1000
64access_barcode_nomenclature_stock_managerbarcode.nomenclature.stock.managerbarcodes.model_barcode_nomenclaturestock.group_stock_manager1111
65access_barcode_rule_stock_userbarcode.rule.stock.userbarcodes.model_barcode_rulestock.group_stock_user1000
66access_barcode_rule_stock_managerbarcode.rule.stock.managerbarcodes.model_barcode_rulestock.group_stock_manager1111
67access_stock_scrap_userstock.scrap.usermodel_stock_scrapstock.group_stock_user1110
68access_stock_scrap_managerstock.scrap.managermodel_stock_scrapstock.group_stock_manager1111
69access_product_attribute_managerproduct.attribute managerproduct.model_product_attributestock.group_stock_manager1111
70access_product_attribute_value_managerproduct.attribute manager valueproduct.model_product_attribute_valuestock.group_stock_manager1111
71access_product_product_attribute_managerproduct.product.attribute manager valueproduct.model_product_template_attribute_valuestock.group_stock_manager1111
72access_product_template_attribute_exclusion_managerproduct.attribute manager filter lineproduct.model_product_template_attribute_exclusionstock.group_stock_manager1111
73access_product_template_attribute_line_managerproduct.attribute manager lineproduct.model_product_template_attribute_linestock.group_stock_manager1111
74access_report_stock_quantityaccess_report_stock_quantitymodel_report_stock_quantitybase.group_user1000
75access_stock_traceability_reportaccess.stock.traceability.reportmodel_stock_traceability_reportstock.group_stock_user1110
76access_stock_assign_serialaccess.stock.assign.serialmodel_stock_assign_serialstock.group_stock_user1110
77access_stock_return_picking_lineaccess.stock.return.picking.linemodel_stock_return_picking_linestock.group_stock_user1110
78access_stock_return_pickingaccess.stock.return.pickingmodel_stock_return_pickingstock.group_stock_user1110
79access_stock_change_product_qtyaccess.stock.change.product.qtymodel_stock_change_product_qtystock.group_stock_user1110
80access_stock_scheduler_computeaccess.stock.scheduler.computemodel_stock_scheduler_computestock.group_stock_user1110
81access_stock_immediate_transfer_lineaccess.stock.immediate.transfer.linemodel_stock_immediate_transfer_linestock.group_stock_user1110
82access_stock_immediate_transferaccess.stock.immediate.transfermodel_stock_immediate_transferstock.group_stock_user1110
83access_stock_backorder_confirmation_lineaccess.stock.backorder.confirmation.linemodel_stock_backorder_confirmation_linestock.group_stock_user1110
84access_stock_backorder_confirmationaccess.stock.backorder.confirmationmodel_stock_backorder_confirmationstock.group_stock_user1110
85access_stock_quantity_historyaccess.stock.quantity.historymodel_stock_quantity_historystock.group_stock_user1110
86access_stock_rules_reportaccess.stock.rules.reportmodel_stock_rules_reportstock.group_stock_user1110
87access_stock_warn_insufficient_qty_scrapaccess.stock.warn.insufficient.qty.scrapmodel_stock_warn_insufficient_qty_scrapstock.group_stock_user1110
88access_product_replenishaccess.product.replenishmodel_product_replenishstock.group_stock_user1110
89access_stock_track_confirmationaccess.stock.track.confirmationmodel_stock_track_confirmationstock.group_stock_user1110
90access_stock_track_lineaccess.stock.track.linemodel_stock_track_linestock.group_stock_user1110
91access_stock_package_destinationaccess.stock.package.destinationmodel_stock_package_destinationstock.group_stock_user1110