summaryrefslogtreecommitdiff
path: root/addons/payment/security
AgeCommit message (Collapse)Author
2020-08-21[FIX] website_sale, payment: perf issue when displaying tokensThibault Francois
Problem: the controller rely on record rules to select the payment.token to be displayed on the payment page. This works fine with portal user, but internal user will face client side performance issue as they can see all the token of the database Solution: Don't rely on record.rule in the controller. Use the domain from the portal user rule in the search. To make the search of token working for partners with more than 2 levels of hierachy, use child_of operator closes odoo/odoo#56326 X-original-commit: 3999e249ea9902e009f0366949886e14e3d7fdf4 Related: odoo/enterprise#12579 Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2020-05-28[IMP] payment: ir rules in payment module for invoicing usersDamien Bouvy
Security rules are added in the sale module for transactions and tokens, but it is entirely possible to have the payment module without those, and preventing invcoicing users from accessing transactions is functionnaly stupid - they are often required to check payment statuses, references, etc. closes odoo/odoo#52139 Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2020-03-20[IMP] *: declare ir.rule in noupdateVictor Feyens
ir.rule are default values but can be customized based on the company's policy and needs. This is typically a record that is in noupdate as should be customization-friendly.
2020-02-04[ADD] *: add ir.model.access on all transient modelsMartin Trigaux
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
2018-03-02[FIX] payment: employees should not edit acquirersOlivier Dony
2017-08-29[IMP] payment,website_payment: Change payment.option model name to payment.icontbe-odoo
2017-08-29[IMP] website_sale: Added S2S payment with new payment formtbe-odoo
- Added the support of form payment. - Fixed payment form's errors not being displayed. - Fixed a crash when paying on e-commerce with a saved token. (dev commit, need to clean the code)
2017-04-25[FIX] payment: Deleting payment tokens from websiteGoffin Simon
When deleting payment tokens from website, in My account, by clicking on button "Manage your payment methods", the public user, the user and the portal user got a 403 error. But when creating a subscription for a customer with admin user and setting a payment token for the company of this customer. This payment token could not be deleted or modified by its users. In a few cases, it's needed to delete or modify a payment token, for example, when the expiration date of the payment token is expired. opw:740169
2016-07-06[MIG] payment: new APIThibault Delavallée
No functional change.
2016-06-17[IMP] payment*,website: rename payment.method -> payment.tokenJoren Van Onder
payment.method was not a good name because it was too easy to confuse with account.payment.method.
2016-06-09[IMP] base,sales_team: Move res_groups and menuitems to sales_teamYannick Tivisse
Purpose: Having the res_group defined in base and sales_team auto installed with mail doens't make sense. - Move the empty res_config class and the related view from base_setup to sales_team (base_setup only contains the 'General Settings' model and views - Move the 'sale' related content from product to sale module (Access rights, menuitems,...) - Set sales_team at autoinstall False. The module is installed when needed by crm or sale for example - Set sales_team as a dependency of voip. (Access rights defined for configuration purpose) - Set sales_team ad a dependency of subscription (Access rights issue too) [FIX] account: move some ir.model.access to sale module [FIX] payment: Move some ir.rule to website_sale [FIX] stock: move some ir.model.access rule to sale_stock [FIX] project: Move some ir.model.access rules to crm_project_issue [FIX] mrp: Move some ir.model.access rules to sale_mrp [FIX] calendar: move some ir.model.access rules to crm Rename xmlids accordingly. Example: 'base.group_sale_manager' becomes sales_team.group_sale_manager. [ADD] sales_team: See own documents => See only his sales team Moved the "User: Own Leads Only", "User: All Leads" and "Manager" groups from sale and crm into sales_team module. Add the record rules so that user can see only his Own Sales Team if "See Own Leads" is sales right and can see all sales teams if he is having sales rights of "See All Leads" or manager.
2016-06-06Revert "[IMP] base,sales_team: Move res_groups and menuitems to sales_team"Yannick Tivisse
This branch need more testing instead of doing 10 fixes. A lot of issues are occuring when installing modules in different orders. This reverts commit fa6e415cdb23ce9494487ed672792186157b40e0.
2016-06-06Revert "[FIX] payment: Move some ir.rule to website_sale"Yannick Tivisse
This reverts commit 930bea9758df8dbb1652072783f46be6bc6b9e49.
2016-06-06[FIX] payment: Move some ir.rule to website_saleYannick Tivisse
The group group_sale_salesman has been moved from base to sales_team.
2016-06-06[IMP] base,sales_team: Move res_groups and menuitems to sales_teamYannick Tivisse
Purpose: Having the res_group defined in base and sales_team auto installed with mail doens't make sense. - Move the empty res_config class and the related view from base_setup to sales_team (base_setup only contains the 'General Settings' model and views - Move the 'sale' related content from product to sale module (Access rights, menuitems,...) - Set sales_team at autoinstall False. The module is installed when needed by crm or sale for example - Set sales_team as a dependency of voip. (Access rights defined for configuration purpose) - Set sales_team ad a dependency of subscription (Access rights issue too) Rename xmlids accordingly. Example: 'base.group_sale_manager' becomes sales_team.group_sale_manager.
2016-02-26[FIX] payment: missing right for users on payment methodDamien Bouvy
Let's be consistent, shall we? If portal users can delete their own card, employees should have the same rights.
2016-02-26[FIX] payment: missing delete right for portal userDamien Bouvy
Portal users should be able to delete their credit card/payment method. This ACL in combination with the ir.rule allows them to do so.
2015-06-15[IMP] payment: add support for server2server paymentsDamien Bouvy
This commit adds a new model, Payment Method, which stores a reference to the payment acquirer's database and a reference to a partner. Each payment module must have its own implementation. The implementation is completely abstract but may not suit every provider's way of implementing recurring payments.
2014-09-17[IMP] payment: simplify rev d99835eMartin Trigaux
The group public is defined in base so no need to add security rule in website_payment module (same as for portal)
2014-09-16[FIX] payment: access rights limitationMartin Trigaux
Do not allow everybody to access account.transactions. Restrict by default to readonly and even restrict the access with a record rule, give access to salesman.
2014-01-22[RENAME] payment_acquirer_* -> payment_ *Thibault Delavallée
bzr revid: tde@openerp.com-20140122175702-1h1e51z4njt4s70w