Commit Graph
30 Commits
Author SHA1 Message Date
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
Jérome Maes 3e3105151b [REM] portal: kill the module
All portal features were moved into base
and website_portal, portal module is obsolete.
This commit remove its code, and modify the modules
dependencies accordingly. website_portal now depends
on auth_signup.
2017-03-23 10:00:51 +01:00
Jérome Maes 1f3da58cfe [MOV] base,portal: make portal module empty
The goal is to prepare the removal of
'portal' module.

- demo portal user is moved into base
- 'is_portal' field on res.group too
- remaining security rule are moved to base too
- mail template is moved to website_portal
2017-03-23 09:59:58 +01:00
Jignesh Rathod a7543cc1ac [MOV] portal, mail: move some code on mail.message model from portal
to mail, as the portal group is now defined in base. Same for access rights.
There is no need to keep them in the portal module.
2015-03-24 10:18:20 +01:00
nafex a11c0eed00 Update ir.model.access.csv
missing a quotation mark
2014-07-03 09:54:53 +02:00
Fabien Pinckaers 1ce0b70a02 Speed Improvements 2014-07-02 19:03:10 +02:00
Thibault Delavallée 2e7b5991b7 [REF] portal, portal_sale, payment: refactored old acquirer in portal
now based on the new implementation of payment.

[REM] portal: removed acquirer model, views and implementation
[REF] portal_sale: now using payment rendering methods
[IMP] payment: added render_payment_block, taken from old
acquirer, that renders all portal_published acquirers.

bzr revid: tde@openerp.com-20140122190022-lef4b3o1tpcua3vx
2014-01-22 20:00:22 +01:00
Thibault Delavallée e541755ae4 [MOV] portal: moved portal group into base.
Updated security rules. Basic res_partner rules are moved into base. Added rule with website_published.

bzr revid: tde@openerp.com-20131008113545-gpqydx0b199lcqpy
2013-10-08 13:35:45 +02:00
Thibault Delavallée c08b877370 [FIX] mail: fixed redirection action that was not redirecting to the discussion when failing to open the document.
bzr revid: tde@openerp.com-20130429093329-w0qxiiipx1mkz6qt
2013-04-29 11:33:29 +02:00
Thibault Delavallée 179f525dc7 [IMP] Portal: portal user has a read access on res_partner, but limited to its own partner.
bzr revid: tde@openerp.com-20121212133612-vvxs2a73tcak3k4s
2012-12-12 14:36:12 +01:00
Thibault Delavallée 347d0e5b46 [IMP] portal removed access rights of portal user on res_partner and derived tables. Updated several accesses to bypass the security issues. Updated portal tests to have a more complete test scenario.
bzr revid: tde@openerp.com-20121212125518-k0s07niojr8a1xtu
2012-12-12 13:55:18 +01:00
Christophe Matthieu 61065b6d04 [IMP] mail: change access for create message for the attachments
bzr revid: chm@openerp.com-20121130110902-1qzmgvinhc0q0i3j
2012-11-30 12:09:02 +01:00
vta vta@openerp.com 8374e20b10 [FIX] Fixed events, mail, and project (also related access rights).
bzr revid: vta@openerp.com-20121122120554-ja2c2fmhxqxdyjj5
2012-11-22 13:05:54 +01:00
Olivier Dony 20c81b5e2f [ADD] portal: added portal.payment.acquirer model
portal.payment.acquirer stores payment processor
options (formally called payment acquirers). Each
acquirer is just a name and an HTML form template,
used to render an HTML snippet that can be included
in views where a payment option should be displayed.
The aquirer model has a generic method for rendering
a complete block of HTML to be included in form views
directly (with matching CSS): render_payment_block().

This method takes a few parameters to figure out
the name/reference, amount, currency, etc. to pay.

bzr revid: odo@openerp.com-20121024131554-j01ucniecjmoz3jq
2012-10-24 15:15:54 +02:00
Antonin Bourguignon d4e7bba274 [FIX] move group_portal access rules on partner from portal_hr_employees directly into portal module
thils will prevent errors while accessing partner model while portal_hr_employees isn't installed

bzr revid: abo@openerp.com-20121001102230-k1fe4ndjwi58qrfg
2012-10-01 12:22:30 +02:00
Thibault Delavallée bcbae5e277 [MERGE] Merged with addons/trunk, with lots of conflicts to solve...
bzr revid: tde@openerp.com-20120920074850-7p7or1ze8555fya5
2012-09-20 09:48:50 +02:00
Thibault Delavallée 585ec570d2 [MERGE] Merged with addons/trunk.
bzr revid: tde@openerp.com-20120918155905-rkdtkuu559ii0e6p
bzr revid: tde@openerp.com-20120919075051-zjxrbcbltrlp8h4k
2012-09-19 09:50:51 +02:00
Thibault Delavallée 33f60023e8 [FIX] mail: replaced a superuser_id by a classic read with uid on partner in mail_group and mail_thread; fixed access rigths definition in portal that are not necessary.
bzr revid: tde@openerp.com-20120918101423-pizn2tyrwta5o93n
2012-09-18 12:14:23 +02:00
Thibault Delavallée 198fd2b12c [IMP] Portal: removed access on res.partner.
bzr revid: tde@openerp.com-20120917134849-ehbv3oq0lhmm19jh
2012-09-17 15:48:49 +02:00
Thibault Delavallée 418b35c33b [FIX] Porta: fixed access rights (removed duplicate of basic access rights, added read rights on res_partner, to see the topbar avatar and group followers). Set news and jobs group as public.
bzr revid: tde@openerp.com-20120917095203-3v6q49qk9sxe0b4o
2012-09-17 11:52:03 +02:00
Raphael Collet 8cdd46aeec [FIX] portal: load missing file security/portal_security.xml, and remove access rights about suppressed models
bzr revid: rco@openerp.com-20120917075422-9ov3vd57phdes6yj
2012-09-17 09:54:22 +02:00
Raphael Collet 5720ae3a90 [IMP] portal: rename xml id 'portal.group_portal_member' to 'portal.group_portal'
bzr revid: rco@openerp.com-20120914134251-answ8jr65vfeeiz3
2012-09-14 15:42:51 +02:00
Raphael Collet ca4326bbd1 [IMP] portal: remove groups Portal Officer and Portal Manager
bzr revid: rco@openerp.com-20120914132113-15r6rcmiwb5tr5ia
2012-09-14 15:21:13 +02:00
Thibault Delavallée f397e44b2f [FIX] portal: mail_subscription -> mail_followers.
bzr revid: tde@openerp.com-20120813195419-c1j3r95wyj7fb0hj
2012-08-13 21:54:19 +02:00
Antonin Bourguignon 32dd6ddc38 [FIX] portal: grant permission to read mail.alias model to all portal members
bzr revid: abo@openerp.com-20120808114605-1n6y9fxod4qzmwlw
2012-08-08 13:46:05 +02:00
Antonin Bourguignon 623003641b [IMP] display the proper mail.group when clicking on the 'News' menu item
bzr revid: abo@openerp.com-20120627150052-bck3dd4o66s65po5
2012-06-27 17:00:52 +02:00
Antonin Bourguignon 4b1a8f71a4 [ADD] ir.rules for mail models and a new action for the 'News' menu
bzr revid: abo@openerp.com-20120627113611-wszls1sp0c54338z
2012-06-27 13:36:11 +02:00
Fabien Pinckaers f27318c8af [IMP] Security Rule: removed duplicates due to inheritancies of groups
bzr revid: fp@tinyerp.com-20111212181113-mhnnbps3ip8ls6pp
2011-12-12 19:11:13 +01:00
Raphael Collet 097e07a311 [FIX] remove access rights on in-memory objects (used to trigger warning)
bzr revid: rco@openerp.com-20110517082331-wu56befh0plum4c2
2011-05-17 10:23:31 +02:00
Raphael Collet 9a34f0341d [ADD] groups Portal Manager / Officer, and their access controls
bzr revid: rco@openerp.com-20110429080350-idajhra8g2i5o2dn
2011-04-29 10:03:50 +02:00