Commit Graph

121 Commits

Author SHA1 Message Date
Olivier Dony baef4d3d92 [FIX] Force safer ondelete=restrict on the `alias_id` _inherits FK on models with a mail.alias parent
The delete-rule was initially set to `cascade` in revision
6897.16.13 revid:odo@openerp.com-20120705141706-5gm5mmqode3bvkuc
because the ORM would not allow anything else for the FK of
an _inherits relationship.
This constraint was later lifted in 7.0 server at revision
4681 revid:odo@openerp.com-20121212210247-emrz5rf9ewcwdggu
so we can now switch to the intended default behavior:
when deleting mail aliases we never want to cascade delete
the child records, as that could lead to unwanted deletions.
On the other hand the aliases are automatically deleted when
the record they belong to is deleted, as a kind of internal
dependency. This is the intended safe way to delete them.

There is a special case when the same alias is manually set
on multiple records, in which case you will not be able to
delete any of those records. This is an acceptable exception
and should be manually handled if ever needed, by temporarily
linking the records to delete to new dummy aliases.

bzr revid: odo@openerp.com-20130827150708-62hqk8p7twd527n0
2013-08-27 17:07:08 +02:00
Thibault Delavallée 07099455fc [MERGE] [FIX] mail_group: usability fix. The 'Wall view' of
mail groups now displays all messages (removed 'Unread' filter).
It also displays a composition box, not 'Send a message or Log a note'
as the purpose of a mail.group is to share with other members.

bzr revid: tde@openerp.com-20130327110520-nja6273v5ozdt49j
2013-03-27 12:05:20 +01:00
Thibault Delavallée 6b893e4a1a [FIX] mail_group: fixed client action, no more Unread messages, send or log -> composition box with a correct message.
bzr revid: tde@openerp.com-20130327095822-m3m2jiwpsa6y5qvi
2013-03-27 10:58:22 +01:00
Thibault Delavallée 142ef3856b [CLEAN] mail_group: cleaned added code, no need to pass an explicit description parameter as we have a browse object on an actualized record.
bzr revid: tde@openerp.com-20121224134814-g3mxb979x0ioaqbc
2012-12-24 14:48:14 +01:00
Thibault Delavallée 82fbb9411a [IMP] mail.group: updated client action description when writing on description, name, or the alias.
bzr revid: tde@openerp.com-20121224131922-v3rzft5mma8ppy1f
2012-12-24 14:19:22 +01:00
Thibault Delavallée 68872e1175 [IMP] mail.group decription: take into account void descriptions.
bzr revid: tde@openerp.com-20121224123215-ll9ejzuqrpik3ks5
2012-12-24 13:32:15 +01:00
Thibault Delavallée 1ba1a37850 [IMP] mail.group: add the group email gateway in the client action description.
bzr revid: tde@openerp.com-20121224115703-zl4y62qgmyk3x7z7
2012-12-24 12:57:03 +01:00
Cecile Tonglet 15fe515601 [MERGE] From trunk
bzr revid: cto@openerp.com-20121217144306-tkodwpox30cuvb28
2012-12-17 15:43:06 +01:00
Thibault Delavallée 62d9ce4cce [REM] mail_group: removed unused method.
bzr revid: tde@openerp.com-20121214115032-de2w9jnnigkjuojn
2012-12-14 12:50:32 +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
Christophe Matthieu 52da4b041c [IMP] mail_group: remove inherits of ir.ui.menu form mail_group to improve managment of access rights.
bzr revid: chm@openerp.com-20121206121409-z04iygrv34png4aj
2012-12-06 13:14:09 +01:00
Christophe Matthieu 010def466f [IMP] mail: create test for access rules. fix the create group: add user in follower and remove admin
bzr revid: chm@openerp.com-20121206102714-tm0w6bn234a2j4fn
2012-12-06 11:27:14 +01:00
Thibault Delavallée 99c1145d81 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121115131824-60tl5f9hvxpca827
bzr revid: tde@openerp.com-20121115181930-ypj3zbdhg9bvcdf5
2012-11-15 19:19:30 +01:00
Fabien Pinckaers d530905b93 [IMP] Add default filter on groups
bzr revid: fp@tinyerp.com-20121115102223-i2jgjkgqf9pxez08
2012-11-15 11:22:23 +01:00
Thibault Delavallée b387836284 [IMP] mail.group: updating the descrpition, also update the description in the params of the client action related to the mail group.
bzr revid: tde@openerp.com-20121114163007-91z50xmkepnc436l
2012-11-14 17:30:07 +01:00
Thibault Delavallée 7fc4f67e4c [FIX] mail.group: fixed a description key not always present in mail.group creation.
bzr revid: tde@openerp.com-20121114134356-5lbdx1tciw8tz2w0
2012-11-14 14:43:56 +01:00
Christophe Matthieu a43662d125 [IMP] mail: change the header title and description for each mailbox and group discussion
bzr revid: chm@openerp.com-20121114122033-dl70fqty2kbd5gj1
2012-11-14 13:20:33 +01:00
Fabien Pinckaers 1086c96272 fix
bzr revid: fp@openerp.com-20121112232043-igpq4xynsz2tg6xr
2012-11-13 00:20:43 +01:00
Fabien Pinckaers 79827cefd5 [FIX] group orders
bzr revid: fp@openerp.com-20121112231952-x2713c3gs0b5ikhp
2012-11-13 00:19:52 +01:00
Thibault Delavallée e915bd83cb [IMP] mail_thread: remove message_subtype_data field, not used anymore; message_is_follower is not computed with message_follower_ids. Updated mail_followers widget, as message_is_follower is barely never used in views. Updated tests.
bzr revid: tde@openerp.com-20121016111753-shhyhred0m210o1z
2012-10-16 13:17:53 +02:00
Thibault Delavallée ad54dfbbf6 [FIX] [CLEAN] mail_thrad: fixed subtypes (not comment by default, but Chatter explicitely set the new message as a comment); some code cleaning.
bzr revid: tde@openerp.com-20121015132313-zmip3v7sv4y90lzr
2012-10-15 15:23:13 +02:00
Fabien Pinckaers 486055417d [FIX] tests fixes + compose + no parent_id on groups and partners
bzr revid: fp@tinyerp.com-20121001182722-0971qc2ccp3noe2c
2012-10-01 20:27:22 +02:00
Fabien Pinckaers 728d749259 [FIX] auto-subscribe on groups after write
bzr revid: fp@tinyerp.com-20121001164414-6yfzkhs4gwjvdh3a
2012-10-01 18:44:14 +02:00
Quentin (OpenERP) c6f366b3bb [IMP] mail, polishing last fp commit: replaced '1' in method calls by SUPERUSER_ID + added comment
bzr revid: qdp-launchpad@openerp.com-20120925094856-zxm1ppx5xk8iropn
2012-09-25 11:48:56 +02:00
Fabien Pinckaers 0272743218 [FIX] group creation by normal employees
bzr revid: fp@tinyerp.com-20120925083811-mroiaj30jnc2y9yr
2012-09-25 10:38:11 +02:00
Thibault Delavallée 02668c3682 [IMP] mail_group: when deleting a mail_group, delete also the related menu entry.
bzr revid: tde@openerp.com-20120913093246-kkxjqspupbq7j7z8
2012-09-13 11:32:46 +02:00
Thibault Delavallée 3982e5ba7a [IMP] mail_group, point of sale, hr: updated image fields help, as small and medium sizes are now 64x64 ans 128x128, to match more closely OpenERP image sizes. product: image_medium are not up-sized when resizing them. This means that images smaller than 128x128 won't be resized in image_medium. The purpose is to avoid having unwanted blank frame around images in POS.
bzr revid: tde@openerp.com-20120907095155-i5hlmidnkq7r2r7b
2012-09-07 11:51:55 +02:00
Thibault Delavallée b086b8a584 [CLEAN] mail_group, product, point_of_sale, hr: cleaned help of image, because it was too technical-related. Added a comment in code instead about PIL and base64. By the way, small cleaning of the white spaces.
bzr revid: tde@openerp.com-20120907092333-9f745210yr3p22ay
2012-09-07 11:23:33 +02:00
Thibault Delavallée fd2a413969 [FIX] [CLEAN] mail_thread: misc cleanup (comments, vars, typo). Fixed subscriber API. It now handles a read_back key in context to return the new value of the field. The purpose is to use it in mail_followers widget, that behaves asynchronously compared to the form_view, and that need updated values after subscribing a user. Updated mail_followers widget, cleaned its code. Updated mail_group with wrappers on message_subscriber_users, because it was setting user_ids as context.
bzr revid: tde@openerp.com-20120904133648-plsziijac64lw4de
2012-09-04 15:36:48 +02:00
Thibault Delavallée c52ab94960 [REVIEW] addons: small cleanups nex to a diff read. Some improvements will follow, this commit is about small cleanups.
bzr revid: tde@openerp.com-20120904092820-56zgwpkqfpd7as5k
2012-09-04 11:28:20 +02:00
Thibault Delavallée 9c26c8e000 [IMP] mail: cleaning of the Chatter front-end.
Wall and Wall-like group menu entries: now use the correct
contexts to give to the composer.
res_users: posting on the user consists in posting on the
related partner. TODO: clean that when we have cleared our
minds about what to do when posting in the wall.
xml, css: small cleanup of dead code
mail.js: propagated the use of 'default_' values in the
various contexts (Wall, RecordThread, Thread, ComposeMessage);
cleaned do_action overrides; general cleanup of the code
and options propagation.

bzr revid: tde@openerp.com-20120903152025-bzchl603mzuhggn4
2012-09-03 17:20:25 +02:00
Fabien Pinckaers 4fdb70d12a fix
bzr revid: fp@tinyerp.com-20120822133723-k5r76cty7dej5kjh
2012-08-22 15:37:23 +02:00
Fabien Pinckaers 2f9f57cc46 [IMP] removing some FP Note
bzr revid: fp@tinyerp.com-20120822083608-2q98p1758erm8f7t
2012-08-22 10:36:08 +02:00
Fabien Pinckaers 11ab424912 [IMP]
bzr revid: fp@tinyerp.com-20120820191058-kpjymskvxdasoq6c
2012-08-20 21:10:58 +02:00
Thibault Delavallée bb3c9d573f [CLEAN] mail views: cleaned names, removed dead and not necessary code.
bzr revid: tde@openerp.com-20120820155124-iyve6xumamearb11
2012-08-20 17:51:24 +02:00
Fabien Pinckaers cb944d66ea [IMP] mail message
bzr revid: fp@tinyerp.com-20120817070218-rp1ssuhwnf8raitf
2012-08-17 09:02:18 +02:00
Fabien Pinckaers 73827c5525 [IMP] mail cleaning
bzr revid: fp@tinyerp.com-20120816101848-0l3wyu98zjmtkfks
2012-08-16 12:18:48 +02:00
Fabien Pinckaers c7c1cb1037 [IMP] renaming message_state to message_unread
bzr revid: fp@tinyerp.com-20120816092616-jnoj0d18rw1ifqth
2012-08-16 11:26:16 +02:00
Fabien Pinckaers a2b7f82a81 [IMP] no auto_follow, we will use auto-compose instead on some actions
bzr revid: fp@tinyerp.com-20120816090243-nzu6ounygswiceqi
2012-08-16 11:02:43 +02:00
Fabien Pinckaers e5b76be9b8 [IMP] merge trunk
bzr revid: fp@tinyerp.com-20120816072402-7w1avco6ryt12x10
2012-08-16 09:24:02 +02:00
Thibault Delavallée 61274acd89 [MERGE] Merged with addons/trunk.
bzr revid: tde@openerp.com-20120815195652-839w3fyumomq0ubf
2012-08-15 21:56:52 +02:00
Fabien Pinckaers 677024e099 [IMP] refactoring email
bzr revid: fp@openerp.com-20120815184403-dtpep7ypwbc6hm5w
2012-08-15 20:44:03 +02:00
Fabien Pinckaers af93ab5290 [IMP] factorisation of objects
bzr revid: fp@openerp.com-20120815170822-udsmc9geqmm6jae8
2012-08-15 19:08:22 +02:00
Thibault Delavallée a6482fe07c [WIP] Followers rewrite: in create/write, the purpose is to add the field in the values to write, and to simplify automatic subscription. WIP, lack of time to finish. Will be continued.
bzr revid: tde@openerp.com-20120814170612-ax8xhcmmttrcphnl
2012-08-14 19:06:12 +02:00
Olivier Dony 11bdbfd183 [MERGE] Next batch of improvements/fixes for mail.alias
bzr revid: odo@openerp.com-20120814123050-xw3ltthoc9nld76r
2012-08-14 14:30:50 +02:00
Thibault Delavallée 19abc35ce6 [CLEAN] Cleaned mail_group and mail.js due to the merge of trunk.
bzr revid: tde@openerp.com-20120814115222-gxunwfuttejrock0
2012-08-14 13:52:22 +02:00
Thibault Delavallée 0eccca51d5 [MERGE] Merged with addons/trunk.
bzr revid: tde@openerp.com-20120814114638-pkj3d70sg9mr2hkv
2012-08-14 13:46:38 +02:00
Thibault Delavallée 4dd85980ec [IMP] mail_group: removed fields now delegated to mail_thread; updated doc and kanban view accordingly.
bzr revid: tde@openerp.com-20120814114021-vwiz24yu2mo75jt7
2012-08-14 13:40:21 +02:00
Fabien Pinckaers ff9cbe0673 [MERGE] mail groups improvements
better form view
    security on groups: public, private, selected groups (for employees)
    menu automatically created/filtered
    action to open a specific group inline
    small fix in composition: new msg not linked to current user

bzr revid: fp@openerp.com-20120814112942-8wo9owa14hk5xqbj
2012-08-14 13:29:42 +02:00
Fabien Pinckaers 85ca542ad0 [IMP] mail groups improvements: security
bzr revid: fp@openerp.com-20120814112204-hwamufqqz4qj9ptb
2012-08-14 13:22:04 +02:00