Commit Graph
103 Commits
Author SHA1 Message Date
Yannick Tivisse 9e57185449 [IMP] base,sales_team: Move res_groups and menuitems to sales_team
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-09 16:05:25 +02:00
Yannick Tivisse ccdb5cbfc0 Revert "[IMP] base,sales_team: Move res_groups and menuitems to sales_team"
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 fa6e415cdb.
2016-06-06 17:26:30 +02:00
Yannick Tivisse fa6e415cdb [IMP] base,sales_team: Move res_groups and menuitems to sales_team
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-06-06 15:46:52 +02:00
Christophe Simonis 89873cbed5 [MERGE] forward port of branch 9.0 up to 3381e7b 2016-05-04 14:42:54 +02:00
Denis Ledoux 6beeec363a [FIX] crm_partner_assign: Interested message subtype
When a partner tells he is interested or not by a lead,
the customer on the lead must not receive a mail
with this information.

opw-676729
2016-05-03 18:03:27 +02:00
Jeremy Kersten 9067addbab [FIX] crm_partner_assign: replace the stage assigned/recycle from lead
Stage has been removed for lead in saas-9.
So we replace the stage by a tag temporary.
It could be replaced by a new field selection in master
2016-03-11 14:05:54 +01:00
Martin Trigaux 1989495aeb [FIX] crm_partner_assign: message translation structure
Do not generate the messages by putting bits of sentences together.
Other languages do not have the same structure (and 'have not' was not
translated anyway).
2015-09-10 11:34:28 +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
Christophe Matthieu 25d5bb855c [IMP] web: remove cleditor html field and use web_editor (with 'style-inline': true to send email) 2015-07-10 17:00:12 +02:00
Jamin Shah 3675317594 [FIX] crm_partner_assign: use a valid 2many command
when creating assignation_line.
2015-06-09 12:47:24 +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
Thibault Delavallée 4b122ad41d [MIGR] mail: migration to the new API 2015-04-27 10:36:15 +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
Julien De Coster d88c34d11e [IMP] Mass mailings send in cron
1. The merge of the "email_template" module into the "mail" module.
2. The send action of the mass mailing has been moved from the frontend to a cron, because it was too slow to send over 10,000 mails (the user's browser was blocked for 15 - 20 minutes). Mass mailings have now their own process in the kanban view.
3. Mails sent from the mail form are sent immediatly instead of from the mail queue (for instance, when you go to sales > customers > list view > select 2 -3 customers > More > Partner Mass Mailing).
4. Users have now the choice from which mailing list they want to unsubscribe when they click on the unsubscribe link at the bottom of the mail.
5. Mass mailings inherit from their campaign UTMs and mass mailing campaigns are linked to an UTM campaign.
6. Many little improvements
2015-01-07 18:01:58 +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
Pankaj Joshi 80fd4e4bb6 [FIX] web: radio buttons
removed js that let user to uncheck radiobutton and from addons removed radiobuttons used for not required field except sync_typ.
changed this field as required because of functional requirement
2014-11-24 16:45:20 +01:00
Turkesh Patel fd659e908b [IMP] crm: business model cleaning
Models renamings:
- crm.case.stage becomes crm.stage
- crm.case.section becomes crm.team

Model split:
crm.case.categ has been splitted into:
- crm.phonecall.tag
- crm.lead tag
- crm.claim.tag
- crm.helpdesk.tag

Models removal:
- crm.payment.mode
- crm.segmentation
- report.crm.case

Removal of the crm_profiling module

(all these refactorings have been done in order to ease new API
migrations)
2014-11-04 16:58:41 +05:30
Fabien Meghazi faa09da325 Removed version="7.0" from form views 2014-06-12 09:09:59 +02:00
Denis Ledoux 5759df7bef [FIX] crm_partner_assign: add discussion subtype to interested/disintered messages, so portal users can see it
bzr revid: dle@openerp.com-20140404125450-v94rjpuuse9gkibr
2014-04-04 14:54:50 +02:00
Denis Ledoux ebb14f776a [FIX] crm_partner_assign: custom next client is not anymore usefull, cases where the record was no more readable after write (due to security changes) are now handled by the web client
bzr revid: dle@openerp.com-20140326154738-jocgzfjpiucdfxki
2014-03-26 16:47:38 +01:00
Thibault Delavallée 9cf78e93cc [MERGE] Sync with trunk, tries to solve conflicts. There are still some new images to convert into images in xml files.
bzr revid: tde@openerp.com-20140116103910-qmm2y6kucmngplnk
2014-01-16 11:39:10 +01:00
Denis Ledoux 39a54d1096 [FIX]crm_partner_assign: message_post only accept one thread id
bzr revid: dle@openerp.com-20140115113525-01dzfhjfawvxwopb
2014-01-15 12:35:25 +01:00
Denis Ledoux e5e397b01b [FIX] crm_partner_assign: on forward, set section_id if user_id has default section id
bzr revid: dle@openerp.com-20140107105324-xaa21r8fnl0ncg66
2014-01-07 11:53:24 +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
Denis Ledoux efca91362a [IMP]crm_partner_assign: using child of to find all partner from a company
bzr revid: dle@openerp.com-20130621094347-lmjd6tna1gffjxel
2013-06-21 11:43:47 +02:00
Denis Ledoux 69c314c51d [RENAME]RERENAME crm_channel => crm_partner_assign, for migration and translation issue
bzr revid: dle@openerp.com-20130620175326-0lgpbdxiusa65ss2
2013-06-20 19:53:26 +02:00
Denis Ledoux c536045818 [RENAME]crm_partner_assign => crm_channel
bzr revid: dle@openerp.com-20130620150725-ksoctsc2pnyavx3t
2013-06-20 17:07:25 +02:00
Denis Ledoux 4fc3cc862f [FIX]crm_partner_assign: mass lead forward, now one email per partner, even in several partner mode + code/execution time optimization/improvement
bzr revid: dle@openerp.com-20130613163813-315l55kle96sn5gh
2013-06-13 18:38:13 +02:00
Denis Ledoux 03d32a781f [FIX]crm_partner_assign: flake8 + try catch for get object reference + replace country,city of lead in view by one concatened char field with country and city, same for partner location
bzr revid: dle@openerp.com-20130613143601-dfsytrwij03fdov0
2013-06-13 16:36:01 +02:00
Parth Gajjar (Open ERP) b2684b01b0 [IMP] Improved Template
bzr revid: pga@tinyerp.com-20130612073519-9tva91agjof11ivl
2013-06-12 13:05:19 +05:30
Parth Gajjar (Open ERP) 65f12180c5 [IMP] Added Validation and some code improvement
bzr revid: pga@tinyerp.com-20130611115730-035v1wo2nwy2083m
2013-06-11 17:27:30 +05:30
Parth Gajjar (Open ERP) b9fd2226ba [IMP] improved code
bzr revid: pga@tinyerp.com-20130611064910-50u7hfdq7wkpym34
2013-06-11 12:19:10 +05:30
Parth Gajjar (Open ERP) c0ef010544 [IMP] Improved Wizard
bzr revid: pga@tinyerp.com-20130610125057-3guyl18ktcnmhbch
2013-06-10 18:20:57 +05:30
dle@openerp.com 3d96e3d789 [FIX]crm_partner_assign: add partner in lead followers
bzr revid: dle@openerp.com-20130527093528-vu00ptl0wf4yj184
2013-05-27 11:35:28 +02:00
Thibault Delavallée 661ff82af4 [FIX] crm partner assign: consider all forward message as mass_mailing; this way the message will not have any subtype, therefore not sent to any follower; but partner_ids (aka, assigned partner) will receive it.
bzr revid: tde@openerp.com-20130510141459-976io7ls9hllizvx
2013-05-10 16:14:59 +02:00
Raphael Collet 96ad608854 [IMP] general: use registry[X] instead registry.get(X) when X is dynamic
bzr revid: rco@openerp.com-20130329143720-80pkd4csemlk1aqz
2013-03-29 15:37:20 +01:00
Antony Lesuisse 3aa39206f9 [FIX] crm_partner_assign typos
bzr revid: al@openerp.com-20130312131039-yy28lv24gf2nybfk
2013-03-12 14:10:39 +01:00
Antony Lesuisse 6204bc28f0 [FIX] crm_partner_assign use email_template
bzr revid: al@openerp.com-20130312002934-4j84nb0dhcwayw9f
2013-03-12 01:29:34 +01:00
Thibault Delavallée 28e66609b6 [FIX] crm_partner_assign: fixed crash with now unexisting method onchange_partner_ids; deleted dead code. This wizard is very ugly but seems to work.
bzr revid: tde@openerp.com-20130222121155-ytjog1hq32daamip
2013-02-22 13:11:55 +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
Olivier Dony e5921325bd [REM] mail.compose.wizard: remove unused body_text and content_subtype fields
These fields were used in pre-7.0 to manage the plaintext variant of the 
mail being composed, but as of 7.0 the composition wizard will always
use the HTML/Rich text mode, so they can be dropped.

bzr revid: odo@openerp.com-20121115135634-fcy6mexnctwg0nxb
2012-11-15 14:56:34 +01:00
Thibault Delavallée 5506e519fe [IMP] crm_forward_to_partner: on_change_partner_ids -> onchange_partner_ids, already defined on mail.compose.message.
bzr revid: tde@openerp.com-20120904120240-hidqb9e3ivys9vpo
2012-09-04 14:02:40 +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 d91979671f [REF] crm_partner_assign: refactored code a bit, following cleaning of mail, because it inherit from mail.compose.message. Removed send_to field, as the new composer is based on partners and simplify this wizard; removed a lot of code about setting email_from, email_to, ... because this should be managed by the other layers of the mail module. Cleaned the code in a more general way to remove weird things. Updated releveant form view, especially about context on Forward button, and the form view of the wizard that has been much simplified.
bzr revid: tde@openerp.com-20120824142000-0jbgvgdiip5475yp
2012-08-24 16:20:00 +02:00
Thibault Delavallée fb76f9f037 [IMP] [FIX] crm_partner_assign: as it inherits from mail.compose.message, updated the form view to avoid crashe; updated mail.compose.message composition mode, that is now an updatable selection field. crm_partner_assign will habe to be massively cleaned with the new mail module.
bzr revid: tde@openerp.com-20120824122928-dof1y1uxv3lkiwly
2012-08-24 14:29:28 +02:00
Thibault Delavallée c5cfb049f8 [FIX] Fixed last commit (forgotten a ','), fixed demo data about non-existing fields.
bzr revid: tde@openerp.com-20120824100205-nm4vjw13qx363cb5
2012-08-24 12:02:05 +02:00
Thibault Delavallée 6a386dc762 [FIX] crm_forward_to_partner: to_email is now tools.email_split.
bzr revid: tde@openerp.com-20120824093130-e24hm16pq14x84zb
2012-08-24 11:31:30 +02:00
Fabien Pinckaers 06f60b3517 [FIX] body_text --> body, not ure it's good enough
bzr revid: fp@tinyerp.com-20120817120606-t97l9x2dguuv7kmp
2012-08-17 14:06:06 +02:00
Thibault Delavallée aac03b547d [MERGE] Merged with addons/trunk.
bzr revid: tde@openerp.com-20120814152634-ix63oxwcyrfkku4t
2012-08-14 17:26:34 +02:00
Vo Minh Thu 9822629548 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20120813160657-ilujdek8ys4fzhp9
2012-08-13 18:06:57 +02:00