Commit Graph
162 Commits
Author SHA1 Message Date
odoo-tac c033826492 [FIX] portal : Fixed portal wizard view and traceback that occured when giving portal access to a user. (Thx to RCO for the view fix) 2015-09-15 17:10:06 +02:00
Ronak Baxi 393f136509 [IMP] *: Uniformize all modal footers
The main button has classnames btn btn-primary.
Other buttons have classnames btn btn-default.
No more 'or' between the buttons.
2015-08-19 08:10:45 +02:00
fka-odoo 85ca7f57c4 [IMP] portal: convert hardcoded email sent for new
portal users into a mail.template.

A new field is used in the wizard_user model, that is the portal
user itself. It was not stored previously probably because of the
old wizard limitations (links to existing records). Storing it
directly eases the process of retrieving the portal user.
2015-08-11 16:13:31 +02:00
Antony Lesuisse d2a66f171e [REM] share
share is now deprecated by the website /my portal.
2015-07-09 13:50:28 +02:00
Olivier Dony 0bd4545348 [LEGAL] Use global LICENSE/COPYRIGHT files, remove boilerplate text
- Preserved explicit 3rd-party copyright notices
- Explicit boilerplate should not be necessary - copyright law applies
  automatically in all countries thanks to Berne Convention + WTO rules,
  and a reference to the applicable license is clear enough.
2015-06-02 03:16:04 +02:00
Christophe Simonis fe2b5f35a4 [MERGE] forward port of branch saas-6 up to bf1e999 2015-05-28 14:27:38 +02:00
Christophe Simonis 9c5a1d8231 [MERGE] forward port of branch 8.0 up to cf4d14c 2015-04-27 17:33:44 +02:00
Denis Ledoux cf4d14ce39 [MERGE] forward port of branch saas-3 up to 09b277c 2015-04-27 14:02:52 +02:00
Denis Ledoux d6ae7fb7db [MERGE] forward port of branch 7.0 up to 3e7d3c7 2015-04-27 12:19:43 +02:00
Thibault Delavallée 4b122ad41d [MIGR] mail: migration to the new API 2015-04-27 10:36:15 +02:00
Martin Trigaux 5267e3a158 [FIX] portal: share with group wizard
Correctly creates menu and add implied groups.
Since the conversion from res.portal to res.group, we lost the field
parent_menu_id so a search is needed to find parent menu.
To add the access of existing users to the new groups, implied id rules are
needed. opw 612594
2015-04-23 13:53:08 +02:00
Goffin Simon 0fd773a486 [IMP] Cleanup and refactoring of exception handling
Unify and refactor exception handling in framework and addons.

The generic `except_osv` is now deprecated, and replaced by more specialized exception subtypes:
 - `UserError` (renamed from Warning, as it conflicts with the built-in `Warning`) raised when a non-technical error occurs during a business operation. It could be a missing information in the data provided by the user, or a misconfiguration.
 - `AccessError`: raised when any operation is denied because the user conducting it does not have the required access rights.
 - `AccessDenied`: raised when an operation that requires authenticated access is attempted via an unauthenticated request.
 - `MissingError`: raised when an operation is attempted on a record that does not exist.
 - `ValidationError`: raised when an operation violates a SQL or Python constraint.
 - All other exceptions are internal errors due to a system problem or bug, and raised untouched to the client-side, which should display a traceback.

All exceptions take a single message argument.

The `test_exceptions` module has been updated to showcase both new and old (deprecated) exceptions.

A great many old `except_osv` had a useless title with "Error!" or "Warning", those have been removed, as this is handled by the client-side widget that displays the messages.

This commit introduces a more consistent policy for logging errors and warnings:
 - All messages that do not require administrator attention should be logged at INFO level or lower. This includes all errors that are notified to the user in a friendly manner, even for access right problems or validation errors during business operations.
 - All messages that indicate a likely misconfiguration or malicious use by the users should be logged at WARNING level, as they typically require administrator attention.
 - All other unhandled internal errors cannot typically be handled by the user and should be logged at ERROR or higher level, as they require immediate administrator attention.
2015-01-16 17:15:18 +01:00
Leonardo Donelli 4a0b13ed92 [REF] remove vim modelines and resulting trailing blank lines
Let 2015 be a year without modelines!
cf #4174
2014-12-31 15:52:13 +01:00
rlu-odoo 8b67a7202d [REF] OpenERP --> Odoo in various UI texts
Rebranding has been done in:
- data/demo files
- html templates
- help notices
- comments
- logger messages
- and other various messages

(Commit taken from odoo-dev:8.0-improve-openerp-odoo-rlu at rev 7deaa08)

Closes #1260
2014-07-18 13:45:41 +02:00
Martin Trigaux 90f7eaa094 [FIX] portal: avoid errors during autovacuum
When the cron for autovacuum runs, the osv_memory objects are deleted. The portal.wizard.user object has a required field (wizard_id) linked to another osv_memory object (portal.user) which causes a traceback when the cron tries to delete portal.user object before the portal.wizard.user. opw 609918
2014-07-07 17:12:27 +02:00
Jaydeep Barot 026e38b48f [REM] Unnecessary size parameters on char fields 2014-06-25 17:13:43 +02:00
Fabien Meghazi faa09da325 Removed version="7.0" from form views 2014-06-12 09:09:59 +02:00
Denis Ledoux 6cf9867f15 [REF] *: share field is now a computed field, if the user is in the employee group or not
bzr revid: dle@openerp.com-20140324143558-jqdm33c0i7wna3va
2014-03-24 15:35:58 +01:00
Denis Ledoux 5649e0bbf2 [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9770 revid:chs@openerp.com-20140116154645-sy4zhdgqc48xaqbx
bzr revid: dle@openerp.com-20131224112612-5gjit5uu1aaaqstx
bzr revid: dle@openerp.com-20140103094532-mbczi9ssr3gc90o1
bzr revid: dle@openerp.com-20140108105833-gblxqdw3if1gt35k
bzr revid: dle@openerp.com-20140115121441-bskbyxxbc09ubavh
bzr revid: dle@openerp.com-20140115165506-yuux9km39gbv7k4n
bzr revid: dle@openerp.com-20140116161415-0y9m0kgavcytzj9z
2014-01-16 17:14:15 +01:00
Olivier Dony b7fe8e1f8a [FIX] portal: use email_split method to avoid blocking valid emails, rather than obsolete email_re
lp bug: https://launchpad.net/bugs/1199386 fixed

bzr revid: odo@openerp.com-20140115093120-r2u2bmms9y847b93
2014-01-15 10:31:20 +01:00
Christophe Matthieu 9d9e3d2ef8 [IMP] Improve typos in warning (Grammar mistake, Capitalize title, Typos)
bzr revid: chm@openerp.com-20130607113829-1mi6jk18c2v3jjhn
2013-06-07 13:38:29 +02:00
Christophe Matthieu 8c6ff33bef [IMP] Improve typos in warning (Grammar mistake, Capitalize title, Typos)
bzr revid: chm@openerp.com-20130607102359-is19utzap127nwr4
2013-06-07 12:23:59 +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 9bd1be36ee [FIX] portal: access management wizard needs to search for existing users as super-user
bzr revid: odo@openerp.com-20130528110210-70u81w5u21xxzg54
2013-05-28 13:02:10 +02:00
Olivier Dony bf67507fdd [FIX] portal: avoid errors during portal access management if users already exists (and thus will not cause problems)
This allows more complex cases like having a login
that is different from the email of the related
partners, but the same as the email of another
user

bzr revid: odo@openerp.com-20130522143017-pr30b3g6j8ht0ma6
2013-05-22 16:30:17 +02:00
Olivier Dony e6a8f9aac0 [FIX] portal: typos/wording in error messages
bzr revid: odo@openerp.com-20130522122556-mq3402op1n1315ae
2013-05-22 14:25:56 +02:00
Olivier Dony 710d2a37cc [MERGE] auth_signup, portal: fix error handling when granting portal access + always send notification message including signup URL
bzr revid: odo@openerp.com-20130522105332-nl2gq346nb95wbru
2013-05-22 12:53:32 +02:00
Christophe Matthieu 48f5b7b480 [IMP] portal managment: add get_error_messages method
bzr revid: chm@openerp.com-20130521144941-a0pfm3ulx7wr5cs1
2013-05-21 16:49:41 +02:00
Christophe Matthieu 41c10c5de7 [IMP] portal managment: write email all time
bzr revid: chm@openerp.com-20130517160100-oos81x3x3994po6b
2013-05-17 18:01:00 +02:00
Christophe Matthieu 854671b930 [FIX] portal managment: wizard refresh and write email
bzr revid: chm@openerp.com-20130517155933-e2tc2u9ns9m9jdh7
2013-05-17 17:59:33 +02:00
Christophe Matthieu 15f8a6519f [FIX] portal managment: send mail to user email
bzr revid: chm@openerp.com-20130517155641-xazwkmedy56b9jv0
2013-05-17 17:56:41 +02:00
Christophe Matthieu 98d829c8ee [FIX] portal managment: wizard email check
bzr revid: chm@openerp.com-20130517155325-pmmlm29weerw0x0k
2013-05-17 17:53:25 +02:00
Christophe Matthieu f5f14d6a22 [FIX] portal managment
bzr revid: chm@openerp.com-20130517154116-wowkjjx40dzjbpvc
2013-05-17 17:41:16 +02:00
Christophe Matthieu 47998aee0d [IMP] portal managment: check and raise complete errors (empty email, double, existing user)
bzr revid: chm@openerp.com-20130517102508-7qrboloxd2wow2rs
2013-05-17 12:25:08 +02:00
Christophe Matthieu f18b1d7374 [IMP] portal: remove code not used
bzr revid: chm@openerp.com-20130516123944-y1nwv5582mxmsvt7
2013-05-16 14:39:44 +02:00
Christophe Matthieu 1b53e9114f [IMP] Portal Access Managment: don't search by user
bzr revid: chm@openerp.com-20130516121251-lbddg5wot6el7emx
2013-05-16 14:12:51 +02:00
Christophe Matthieu 22c6b69b50 [FIX] portal: "Portal Access Managment" can't create or edit portal access for a contact when they are already an user with the same login. The wizard don't display all the list of contacts related to the selection.
The wrong contact must be replace by the contact who have the login equal to the contact email. Get all child contacts and do not filtered by active user.

bzr revid: chm@openerp.com-20130516091600-20ukr9vbe5qa3lv8
2013-05-16 11:16:00 +02:00
ggh-openerp e8ef63e0c0 [IMP] Improve warning title
bzr revid: ggh@tinyerp.com-20130429092924-2qgaxvkfb801q4dl
2013-04-29 14:59:24 +05:30
Christophe Matthieu ca03b6de1c [MERGE] from trunk
bzr revid: chm@openerp.com-20130415133727-btc4a6qolfnxs3du
2013-04-15 15:37:27 +02:00
Vo Minh Thu e69326ee3b [REF] removed explicit model instanciations.
bzr revid: vmt@openerp.com-20130415102349-vgcrfok2k5y10cwz
2013-04-15 12:23:49 +02:00
Christophe Matthieu 177f51cb54 [IMP] auth_signup: change reset_password to no_reset_password context value
bzr revid: chm@openerp.com-20130410130244-3ef6mpw6s09xjn75
2013-04-10 15:02:44 +02:00
Thibault Delavallée b4e1e32f0a [FIX] portal: fixed various mail_mail records created without specifying the 'type' field; however this may conflict with the context holdign default_type (i.e. opportunity), leading to type values not in the selection field.
bzr revid: tde@openerp.com-20121221115315-qni401mszwrkpvmj
2012-12-21 12:53:15 +01:00
Vo Minh Thu 6072fd11af [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20121210111654-0pm3pupnqqeip52n
2012-12-10 12:16:54 +01:00
Olivier Dony 5db87bea9c [MERGE] Bugfixes from 6.1 until revision 6800
bzr revid: odo@openerp.com-20121206153856-9y9v8ok6yxo6l5f0
2012-12-06 16:38:56 +01:00
Vo Minh Thu e7f4891d46 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121206145632-0h1coh5aaem65wsy
2012-12-06 15:56:32 +01:00
vta vta@openerp.com 6c921f84eb [FIX] Minor fixes all around portal.
bzr revid: vta@openerp.com-20121120155010-rl1aei08bjm7v0wu
2012-11-20 16:50:10 +01:00
vta vta@openerp.com 73750e33b9 [FIX] Removed password from sent email. Fixed naming in order to pass runbot's test.
bzr revid: vta@openerp.com-20121120073948-1ojettqx7mjb1k75
2012-11-20 08:39:48 +01:00
vta vta@openerp.com d6ba13a394 [IMP] Minor improvements in portal views, such as contact and employees. Improved menus and string on empty views. Send the password when a partner is invited to portal via sidebar menu.
bzr revid: vta@openerp.com-20121116075305-4d0olu5zlvwsxeq8
2012-11-16 08:53:05 +01:00
Thibault Delavallée fbccb823f8 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121112161523-yfp1dczcnmi85t8e
bzr revid: tde@openerp.com-20121114083900-qw40e8ii1rfl7gt1
2012-11-14 09:39:00 +01:00
Hardik Ansodariya (OpenERP) 7c92b8ba00 [FIX]portal,share : fixed the translation issue of share document wizard
bzr revid: mma@tinyerp.com-20121108100319-qfukxayiz7siic39
2012-11-08 15:33:19 +05:30