Commit Graph
113500 Commits
Author SHA1 Message Date
Goffin Simon c7a6409fac [FIX] base: Changing password with false as new value
Before clicking on 'Change Password' button, a new password must be
written. Otherwise an error was raised: TypeError: secret must be
unicode or bytes, not bool.

opw:777921
2017-10-25 13:35:41 +02:00
Nicolas Martinelli 87b2f3fadd [FIX] base: to_text
- Install Website Live Chat
- Publish a Livechat on the website

Crash on rendering:
```
<img t-att-src="user.image_small and ('data:image/png;base64,' + to_text(user.image_small)) ...
```

Commit 1df6f4c741 fixes a P2/P3 compatibility by including the helper
`to_text` in the QWeb context. However, it was included only for reports
(in `ir.actions.report`), while it is necessary for the rendering of all
templates.

opw-777681
opw-777630
2017-10-25 12:16:53 +02:00
Giang Manh b844f3bfd5 [FIX] calendar: sorting error (P3)
When showing a list in Calendar, it is always sorted at least by
id. If the recordset mixes real and virtual (recurrent) events, this
will blow up as sort() will try to compare the int-typed real event
ids and the string-typed virtual event ids.

Generate a type-compatible id key for both real and virtual events in
order to properly sort.

Closes #20278
2017-10-25 11:33:27 +02:00
Martin Trigaux 8991021dc6 [FIX] survey: use verbs
The placeholders were not easy to understand
2017-10-25 11:12:14 +02:00
amoyaux 1d72dc3e6a [FIX] mrp: traceback BOM button on product template
[self.ids] represents a list of list and product_id
an integer thus the domain definition was not correct.
2017-10-25 10:59:14 +02:00
Martin Trigaux c4ba5adc04 [FIX] utm: use proper Englsih abreviation
ex is French
e.g. should be used
2017-10-25 10:57:59 +02:00
Victor Oliveira da Silva bcb8ef0b60 [FIX] website: fix typo in error message
Closes #20433
2017-10-25 09:42:59 +02:00
Nicolas Martinelli cc37b34f43 [FIX] point_of_sale: fix included price
Complement of 5b50284127

The mentioned commit works well when adding a product, but
- changing the quantity
- changing the customer

won't trigger the fix of the included price.

opw-776530
2017-10-24 17:06:39 +02:00
Martin Trigaux bc84eb2035 [FIX] l10n_multilang: translate country states name
Countries with several official languages often have multiple names for their
states. Allow to translate the state name for such countries.

Some monolingual countries but, yet, with a need of translation of the addresses
such as China or Germany can add the same flag in their respective l10n_* module

Closes #19481
Closes #20259
2017-10-24 17:04:12 +02:00
Josse Colpaert 918dc4e6c4 [FIX] stock: do not merge mts and mto moves together
When we have two moves of the same product and procurement method
different on both, we don't want to merge them, because if a mto and a
mts move are merged together, it is possible to wait for an incoming
that will nerver come as a part the merged move should be taken from
stock
2017-10-24 15:15:01 +02:00
Thibault Delavallée 5a348bb6d1 [FIX] base: usabilifix choose document layout 2017-10-24 12:33:47 +02:00
Martin Trigaux a93c8616cb [I18N] Update v11 translation source terms 2017-10-24 11:19:01 +02:00
Nicolas Martinelli 26c44130fb [FIX] l10n_co: partner without VAT
If the user removes the VAT number of a partner, `len(partner.vat)`
crashes since `partner.vat` is a boolean.

opw-777757
2017-10-24 11:16:19 +02:00
Nicolas Martinelli d72b109b6f [FIX] point_of_sale: image instead of image_medium
The image of the form view is set to be `image_medium`. However, the
method `image_resize_images` which is called during create or write
won't resize the image provided.

Therefore, the `image_medium` is not resized, leadnig to potential
issues if the user uploaded very large images.

We change the view to `image`, so that all images are properly resized.

opw-776943
2017-10-24 11:05:13 +02:00
Nicolas Martinelli 08dfbab137 [FIX] point_of_sale: do not preload image catgories
This is actually not necessary since the image is retrieved thans to
`get_image_url`.

opw-776943
2017-10-24 11:05:13 +02:00
Jérome Maes 7fe7439c32 [FIX] sale_timesheet: generated task should be non assigned 2017-10-24 10:51:56 +02:00
Thibault Delavallée 4cb63567f0 [FIX] mail: fix popup using partner when custome is more user-friendly 2017-10-24 10:26:23 +02:00
Thibault Delavallée 5d963d0c68 [FIX] phone_validation: add missing spaces in help message 2017-10-24 10:26:23 +02:00
Thibault Delavallée 55568164e8 [FIX] project: fix display of project kanban reporting menu
Fixed issues

 * Tasks link redirecting to a Task reporting view not allowed
   to project user; link is not available only for project
   managers;
 * Whole : trigerring the menu that should be displayed only
   for project managers as it is displayed empty otherwise;

This commit is XMO approved.
2017-10-24 10:26:23 +02:00
Goffin Simon 6babbbbbc8 [FIX] stock_account: Anglo Saxon Accounting and Vendor Bills
In 9.0 and 10.0 if anglosaxon accounting is active, creating a vendor
bill should generate the following entry :

Debit:Stock Input
Credit:Payable

But due to this fix: e9d6dcf16f

Debit:Expense
Credit:Payable

This reverts commit e9d6dcf16f to keep the same behavior in 11.0.

opw:777837
2017-10-24 10:09:45 +02:00
Andrew Latham cd5f61df6d [FIX] setup: typo in command line
Sign CLA

Closes #20321
2017-10-23 16:37:27 +02:00
Nicolas Martinelli 148cde0695 [FIX] l10n_ch: typo on data 2017-10-23 16:15:18 +02:00
Lucas Perais (lpe) cf3235e134 [FIX] account: get correct values when switching chart of account
Before this commit, switching chart of accounts (namely from SKR03 to SKR04 in german accounting), "old" values of the res_config_settings were kept, including default taxes.
These default taxes being inexistent in the target chart of account, the installation crashed.

After this commit, the installation succeeds as the wizard responsible for the installation is updated

OPW 777217

closes #20323
2017-10-23 15:59:32 +02:00
Raphael Collet c7d1466996 [FIX] mail: prevent action type "add followers" on a non-mail-thread model (#20386)
OPW 777454
2017-10-23 14:51:32 +02:00
Odoo Translation Bot 1d3a29eb7b [I18N] Update translation terms from Transifex 2017-10-23 11:49:37 +02:00
Richard Mathot b2e7a38d74 [FIX] doc: some changes due to Odoo 11
* Gantt view definitions have been changed
* reports call different templates than Odoo 10.0
* XML-RPC and JSON-RPC examples migrated to Python 3
2017-10-23 11:45:05 +02:00
Géry Debongnie 9898c49754 [FIX] mail: prevent pos tour from sometimes failing
Here is what could (sometimes) happen in community:
- the point of sale tour is started by the runbot
- it loads the '/web' url
- this instantiate the mail client action (init)
- the tour sees that the POS link is in the dom and clicks on it
- the action manager destroys the discuss client action (before its
  start method is called)
- the destroy method from the client action is called, this.$buttons
  is not set, the destroy method causes a traceback
2017-10-23 11:15:11 +02:00
Martin Trigaux 0ad610672b [I18N] remove fuzzy es_DO translations
Forward ported from 9.0
Fuzzy translations were made in the past as a (bad) attempt to reuse
translations of other versions.

Fixes #20371
2017-10-23 10:23:09 +02:00
Richard Mathot f117233565 [FIX] website_sale_delivery: display error when choosed carrier is not available
Also improve display on small screens: text that is too long is
automatically cropped.
2017-10-23 10:13:47 +02:00
Rémi Rahir d70518d04f [FIX] iap: py2 compatible version of previous fix
Applying a proper way to deal with bytestring /byte correspondance in python2/3 respectively.
fixing non retrocompatible code introduced in e9b969b39d
2017-10-20 20:34:16 +02:00
Christophe Simonis 10128fa7e8 [MERGE] forward port branch saas-16 up to dc2a6c6cd2 2017-10-20 19:27:04 +02:00
Olivier Dony dc2a6c6cd2 [FIX] mail: shorten bounce message for sender 2017-10-20 18:40:46 +02:00
Olivier Dony 68bef91d73 [FIX] P3: mail: message parsing must return native strings
There was a leftover explicit conversion to bytestrings during the
parsing of HTML email parts.

This translated into a parse result with `msg_dict['body']` as a `bytes`
instance in Python 3, instead of the expected text type.

Coercing the result of etree.tostring() with UTF-8 encoding to a
native string should preserve the semantics in both Python versions
without this side-effect.

+ simplify another instance of native string use
2017-10-20 18:40:22 +02:00
Rémi Rahir e9b969b39d [FIX[ iap: encoding of Qweb render
The Qweb render method returns a strign encoded in byte.
As we want to dump this into a json string in iap.charge,
we need to decode it properly in UTF-8, before the dump.
This problem appeared in Python3.
2017-10-20 18:02:39 +02:00
Christophe Simonis 5ea0f55d65 [MERGE] forward port branch saas-15 up to bee0c11ef7 2017-10-20 17:57:21 +02:00
rde 3351d2acc0 [FIX] website_sale_stock_options: set max qty only if inventory_availability is always/threshold
Before this commit, the input quantity would have a max qty attribute set even
if the product was not set as check inventory (inventory_availability set to
always or threshold).
  - Set inventory_availability to never in a product
  - Order more than 1 quantity
  - The sale option popup will set input quantity to 1

Now, it will check and force max quantity only for product with threshold or
always as inventory_availability.
2017-10-20 17:37:22 +02:00
Christophe Simonis bee0c11ef7 [MERGE] forward port branch saas-14 up to f3ac68ed29 2017-10-20 17:24:15 +02:00
rde c912596deb [FIX] portal, website_sale: portal label style was in website_sale
Before this commit:
The style of the Optional labels in portal's form was written in website_sale
module.
Problem is portal can be installed without website_sale.

  - Install website module
  - Go to /my/account
  - Every labels are in bold as if they were mandatory

Now:
Portal's optional label's style is in portal module.
2017-10-20 17:15:22 +02:00
Géry Debongnie 635572b49d [FIX] web: properly handle failures in onchanges
With the new views, we mainly focused on making them work.  But we also
need to be able to handle unusual cases, such as some RPC failing.  An
example of such a problem was the following:

- a form view with a one2many with an onchange
- edit mode, change a field in the one2many, click elsewhere
- the onchange triggers, calls the server
- it may happen that the server fails with a ValidationError
- the onchange deferred fails, the line in the one2many is restored to
  the value known by the list renderer, which is the previous value (but
  the new value was applied to the model)
- we now have a 'corrupted' state: clicking on save will send the
  invalid value, even though the UI displays the previous one.

We solve this problem in this commit by making sure that the onchange
deferred returned by the _performOnchange always succeed (or stays
pending).  If the rpc fails, the deferred will succeed with an empty
dictionary.  This means that the list renderer will be updated with the
value from the model.

Note that it may not be intuitive that a failure in the onchange is not
seen as an error from the perspective of the _performOnChange, but I
think that it still makes sense:
- the validation/network errors are not really a concern of the UI. The
  UI just display the values entered by the user.
- if an onchange fails (for example, because of a coding error), we do
  not really want to prevent the user from working.

Also, when the onchange is performed, the initial change was already
applied to the local data.  Rollbacking them would be a more difficult
task.

Note that we also improve the mock server in this commit, to allow
mocking failures.
2017-10-20 17:14:10 +02:00
Géry Debongnie fd65dbaa1f [FIX] web: session.get_file should return a value
The session get_file method should return the value from the
ajax.get_file method, otherwise we lose information (this is necessary
to be able to react properly to the fact that the download was blocked)
2017-10-20 17:14:10 +02:00
Jeremy Kersten 6709118525 [FIX] website: apply padding on dashboard even if no data 2017-10-20 16:51:52 +02:00
Jeremy Kersten e5ff47df58 [FIX] website_sale_wishlist: manage warning in return value
Similar to https://github.com/odoo/odoo/blob/11.0/addons/website_sale/static/src/js/website_sale.js#L173

It is particulary interesing when website_sale_stock return warning.
Until now, the end user had no info about the failed add_to_cart
2017-10-20 16:27:41 +02:00
Christophe Simonis f3ac68ed29 [MERGE] forward port branch 10.0 up to e2532f855f 2017-10-20 16:09:28 +02:00
amoyaux f6c89de81e [FIX] mrp: finished move lines view does not show lot
The stock_move_line view for finished product on MO was
the classic one which shows lot_name and other useless stuff

This commit improve it by using the lot_id instead and a new
view that only contains relevant information for the end user.
2017-10-20 16:06:28 +02:00
amoyaux 41d91e2c96 [FIX] mrp: update MO qty with by_product fail
Update MO qty compute the quantity already processed
but it includes the by_product moves.

This commit add a filter in order to only consider the
move with the final product.
2017-10-20 16:06:28 +02:00
amoyaux 1a09bcc622 [FIX] mrp: Handle by product tracked by SN/lot
Since mrp/stock refactoring by-product tracked
was not handled by the code. The best way to
handle it would be to add a section in the
product produce wizard. However we can't modify
the model in 11.0.

Thus this commit generate a move line for each by-product
but without lot/SN.

! This commit should be revert in future version once
the by product pass through the produce wizard
2017-10-20 16:06:28 +02:00
rde 0589ee8949 [FIX] base: prevent enterprise label to lose style on search
Before this commit, when you were entering search mode en settings view,
enterprise label would lose its style. (even when leaving search mode by
removing search text)

Now, the style remains.
2017-10-20 16:04:55 +02:00
Christophe Simonis e2532f855f [MERGE] forward port branch 9.0 up to 31c1be1fac 2017-10-20 16:02:12 +02:00
rde dd2a619ad5 [FIX] base, web, website: settings - prevent duplicate enterprise labels
Before this commit:
Multiple widgets for the same field on the same view (V11.0 settings) would not
retrieve the correct label but all of them.

Now:
We now retrieve the correct label instead of all of them
2017-10-20 15:58:24 +02:00
rde bdaa3b88e4 [FIX] website: settings-add enterprise label to website_version
Enterprise label was missing on website_version
2017-10-20 15:51:25 +02:00