Commit Graph
107816 Commits
Author SHA1 Message Date
Martin Trigaux aaa2000c01 [FIX] doc: correct markdown for CLA signature
Code part was not rendered
Probably introduced at
https://github.com/blog/2333-a-formal-spec-for-github-flavored-markdown
2017-03-31 09:38:06 +02:00
Nicolas Lempereur 4cfd03d056 [FIX] calendar: no add Contact when no useContacts
On a form view the attribute `use_contacts` will:

- when set to True: enable us to add contacts which will be available on
  any time in the calendar,

- when unset: the list of contact is only the contact currently beeing
  seen directly in the calendar.

The feature for adding contact is thus not necessary when
`use_contacts` is unset. But it still appeared without having any effect
(which is unexpected).

This commit remove the contact adding feature when it has no necessity.

opw-715932
2017-03-31 09:24:51 +02:00
Nicolas Martinelli bbb3bd876a [FIX] account_extra_reports: Partner Ledger report
- Activate multi-currency
- Create an invoice in a currency different from the company currency
- Go to Accounting > Reporting > Management > Partner Ledger
- Activate the option "With Currency"

The report printed doesn't contain the amount currency.

opw-726440
2017-03-30 15:50:45 +02:00
Nicolas Martinelli cc6a5110ee [FIX] mrp_repair: description language
The description should be in the partner's language, as in a SO.

opw-725060
2017-03-30 14:46:32 +02:00
Goffin Simon b8ce0db8e1 [FIX] website_quote: translations for website_description
When creating a SO with a quote template(QT), the website_description
of the QT is transfered with the lang of the partner to the field
website_description of sale.order model(in onchange_template_id on
sale.order model). But when changing the partner_id on the SO, the
lang of the new user was taken into account.

opw:697893
2017-03-30 14:42:52 +02:00
Nicolas Martinelli f60c18d832 [FIX] website_sale: product detail scroll
On mobile view, in the product detail page, the image of the product
fills the largest part of the screen. However, when the user tries to
scroll by clicking on the image, it zooms on the image instead of
actually scrolling. This is confusing for the users who report that they
cannot buy anything on the webshop.

A solution is to simply deactivate the zoom on mobile.

opw-704026
2017-03-30 11:15:55 +02:00
Nicolas Martinelli 7bbbc6f12d [FIX] account: decimal precision
Missing decimal precisions.

opw-726110
2017-03-30 10:32:07 +02:00
Goffin Simon 50591ac0b2 [FIX] stock: Customer address in deliveryslip
When there is no move line linked to the picking, the customer address must
be the address of the partner linked to the stock.pick
Backport of this commit: 79d8849

opw:725721
2017-03-29 22:59:11 +02:00
Nicolas Lempereur 105243afa6 [FIX] web_editor: fix select and modify video
There was an issue when selecting a video tag:

- a tag inside the video tag would be selected instead of the video tag
  so video could not be removed or modified (modifying it would add a
  video or image inside the video itself and so on).

- the selection was not conveyed to the editor so it would be lost
  consequently due to some code who restored it to what was saved on
  the editor.

This fix solves this by changing how the video tag was selected and
saving the selected range on the editor.

opw-724701
2017-03-29 16:35:39 +02:00
AZER c00a131309 [FIX] point_of_sale: add missing sudo
Main journal is not accessible for user from different company,
a security error is raised during the default get

A pos manager could not create a new pos configuration without create rights on
ir.sequence (only admin has by default)

Closes #16063
2017-03-29 16:08:09 +02:00
AZER 74f46a3980 [CLA] signature for monami7001
Done at #16063
2017-03-29 16:08:09 +02:00
Martin Trigaux 1b5dcf29f5 [FIX] report: remove duplicated dict key
Bad forward port, added at 2c90fad and fe7b3c66
Replaces and closes #16130
2017-03-29 15:39:14 +02:00
Nicolas Martinelli 14989806a6 [FIX] event: email schedule
- In "Events > Configuration", set "Email Scheduling" to "No automated
  emails"
- Create an event
- Register an attendee

An email is sent.

opw-724787
2017-03-29 13:46:24 +02:00
Goffin Simon 0ff9af64ef [FIX] hr_expense: Creation of entries from several expense lines
When posting journal entries for an hr.expense.sheet with several expense lines
(by clicking on the button "Post journal entries"), all the account move lines
created for the same sheet must be linked to the same account move because
the model hr.expense.sheet has just a field "account_move_id" to access all the entries
(by clicking on button "Accounting Entries")

This commit reverts f97eb0ac2b

opw:715523,709930,725798,716239
2017-03-29 13:11:25 +02:00
Nicolas Martinelli 989d7068e9 [FIX] account_asset: multi-currency depreciation
- Create an asset category with a journal of type "Purchase" or
  "Miscellaneous".
- Create an asset in a currency different from the company currency
- Validate and post the first entry.

The error "The amount expressed in the secondary currency must be
positive..." is raised.

The sign is determined by the journal type. However, in case of an asset
depreciation or a deferred revenue, the amount is always positive. The
amount is negative in case of an asset created from a refund invoice
(see commit c844534f8a).

There is actually no need of a `sign` variable. In case amount is
positive:
- first move is a credit, therefore `amount_currency` is negative
- second move is a debit, therefore `amount_currency` is positive

In case amoutn is negative:
- first move is a debit, therefore `amount_currency` is positive
- second move is a credit, therefore `amount_currency` is negative

opw-725358
2017-03-29 12:57:52 +02:00
Joren Van Onder 7f260ab517 [FIX] point_of_sale: round product.product price analogous to backend
A rounding issue was resolved in
ee33593351. It however introduced
another issue.

Rounding functions (both round_precision in web.utils and float_round
in openerp.tools) are not perfect due to IEEE floating point
limitations. However both should produce the same output given the
same input. An example: rounding 13.95 to 2 digits yields
13.950000000000001.

The additional rounding introduced in
ee33593351 on price lead to issues in
certain cases. One example occurs when applying a 90% discount on a
product costing 13.95. The POS will do the following:

> 13.950000000000001 * 0.09999999999999998
1.3949999999999998
> round_pr(1.3949999999999998, .01)
1.4000000000000001

whereas the backend will do (as eg. in sale.order.line)

>>> 13.95 * 0.09999999999999998
1.3949999999999996
>>> round(1.3949999999999996, 2)
1.3900000000000001

Causing a difference of 0.01.

The core of the issue is that in the backend 13.95 is rounded
differently. When a Float gets written to the database doesn't just
pass through the regular float_round. It passes through
_symbol_set_float which truncates characters exceeding the precision.

This implements the same approach in the POS.

opw-715506
Closes #16119
2017-03-29 10:45:43 +02:00
qsm-odoo 2b81636e39 [FIX] web: fix export dialog design on IE
As the export dialog has always lots of content, the design was made
so that it always takes 100% of the viewport height. This allowed to
design the dialog content so that the fields panels do not overflow
the modal and are individually scrollable and so that the buttons are
vertically centered.

The problem is that this was not properly working on IE. Indeed, the
`.modal-body` element overflowed the `.modal-content` one. The solution
is in two parts:

 1) IE does not properly distribute heights when combining flex elements
    with max-height containers. The `.modal-content` has to be forced
    to `height: 100%;` for this to work. This is done in javascript as
    there is no way to detect `.modal-content` elements specific to
    export dialogs.

 2) IE does not properly render `flex: 1 0 0;` elements. The rule is
    supposed to tell the browser "render the element as if it was of
    dimension 0 and was able to grow to fill its parent container".
    Fortunatly, a workaround with `flex: 1 1 auto;` combined with
    `min-height: 0;` seems to achieve the same behavior for this
    case (by telling "render the element by shrinking or growing
    it to fill its parent container, without caring of its minimum
    size").

opw-725391

Cherry-pick of odoo/enterprise@dd059f0af7
2017-03-28 17:37:33 +02:00
qsm-odoo 72fa3e8bda [FIX] web: properly display tooltips with much data
When there is a lot of texts to display in a tooltip, it will overflow
the viewport vertically as the max-width of the tooltip is set at 200px
(bootstrap default). This commit increases the max-width to the
viewport full-width.

opw-725804
2017-03-28 16:45:35 +02:00
Nicolas Martinelli a4bc731f04 [FIX] mrp_repair: repair order
- Have a contact in language A
- Be connected in language B
- Go to repair and create a repair order for contact with language A

When printing repair order report (quotation), it is printed in language
B.

opw-725060
2017-03-28 16:34:24 +02:00
Christophe Simonis c37f1f6cb9 [MERGE] forward port branch saas-11 up to 8bab7aebd6 2017-03-28 16:17:09 +02:00
Christophe Simonis 8bab7aebd6 [MERGE] forward port branch 9.0 up to e876becada 2017-03-28 16:14:34 +02:00
Martin Trigaux 26df9e8900 [FIX] doc: escape correctly code
Was rendered 'UNKNOWN NODE title_reference'

Closes #16064
2017-03-28 16:04:54 +02:00
Christophe Simonis e876becada [MERGE] forward port branch saas-6 up to 7bcfa2b52a 2017-03-28 16:01:05 +02:00
Sébastien Le Ray 90a5e7f38b [CLA] signature for beuss
Done at #16065
2017-03-28 15:57:47 +02:00
Christophe Simonis 7bcfa2b52a [MERGE] forward port branch 8.0 up to 5fc3979262 2017-03-28 15:22:58 +02:00
Jairo Llopis 5fc3979262 [FIX] web: Avoid double-fetching many2many tags in list views
Before this patch, #15920 was happening. The problem was that calling `render_cell` produced a call to [`record.set(column.id + '__display', value)`][1], which triggers the `change` event, which called `render_record` the first time, which called again `render_cell` and produced the 2nd data fetch.

After this patch, `render_record` is only called if there is some place where to put the result, which does not happen in those situations.

There is still the problem that there is one call to name_get for each many2many widget found in a list view (instead of one per full view rendering), but at least they are not two calls!

[1]: https://github.com/odoo/odoo/blob/5d17749ff47c02294d5ff2ae56bbcef9d082562e/addons/web/static/src/js/view_list.js#L1125
2017-03-28 15:12:56 +02:00
Wolfgang Taferner 8e7f34c323 [FIX] web: domains might be undefined, so we check
Introduced recently in b2d66d0c14

opw-726354
Closes #16068
2017-03-28 15:02:47 +02:00
Christophe Simonis 27496730d8 [MERGE] forward port branch saas-11 up to c2569b9df1 2017-03-28 14:51:14 +02:00
Nicolas Martinelli 0dbc8b0e58 [FIX] hr_holidays: compute number of days
- Create a user with only "Employee" as only right
- Create a leave

An access error occurs.

opw-726049
2017-03-28 14:41:36 +02:00
Nicolas Martinelli 59a6397867 [FIX] stock: sort moves to do
- Activate the MTO route on SO lines
- Activate the route "Buy" on a Product A without quantity on hand, add
  a supplier
- Create a SO with 2 lines. First line is Product A, second line is
  Product A with route MTO
- Confirm the SO, run the procurement if necessary
- Confirm the PO, receive the products
- On the picking generated from the SO, you should have one line
  "Waiting Availability" (the line not MTO) and one line "Available"
  (the line MTO).
- Click "Recheck Availability". One reserved quant from line 2 is moved
  to line 1.

A trick is to assign first the move with ancestors, so we don't "steal"
the reservation on the other move.

Fixes #15950
opw-725373
2017-03-28 13:30:29 +02:00
Christophe Simonis c2569b9df1 [MERGE] forward port branch 9.0 up to 30dda3faee 2017-03-28 13:21:24 +02:00
Christophe Simonis 30dda3faee [MERGE] forward port branch saas-6 up to 8fd0f8664b 2017-03-28 13:16:16 +02:00
Goffin Simon 099081ae79 [FIX] hr_maintenance: Field owner_user_id not used in form view
In maintenance.equipment form view, the field owner_user_id has been replaced
by equipment_assign_to, employee_id and department_id. But in the kanban view,
this field was still displayed even though the image was replaced by the image
of the employee. So now, the kanban view follows the same behavior as the form view.

opw:724378
2017-03-28 13:09:05 +02:00
Martin Trigaux e25dad4fed [I18N] point_of_sale: missing source terms reference 2017-03-28 12:49:01 +02:00
qdp-odoo e2a239f4a4 [FIX] account: fix test.
This was broken since commit 925440b7a0 that was specifically restricting the closing of a FY if any unposted move was left in the system.
2017-03-28 11:59:00 +02:00
qdp-odoo 925440b7a0 [FIX] account: restrict fiscalyear closing if there are still unposted entries 2017-03-28 10:49:32 +02:00
Nicolas Martinelli c9545bda30 [FIX] purchase: invoice status
- Create a PO with a product "Control Purchase Bills" set to "On
  received quantities".
- Validate the PO.

The invoice status is "Waiting Bills", while it should be "Bills
Received".

opw-726245
2017-03-28 10:30:06 +02:00
Jeremy Kersten 7c95c14c06 [FIX] website_sale: apply _fix_tax_included_price similary to sale module
If you had a price with a tax included and the user has fiscal position.
The tax included in the unit price was not substract before the mapping.

Eg: product $115 with tin 15% included in price.
Once in the cart with a fiscal position intracom (0% tva), the unit price
should be 100$ and not 115$.

This commit closes #16022
2017-03-28 09:35:38 +02:00
Serpent Consulting Services Pvt Ltd 6a64d2dd8f [FIX] hr_attendance: fix singleton error
This commit closes #15805
2017-03-28 09:35:38 +02:00
Nicolas Martinelli 83a2947d98 [FIX] l10n_be: incorrect tax types
opw-726242
2017-03-28 08:38:26 +02:00
Nicolas Martinelli ee8fbcbeae [FIX] mrp: same unique SN
- Create a product with unique SN, create a BOM for this product
- Create a MO to produce 2 units
- Produce the first unit, create a lot number
- Produce the second unit, use the previously created lot number

Nothing prevents the user to do this. However, the user won't be able to
set the MO as "Done", but it is better to prevent the issue as soon as
possible.

opw-724944
2017-03-27 18:13:26 +02:00
Pierre Masereel 7a039c730d [FIX] stock: multiple global push rules with same origin
When you have multiplle global push rules with the same source location,
a traceback is raised because the '_apply' method of
"stock.location.path" is called with more than one record, and doesn't
handle multiple record.

To fix this, we limit the number of records returned when a global rule
is searched to 1 (as for other 'search' of push rules in this file).

This bug has been introduced during migration in rev: https://github.com/odoo/odoo/commit/cb486d7eb6353a66eea2cb3610141b4f3a778791

opw-725874
2017-03-27 17:36:25 +02:00
Raphael Collet 48c773de1d [FIX] base: do not create field x_name when importing a model definition (#16039) 2017-03-27 17:28:23 +02:00
Martin Geubelle 3d0db90dae [FIX] web_kanban: do no read something you already know
When the groups are loaded in the kanban view, a `read` is done on the
relation model to load extra fields.

This `read` was done regardless if there really were extra fields to
read.

This is a priori not a big issue, except if the user has no read
access to the relation model and can only perform a `name_get`.
2017-03-27 16:28:46 +02:00
Olivier Colson 897a89f52d [FIX] account : use default company in demo data
With multiple companies defined, ensure consistency in demo data in case a localization reusing the ones defined in account module is installed. Before that, the demo data used several hardcoded values to reference the company, but some models relied on the default company, which lead to crash when the active company was not the one hardcoded in demo data and such a new localization got installed.
2017-03-27 15:39:11 +02:00
Alexis de Lattre 35175a31ee [FIX] Open bank statement tree view from journal dashboard 2017-03-27 15:38:06 +02:00
Martin Trigaux 93a9da54bd [I18N] l10n_ch: add German translations 2017-03-27 15:27:45 +02:00
Pierre Masereel 8fd0f8664b [FIX] theme_default: full width in mobile
When a theme is customized to be 'boxed', the website is not full width
in mobile, and there is an horizontal scrolling.

To fix this issue, we removed only set the width of the "wrapwrap" div
to 85% when the screen is bigger than a phone.
2017-03-27 14:22:00 +02:00
Goffin Simon a3b70c5f70 [FIX] account_check_printing: Print Checks
When clicking on button "Print Checks" on "account.payment", if the
check is not printed, the state of the "account.payment" doesn't have
to be change in state "Sent". Now the state is changed in function
do_print_checks which is overwritten in repository enterprise.

opw:725626
2017-03-27 14:20:08 +02:00
Laurent Smet 3fa807397b [FIX] purchase: missing UOM digits
In Sale order decimal accuracy works well as expected for Order
quantity, Delivered Quantity and Invoiced Quantity BUT in PO there is
issue to show decimal accuracy into the "Received Quantity" and "Billed
Quantity".

opw-726110
2017-03-27 13:44:12 +02:00