Commit Graph
53 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
Christophe Matthieu 6a9bbba17e [IMP] remove portal_anonymous, create group_public in server and public user in website
bzr revid: chm@openerp.com-20130726090445-4mmd1xlx5uwd6vmx
2013-07-26 11:04:45 +02:00
Martin Trigaux ccb38117ee [MERGE] Forward porting of saas-1 until rev 8739
bzr revid: mat@openerp.com-20130605090453-e4mg37kms5j1r18n
2013-06-05 11:04:53 +02:00
Olivier Dony 0ee745224a [FIX] portal: allow reading any partner belonging to the same entity
bzr revid: odo@openerp.com-20130524115234-fcn9nfl8a23odqvg
2013-05-24 13:52:34 +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
vta vta@openerp.com 8ed5b437b3 [FIX] Fixed anonymous groups access rights and rules
bzr revid: vta@openerp.com-20121217150458-eorlwiqob8ap75gr
2012-12-17 16:04:58 +01:00
Thibault Delavallée 580f6f0551 [REM] portal: removed file adding because of merge conflict.
bzr revid: tde@openerp.com-20121214115053-mv089r9fk4g3vqhu
2012-12-14 12:50:53 +01:00
Thibault Delavallée 90062eb86a [MERGE] Sync with trunk. portal_security.xml file is back, holding a custom res_partner rule.
bzr revid: tde@openerp.com-20121214085639-8xrn4l413x1901n0
2012-12-14 09:56:39 +01:00
vta vta@openerp.com e084ed51f3 [MERGE] Latest trunk
bzr revid: vta@openerp.com-20121212143932-sg99mw5npppocdos
2012-12-12 15:39:32 +01: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
vta vta@openerp.com 20567b2131 [FIX] Small fixes related to access rights, and reordering of user/group definitions
bzr revid: vta@openerp.com-20121212081417-0zkbzs1ev6iu7hsf
2012-12-12 09:14:17 +01:00
vta vta@openerp.com 69cee985ff [FIX] Move portal group definition to data
bzr revid: vta@openerp.com-20121211151837-05brccm8xaebqjvu
2012-12-11 16:18:37 +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
Raphael Collet 0d2e280567 [IMP] portal: improve note on portal group
bzr revid: rco@openerp.com-20120917145825-jq6xux6tzob8pm66
2012-09-17 16:58:25 +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 941cb76283 [IMP] portal: replace model 'res.portal' by 'res.groups' where field 'is_portal' is True
bzr revid: rco@openerp.com-20120914144633-z3xpe7392egz3640
2012-09-14 16:46:33 +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 be03938f47 [FIX] portal: move group definition of portal back to security/portal_security.xml
bzr revid: rco@openerp.com-20120914134116-sg2yqsro8c62bxg2
2012-09-14 15:41:16 +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 0b6fc4f280 [IMP] portal demo data and some of the module's comments
bzr revid: abo@openerp.com-20120725094645-89dxrmdy4t684219
2012-07-25 11:46:45 +02:00
Antonin Bourguignon 4a84ed0dfd [IMP] apply the employee's visibility in the contact view
right now, only 'public' and 'private' are working; 'portal' will 
require some tricky ir.rules and probably a group dedicated to 
anonymous users

bzr revid: abo@openerp.com-20120703165306-27erhp9vj3rdg7o2
2012-07-03 18:53:06 +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
Antonin Bourguignon b9ddd4d34c [IMP] since the portal member group isn't in a category anymore, change its name from 'Member' to 'Portal Member'
bzr revid: abo@openerp.com-20120529124434-db0wa056g9iqbx00
2012-05-29 14:44:34 +02:00
Antonin Bourguignon 35b8b03459 [FIX] reorganize xml data (all the menu items are now in the portal_view.xml); remove dead/duplicate code (do_create_menu()) in portal.py; properly assign the right menu to portal members; remove useless 'groups' attributes on menuitems
bzr revid: abo@openerp.com-20120516151246-k9yi825av69c9b49
2012-05-16 17:12:46 +02:00
Antonin Bourguignon 0cd0188c7d [IMP] change the id of the portal member's group from group_portal_user to group_portal_member
bzr revid: abo@openerp.com-20120514121821-xik2782yl8gn7mnj
2012-05-14 14:18:21 +02:00
Antonin Bourguignon ae0b84d88e [IMP] remove every reference to 'customer' or 'sale' in the portals modules. also merge 'portal_customer' into 'portal'.
bzr revid: abo@openerp.com-20120509161108-9e9cm9fu658elvb3
2012-05-09 18:11:08 +02:00
Antonin Bourguignon 1d50f2d3a9 [IMP] rename 'group_sales_portal' into 'group_portal'
bzr revid: abo@openerp.com-20120509135737-uur1sgwh4vq9nov1
2012-05-09 15:57:37 +02:00
Raphael Collet ba1454149c [IMP] groups: remove auto-inclusion of admin in groups, and make the inclusion explicit in groups
bzr revid: rco@openerp.com-20120404090830-nteimn2kvz8nkk7h
2012-04-04 11:08:30 +02:00
Raphael Collet 0c1021806d [MERGE] trunk-user-groups-rco: add category_id to groups
bzr revid: rco@openerp.com-20111213141949-ohvn0c9iq6tcl7jj
2011-12-13 15:19:49 +01: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 85b3757a60 [IMP] marketing, mrp, point_of_sale, portal: add group categories
bzr revid: rco@openerp.com-20111212135731-gdccm6nwt7ic00t4
2011-12-12 14:57:31 +01:00