Commit Graph
117156 Commits
Author SHA1 Message Date
Thibault Delavallée 3275aacb27 [IMP] sale: add download link on customer portal to access the order report
This commit also adds a route to have the sale order report. It supports
access token so that email links already enables the download of the
pdf.
2017-09-06 10:38:43 +02:00
Thibault Delavallée 5e619ceb20 [IMP] sale: support error, warning and success codes in sale customer portal
Purpose is to allow to display error, warning or success messages based
on some user action like signature or payment. This is done using kwargs
in the order view route. Codes are added in URL and message display has to
be managed in the template itself. Inheriting modules and/or new features
will have to add their specific message according to the error, warning
or success messages they want to support.
2017-09-06 10:38:10 +02:00
Thibault Delavallée e9948e4fdf [IMP] sale, website_quote: update sign, pay and online quote settings
* separate signature and payment option from website_quote template
   feature;
 * add a settings to choose whether to display the confirmation or
   pay buttons in customer portal;
 * simplify settings about website_quote now talking only about
   the module itself;

This commit only adds the settings and parameter. Future commits will
use those parameters to effectively trigger some features and hide or
display part of customer portal.
2017-09-06 10:37:42 +02:00
Thibault Delavallée 27f0d3115e [IMP] portal: add a generic signature widget to be used in customer portal
This generic widget allow to confirm and sign documents on the customer
portal. Purpose is to reuse it in sale customer portal and online quotes
notably. It is made generic to call a route using parameters given to the
widget. It also supports access token to ease its use in various customer
portal pages where the customer is not always connected but is granted
access through an access token.
2017-09-06 10:36:37 +02:00
Thibault Delavallée 93436f45f9 [FIX] website_portal_sale: fix override not giving correctly parameters to super
It does not have any impact in current stable as the inherited
method does not use it. However if another addon inherit it
it will not receive access_token depending on call chain. Let
us fix it.

This is a manual forward-port of ce9ed600ca.
2017-09-06 10:36:16 +02:00
Parth Gajjar 1c3c3ab9fc [MOV] marketing_campaign: Move to enterprise
According to fp, this outdated and incomplete module will be moved to enterprise to become a fully developed and integrated application.
2017-09-06 08:02:01 +02:00
Kirti Choudhary 72c1f07d53 [IMP] mrp: show boms in which a product has been used as a component 2017-09-05 16:53:12 -07:00
Luis González e5fb056809 [FIX] l10n_mx: Rename field use_cash_basis on model account.tax.template
This field was renamed from use_cash_basis to tax_exigibility, so it needs to be renamed here too
2017-09-05 17:23:54 +02:00
Nicolas Martinelli a4bcb66bfc [FIX] base_import: headerless import
- Import a CSV file without header
- Untick the option 'The first row contains the label of the column'

An error is reported.

If no header, the method `_match_headers` should return consistent
object types.

opw-769117
2017-09-05 16:37:48 +02:00
Nicolas Martinelli d522a796d3 [FIX] calendar: all day event
- Set the TZ as 'America/Martinique'
- In the calendar (month view), click on a date D.
- Fill in the topic, then click on "Edit"

The date is set to D-1.

Commit 09066fbbd5 makes the date consistent when the user sets an
event as an all day event by taking into account the appropriate
timezone.

However, in the case of an event created from the month view, this TZ
modification should not be applied.

opw-766638
2017-09-05 16:33:04 +02:00
Yannick Tivisse f49683bc0f [IMP] image.py: Make 6801baa work in python3 2017-09-05 16:31:47 +02:00
jpr-odoo 46699c5214 [IMP] mail: Add a preview popup for attachments
Purpose
=======

The goal is that when you click on an attachment, you should get a preview of it and then you get the possibility to download it.
2017-09-05 15:52:15 +02:00
Yannick Tivisse fa432175e9 [FIX] mail: Don't compute channel history if no channel
Purpose
=======

As the method `channel_fetch_message` calls self.ensure_one(), we shouldn't load the channel history if no channel is already existing for the external user.

Specification
=============

Return a empty list if channel_id is False
2017-09-05 15:52:15 +02:00
Yannick Tivisse 2e3848b394 [IMP] web: Add the possibility to crop an image in web/image controller
Purpose
=======

Could be useful if you want to load a preview of an image as a thumbnail
2017-09-05 15:52:15 +02:00
Yannick Tivisse 6801baa662 [IMP] image.py: Crop image with maximum size instead of ratio
Purpose
=======

It makes no sense to crop an image from a ration. We don't say "I don't know my image size, but divide it by 2"

Specification
=============

Pass a maximum size argument instead of a thumbnail ratio
2017-09-05 15:52:15 +02:00
Géry Debongnie 983c7ae22f [FIX] web: proper x2m edition with pagination
Before this commit, we did not really handle gracefully editing a
one2many with many records. The main issue is that if the user was not
on the last page, creating a new record added it to the last page, which
is confusing and actually a bad idea for records with required fields.

This fix requires a way to track the current changes (because we do not
display the current state of the form view: the new record is displayed
in the first page, but is actually added at the end of the dataset).

Note that this probably does not solve all issues with pagination. This
is a quite delicate problem. We will add tests and fixes as needed.
2017-09-05 15:41:28 +02:00
Géry Debongnie fef645fcc5 [FIX] web: increase timeout for js tests
We have a new runbot server which is quite slow.  Because of this, it
takes too much time to run this unit test suite (for comparison, one of
the last build by the main runbot takes 126s).

This is necessary for now, until we use chrome headless or something...
2017-09-05 15:41:26 +02:00
Laurent Smet fe2bdc2649 [FIX] l10n_ch: fix missing renaming of settings
account.config.settings has been renamed by res.config.settings, see 781a03b2bc
2017-09-05 15:02:30 +02:00
Sanjay Jamod 160001ca68 [IMP] mrp: Improve settings labels and installable modules
Purpose
=======

Improve settings of manufacturing app

Specification
=============

https://drive.google.com/a/odoo.com/file/d/0B0ITmdw6h3ZrMndPb2ZWbUY2Tm8/view?usp=drivesdk
2017-09-05 13:29:16 +02:00
Kirti Choudhary 36a2bfb9cf [IMP] *: add and improve kanban views for mobile
This commit improves readability in kanban views.
The default view in mobile is kanban and many of them
needed to be improved.

task-33438
closes 17853
2017-09-05 13:21:58 +02:00
qsm-odoo 41e7a1374f [MERGE] web, mail: introduce new chatter/discuss design 2017-09-05 12:16:28 +02:00
Christophe Simonis 80ca45b161 [MERGE] forward port branch 9.0 up to e300a587b3 2017-09-05 12:14:05 +02:00
qsm-odoo 489db80101 [REF] web: better mock images routes
Before this commit, only the routes which began by '/web/image' were
mocked (simply ignored). This forgot the case were it is a full URL
(http://www.test.com/web/image). Now, also mock the static images
routes (for .png and .jpg).
2017-09-05 12:13:55 +02:00
qsm-odoo 24ea61163d [REF] mail: review new chatter design
- Use classes instead of repeated mixins
- Add real user avatar instead of fake one
- Reorganize LESS rules
2017-09-05 12:13:55 +02:00
stefanorigano 12b818d375 [REF] mail: introduce new chatter/discuss design
- Improve overall design
- Better use of UI colours
- Replace planned activities icon
- Vertically align kanban icons
- Remove the 'bell shtcut' and followers caret
- Use a mixin to style the chatter (inline, not inline, compact)
2017-09-05 12:13:55 +02:00
stefanorigano 378fe92b60 [REF] web: add btn-links variations
Create variations for btn-link with UI color classes.
These btns appear as default text (muted necessary) and they will use
an UI color on hover.
2017-09-05 12:13:55 +02:00
stefanorigano 1f78ae3c18 [REF] web, mail: change minors top-menu design
- Remove carets
- Fix badges position
- Vertical align user avatar
- If a dropdown is open, the menu-toggle should appear active
- Dropdown menus' widths should be at least as the dropdown-toggle
2017-09-05 12:13:55 +02:00
Yannick Tivisse 7a4de30cee [IMP] base: Rename 'Cancel' Call-to-action into 'Discard'
Purpose
=======

Be consistent with other screens

Specification
=============

Replace "cancel" by "discard" in all setting page.
2017-09-05 11:55:10 +02:00
Christophe Simonis e300a587b3 [MERGE] forward port branch saas-6 up to 0099074ab2 2017-09-05 11:27:58 +02:00
Christophe Simonis 0099074ab2 [MERGE] forward port branch 8.0 up to ce12a7397f 2017-09-05 11:26:19 +02:00
Thibault Delavallée ce9ed600ca [FIX] website_portal_sale: fix override not passing all parameters to super
It does not have any impact in current stable as the inherited
method does not use it. However if another addon inherit it
it will not receive access_token depending on call chain. Let
us fix it.
2017-09-05 10:55:41 +02:00
Olivier Dony f4d541e51a [IMP] http: set HTTPonly flag on session cookie
This will reinforce the framework against potential XSS exploits
escalating to session hijack
2017-09-05 10:06:35 +02:00
Lucas Perais (lpe) e14ab69772 [FIX] point_of_sale: control if a cashier is in localstorage
Before this commit, we could temporarily change cashier from A to B, and back to A seamlessly just by refreshing the page.
This could be a security issue for a cashier is held responsible for its sales.

This commit stores the cashier in localstorage, and with the right sets of methods, corrects the issue.

OPW 767827

closes #19207
2017-09-05 08:41:33 +02:00
Olivier Dony ce12a7397f [FIX] base: remove early size limit on author field
The default size limits set in base.sql are eventually superseded by the
actual limits (or absence of) when the DB schema is synchronized with
the Python model definitions.

However the list of modules (name, authors, descriptions, dependencies)
is loaded before this can happen. The length of the author field is one
case that can easily crash the database bootstrap process at that point,
should a module with a long author name be present in the addons path.

After schema sync, that size limit is lifted entirely (although Odoo Apps
does limit the max author name length to 512 at the moment, to prevent
abuse).

Fixes #5850
2017-09-05 01:46:47 +02:00
Olivier Dony 53bd1266b6 [FIX] doc: mention psycogreen dependency for gevent worker 2017-09-05 01:45:26 +02:00
Christophe Simonis a9991e8082 [MERGE] forward port branch 10.0 up to abb726d4df 2017-09-04 18:47:40 +02:00
Christophe Simonis abb726d4df [MERGE] forward port branch saas-11 up to 431b30b478 2017-09-04 18:46:46 +02:00
Christophe Simonis 431b30b478 [MERGE] forward port branch saas-10 up to aab6bdd54a 2017-09-04 18:38:25 +02:00
Christophe Simonis 3ff4feafd2 [MERGE] forward port branch saas-15 up to 4d4d75709d 2017-09-04 18:12:00 +02:00
Christophe Simonis 4d4d75709d [FIX] core: also consider materialized views as existing
At the end of registry loading, a check is made on every model to
verify its table exists in the database. Materialized views weren't
considered during this check.

Note that we can't use `information_schema` views in this case because
it does include materialized views on purpose [1].

Forward-port of 4ca6945256

[1] http://www.postgresql-archive.org/Materialized-views-don-t-show-up-in-information-schema-tp5822643p5822644.html
2017-09-04 17:51:50 +02:00
Christophe Simonis fc2a39cc7d [MERGE] forward port branch saas-14 up to 99426b95b5 2017-09-04 17:12:40 +02:00
Yannick Tivisse a22dee58e1 [IMP] project: Hide email_cc field on tasks 2017-09-04 16:53:57 +02:00
Yannick Tivisse 76fdd10b18 [IMP] web: Modify timeout duration on test_js.py 2017-09-04 16:53:39 +02:00
Yannick Tivisse d48b0c40bd [IMP] settings: Remove unnecessary field redefinitions in config models 2017-09-04 16:52:30 +02:00
Yannick Tivisse c39abeeefe [IMP] settings: Remove redefinition of company_id in settings.
On the other hand, create a new field for the configuration of the inter company rules.
2017-09-04 16:52:30 +02:00
Yannick Tivisse 955ad1d85d [FIX] crm,hr_expense: Give 2 different names for alias prefix
Purpose
=======

Now that the res.config model have been merged into a single model, the 2 alias prefixes should have different names to avoid conflicts.
2017-09-04 16:52:30 +02:00
Yannick Tivisse eb4ad33513 [IMP] project: Remove field use_tasks
Purpose
=======

This isn't useful now that project issues and tasks have been merged.

Specification
=============

Keep the label field, remove the checkbox
2017-09-04 16:52:30 +02:00
Christophe Simonis 99426b95b5 [MERGE] forward port branch 10.0 up to c5df78f38b 2017-09-04 16:15:28 +02:00
Elkasitu c5df78f38b [FIX] ir_model: Don't prefetch unnecessary fields
Do not prefetch unnecessary fields during the uninstallation of modules.

Previous to this commit, prefetching of unnecessary fields would cause server crashes
on some modules that add a field on ir_model_fields.
i.e. website_form
2017-09-04 15:46:19 +02:00
Elkasitu 8862bb01b9 [FIX] ir_model: Don't prefetch unnecessary fields
Do not prefetch unnecessary fields during the uninstallation of modules.

Previous to this commit, prefetching of unnecessary fields would cause server crashes
on some modules that add a field on ir_model_fields.
i.e. website_form
2017-09-04 14:57:13 +02:00