Commit Graph
113545 Commits
Author SHA1 Message Date
Martin Trigaux 801fb2967a [FIX] utm: fix the fix typo
Look at the commit message of c4ba5adc, not the content
2017-10-26 10:47:46 +02:00
Aaron Bohy 16c90138bd [FIX] web: handle onchange on nested one2manys
Suppose that we have a form view with a one2many field o2m_1,
displayed as a list. The model of o2m_1 contains a one2many field
o2m_2 which isn't displayed in the list view, but which is in the
form view. If an onchange sets the value of o2m_1, e.g. with a
command 0 to create a new record, and that the value of o2m_2 for
this new record is set (e.g. with a command 0 as well), it crashed.
2017-10-26 08:22:00 +02:00
Christophe Simonis 2a1456a29c [FIX] web: _applyChange() should return list of changed fields, even when no onchange are performed 2017-10-25 17:58:01 +02:00
Raphael Collet 446be392ea [FIX] base_import, web: error messages related to data import modules
OPW 777366
2017-10-25 15:44:18 +02:00
Simon Lejeune 46af955328 [FIX] stock: display lot_name in the detailed operations view
If the user selected 'use_create_lots', he should see the text field and
not the many2one. This improves the usability of the barcode scanning in
a receipt, where the lots were not displayed (as it only set the
lot_name).
2017-10-25 15:17:57 +02:00
Christophe Simonis 693f8dc68a [MERGE] forward port branch saas-16 up to 7bfde6e05d 2017-10-25 14:57:24 +02:00
Christophe Simonis 7bfde6e05d [MERGE] forward port branch saas-15 up to d516d39948 2017-10-25 14:20:51 +02:00
Géry Debongnie c739bcf0d1 [FIX] web: update column aggregate when field changes (list)
A list view can display the sum of all values for one field, using the
'sum' attribute.  Before this commit, this sum was not updated whenever
a field was changed (but it worked when adding a line).
2017-10-25 14:13:14 +02:00
Christophe Simonis d516d39948 [MERGE] forward port branch saas-14 up to f86141aac2 2017-10-25 13:41:16 +02:00
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
Christophe Simonis f86141aac2 [MERGE] forward port branch 10.0 up to 598ac60a77 2017-10-25 12:52:00 +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
Richard Mathot 598ac60a77 [FIX] account_voucher: fix SyntaxError introduced by e69fb3f82d 2017-10-25 12:15:53 +02:00
qdp-odoo e69fb3f82d [FIX] account_voucher: fix missing payment_id in "Pay Directly" voucher
Create an accout.voucher with "Pay Directly" as payment.
    You get something like:

                D  |  C
    --------------------
    Expenses:   x  |
    Cash:          |  x

    However, the expense line doesn't appear in the reconciliation widget
    because the payment_id is missing in the account.move.line and then, doesn't match
    the search domain for the reconciliation.

    To solve it, a payment_id is created for this line in case of "Pay Directly" payment.

    -opw: 775167
2017-10-25 12:04:38 +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
Christophe Simonis ea9b574ac6 [MERGE] forward port branch 9.0 up to 6366150484 2017-10-25 11:28:25 +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
Nicolas Martinelli afccad3578 [FIX] stock: consumable in inventory valuation
Hide consumable products from the inventory valuation view since they
are skipped when generating accounting entries.
2017-10-25 10:52:09 +02:00
Denis Vermylen 33a04354eb [FIX] product,sale: allow negative discounts in pricelist advanced formula
Between v9.0 and v10.0 a pricelist refactoring made it so negative
discounts no longer worked correctly. They should always be
included in the unit price of the product (not to be displayed as a
negative discount even if the option to display the discount is
enabled).

This commit also corrects currency conversion issues when basing the
price on another pricelist with a differnt currency, and when making
the sales order in a company with a different currency than the
pricelists currency.
2017-10-25 10:35:12 +02:00
amoyaux b7d2bb3a8b [FIX] sale: impossible to validate SO
This reverts commit a5c82b0c57.
Since can_be_expense is only available when hr_expense
2017-10-25 10:31:39 +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 6366150484 [FIX] point_of_sale: apply fiscal position
Commit https://github.com/odoo/odoo/commit/5afb5ecd04cf49be6bedb655b187b19a65e1e02d#diff-1c14accbe350f7a177b3e81e5846861bL1363
removed the call to `_map_tax_fiscal_position`. Fiscal positions are not
applied anymore...

Instead of applying the fiscal position in the `compute_all` method as
it used to be, we apply it just before the call. This mimics the
behavior of SO/PO/Invoices, where the taxes are changed directly on the
order line.
2017-10-25 09:37:32 +02:00
Christophe Matthieu 9d7f9cc38c [FIX] calendar: don't display the created or updated record
If the user change a filtered field, the record is not always displayed.
Wrong domain construction. The automatic filter must be use to filter and
remove items from the view for the unselected and not display the selected.
2017-10-24 17:26:48 +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
Géry Debongnie 616eedb7e4 [FIX] web: allow onchange to modify origin field
With this commit, we allow an onchange coming from a field to modify the
same field.  This was not working for field widgets derived from an
input field.
2017-10-24 15:39:14 +02:00
Géry Debongnie d58d6e270f [FIX] web: propagate view context in all x2m operations
It could happen in some cases that a rpc coming from a view was not made
with the context of the view (and from the action).  For example,

- enable "Lots & Serial Numbers" in the inventory settings
- create a stockable product tracked by lot
- go to the inventory dashboard, on the "receipts" card click on the
  three dots and then on "planned transfer"
this link forces the context key "planned_transfer" in the action
https://github.com/odoo/odoo/blob/11.0/addons/stock/views/stock_picking_views.xml#L725
- now add a stock move to move some quantity of the product you just
  created
- see that no button appears on the one2many list
- save
- see that a button appears on the one2many list

This is an issue because the read on the o2m at the end is made with the
wrong context.  The reason is that when we fetch x2m, we create a new
datapoint of type 'list' which did not reuse the context of its parent.
2017-10-24 15:38:55 +02:00
Goffin Simon d6d901c7bc [FIX] stock: updating quantity on hand changes the source name of a product
When a stock.inventory.line was created, it changed the src translation of the
product if the user was not in english US.

opw:776528
2017-10-24 15:30:01 +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
amoyaux a5c82b0c57 [FIX] sale_stock: delivered quantity blocked by expense policy
Use case to reproduce
- Set a product to be expensed
- set the expense_policy to something else than no
- Do a delivery order with a picking
- Validate the picking
-> Delivered quantity to 0 and impossible to create an invoice
if the invoice_policy is delivered_quantity

It happens due to this commit 48ea59d46e
What does it do:
- The move could be generated by an expense.
- If the move has 'no' as expense policy thus we won't add it in the invoice
Problem we can't guess if the move come from an expense or not (limitation).

This commit increments the delivered quanity if the product can
not be expense anymore

opw-777139
2017-10-24 14:34:36 +02:00
Khoi Nguyen a0fad8ba6d [FIX] web: show tooltips on status bar widgets
The 'new views' refactoring introduced the usage of the "disabled"
attribute in addition to the associated bootstrap class. As a
side-effect, tooltips are never rendered when the mouse is on a disabled
button, since disabled elements do not fire mouse events.

In particular, no tooltip is shown when hovering over a disabled button
of the statusbar in debug mode. This can be observed when opening the
form view of a Manufacturing Order.

We fix this issue by requiring that disabled buttons in a status bar
never be the target of mouse events, triggering them on their
respective parent elements instead.
2017-10-24 14:03:12 +02:00
Christophe Simonis 2130478cda [MERGE] forward port branch saas-15 up to 71f6e9c6ab 2017-10-24 14:01:58 +02:00
Adrian Torres 38f1875e0b [FIX] base_action_rule: ignore uninstalled models
Before this commit, creating a base_action_rule with model X from module
A and then uninstalling module A would make the database crash because
the algorithm would look for an uninstalled model during the Registry
reinitialization.

i.e. Install project and base_action_rule, create a base_action_rule
depending on model project.task, try to uninstall Project -> BOOM!

This is fixed by checking if the model obtained is None, in which case
we log a warning (for cleanup) and skip to the next iteration (continue)

opw-777301
2017-10-24 13:36:41 +02:00
Leonardo Donelli 37003c89ef [FIX] sql_db: typo in exception message
Closes #20315
2017-10-24 13:31:29 +02:00
Christophe Simonis 71f6e9c6ab [MERGE] forward port branch saas-14 up to 9aa5f7e3d9 2017-10-24 12:38:42 +02:00
Odoo Translation Bot b26e0b9292 [I18N] Update translation terms from Transifex 2017-10-24 12:38:17 +02:00
Thibault Delavallée 5a348bb6d1 [FIX] base: usabilifix choose document layout 2017-10-24 12:33:47 +02:00
Christophe Simonis 9aa5f7e3d9 [MERGE] forward port branch 10.0 up to 82f00af29c 2017-10-24 11:58:33 +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
Christophe Simonis 82f00af29c [MERGE] forward port branch 9.0 up to 7bd8f9a5b2 2017-10-24 11:13:46 +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
qsm-odoo 7bd8f9a5b2 [FIX] web_editor: replacing selected text in a hierarchy on Firefox
When following these steps on Firefox:
- Select all text in a bold link (triple click)
- Type some text

The typed text did not replace the selected text but was instead put
at the front of it.
2017-10-24 10:50:18 +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