Commit Graph
99161 Commits
Author SHA1 Message Date
Yannick Tivisse 4079a21a89 [FIX] oe_tag display glitch 2015-01-29 10:13:50 +01:00
Xavier Morel c24b28c62a [REM] timezone option
Also removed most of the now-unused timezone functions.

Left get_server_timezone for now as it's visible over xmlrpc, but print
a deprecation warning if it's invoked.
2015-01-29 09:53:32 +01:00
Xavier Morel f8f95d9e71 [REM] XMLRPCS options: they're not used anymore 2015-01-29 09:53:31 +01:00
Antony Lesuisse 06c681ba11 [FIX] base: add env to ir_action and ir_ui_view qweb context
To impel new api usage in server actions and qweb templates.
2015-01-28 23:48:23 +01:00
Denis Ledoux 457b940c0e [FIX] web: digits is not always defined for float fields in js
This rev. is related to d17f22cde7
2015-01-28 18:53:12 +01:00
Antony Lesuisse 4c0dad0891 [FIX] sale_margin: dont display cost price in form view 2015-01-28 17:22:06 +01:00
Frédéric van der Essen 3c5f62413e [FIX] barcodes: typo in function name 2015-01-28 17:01:27 +01:00
Thibault Delavallée e2153194bd [FIX] website_slides: users seeing partially available slides
should see the website_url field (share url).
2015-01-28 16:21:24 +01:00
Thibault Delavallée c34ccd3b76 [IMP] website_slides: do not crash when installing the module offline.
Catch URLError when trying to fetch videos / google doc data.
2015-01-28 16:21:24 +01:00
Thibault Delavallée eb58572ac2 [IMP][REF] website_customer, website_event, website_livechat, website_sale_delivery,
website_slides: use the recently introduced website.published.mixin to
replace the website_published and website_url fields defined in various
remaining modules.

In slides, some templates have been updated because share_url was basically
website_url and has been replaced.
2015-01-28 16:21:24 +01:00
Samus CTO 7126ae8143 [FIX] mail: prevent sending mail during registry loading 2015-01-28 16:17:43 +01:00
Jay Patel cc12e1df26 [FIX] mass_mailing: tree view of mass mailing contacts: unsubscription
field was present two times + set a readonly.
2015-01-28 16:16:12 +01:00
Xavier Morel 205143cc32 [IMP] doc: update website to scaffold 2015-01-28 16:14:41 +01:00
Aaron Bohy 9c504fcacd [FIX] Web: views.js: use initial_mode edit
Use the option initial_mode of views when openning a view in 'edit' mode
at first rendering. This fixes a bug with FieldOne2Many widgets whose buttons
were not displayed at first rendering in 'edit' mode (e.g. in the Sales
Team FormView).
2015-01-28 16:08:56 +01:00
Manuel Vázquez Acosta a4597fe34f [FIX] ir_mail_server: use local envelope sender rather than spoofing it
Acting as a mailing-list-like distribution system, the system used
to set the enveloper sender (aka bounce address) to the From header
of the message, effectively pretending to be the original sender.

In some cases the domain of the From header explicitly forbids
sending emails from external systems (e.g. with a hardfail SPF
record), so this could cause the email to be rejected by some
spam filters, depending on their policies.

The system will now use a local bounce address in the form:
  mail-catchall-alias@mail-catchall-domain
or, if no catchall is configured:
  postmaster-odoo@mail-catchall-domain
(as soon there is a mail.catchall.domain configured)
It will only fallback to using the From header when no
catchall domain is configured.

Fixes issue #3347.
Closes #3393.
2015-01-28 15:51:23 +01:00
Denis Ledoux d17f22cde7 [FIX] web: float compare, float is zero
When setting a float field,
the web client rounds the value entered by the user
using the instance.web.round_decimals method.
Nevertheless, this is possible that this method returns unrounded float,
due to the float precision
For example, round_decimals(53.8, 2) returns 53.800000000000004

In order to compare this new float value to the old float value
and check the eventual change),
we need to check if the delta between the two is almost 0.
This is the goal of the float_is_zero method introduced during this rev.
which is comparable to the float_is_zero method
already available in the openerp server, in openerp.tools.

Float values compared using the simple === operator
instead of this float_is_zero method
will be regarded as different in some cases,
according to the float value and the precision
And the value of the field will be regarded as changed,
which can lead to unwanted triggers of onchanges.

opw-626635
2015-01-28 15:09:10 +01:00
Olivier Dony 7a0451d649 [FIX] safe_eval: no shadowing of PostgreSQL's exceptions
Letting PostgreSQL low-level exceptions bubble up
ensures that the mechanism for automatically
retrying transactions will work.
In case of transient errors such as deadlocks or
serialization errors, the transaction will be
transparently retried. Previously they were
transformed into ValueError and caused a permanent
failure immediately.

The fallback to ValueError is meant for invalid
expressions or expressions that use variables not
provided in the evaluation context. Other
exception types should be preserved (this is
further improved in Odoo 8)
2015-01-28 14:34:54 +01:00
Aaron Bohy 40b8fdec00 [FIX] Web: views.js: view switching: hide view.$container
Without hidding view.$container, when coming back to Kanban or List
views, it was no more possible to click anywhere on those views.
Fixes the bug introduced by rev c465605049
2015-01-28 13:08:43 +01:00
Antony Lesuisse a8edd217a0 [FIX] sale: product sold stat button 2015-01-28 01:57:53 +01:00
Antony Lesuisse 71f710c671 [FIX] bank_statement_import_ofx: optional dependency warning
Should be a short warning only.
2015-01-28 01:10:41 +01:00
Antony Lesuisse 75fa30fc54 [FIX] base: ir_config_parameter increase database.uuid.private entropy
Use uuid4 instead of uuid1 to get 128 bits of entropy.

Rename database.uuid.private to the more meaningful database.secret as it
explains the usage instead of the technical details to generate it. And we
might switch to a longer string with more entropy in the future.

This string can be used to sign cookies or token with
sign(src) -> (src, hash(src + secret))
check(msg) -> msg[1] == hash(msg[0] + secret)
2015-01-28 00:32:51 +01:00
Denis Ledoux a35e9858dc [FIX] crm: opportunity count on partner form
- When the partner is a company,
 the opportunity count should counts the opportunities
 of this company and all its contacts
 - When the partner is not a company,
 the opportunity count should only counts the opportunities
 of this lonely partner.

opw-626609
2015-01-27 19:15:42 +01:00
Frédéric van der Essen 53dcf1b9de [IMP] point_of_sale: prevent key repeats in the payment screen. 2015-01-27 18:48:49 +01:00
Jeremy Kersten 35ace3321d [REF] crm,sale,sales_team,website_crm_score: clean kanban view 2015-01-27 18:20:51 +01:00
Jeremy Kersten 0a78a3d633 [IMP] website_crm_score: use private db uuid to hash lead_id in cookies 2015-01-27 18:20:51 +01:00
Jeremy Kersten a9e387880d [IMP] base: add private db uuid. 2015-01-27 18:20:51 +01:00
Aaron Bohy c465605049 [FIX] Web: views.js and view_pivot.js: sidebar
The sidebar in view pivot was not hidden when switching from view pivot
to another view. Thus, the sidebar content of view pivot was still in a
dropdown of the sidebar of the new view (when this new view has a
sidebar as well).

Also changed the way of switching between views: we now first hide the
current view before creating and displaying the new one. This prevents
weird rendering in the header as well.
Moreover, the task of hidding/showing the view's buttons is left to the
view instead of the ViewManager.
2015-01-27 17:25:38 +01:00
Damien Bouvy d22b94a699 [FIX] planner: portal users had no read access to planner, which caused an error in the webclient 2015-01-27 15:58:22 +01:00
David Monjoie 6798cf93d2 [FIX] theme_bootswatch: fixed image size for theme list 2015-01-27 15:54:44 +01:00
Yannick Tivisse b2eab15594 [FIX] Web : add fontawesome in list handle widget 2015-01-27 15:06:22 +01:00
David Monjoie a24c59fefb [IMP] theme_bootswatch: improved appearance of theme bootswatch in Apps 2015-01-27 14:30:08 +01:00
Antoine Lorence c772b3db9a [FIX] doc: install.rst typo
closes #4937
2015-01-27 14:29:48 +01:00
Yannick Tivisse 93de877e36 [IMP] web : harmonize action buttons css + sass 2015-01-27 14:07:57 +01:00
Xavier Morel 426bcf427c [FIX] incorrect serialisation of log_handler
Saving log_handler to the config file is not currently special-cased,
the value is thus dumped as the repr() of the list, but not deserialized
with literal_eval. This means -s breaks log_handler and the
configuration file example is incorrect (it looks like a list).

Repeated -s further break the log_handler by interpreting the original
value as a string, putting it into a list, then reserialising that with
repr(), injecting a bunch of escaping backslash. The config file is soon
filled with backslashes and doubles in size with each new -s.

Furthermore for some reason the whole thing breaks --log-handler (and
aliases) entirely, once the wrong log_handler has been saved none of
them works anymore.

Fixes #4552
Closes #4157
2015-01-27 13:58:12 +01:00
Xavier Morel e9f0d79f85 [IMP] config: deduplicate loggers in log_handler
Saving multiple levels for the same logger should work with few issues,
but over time pathological (basket) cases (e.g. using ``-s`` all the
time) may build pointlessly huge lists in their config file.

Only keep the last level for each logger when saving to a config file.
2015-01-27 12:35:53 +01:00
Xavier Morel 8641826ca4 [IMP] config: make log_handler and --log-handler additive
For log_handler (list of logger configuration specs), having the
configuration file and the CLI configuration be exclusive (one
overwriting the other) is detrimental: it precludes keeping the
configuration file as a convenient baseline and only altering the subset
of loggers of interest at any given time. Combine specs from both
sources instead of overwriting one with the other.

* remove log_handler and its special case from the first options loop
* remove seeding of option with DEFAULT_LOG_HANDLER
* my_default is the baseline "configuration file" value, it's None if
  not provided which is not convenient. Use DEFAULT_LOG_HANDLER for it
  as baseline configuration file. DEFAULT_LOG_HANDLER isn't a list
  anymore, it's a CSV of logger specs (same as file-serialized)
* could actually use a DEFAULT_LOG_HANDLER of ``:`` (the default logger
  is root, the default level is info), but that might be a tad too
  cryptic
* things are weird between my_default and the file-sourced value,
  _parse_config is first run with my_defaults then with the file, but if
  there's no file it's re-run with already-parsed my_defaults. So when
  the file and the command-line values are of different type,
  _parse_config must be ready to handle both
2015-01-27 12:35:52 +01:00
Xavier Morel 9f4dea0891 [FIX] config: correctly serialize log_handler to CSV 2015-01-27 12:35:52 +01:00
Xavier Morel 23ad48a91b [FIX] config: a list is always equal to itself
add_option(action=append*) always modifies the ``default`` list
in-place. When using DEFAULT_LOG_HANDLER directly, that means
log_handler is always equal to DEFAULT_LOG_HANDLER since they're the
same list object. Thus the --log-handler command-line would never
overwrite the log_handler value from the configuration file, which is
unexpected

Fix that by copying DEFAULT_LOG_HANDLER before passing it as the
option's default value.
2015-01-27 12:35:51 +01:00
Damien Bouvy ec6fa5d3d9 [IMP] doc: documentation for qweb reports
closes #4876
2015-01-27 11:49:02 +01:00
Frédéric van der Essen afa4bb1e56 [MERGE] point_of_sale: a few fixes, see individual commits for details. 2015-01-27 11:47:10 +01:00
Frédéric van der Essen 5a3d9ce9ce [FIX] point_of_sale: prevent sneaky inputs:
User drops something on the keyboard > Inputs very large number unnoticed
> Bad things happen.

 - Limit input lengths to 12
 - Ring bell when exceeding that length
 - Warn if the amount makes dubious business sense
 - Block screen inputs when popup is active.
 - Asserts to prevent edition of the order after validation. Just
   in case.
2015-01-27 11:46:41 +01:00
Frédéric van der Essen 0db25ad1aa [FIX] pos_restaurant: splitbill would crash on reloaded orders due to not reloading orderline ids 2015-01-27 11:46:40 +01:00
Frédéric van der Essen fcd3f4e9a5 [FIX] point_of_sale: correctly set popup title. 2015-01-27 11:46:40 +01:00
Frédéric van der Essen dbc8912bc3 [FIX] point_of_sale: this/self mismatch after refactor. 2015-01-27 11:46:40 +01:00
Frédéric van der Essen f517b8a54d [FIX] point_of_sale: the open cashbox button was not working 2015-01-27 11:46:40 +01:00
Frédéric van der Essen 3aaf219c54 [IMP] point_of_sale: add the possibility to highlight control buttons 2015-01-27 11:46:40 +01:00
Frédéric van der Essen cfb1a7e804 [IMP] point_of_sale: the 'image' field is big and not used anymore ... 2015-01-27 11:46:39 +01:00
Frédéric van der Essen 68ac031a96 [FIX] point_of_sale: fix crash from badly refactored code. 2015-01-27 11:46:39 +01:00
Yenthe666 51ea2a3dde [FIX] point_of_sale: missing translation for invoice button
Fixes #4863
2015-01-27 11:44:44 +01:00
Denis Ledoux cc2a406b4f [FIX] product: uom category name 2015-01-27 11:37:30 +01:00