Commit Graph

110 Commits

Author SHA1 Message Date
Jairo Llopis 000d8eba12 [FIX] portal: allow to delete res.partner
Do these steps:

1. Create a partner.
2. Grant him portal access through *Actions > Portal Access Management*.
3. Delete the created user.
4. Delete the partner.

You will get this error:

```
Odoo Warning - Validation Error
The operation cannot be completed, probably due to the following:
- deletion: you may be trying to delete a record while other records still reference it
- creation/update: a mandatory field is not correctly set

[object with reference: Portal User Config - portal.wizard.user]
```

This happens because the wizard (which is a transient model) does not let the partner to be deleted.

With this patch, we avoid that bug.

Closes #12608
2016-12-19 17:26:31 +01:00
Christophe Simonis c7d9695f52 [MERGE] forward port branch 7.0 up to b431e6c 2016-08-25 11:02:01 +02:00
Olivier Dony acc531a9d7
[FIX] portal: avoid users sharing non-portal groups 2016-07-25 13:07:29 +02:00
Olivier Dony 8596a4ccaa
[FIX] portal: avoid users sharing non-portal groups 2016-07-25 13:06:31 +02:00
Denis Ledoux c456d5f1a7 [FIX] portal: access management, do not re-send emails
When confirming the portal access management wizard,
the invitation email was sent to
users already having access to the portal,
while it should be sent only to
the users for who the access has just
been granted.

opw-650357
2015-10-20 14:31:42 +02: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
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 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 f00ae8a73b [FIX] Addons: fixed some import due to renaming.
bzr revid: tde@openerp.com-20121106123442-jqiq5myhal6ouodr
2012-11-06 13:34:42 +01:00
Raphael Collet ab930b9906 [IMP] portal: remove goodbye message
bzr revid: rco@openerp.com-20120928123704-g6gd67v2t0ewqpm9
2012-09-28 14:37:04 +02:00
Raphael Collet 21de1f18ed [IMP] portal: remove password from welcome message, and use auth_signup on portal users
bzr revid: rco@openerp.com-20120928122110-hspgzhxnulmal2mb
2012-09-28 14:21:10 +02:00
Raphael Collet 0b699fe7fb [IMP] portal: send email when user has been withdrawn from portal
bzr revid: rco@openerp.com-20120919090453-jma9d9rfysbq6l3p
2012-09-19 11:04:53 +02:00
Raphael Collet 979e3d07cb [FIX] portal: in the portal access wizard, make sure each contact appears at most once
bzr revid: rco@openerp.com-20120918091454-nidpnxl6wpmqnmjc
2012-09-18 11:14:54 +02:00
Raphael Collet 75b55a0df7 [IMP] portal: make the wizard modify contact emails (because related field does not work)
bzr revid: rco@openerp.com-20120918090335-mvmy2n8l3misnxow
2012-09-18 11:03:35 +02:00
Raphael Collet dd41075caa [IMP] portal: delete user when removed from all portals
bzr revid: rco@openerp.com-20120918090231-14v6ep20dc23zhui
2012-09-18 11:02:31 +02:00
Raphael Collet bcab2e061e [IMP] portal: sanitize email address when using it as a user login
bzr revid: rco@openerp.com-20120918090118-xhmgpq5fgqwjnfxw
2012-09-18 11:01:18 +02:00
Raphael Collet 91c096faf5 [IMP] portal: clean up method _send_email of portal access wizard
bzr revid: rco@openerp.com-20120918081114-oi91eh8dvpadvm7d
2012-09-18 10:11:14 +02:00
Raphael Collet 91df7dea1d [IMP] portal: simplify the portal access wizard and generalize it to several partners
bzr revid: rco@openerp.com-20120918080306-gebronsl568xpan1
2012-09-18 10:03:06 +02:00
Raphael Collet 6dc01c405b [IMP] portal: simplify portal access management wizard
bzr revid: rco@openerp.com-20120917132212-wo2wrjzja0xsuys8
2012-09-17 15:22:12 +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
Harry (OpenERP) a423dd14c8 [MERGE]
bzr revid: hmo@tinyerp.com-20120907062123-zfxba3n2ut2vu8jl
2012-09-07 11:51:23 +05:30