Commit Graph
138843 Commits
Author SHA1 Message Date
Kishan Gajjar 17dbdb62fe [FIX] website_mass_mailing: close popup after successful subscription
closes odoo/odoo#59153

X-original-commit: 548e45b9b7eea6c395c0e6959bec5b6418239ced
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-05 17:00:59 +00:00
qsm-odoo 2e767ffefa [FIX] website: improve menu loading effect
Long story short: that menu loading effect was introduced with version
12.0 for a technical reason: allow menu items to collapse into a
dropdown when there are too many. For that, during loading their height
is forced to 0 and they are hidden so that they do not make the header
grow when going on multiple lines.

Since 13.0, the lazy loading made this effect to be too delayed... but
fixing that would make another flickering appear due to the logo image
loading. This thus cannot be fixed at the moment.

However, since 14.0 there are several menu templates and some make the
effect look really ugly. Like the vertical header which has a tiny
empty header which then grow with the menu items on loading. To mitigate
the effect, this commit replaces the "height: 0" trick by forcing the
menu items on one line during loading. They however still stay hidden
during this time to avoid the logo menu flickering, for now.

Part of https://github.com/odoo/odoo/pull/59136

closes odoo/odoo#59148

X-original-commit: 1edf40e76be4a4595849c4c9dab692984e372c46
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-05 16:27:48 +00:00
qsm-odoo e8ed7e6880 [FIX] website: prevent button to flicker in navbar
The navbar may now have static content which can be on the right of the
menu items. Like for the default navbar which has a button on the right.
When they are a lot of menu items, the static content is shrinked...
before the auto-hide extra menus feature is done. This flickering can
be reduced by forcing the navbar buttons to stay on one line.

Part of https://github.com/odoo/odoo/pull/59136

X-original-commit: 5c9d28ac9a1307e5786f0909d5135e82f420274d
2020-10-05 16:27:48 +00:00
Arnold Moyaux 012e4c3b31 [FIX] product: missing supplierinfo fields on view
commit ca3e898481 introduce an editable view for vendor
pricelist on product variant and template.

However this view is missing product_name and product_code that are
editable field in the form view.

This commit readd them.

Fix #59099

closes odoo/odoo#59132

X-original-commit: 0e1447b745f293bfee61511d3a0895a39ed25d8c
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2020-10-05 14:58:36 +00:00
Antoine Prieels 9bb9be2a00 [FIX] adyen_platforms: Fixes following the review
closes odoo/odoo#59122

X-original-commit: e9a075b996886851b3e5134d996db36376a68964
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
Signed-off-by: Antoine Prieëls <aprieels@users.noreply.github.com>
2020-10-05 14:11:25 +00:00
Laurent Smet fc1fbd3fcb [FIX] account: Fix traceback when opening auto entries with multilines
Introduced by:
https://github.com/odoo/odoo/commit/f9ef2c8cd980ecb9eee22d4cc43d5291953471ef

`self.id` is making an `ensure_one` raising a traceback when trying to open the wizard with more than one selected line.

closes odoo/odoo#59088

X-original-commit: 587c1d0f9bddd7bcc3d8d165d6d3073387dfe73f
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-10-05 10:58:38 +00:00
Samuel Degueldre 5d67cdc822 [FIX] web_editor: fix background-image urls becoming absolute on drop
With the recent addition of the parallax option on all snippets,
background-image urls were being converted from relative to absolute on
snippet-drop. This was caused by trying to read the background-image's
url and setting it back onto the target, but there is no way to reliably
read a background-image url in relative form, so it was returned in
absolute form and then written back to the element as is.

This commit fixes that by always converting the absolute URL to relative
when they are on the same origin as the database.

task-2312878

closes odoo/odoo#59113

X-original-commit: 7558dcce791f707e3f3470835133f91ec7ff074f
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-05 13:25:44 +00:00
qsm-odoo 6c3131d4be [FIX] website: always show border radius config for cards
The border radius configuration is available on elements whose
background color or border is set. For cards, it should always be
available since the background color option is different there and there
is no way to remove the color entirely anyway.

closes odoo/odoo#59089

X-original-commit: 2d860cdddf29b9fbd1a5401082c9f743028d2fb5
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-05 10:59:00 +00:00
nie 2db7d48d12 [FIX] point_of_sale: unable to close open session with deleted journal
Steps to reproduce the bug:
- Create POS (P)
- Create journal (J) and link it to (P)
- Open a new session in (P)
- Exit the session without closing it
- Delete (J)

Bug:
You cannot close the session nor assign a new journal to the POS.

opw:2347169

closes odoo/odoo#59097

X-original-commit: 636f1358e72e65a3210c95c60d1703c9cbd914dc
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Signed-off-by: backspac <backspac@users.noreply.github.com>
2020-10-05 11:27:30 +00:00
Martin Trigaux 2683184aa6 [FIX] *: fix all the typos
And other reported English mistakes in source string
Courtesy of Transifex translators

And remove leftover from gengo

closes odoo/odoo#59022

X-original-commit: 26efc84c5cac47a2cc83d7b084f8b71528fec6c7
Related: odoo/enterprise#13781
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-10-05 09:36:34 +00:00
Cyril VINH-TUNG ea05ced56b [CLA] EasyPME signs Odoo CCLA
closes odoo/odoo#59081

X-original-commit: ea31b502b5df8550357bb7f63580c2ca76849cc5
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-10-05 09:23:42 +00:00
Bruno Boi e654b32bc1 [IMP] web: use user's decimal separator for numeric fields
Until now, the numpad decimal key was not properly handled for some
keyboard layouts.

This commit will ensure that when this key will get pressed inside a
numeric field, the user's display language decimal separator will get inserted.

closes odoo/odoo#56962

Taskid: 1913999
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2020-10-05 08:21:00 +00:00
David Beguin 574154eb47 [FIX] survey: redirect on login page on survey start if not logged in.
Before this commit, when sharing a survey 'Login required' to a non logged in
user, the redirection was made to the home page.
The reason is: when the survey is not started yet, no user input is already
created for this survey and this user. So if no user_input has been created,
yet, that means that the user has never started the survey before and user
need first to login before continuing.

After this commit, we redirect to the loggin page.

Task ID: 2246430

closes odoo/odoo#58965

X-original-commit: a309d889ddf6e03a6701e921258cfa9338800fbb
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Signed-off-by: David Beguin <dbeguin@users.noreply.github.com>
2020-10-02 09:54:10 +00:00
nie e27dc8a1f7 [FIX] website_sale_stock: float precision issue
Steps to reproduce the bug:
- Create a product with 123.1 units on hand
- Click the eCommerce tab
- In Availability, choose "Show inventory on website and prevent sales if not enough stock"
- Save
- Go to Website

Bug:
123.10000000000001 is displayed instead of 123.1

opw:2348216

closes odoo/odoo#59020

X-original-commit: 27ab9dcfbb0c8b0400494eda37eea0fc28940524
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-10-02 15:35:21 +00:00
Martin Trigaux 097de9be62 [FIX] doc: update version
This commit lands in master, the version switcher was displayed as
"14.0" instead of "master" when published to
https://www.odoo.com/documentation/master

closes odoo/odoo#58816

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-09-29 13:31:53 +00:00
Samuel Degueldre e5030dfb8a [FIX] website_sale: fix ribbon color-preview in dropdown
The display of the content of we-button was changed at some point from
flex to block, this caused the width and height property of the color
preview for ribbons to no longer have any effect. This commit fixes that
by making the color-previews use the inline-block display mode. It also
makes the preview round so as to be consistent with color-pickers, and
aligns in in the middle so that it doesn't look off.

closes odoo/odoo#58649

X-original-commit: 0c4f2fd9b2039d11f4245f54c5745543b48e8365
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-09-28 11:32:00 +00:00
Simon Genin (ges) 2cb2e9c2a2 [FIX] web: reference field calls name_create
An older commit (50bf8309) had refactor part of the basic field _applyX2ManyOperations.
During this refactor, the reference field was forgotten to be included
in a condition that made the field no longer do the quick create behavior.
The name_create function in the backend was no longer called.

Adds a test for the reference field checking the call to the name_create
function and fixes the problem.

Task id 2322048

closes odoo/odoo#59044

X-original-commit: 1400b0b9f46a86254c166b422a0b23ed3b3c7a24
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-10-03 11:08:35 +00:00
Xavier-Do 71549030c7 [FIX] core: cache consistency of one2many field with computed inverse
Consider a one2many field with a corresponding many2one field that is
computed.  After modifying the many2one field's dependencies, the cached
value of the one2many field is inconsistent until the many2one field has
been recomputed.  Therefore, one has to force the computation of the
many2one field before accessing the cached value of the one2many field.

closes odoo/odoo#59034

X-original-commit: b9201ebdd65eaabab9257cf97c58410681783fa6
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2020-10-02 17:20:10 +00:00
Paul Morelle 0c7d16963b [IMP] auth_signup: avoid disabled users to fail an installation
When a module creates a disabled user during its installation or upgrade
(e.g. demo data), the UserError "You cannot perform this action on an
archived user" breaks the whole installation process.

We don't care if the mail cannot be sent for users created by an
installation, so let's just skip the whole function if we are installing
a module.

closes odoo/odoo#59036

X-original-commit: 78e22584c76c9fecbc22ab3604771fdce5f2094f
Signed-off-by: Paul Morelle <madprog@users.noreply.github.com>
2020-10-02 17:50:16 +00:00
Sébastien Theys 0b1ff86f24 [FIX] mail, im_livechat: consider all init channels as pinned
task-2347732

closes odoo/odoo#59028

X-original-commit: f1ac4bb61d1bc02c4b69dc31a2869fbd15852514
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-10-02 16:24:18 +00:00
Sébastien Theys aa837a47a3 [FIX] mail: disable initial scroll position for chatter
task-2350534

closes odoo/odoo#59024

X-original-commit: 4db7ecd836525357f408359e000a12880a5eab4a
Related: odoo/enterprise#13782
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-10-02 16:04:04 +00:00
David Beguin 851e68ef40 [FIX-IMP] survey: add check on master tab
As survey session only works correctly when current tab is the master tab
on the bus, an error message is shown to user when this is not the case.

The user should close all other tabs on the same hostname before taking
the survey.

Task ID: 2345468

closes odoo/odoo#58989

X-original-commit: d5a1c104278e942f7fe332457c622a51dd647cfc
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-10-02 12:12:07 +00:00
Jorge Pinna Puissant d27b07e565 [FIX] kanban: adding context when editing column
Before this commit, when editing a column in a kanban view, in project
for instance, the translations weren't loaded.

Now, the translations are correctly loaded.

opw-2340125

closes odoo/odoo#58984

X-original-commit: e95ed1253817beccb76d1fbd55b1318b3d65cfe5
Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
2020-10-02 11:35:26 +00:00
Richard Mathot df14f6aef8 [FIX] doc: clarify "supported browsers"
closes odoo/odoo#58976

X-original-commit: 10fb7f0c9f9fc4e73dd75060055693e1745bd2ae
Signed-off-by: Richard Mathot (rim) <rim@openerp.com>
2020-10-02 10:54:23 +00:00
Lucas Perais (lpe) 9076c0190c [FIX] web: action_manager_tests: concurrency doAction: relax rpc assert
In general, the last actionManager's operation has priority over hanging previous ones.

This means that the order of the  RPC's done by the actionManager is deterministic.
i.e. load_action, load_views
However, when testing the concurrency, some RPC of an hanging actionManager operation
(in this case a switchView to a form triggers a 'read'), may be fired anyway. Those are superfluous
but irrelevant as long as the last displayed item is the one last asked by the user.

This commit fixes the test 'execute a new action while switching to another controller' to not be bothered
with an irrelevant controller's RPC messing with the orders of RPC.
This is admittedly brutal, but justified with the current implementation of actionManager.

closes odoo/odoo#58983

X-original-commit: 4344d50a74b04ffed7a7113e8af2b8ad6800693e
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2020-10-02 11:21:45 +00:00
Xavier Dubuc 78cdf8089b [IMP] mail: move odoobot avatar logic in partner model
task-2348684

closes odoo/odoo#58969

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-10-02 10:43:47 +00:00
Goaman ad2f0eff5e [FIX] website: load website.utils only once
When in `debug=tests` and in unidentified moments in `debug=assets`,
there is two loading of website.utils which was throwing an error.

closes odoo/odoo#58861

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2020-10-02 08:52:41 +00:00
Goaman 55f10ac9a0 [IMP] web_editor: add assets for jabberwock editor
This commit lays the groundwork for the new editor by adding empty files to the assets in
order to change them later on. The new editor is not stable enough to be merged right
now, but delaying it to 15.0 would be problematic as the current editor has many bugs that
we are unable to fix because of how summernote interacts with browser-dependent code as well
as all the hacks that were done on top of it for Odoo since 8.0.
2020-10-02 08:52:40 +00:00
Antoine Guenet e215422bc0 [REM] website: remove the folded list snippet 2020-10-02 08:52:40 +00:00
Antoine Guenet ef751b21da [REM] website_gengo: remove the module 2020-10-02 08:52:39 +00:00
Antoine Guenet ed4b5e9e78 [REM] base_gengo: remove the module 2020-10-02 08:52:39 +00:00
Aaron Bohy 4749beea20 [FIX] web: update owl to last version
This commit updates owl from v1.0.9 to v1.0.10.

See [1] for the list of fixes it contains.

[1] https://github.com/odoo/owl/commit/e73fb462c5d70011ab667c1c529b85749a6bcf4a

closes odoo/odoo#58959

X-original-commit: 1682c6b73c39c693e0fcdb4da70891ef55edc3fd
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2020-10-02 09:23:18 +00:00
Aurélien Warnon f3fb952ac8 [FIX] website_event_track_[session|live]: adjust event 'Youtube' layouts
This commit makes some minor changes to the Youtube video & chat layouts when
embedded in an event to ensure a better viewing experience.

Changes in details:
- Improve the "chat tab" to ensure the width is sufficient to display all of
  the Youtube chat iframe on any resolution ;
- If the video is "live" and has a chat tab, the chat is now displayed as the
  first tab (before this change, the "other tracks" tab was always displayed
  first) ;
- When displaying the next suggestion, add a covering block to avoid a
  potential flicker while fetching the suggestion to go to.

Task 2345887

closes odoo/odoo#58949

X-original-commit: 38be9fec2130f04374e378510f169a65d4bc693f
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Signed-off-by: awa-odoo <awa-odoo@users.noreply.github.com>
2020-10-02 07:26:27 +00:00
Nicolas (vin) c8f029744b [FIX] account: Fix automatic wizard issues
When coming from the dashboard (dashboard => Bills to pay => Bill)
The context contains information about the purchase journal and not the
move line, causing an issue in the wizard. This change will make sure
the context always contains the necessary move line information

Task id #2344722

closes odoo/odoo#58835

X-original-commit: f9ef2c8cd980ecb9eee22d4cc43d5291953471ef
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-09-29 14:53:57 +00:00
Nicolas Martinelli 481d1393e7 [FIX] base_setup, website, tests: remove Gengo references
The Gengo modules were removed with:
https://github.com/odoo/odoo/commit/b38b72e456a
https://github.com/odoo/odoo/commit/9b1f0962baa

But there are still references to it.

opw-2349904

closes odoo/odoo#58938

X-original-commit: a30edba504aa1b62aa02092112a55bca65cf9a0c
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-10-01 17:34:27 +00:00
Benjamin Vray bb7f91cb14 [FIX] web_editor: fix select with images in left panel
Before this commit, we were looking for text content inside SVG element
to set the selected value of a select in the editor panel.

After this commit, we avoid looking inside SVG tags.

task-2312878

closes odoo/odoo#58941

X-original-commit: 338f8d843832c339c52c00c7f4c41b5ab2d696ed
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-01 19:33:36 +00:00
qsm-odoo 463fd81486 [FIX] web_tour: shield tips design from external css rules
As the tips can be put anywhere in the DOM, external css rules may
target them by mistake. This was for instance discovered on the frontend
where the boxed layout does something like this:
```
    #wrapwrap > * { width: XXX; }
```
which does breaks the tips which would be placed in the #wrapwrap.

This commit solves the problem by forcing rules with !important flags.

closes odoo/odoo#58874

X-original-commit: 5084ea9b4d24c41a8171f5c9ad92f903f1067705
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-01 17:53:37 +00:00
Denis Ledoux 2d56d2ef07 [FIX] auth_signup: base.user_admin is not a group.
32ec8a974d
aims to give the possibility to admins to send reset password emails
to users.

`groups_id` expects a `res.groups` id,
not a `res.users`

closes odoo/odoo#58935

X-original-commit: 4a978c08853b992199336f6355d816e2d5adfc84
Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
2020-10-01 16:50:48 +00:00
Martin Trigaux e79531c136 [I18N] *: export 14.0 source terms
Including demo data this time

closes odoo/odoo#58862

X-original-commit: 575abde110acb3d12b25f177a863374becef0894
Related: odoo/enterprise#13705
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-09-29 17:52:02 +00:00
Anh Thao Pham (pta) 24a07e6124 [FIX] sale_project: add Tasks associated to SO in Tasks smart button
- Install sale_project
- Go to Project > All Tasks and open an Task
- Toggle Studio:
  * Activate "Show invisible elements" in View menu tab
  * Select "Sales Order" field and uncheck invisible option
- Go to Sales and create a Quotation (i.e. SO0001)
- Go to Project > All Tasks and create a Task with SO0001 as SO
- Go back to Quotation SO0001
The created Task is not counted in the Tasks smart button.

Tasks smart button on SO only shows Tasks associated to a SO line
and does not show Tasks associated to SO.

opw-2335040

closes odoo/odoo#58926

X-original-commit: 1ffa2b5677d028c51a06f884d635cd8429730aae
Signed-off-by: Anh Thao PHAM <kitan191@users.noreply.github.com>
2020-10-01 12:30:38 +00:00
Aaron Bohy 6d99a50012 [FIX] web: no export button if user not in export group
PR #45400 disabled the export feature for those who were not in
group 'base.group_allow_export'. However, it only considered the
'Export' link in the actions menu. In list view, an export button
was still displayed in the control panel (next to 'Create'),
whether the user was in the group or not.

This commit fixes this issue.

Task 2348571

closes odoo/odoo#58920

X-original-commit: 7925e30482ad0df4b2a004c223c3eb87f3ce725f
Related: odoo/enterprise#13730
Signed-off-by: Mathieu Duckerts-Antoine <Polymorphe57@users.noreply.github.com>
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-10-01 07:20:56 +00:00
Nicolas (vin) 750601f92f [FIX] account_edi_facturx: update test files
Tests files in account_edi_facturx are not correct, has they were made
to work with the issue fixed in this pr.

This commit will fix the xml in those test files to make the test pass
after the fix

task id #2341111

closes odoo/odoo#58919

X-original-commit: d205778011a2568f1795f55ed0e6f94858cb423c
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-10-01 07:20:29 +00:00
Nicolas (vin) ddf3d9a878 [FIX] account_facturx: fix upload of pdf using facturx
There seems to be an issue with the import of factur-x pdf.
The unit price is being divided by the quantity resulting in wrong
values.

This commit will correct that by dividing the unit price by
the amount of products in one unit, instead of the amount of unit.

Task id #2341111

X-original-commit: d3116ba7266270cb5ef8e018f65131003d0331ed
2020-10-01 07:20:28 +00:00
Nicolas Martinelli 67d632a565 [FIX] account: mail alias creation
- Install accounting
- Create a company with a '.' as last character of the name, e.g. 'Test
  Inc.'
- Set the Fiscal Localization for the company

An error occurs: "You cannot use anything else than unaccented latin
characters in the alias address."

This happens because we try to create the alias `test-inc..inv`: `..` is
not allowed by the RFC 3696.

We replace the `.` by `-` which is a supported character in the
localpart.

opw-2347965

closes odoo/odoo#58904

X-original-commit: 5053183ac7612d9cf2247b84ec6e0aac5974fd85
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-09-30 16:33:17 +00:00
Goffin Simon 47020806de [FIX] purchase: Amount_tax not updated
Steps to reproduce the bug:

- Create a purchase order P with one line L
- Set a tax of 10%, a quantity of 1 and a unit price of 100€ on L
- Save P
- Edit P and change the unit price of L to 120€

Bug:

The amount_tax was not updated until you saved

opw:2341757

closes odoo/odoo#58912

X-original-commit: d7598086b8ac642f2cfe497ab6e33e380edb244a
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2020-09-30 17:51:12 +00:00
Goffin Simon 825dcb242b [FIX] base_address_extended: Wrong street format
Steps to reproduce the bug:

- Create a german contact C with street1 = 'Istanbulstraße 22-26'
- Install base_address_extended
- Go to C and edit it

Bug:

'Istanbulstraße' was  displayed in the number of the street

PS: A post init hook is needed otherwise the default street_format
'%(street_number)s/%(street_number2)s %(street_name)s' was always used.

opw:2320385

closes odoo/odoo#58905

X-original-commit: a97d981b9dd96b0066e09d763eff10a6ca70819c
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2020-09-30 16:40:59 +00:00
svs-odoo 8999b3a37b [IMP] stock_picking_batch: demo data flux
Decreases the move lines qty to process for the picking batch #1 in
order to make the demo flux quicker.

closes odoo/odoo#58909

X-original-commit: 15cede0cbef24f7a1ec3a205aee8155e908a2404
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2020-09-30 17:15:03 +00:00
Goffin Simon caa4ca7cc1 [FIX] sale, sale_prodcut_matrix: Default customer Lead Time not set with Order Grid Entry
Steps to reproduce the bug:

- Let's consider a product P with three variants red, yellow and blue
- Let's set a customer lead time on P = 10 days
- Set Order Grid Entry on P
- Create a quotation Q and add P
- In the grid entry matrix add 1 red, 1 yellow and 1 blue

Bug:

The customer lead time of these three variants were not set on the lines.

opw:2337049

closes odoo/odoo#58675

X-original-commit: 0eae213d6c8a656ab2c045995e1f0643ff65df51
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2020-09-28 12:45:08 +00:00
Daniel Blanco 15d6e0f47b [ADD] l10n_cl: forward to 14.0
closes odoo/odoo#58889

X-original-commit: faea1fec6b0a8571e5f61c1a891cfa708b0a9075
Related: odoo/enterprise#13721
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-09-30 12:30:53 +00:00
Nicolas Martinelli 0ed098ae15 [FIX] purchase_stock: precision difference
- Create stockable product P: FIFO, Automated Valuation
- Set the price difference account
- Configure Decimal Accuracy for Product Price to 6 digits
- Create a PO
- Add a line with:
  Product P
  Quantity: 100,000
  Price unit: 0.005
- Confirm the PO, receive the product and create the invoice
- Set a price unit of 0.006 on the invoice line
- Post the invoice

No price difference booking is generated, while a price difference of
100 should be created.

It happens because we compare the price units with the currency
precision.

Comparing the price units, even with the proper Product Price precision,
is not a good idea. Indeed, in case discounts are applied the price
unit computed ends up with a larger precision.

As a solution, we check if the subtotal of the journal entry is
different from zero.

opw-2341181

closes odoo/odoo#58364

closes odoo/odoo#58888

X-original-commit: 654be58894c51d2c5384ead67a5a7c68fdebf0a7
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-09-30 10:45:28 +00:00