Commit Graph
272 Commits
Author SHA1 Message Date
Martin Trigaux 8991021dc6 [FIX] survey: use verbs
The placeholders were not easy to understand
2017-10-25 11:12:14 +02:00
Xavier Morel 7dd062f835 [FIX] P3: text model types
* remove references to basestring & unicode (use relevant pycompat
  helpers)
* remove some str calls (either entirely or replaced by relevant
  helper, either text or native)
* use better API to avoid unnecessary conversions
* remove some XML declarations in views
2017-08-20 23:25:54 +02:00
Xavier Morel 01e3514147 [FIX] P3: urllib, urllib2 and urlparse
In Python 3, all of these were "consolidated" under urllib(.request,
.parse, .errors) which is inconvenient.

Since we already have hard dependencies on requests and
werkzeug(.urls, which is a backport of Python 3's unicode-aware
urllib.parse) migrate *everything* to that.

A sticking point is urllib2.URLError, those were (mostly) replaced by
the slightly more general IOError which URLError extends.
2017-05-15 12:26:30 +02:00
xmo-odoo b4429c2a91 [FIX] Various P3-related import changes
* LDAP import: python-ldap is not python3-compatible, pyldap is

  Warning: only supported from debian Stretch (current testing)?
  https://packages.debian.org/search?searchon=names&keywords=pyldap

* implicitly relative imports
* imports of moved or removed stdlib modules

issue #8530
2017-04-28 09:06:53 +02:00
Jérome Maes da6d8a5717 [IMP] survey: dead code using group_anonymous 2017-03-23 10:00:51 +01:00
qsm-odoo fb363b572b [FIX] *: adapt odoo interface violet
Change color #a24689 to #875A7B

Commit https://github.com/odoo/enterprise/commit/8ac1c19fac7615fecd51e670f798d13158a4e53c
changed the odoo interface violet by changing the main LESS variable
but forgot there was many direct occurences in XML/HTML/... (for
example for the mobile browser color).

Even if it's community the odoo interface violet is used at many places
(module description, XML demo data, ...).
2016-10-05 10:29:00 +02:00
Yannick Tivisse 17c61f54e9 [FIX] survey: Change the help label according to changes
The option name has changed.
2016-09-20 16:54:05 +02:00
Yannick Tivisse 2c4bc2ffce [FIX] survey: Remove remaining onchange_template_id on survey_email_compose_message
This view is bad, and you should feel bad about it.
2016-09-20 11:27:30 +02:00
Thibault Delavallée efd55ab8a5 [REF] various: rename openerp node to odoo in xml files 2016-08-10 15:48:10 +02:00
Ravi Gadhia 66cb880b74 [MIG] survey: migrate into new api 2016-07-15 12:57:51 +02:00
Olivier Dony 39bd21fc47 [MERGE] Forward-port 9.0 up to rev. 3be9d911c0 2016-01-13 17:13:05 +01:00
Martin Trigaux bb56e484b7 [FIX] all: construction of translations lookup
When evaluated, the translation function never finds a match if a variable is
integrated into the untranslated text.

SHAME! 🔔 🙋
2016-01-13 14:46:30 +01:00
Christophe Simonis d490630745 [MERGE] forward port of branch 9.0 up to b293953 2015-11-25 16:18:10 +01:00
Christophe Simonis 56a442e205 [MERGE] forward port of branch saas-6 up to dade7e3 2015-11-25 13:26:02 +01:00
Thibault Delavallée aaa8d07de0 [FIX] survey: sending emails
Emails are now send once by recipient. If there is a partner_id, use it as
recipient using the correct recipient_ids field, not partner_ids (not the
same meaning, recipients for emails use recipient_ids). Use the email_to
if there is no partner_id. Indeed this method is called with partner_id
and email being the same recipient.

Also added auto delete to generated emails. As partner_ids is not used anymore
the mails are not considered as notifications and stay in the mail_mail table.
There is no need to stock those emails.
2015-11-24 11:36:48 +01:00
Christophe Simonis 2450e57775 [MERGE] forward port of branch 8.0 up to f57e580 2015-11-19 11:56:03 +01:00
Martin Trigaux 2831d94c20 [FIX] survey: no attachment in shared survey
When sharing a survey, a mail.mail is created but the attachment were lost.
This is due to a missing command (6, _, ids) when creating records in
attachment_ids field (many2many).

Fixes #9364, opw 656742
2015-11-18 13:52:21 +01:00
Jamin Shah ddfbb690fb [IMP] various: template update
Templates have been updated to remove most of the styling and
simplify them. Some workding has also be done.
2015-11-02 11:51:30 +01:00
odoo-tac 5d2c3ceb02 [FIX] survey : Adding context in create token method to allow overriding in further modules 2015-08-21 17:40:04 +02:00
Thibault Delavallée 88b8cd0587 [REF] mail: model update for NewChatter
Main changes :
- mail.notification model is removed. People do not receive notifications
anymore. Instead two ways of following documents exist
  - using a channel; messages will be displayed on the channel itself
  in a near future commit
  - following with its partner; messages will all be considered as
  needaction, using a new m2m table. People should receive less
  needaction messages by following less records by themselves.
There is no more read / unread state anymore. Instead only needaction
messages are considered. Todo (Favorites) messages still exist, and are
stores on a new m2m table instead of using decorated notifciations.
- the main filter for documents is not message_unread anymore, but
message_needaction. A lot of views and filters have been updated
accordingly.
- the vote feature has been removed
2015-08-21 12:11:56 +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
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
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
Jeremy Kersten ade51a9ea1 [FIX] survey: Was browsing a browse record, useless and traceback... https://github.com/odoo/odoo/issues/2383 2014-11-25 15:06:59 +01:00
Xavier Morel e6b56412a0 [ADD] views documentation 2014-08-28 15:02:33 +02:00
Fabien Meghazi faa09da325 Removed version="7.0" from form views 2014-06-12 09:09:59 +02:00
Richard Mathot (OpenERP) ea69de5114 [FIX] Dirty fix for links sent by email
bzr revid: rim@openerp.com-20140410141352-tb9rwbvawuy2kwc4
2014-04-10 16:13:52 +02:00
Richard Mathot (OpenERP) 33fb17ab9f [IMP] Survey: Lots of usability improvements (wip)
bzr revid: rim@openerp.com-20140407133140-mu2dl1zkq6wazuob
2014-04-07 15:31:40 +02:00
Richard Mathot (OpenERP) ecb636c67c [FIX] URL slugs mess...
bzr revid: rim@openerp.com-20140319142952-2wzi0fvzvopx9lmy
2014-03-19 15:29:52 +01:00
Richard Mathot (OpenERP) 7227b0b0c9 [REF] Bye bye vim
bzr revid: rim@openerp.com-20140303133814-rpjv0gl7618bt1i1
2014-03-03 14:38:14 +01:00
Richard Mathot (OpenERP) 6f82d49562 [FIX] Small UI glitches
bzr revid: rim@openerp.com-20140128150336-orf1kes9ats1tp07
2014-01-28 16:03:36 +01:00
Richard Mathot (OpenERP) c42b345a90 [REF] Code cleaning
bzr revid: rim@openerp.com-20140106084708-7yot3pjkfbezd6f8
2014-01-06 09:47:08 +01:00
Richard Mathot (OpenERP) 194bf80e25 [REM] Code not in use anymore
bzr revid: rim@openerp.com-20140106082749-nykxi9jjxxycz6h2
2014-01-06 09:27:49 +01:00
Richard Mathot (OpenERP) 19579b04d6 [REF] Code cleaning
bzr revid: rim@openerp.com-20140102075652-d1sih1x42jt9dgv1
2014-01-02 08:56:52 +01:00
Richard Mathot (OpenERP) f3dc9d579e [FIX] Incorrect behaviour and display for invitation form
bzr revid: rim@openerp.com-20131230153532-3r9oscsgsb750z7m
2013-12-30 16:35:32 +01:00
Richard Mathot (OpenERP) 65c9704954 [IMP] Survey Kanban view
[REM] Unused code in survey.py

[REF] Code cleaning

bzr revid: rim@openerp.com-20131129084914-z76feeg813q38l25
2013-11-29 09:49:14 +01:00
Richard Mathot (OpenERP) 51bb7204cd [FIX] English
bzr revid: rim@openerp.com-20131125104912-tw8aw20nowkep31h
2013-11-25 11:49:12 +01:00
Richard Mathot (OpenERP) 72e33b8cfe - mailing bugs
- radio buttons/checkbox bugs
- cronjob to remove empty user inputs

bzr revid: rim@openerp.com-20131121110457-rbpbltdk1n9es37l
2013-11-21 12:04:57 +01:00
Richard Mathot (OpenERP) dbb0a2b8fe [FIX] Emails create 'link' user input (not 'manually')
bzr revid: rim@openerp.com-20131121075612-qhyo0cykcheo36iq
2013-11-21 08:56:12 +01:00
Richard Mathot (OpenERP) 0e45d81546 [IMP] Fixing first view of survey + logic bugs
bzr revid: rim@openerp.com-20131028144314-cjy5rexani70ikhc
2013-10-28 15:43:14 +01:00
Richard Mathot (OpenERP) 15d7695189 [IMP] Models refactoring (again)
bzr revid: rim@openerp.com-20131028075121-odgv1f4en47vvtr3
2013-10-28 08:51:21 +01:00
Richard Mathot (OpenERP) 31c582874d [REF] Importing previous work by chm
bzr revid: rim@openerp.com-20131021090319-zbi93frwqpcvxkk9
2013-10-21 11:03:19 +02:00
Denis Ledoux db84e912bd [MERGE] Forward-port of latest saas-1 bugfixes, up to rev. 8781 rev-id: dle@openerp.com-20130923165651-0jt823r5wy37enw6
bzr revid: dle@openerp.com-20130923171310-mav1riq3d2rebmv2
2013-09-23 19:13:10 +02:00
Denis Ledoux 274cf1e293 [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9475 rev-id: dle@openerp.com-20130923162428-g0s3o9tid09ogfv3
bzr revid: dle@openerp.com-20130923165651-0jt823r5wy37enw6
2013-09-23 18:56:51 +02:00
Martin Trigaux 5397de6122 [FIX] survey: add missing translations
bzr revid: mat@openerp.com-20130920123938-ioifrlv200rkalhe
2013-09-20 14:39:38 +02:00
Christophe Simonis aa133b4d29 [MERGE] forward port of branch saas-1 up to revid 8745 chs@openerp.com-20130613181503-82234mo34wxb0oap
bzr revid: chs@openerp.com-20130614091924-z5ta02kwhmwcrgox
2013-06-14 11:19:24 +02:00
Christophe Simonis 6a9adbca62 [MERGE] forward port of branch 7.0 up to revid 9236 mat@openerp.com-20130613160953-itt79mu5xrl7suv4
bzr revid: chs@openerp.com-20130613181503-82234mo34wxb0oap
2013-06-13 20:15:03 +02:00
Martin Trigaux 0fc8333985 [FIX] survey: add page_id when using wizard
bzr revid: mat@openerp.com-20130611100243-r5u6eyoj2ppiifc2
2013-06-11 12:02:43 +02:00