Commit Graph
127667 Commits
Author SHA1 Message Date
oco-odooandNicolas Lempereur fa9beab3ea [FIX] account: dashboard: Center the empty dashboard message horizontally when the setup bar is displayed on a small screen
Before that, when using a small screen (with width <= 768 px) and
showing the accounting dashboard of a company without any chart of
accounts installed, the icon and message prompting to install a chart of
accounts was displayed in the lower left corner, instead of being
horizontally centered.

closes odoo/odoo#36974

X-original-commit: 4999f47d7e283c6a5799e68f2b0e1351638e17a3
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Co-authored-by: Nicolas Lempereur <nle-odoo@users.noreply.github.com>
2019-09-16 16:07:09 +00:00
Laurent Smet f1ae4bd207 [FIX] account: Only sum posted entries to compute amount_due for partners
-Create a random journal entry affecting the partner A, using a receivable/payable account.
-Let the journal entry in draft.
=> The amount set on the line must not be sum in the partner's amount_due.

closes odoo/odoo#36973

X-original-commit: 3ab4589ff444da9889ac922ac9d7ba6c8e8638bc
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-16 16:05:49 +00:00
Andrea Grazioso (agr-odoo) 8cae5b36cf [FIX] sale_mrp: test for split delivery issue
Following 40487aca5c there was an issue
where a delivery could be splitted because of mrp specific code.

This test checks that when creating a sale order including a level 3
bom (MTO) the delivery is one, containing the correct products

closes odoo/odoo#36961

X-original-commit: c07ecea7923c1609c4461fadbc61040e9fd3d86a
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-16 13:43:42 +00:00
Nicolas Lempereur 80b1c12f09 [FIX] account: invoice pivot do not display unsigned
On the pivot view, there is the following unsigned measure fields:
"account_tax" and "account_untaxed".

It can cause mistakes since for example the sum of a invoice an its
full credit note should be zero, but here it will be double the amount.

So here we complete 97aec9f8 for two fields that were still available.

opw-2071027
closes #36940

closes odoo/odoo#36971

X-original-commit: 2dc8e2feec9e5b604e0c0acae52562822a113342
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2019-09-16 14:59:08 +00:00
Lucas Perais (lpe) fa283d3d4e [FIX] web: progress bar feature
The progress bar was pretty broken before this commit.

> It was not possible to input the value as text
> Moving the progress bar to modify value and saving crashed
> modifying the max value crashed
> The whole feature was ill-defined

With this commit, we fix the crashed. It is now possible to write the field
behind the progress bar by moving it in RO mode
or by typing the input in RW mode
*if it is the value we want to write on*

It it is the max value that the field targets, we can do it in RO and RW mode,
only with the input as text

Note that this works *only if* the editable option on the widget is set to true

OPW 2061846

closes odoo/odoo#36928

closes odoo/odoo#36970

Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2019-09-16 15:28:25 +00:00
RomainLibert 416f179442 [FIX] web: pass the context when executing an action
In case you have a button of type action, the controller is doing an rpc
on the model using the right method, but in this rpc, the context is not
passed.

This creates a translation problem (nothing is translated) since the
language is not defined in the context.

Task Id 2062419
Closes #36189

closes odoo/odoo#36969

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-09-16 15:03:35 +00:00
Nicolas Martinelli 3198705e30 [FIX] payment_stripe_sca: do not redefine _get_stripe_api_url
There is no need to redefine `_get_stripe_api_url` by adding `https`
since all existing calls to the method programmatically add it already.

Therefore, we use the same approach: we add `https://`, then join the
URL.

opw-2031745

closes odoo/odoo#36957

X-original-commit: 0412786486462423c91afc1c5a4dcb25886827e4
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-16 13:31:25 +00:00
Nicolas Martinelli 6c97d73adb [FIX] payment_paypal: log only if tx exists
Log an error only if a transaction exists.

opw-2071862

closes odoo/odoo#36946

X-original-commit: 903bd53d5f11dc9a9cfea246e6c5c0a088ad02ba
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-16 12:38:24 +00:00
Goffin Simon df28690c04 [FIX] account: Maturity date in reconciliation widget
Steps to reproduce the bug:

- Change the date format of your current lang
- Reconcile a statement

Bug:

The maturity date displayed in the widget didn't use the format of your
current lang.

opw:2068241

closes odoo/odoo#36944

X-original-commit: d2ad3d6542bfe1c900720148f22abe4b507e2a41
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-16 12:36:24 +00:00
Nikunj Ladava 61459511aa [FIX] payment_payumoney: update sandbox env url
before this commit: it gives error when we redirect to payumoney site

after this commit: payment testing in payumoney is working as expected

closes odoo/odoo#36937

X-original-commit: 97c0ece7857ca56b1fd20d3772262def5aeebdc4
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-16 11:58:22 +00:00
Kishan Gajjar c326a640c6 [FIX] web_editor: allow autoplay for Vimeo videos
closes odoo/odoo#36932

X-original-commit: 1a87fcc8a39cff99358b91718994ff14967d39bf
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-09-16 12:03:57 +00:00
Lucas Perais (lpe) 6990808945 [FIX] account: payment keep move names on cancel
Reverts d91b1e5bd5
But still handles the use case (cancelling transfer payment)

Make a payment, confirm it
The payment's move has a name, i.e. constructed from its sequence

Cancel it
the payment has no move anymore

Re-confirm the payment

Before this commit, the new move had a new name from a new sequence number
This is problematic to ensure accounting consistency
Besides, it was not the way it works for invoices' moves

After this commit, the former name of the move is taken
to build the new move of the re-confirmed payment

OPW 2046412
OPW 2070167

closes odoo/odoo#36868

closes odoo/odoo#36922

Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2019-09-16 11:31:59 +00:00
Sebastien LANGE 6d4192c2a3 [FIX] l10n_fr: incorrect tax description
opw-2070961

closes odoo/odoo#36889

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-16 10:56:32 +00:00
Alex TuylsandNicolas Lempereur b0a49deddc [FIX] sale: error in computing SO reference
When processing a payment in Ecommerce, if the payment
acquirer communication is defined on 'Based on Document Reference'
and if the sale order sequence is having a suffix, we have
an internal error due to a bad implemented regexp.

opw-2067596
closes #36867

closes odoo/odoo#36892

X-original-commit: b08a0025e7900554791a4e42bddcbeb09739a8a1
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Co-authored-by: Nicolas Lempereur <nle-odoo@users.noreply.github.com>
2019-09-13 18:07:37 +00:00
Nicolas Martinelli ad311d2098 [FIX] payment_stripe_sca: missing email of delivery address
In case no email address was specified on the delivery address stripe
redirect flow will fail, so we define a fallback on the billing partner
email.

closes odoo/odoo#36833

closes odoo/odoo#36862

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-13 16:28:44 +00:00
qsm-odoo cdba57d4e2 [FIX] web_editor: allow to change primary and secondary bg classes
closes odoo/odoo#36849

X-original-commit: 6d6cf6128e6d36830b339de9b8957717201c2f02
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-09-13 15:21:54 +00:00
qsm-odoo d1e5231e49 [FIX] web_editor, *: restore crop dialog
* website

Following the new editor merge at https://github.com/odoo/odoo/pull/29775
(which was finally partially reverted for 13.0), the crop dialog was not
working anymore on sub-sequent crop. This was due to 2 things:

1) Re-cropping an image that was just cropped now

The original source of the recently cropped image is saved as temporary
jQuery data on the image element. Unfortunately, for some strange
reason, that image is cloned before any edition and thus lose that data.
This commit fixes the problem by cloning the data too... supposing the
orignal clone is there for a reason.

2) Re-cropping an image that was saved before

This did not work anymore simply because... the cropped images were not
saved in database anymore but saved as base64 data in the view... For
some reason, the cropped images to save were searched in the original
DOM instead of the edited DOM...

Also fixing the random use of a mutex.

Discovered while working on task-2059480

closes odoo/odoo#36878

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-09-13 14:07:00 +00:00
Odoo's Mergebot 9c6532fe80 [MERGE] payment_stripe_sca: Stripe API changes following PSD2
With the PSD2 directive coming into effect on September 14th,
was had no choice but to switch our Stripe integration to use
newer APIs that support Strong Customer Authentication (SCA for short).

This meant switching from the old stripe.js implementation for
'redirection' flow to the Stripe Checkout API and from the
Charge API to the newer SetupIntent & PaymentIntent APIs
for s2s flows.

This new modules introduce these changes in a non-intrusive way,
this means that installing this module is *not* required for
all customers (e.g. instances only accepting payment to and
from countries that are not part of the EU), that installing it
will support SCA flows and that uninstallation leaves you with
a working instance as well.

Task 2039100

closes odoo/odoo#36869

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-13 16:45:35 +02:00
Damien Bouvy 302ed50cef [ADD] payment_stripe_sca: Stripe API changes following PSD2
With the PSD2 directive coming into effect on September 14th,
was had no choice but to switch our Stripe integration to use
newer APIs that support Strong Customer Authentication (SCA for short).

This meant switching from the old stripe.js implementation for
'redirection' flow to the Stripe Checkout API and from the
Charge API to the newer SetupIntent API for s2s flows.

This new modules introduce these changes in a non-intrusive way,
this means that installing this module is *not* required for
all customers (e.g. instances only accepting payment to and
from countries that are not part of the EU), that installing it
will support SCA flows and that uninstallation leaves you with
a working instance as well. Essentially a backport of 9f5f2fc
in a seperate module.

Task 2039100
2019-09-13 13:10:10 +00:00
Damien Bouvy a2c5410622 [IMP] payment: sca-readyness
- allow acquirers to arbitrarily include info about the tx in the
processing page
- pending is now a valid state that could require customer action in the
payment processing page - don't blindly redirect to the return url of
another tx if a pending transaction is there

This latest change might mean that customers with many tx attempts might
have a sub-par experience as they may need to click manually on the
redirect url of a successful tx while before they were redirected
immediately.
2019-09-13 13:10:00 +00:00
fw-bot 183e632c0a [FIX] stock, delivery: put compute fields across companies in compute_sudo
Be in multi-company, with shared products, let P be a product in company C.
Suppose there are stock moves or pickings in company C'.
Suppose a non-admin writes on P: it triggers an access error.

Stock moves are not shared across companies in all cases.
So fields that depend on product_id might trigger a recompute on stock.moves
that are in another company, and thus trigger a spurious ACL error while
simply writing product attributes.
Note that _cal_move_weight depends on product_qty, however it is not sufficient
to only put that field in compute_sudo; the product_qty has already been marked
as todo, and so it is recomputed in the initial environment.

opw 2066691

forward port of 7d4d8fa18aecb3b78c8d359434a165c1de71a9b4

closes odoo/odoo#36838

Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
2019-09-13 10:52:47 +00:00
Florimond Husquinet (fhu) 0fe86d4b40 [FIX] mrp_bom_cost: compute price from bom ensure one fail
- Activate mrp bom cost.
- Create a BoM for a product
- The Compute "Price from BoM" button appear on the product template
below the Cost field.
- Click the button.

Before this commit:

Probably because dynamic variant creation is activated and there is
no variants, the ensure_one fails with 0 records actually passed to
the function.

Additionally, if all the BoM are for variants and there is no BoM for
the template, then there is a division by 0 exception.

After this commit:

A test is performed to avoid calling the function with 0 records.
A test is performed to avoid a division by 0 exception.

closes odoo/odoo#36761

Opw: 2064884
X-original-commit: 42264002070c8acbb781bd111d8a0c31e2ad9716
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-12 09:39:23 +00:00
Romeo Fragomeli 26c62cbb44 [FIX] web: unable to scroll modal's table in Safari (iOS)
Before this commit, users wasn't able to scroll vertically
when there was "table-responsive" class on modal's table.
In fact the scroll was effective on the body and not
in the modal content.

We can fix this issue by having flex elements but as this is
a fix, we preferred to choose a one line fix solution.

Steps to reproduce :
* open Odoo in Safari (iOS)
* open Sale app
* create a new quotation
* select a customer
* select "Search More ..."
* try to scroll the table vertically (BUG)

Sources :
https://stackoverflow.com/questions/41681251/overflow-x-scroll-inside-a-fixed-div-prevents-vertical-scrolling-on-ios#comment84970666_41693350
https://stackoverflow.com/a/57566116

opw-2042095

closes odoo/odoo#36707

closes odoo/odoo#36730

Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2019-09-13 07:07:50 +00:00
Rémi Rahir 3f401e3e2f [FIX] snailmail: do not decode null objects
Prior to this commit, we would try to decode the logo of a company
without any verification on its presence. If the logo was not set, we'd
try to decode nothing which caused a crash.

This commit ensure that we asert that the field is set before trying to
encode it for a JSON payload.

closes odoo/odoo#36784

X-original-commit: f40f763831bace8c499072ea81ef9bbd5fc910e4
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-12 13:21:48 +00:00
qsm-odoo 4895b452c1 [FIX] website_twitter: restore twitter animation in edit mode
Animations (now public widgets) are now disabled by default in edit
mode. It is opt-in. That one should have been enabled and was left
disabled by mistake.

task-2070930

closes odoo/odoo#36807

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-09-12 16:40:59 +00:00
fja-odoo 6f14b488fb [FIX] web_editor: fix error on section drag and drop
closes odoo/odoo#36801

X-original-commit: 0ae223609a860799135e7f6764c4cb8a08979b12
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-09-12 15:45:58 +00:00
Nans Lefebvre 459e6dc1d2 [FIX] base: check group constraints when adding implied groups
Since commit 5f12e244f6, the write of implied groups is done directly in SQL,
bypassing the ORM writes, and thus bypassing the python constraints checks.
In particular such a constraint was added in f206714af0.
We add back an explicit check of this constraint;
however we rewrite it in SQL to be fast.

closes odoo/odoo#35411

closes odoo/odoo#36769

Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
2019-09-12 14:03:06 +00:00
Xavier ALT 0dccd432f1 [FIX] base: on partner kanban, show company default image if contact has none
For contract of type 'Company' which have no image set, we should display a
specific default 'company' placeholder image instead of default placeholder.
This allows to easily identify which records are companies.

This was already the case up to commit 6153d65664

OPW-2067475

closes odoo/odoo#36783

X-original-commit: 42c08846296d86fb3196f430eec45dd39cf1a8f5
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-12 13:20:52 +00:00
Jorge Pinna Puissant 4b750f3a3c [FIX] product: price list reports with too many fractional digits
Before this commit, when printing the Price List report of a Product
Variant, the price is printed directly from the float result of the
calculation of the price, even if this price is rounded, the
representation of the float can have, sometimes, float precision errors
(a lot of 0 after the decimal point, and a 1 or 2 at the end).

Now, the function returns a string formatted to the correct number of
fractional digits.

opw-2069305

closes odoo/odoo#36705

closes odoo/odoo#36770

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-12 11:15:48 +00:00
Pierre Paridans c24a132ee1 [FIX] point_of_sale: missing Deffered to Promise conversion
Follow-up of the commit odoo/odoo@53285f1

closes odoo/odoo#36752

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2019-09-12 10:07:36 +00:00
Nicolas Martinelli 11a9089dd8 [FIX] mrp_bom_cost: cost without BOM
- Activate variants
- On a product variant without BOM, go to Action > Compute Price from
  BOM

A zero-division is raised because of `... / bom.product_qty`.

opw-2067520

closes odoo/odoo#36733

closes odoo/odoo#36736

closes odoo/odoo#36749

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-12 08:56:47 +00:00
Alexandre Kühn 057d3eba2e [FIX] web: use search view input with composition mode
Forward-port of #36688 (original: #36284)

Before this commit, search view was barely usable with Japanese IME.

For instance, when pressing ENTER while in composition mode and
IME prompts some suggestions, it made a search with the updated input
content. The expected behaviour should have been to update the input
content, without making the search yet.

This commit fixes the issue by turning off some actions of the
search view when typing during composition mode.

opw-2061590

closes odoo/odoo#36728

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2019-09-12 09:26:06 +00:00
Lucas Perais (lpe) 0fdc914a67 [FIX] web: search panel handles archived parent category
Have a model with a parent field
Set his parents like

Parent 0
  |
  -- Parent 1
	|
	-- Parent 2

Now, put the Parent 1 as inactive
Open a view with a search panel, which will fetch the parent field as categories

Before this commit, it crashed, because the inner record memory
did not contain a reference to the parent of Parent 2

After this commit, it doesn't crash, and the search panel
just doesn't display parents categories that are archived, nor any children of those

OPW 2070266

closes odoo/odoo#36699

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2019-09-12 07:42:38 +00:00
Florimond Husquinet (fhu) 9359f5b036 [FIX] web: spanish translation of page numbering in the footer for 2 templates
-Choose the document template 'external_layout_boxed' or
'external_layout_standard' for client in Spanish.
-Print an invoice.

Before this commit:

the page numbering in the footer is not displayed properly.

After this commit:

the page numbering in the footer is displayed properly

closes odoo/odoo#36741

Opw: 2066838
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-12 06:55:57 +00:00
Jairo Llopis 5dad570423 [FIX] *: remove buggy calls to with_context
When .with_context() is called with a dictionary as 1st positional
argument, it will replace context (and not modify the referenced keys)
It may create bugs when losing the content of the context (e.g. remove
partner's language)

This is a partial merge of #36164 without the inventory part as
discussed.

closes odoo/odoo#36729

X-forward: 4717ccfa
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-09-12 06:18:18 +00:00
Alex Tuyls e7697ea472 [FIX] account_analytic_default: missing analytic tag on invoice
When adding an analytic tag on a sale order line, if there is
a default analytic tag defined matching the criteria, the tag
on the SO line is overwritten in the invoice while it should be
kept.

opw-2068196

closes odoo/odoo#36685

closes odoo/odoo#36727

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-12 06:29:13 +00:00
Florimond Husquinet (fhu) 6abfdd37b2 [FIX] lunch: add test for domain generation when location false
Fine tuning of 988e201d2e

closes odoo/odoo#36628

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-10 14:47:11 +00:00
Florimond Husquinet (fhu) 63321d6e90 [FIX] web: french translation template Page X on Y
-Go to Settings > General Settings and choose the external_layout_background
template.
-Set a client's language to French.
-Go to Invoicing.
-Select any invoice for this client, and click Print > Invoices

Before this commit:

At the bottom of the page you would see "XY" for the page number.

After this commit:

You now see "Page X sur Y".

closes odoo/odoo#36643

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-10 15:45:39 +00:00
Goffin Simon cac9b4e58a [FIX] l10n_de: VAT Number not correctly displayed
Steps to reproduce the bug:

- Install l10n_de
- Go in General settings
- Set external_layout_din5008 as Document Template
- Let's consider the customer C with an address and a VAT number
- Create a SO with C
- Print the SO

Bug:

The VAT number of C was not correctly displayed.

opw:2069128

closes odoo/odoo#36673

X-original-commit: b50f51207aa2b4c2d264fc47797a6c123a8ea15e
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2019-09-11 09:19:24 +00:00
Jorge Pinna Puissant f21778590e [FIX] point_of_sale: buttons pushed out of view
Before this commit, in a session with too many open orders the buttons
in the upper right corner, next to the 'delete order button', i.e., the
print button, the connection status, the print button and the close
button, will be pushed out of view. This makes it impossible to check
out, to print, etc., without closing orders.

Now, a scrollbar appears when to many open order and allows to see the
buttons in the right upper corner.

opw-2064409

closes odoo/odoo#36724

X-original-commit: ace930f74c46feafa0759c975e619e7fd1a30780
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2019-09-11 15:30:04 +00:00
Florimond Husquinet (fhu) b1afea13d4 [FIX] account: chart of account installation cannot find a transfer account
Before this commit:

For a couple of clients, the installation of a chart of accounts crashes
because a transfer account is not found. This account should have been created
automatically, but hasn't, or has been deleted.

After this commit:

If no transfer account is found, no account is linked to the "Transfer account"
field of the company, but the installation doesn't crash.

closes odoo/odoo#36693

Opw: 2066557
X-original-commit: d93e5c12bab233d727a6cfb519e77f5fabb73912
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-11 11:41:50 +00:00
Nans Lefebvre 682067f54e [FIX] base: fix logger message
Simple typo; instead of a logger message, an exception is output in the logs.

closes odoo/odoo#36686

X-original-commit: 83030b6ae20bc9d32b2c7a83ea5a1dca33e5f9cf
Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
2019-09-11 10:28:24 +00:00
Goffin Simon 555a49b403 [FIX] purchase_stock: RFQ automatically created with an inactive vendor
Steps to reproduce the bug:
- Let's consider the storable product P and the vendor V
- Set V as a supplier of P
- Archive V
- Go to product P and click on button "Replenish"

Bug:

A RFQ was created with the vendor V

Now when archiving a vendor V, all the product.supplierinfo records linked to V
will be archived.

opw:2066616

closes odoo/odoo#36672

X-original-commit: 5040c17e873b8476c754f1f3e1686c2a02b36e48
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-11 09:18:52 +00:00
Nicolas Lempereur 10f15a4faf [FIX] l10n_multilang: ignore customized data conflict
If you:

- have a multilang COA
- create an account.account manually
- add a XML ID with structure {company_id}_{anything} manually
- reload COA translations (install COA language, install COA, set
  installed COA since c346e7af3)

=> there is an error since the code try to copy translations of
account.account.template associated to custom XML ID.

fix: ignore this torcivous use case

fixes #36310
opw-2063207
closes #36544

closes odoo/odoo#36659

X-original-commit: 0fc0b7484c48fbdcf549e199b5c8cabff3ab726c
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2019-09-10 19:04:53 +00:00
Nicolas Martinelli 9e30276556 [FIX] base: address and name split on 2 lines
The name and address printed on any PDF report (e.g. SO or RFQ) is very
likely to be split on 2 lines once it is long enough. For example,
'My Company (Chicago)' will be displayed on 2 lines.

This is due to 0c6e0d660e and 064eb0a4f4.

opw-2061553

closes odoo/odoo#36498

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-11 10:38:33 +00:00
Laurent Smet 01854457c5 [FIX] account: Fix editing mail alias on account.journal
Since https://github.com/odoo/odoo/commit/01d0523fd76e6d616f36c872f9bff9ca9cd9cbb9, the
_get_alias_values methods is called during the write on the mail.alias.
In this method, the r.sub seems wrong & useless since the alias_name is also checked when
writing on the mail.alias (alias_name is a related="alias_id.alias_name") with a different
behavior that the r.sub.

closes odoo/odoo#36668

--task: 2069650
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-11 07:24:17 +00:00
Lucas Perais (lpe) 6ebbea1681 [FIX] base: barcode qweb field correct API
Before this commit, the barcode Qweb Field had a
option called "type", which meant what is the mapping between
numbers and barcode, that mapping is called a symbology
https://www.barcoding.com/resources/barcoding-basics/barcode-symbologies/

This option "type" collided with what the qweb engine does
at
```
qweb > _compile_directive_field
that calls
ir_qweb > _get_field
```
It resulted in a crash where type = "barcode" was not a valid symbology
to pass to the barcode lib

It is safe to say that this barcode widget was never user, otherwise it would have crashed

This commit changes that non-functioning API, and the barcode renders well

OPW 2066870

forward-port of #36499 (330d862513dba5bbc4716fe9c8694fd0db696934)
closes odoo/odoo#36499

closes odoo/odoo#36658

Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2019-09-11 08:05:34 +00:00
Raphael Collet 5032fc16b4 [FIX] orm: in modified() force target search ordering by 'id'
Some model can have really complex _order, which can induce unnecessary slow
queries; here as we don't need the right business order we force ordering by
'id' instead

OPW-2007478

closes odoo/odoo#36660

X-original-commit: a1fe8976156a7b6e14aa2d68650176a0e64ba73f
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2019-09-10 19:05:12 +00:00
Saad Thaifa 50e571acf7 [CLA] Corporate signature for Karizma Conseil
closes odoo/odoo#36642

X-original-commit: 8fbb3c4a68bb1ba2f1863c1172b4f50c130a0ed2
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-10 14:22:41 +00:00
Saad Thaifa a2eaf79663 [FIX] l10n_ma: Fixed CoA
- fixed account types for few accounts
- set reconcile field for few accounts
- added new 'Achats des prestations de service'(code: 61263) account
- reflected accounts in chart template configuration

was task: 1913323
diff taken from PR #30772

X-original-commit: b04477dfa69517a93c3f2209ee98749e30741541
2019-09-10 14:22:41 +00:00