Commit Graph
126418 Commits
Author SHA1 Message Date
Christophe Simonis 9e74730a26 [FIX] mail: use defined variable
Oversight of previous forward-port.
2019-08-06 16:13:06 +02:00
Christophe Simonis 0fadd586fa [MERGE] forward port branch 12.0 up to ff9ddfdacc 2019-08-06 15:57:57 +02:00
Christophe Simonis ff9ddfdacc [MERGE] forward port branch saas-11.3 up to 97d81f1220 2019-08-06 12:13:19 +02:00
qsm-odoo dc0630833b [FIX] website: prevent multi checked options in the same group
In the customize theme modal, if one option enabled views which were
a subset of the views which are enabled by another option, both options
would be checked on modal opening if all the related views were active.

This is the case for the "choose an image" and the "choose a pattern"
options: the first one enables a view which adds an image on the body
and the second one enables the same view but also another which enables
the fact that the image must be repeated.

This commit solves the issue by always selecting the option enabling
the most views among the checked options in a same set.

opw-1958395

closes odoo/odoo#35465

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-08-05 15:57:25 +00:00
Christophe Simonis 97d81f1220 [MERGE] forward port branch 11.0 up to b8be821058 2019-08-05 17:12:30 +02:00
Christophe Simonis b8be821058 [MERGE] forward port branch saas-15 up to 6668f69822 2019-08-05 16:15:38 +02:00
Christophe Simonis 6668f69822 [MERGE] forward port branch saas-14 up to 14547f847c 2019-08-05 14:58:14 +02:00
Christophe Simonis 14547f847c [MERGE] forward port branch 10.0 up to af3f6e596d 2019-08-05 14:50:37 +02:00
qsm-odoo 2c029a0cf6 [FIX] website_forum: restore the possibility to change accepted answer
The design for accepted answers changed a lot and with it, the
possibility to remove or change accepted answers was gone. This commit
tries to reintroduce the possibility without breaking the design and
by making an unique attribute addition to the XML (stable change).

task-2034497

closes odoo/odoo#35445

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-08-05 11:38:49 +00:00
Jorge Pinna Puissant bacb353799 [FIX] point_of_sale: show lot number on order form
Allow to see the lot/serial number on the order form, only for the users
with group group_production_lot.

opw-2037285

closes odoo/odoo#35443

Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
2019-08-05 11:31:05 +00:00
qsm-odoo 7e1d98cbb9 [FIX] website_forum: restore star icon color for favorited questions
task-2034497
2019-08-05 10:19:03 +00:00
Nicolas Martinelli 91399aed95 [FIX] web: RTL on list view
- Set the user language to a RTL language, e.g. Arabic
- Open a list view containing float or monetary fields, e.g. the invoice
list view

The numbers are left aligned while the corresponding columns headers are
right aligned, making the list view confusing.

The header alignment is hardcoded at rendering rather than in the SCSS.
Therefore, `rtlcss` doesn't affect it.

Instead of hardcoding the alignment, we use a proper CSS class so it is
adapted by `rtlcss`.

opw-2044019

closes odoo/odoo#35414

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-08-05 08:18:34 +00:00
Goffin Simon 6236ed1a5b [FIX] stock_dropshipping: Updating dropship product
Steps to reproduce the bug:
- Install stock_dropshipping module and enable Routes on SO lines
- Create a storable product P with a supplier S
- Create a SO with P and set this line with the route dropship
- Confirm the SO ( a PO has been created to S with P)
- Change P on the SO with an other product

Bug:

The product P stayed on the PO.
So a product linked to a PO line cannot be changed on a SO.

opw:2040249

closes odoo/odoo#35383

Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2019-08-05 09:22:09 +00:00
Christophe Simonis 94aa43722e [FIX] test_mail: bump expected query count
324268a976 has the side effect of
generating an extra query.
2019-08-02 14:38:06 +02:00
Julien Castiaux e26a5e46ff [FIX] web: spam new event creates multiple modals
On the Time Off, spam click to create a new event, each click opens a
new event form modal.

When the modal form fields have not been cached yet, the frontend
fetches them and delay the modal form opening after those fields have
been fetched. As the interface is still available. It is possible to
re-click multiple time during the fetch, each click schedules a new
modal form. When the first finally shows, they all stack on screen.

opw-203577

closes odoo/odoo#35098

Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2019-08-02 11:42:27 +00:00
Christophe Simonis 4ac13f85f4 [MERGE] forward port branch 11.0 up to 593f631e5e 2019-08-02 12:41:55 +02:00
Alex Tuyls 3682232d1e [FIX] portal: zipcode field labelled as mandatory
Field zipcode is optional, while it is labelled
as mandatory.

closes odoo/odoo#35401

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-08-02 09:37:30 +00:00
Lucas Perais (lpe) 4e454a9537 [FIX] account: reconciliation double click on proposition
Open the reconciliation widget, with a statement line that has
some move lines to reconcile with

Put your browser in Fast 3G to slow down stuff
then click multiple times on a move line to add it to
the reconciliation chain of the statement line

Before this commit, as many lines appeared in the reconciliation
chain as many clicks were made

After this commit, one can only click once on the lines

linked to #35194

OPW 2042751

closes odoo/odoo#35417

Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2019-08-02 14:52:06 +00:00
Odoo Translation Bot e5754cd936 [I18N] Update translation terms from Transifex 2019-08-04 03:08:10 +02:00
Jérôme Thériault 8a49074fcb [FIX] base: add missing attributes in RNG
Attributes are documented for the gantt view but were not available in
the RNG
https://www.odoo.com/documentation/10.0/reference/views.html#gantt
https://github.com/odoo/enterprise/blob/fe0213e70de952/web_gantt/static/src/js/gantt_renderer.js#L32

closes odoo/odoo#31001

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-08-02 12:57:23 +00:00
Günter Selbert 300618c413 [FIX] stock: add stock group on product form view
A user without stock acces rights was not able to read the fields
added by the stock module

The statbuttons display the number of items available which are
computed fields An accountant (no inventory or sale access rights),
opening the product view will trigger the recompute which will fail
(no access on stock.warehouse.orderpoint)

closes odoo/odoo#32499

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-08-02 11:48:51 +00:00
Christophe Simonis c0ffe50580 [MERGE] forward port branch saas-14 up to 841fa79c8a 2019-08-02 10:24:46 +02:00
Christophe Simonis 841fa79c8a [MERGE] forward port branch 10.0 up to a94b00e498 2019-08-02 10:18:36 +02:00
Martin Trigaux 6ee3950bcf [FIX] mail: display 💔 in messages
The emoji was displayed in the list of choice but was not correctly rendered
when sent to the server.
Similar to 0e3d5941da but for broken heart

closes odoo/odoo#35367

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-08-01 07:22:03 +00:00
Odoo Translation Bot a94b00e498 [I18N] Update translation terms from Transifex 2019-08-01 02:41:11 +02:00
Pedro M. Baeza 593f631e5e [FIX] l10n_es: Account 526 must be payable to reconcile
You can check

https://www.plangeneralcontable.com/?tit=526-dividendo-activo-a-pagar&name=GeTia&contentId=pgc_526

for further information on the account.

This is needed for proper bank statement reconciliation and for AEAT model 123.

closes odoo/odoo#35357

Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2019-07-31 17:29:38 +00:00
Christophe Simonis c13f73317e [MERGE] forward port branch saas-15 up to c0ffe50580 2019-08-02 11:08:51 +02:00
qsm-odoo 3aa7e59bab [FIX] mass_mailing: adapt themes custom bg colors to BS4
Mass mailing themes are redefining some bg-* classes their own way...
unfortunately that way was not working anymore with BS3. This commit
adapts the CSS code to solve the problem but ideally, themes should be
refactored to be more BS4 compliant.

opw-2032131

closes odoo/odoo#35333

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-07-31 12:44:09 +00:00
Swapnesh Shah 9ee3e3e7f5 [FIX] account_voucher: Sign Amount currency correctly
Before this patch Amount currency was always +ve and doesn't care about about Debit/Credit values.
See _check_currency_amount constrains.
Fixes: #35403

closes odoo/odoo#35422

Signed-off-by: Cedric Snauwaert (csn) <csn@openerp.com>
2019-08-03 11:25:47 +00:00
Odoo Translation Bot 5409500237 [I18N] Update translation terms from Transifex 2019-08-04 01:17:49 +02:00
Waleed Mohsen 431b7d7a38 [FIX] account_analytic_default: apply same logic as in _prepare_invoice_line
It was not possible to manually set a default analytic account as it was
overriden by the onchange, even if no account was returned by account_get

Apply the same logic as in _prepare_invoice_line on sale.order.line

closes odoo/odoo#30282

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-08-02 14:07:34 +00:00
Andrea Grazioso (agr-odoo) c93f371d67 [FIX] website_sale_wishlist: Unpublished products in wishlist
An user with portal access puts a product into the wishlist.
The same product is "unpublished" from the site backend, while still
into the wishlist of the user. The user now cannot access the website,
because because of the record rule website_sale.product_template_public
which prevent the unprivileged user from accessing the products.

OPW-2042511

closes odoo/odoo#35397

Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
2019-08-02 08:07:20 +00:00
jev-odoo 52d6898445 [FIX]point_of_sale: adapt _create_account_move_line for inheritance
This commit intend to allow better inheritance in the
account_move_line_creation_process

The new _prepare_account_move_and_lines method only prepare
the move and the lines but does not write and post them.

This is done by the former _create_account_move_line method.

Needed to fix pos_sessions with unbalanced journal entries
caused by round globally option with taxes included in price

I.E. opw-2038814

closes odoo/odoo#35351

Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2019-08-02 12:02:02 +00:00
Goffin Simon e5a8b0632f [FIX] stock_dropshipping: Dropship created after editing an existing quotation
Steps to reproduce the bug:
- Create a quotation and a SO line SOL with one product and route "Dropship"
- Confirm the SO and a PO is created
- Validate PO and process the dropship picking
- Add 4 units to the SO line SOL

Bug:

A new PO was created but the related picking was type "Receipts" instead of "Dropship"

opw:2034398

closes odoo/odoo#35323

Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2019-07-31 12:09:57 +00:00
Paul Morelle 568a7ee12d [FIX] website_sale_wishlist: improve product page loading time
When the product has a lot of variants which are displayed as checkboxes
or as colors, the jQuery selector was matching as many items, and the
event was triggered for each of them.
The result was the change event of website_sale being triggered many
times, where only one call would be enough.

The change replicates what was made on v12.0 on the same line by commit
f8dad1bb4b.

opw 2036356

closes odoo/odoo#35322

Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2019-07-31 09:22:16 +00:00
Lucas Perais (lpe) 7e889a1bd5 [FIX] web: init makeRecord fields with correct values
In the calendar view
In the partner filter in the calendar side bar
type something, and backspace rapidly to remove everything

Before this commit, there was a error because the framework tried to write something
in the corresponding field
This was because the o2m field was not initialized
with the correct values

After this commit, there is no error

OPW 2043975

closes odoo/odoo#35330

Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2019-07-31 15:19:44 +00:00
Lucas Perais (lpe) 0b13c3038f [FIX] l10n_be_intrastat: propagate country_id
Before this commit, the field intrastat_country_id was not propagated when refunding an invoice

After this commit, the refund invoice takes the same values for that field
as the invoice it is refunding

OPW 2028333

closes odoo/odoo#35309

Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2019-07-30 15:35:14 +00:00
Anh Vu 3748ac5d17 [CLA] Signature for anhvu-sg
closes odoo/odoo#35235

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-07-30 12:52:07 +00:00
Lucas Perais (lpe) 3e61dab281 [FIX] sale: import order line multicompany
- Admin (U1) user, Demo (U2) with Sales Manager rights
- Create parent company A and child company AA, U2 has access to A (U1 to both)
- Create 2 taxes, T1 for A, T2 for AA
- For product P, add tax T1 in company A, and T2 in company AA
- U2 creates a new SO in company A with no lines, export Order Lines/Product
- U2 edits the file to add product P
- U2 imports the file

Before this commit, the sale order's line had the taxes for bot company

After this commit, it only has the taxes for the company of the sale order

OPW 2036453

closes odoo/odoo#35294

Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2019-07-30 12:02:27 +00:00
amoyaux af3f6e596d [FIX] stock : webplanner link to product does not work.
In the planner the url are generated by prepare_backend_url that takes
an action's xml id as argument. The id passed should have the format
'module_name_where_the_action_is.action_name'. In this case the id passed
was product.product_template_action_product but the action is defined in
stock thus the prepare_backend_url was not able to find the associate action
and return a wrong(default) url.

This commit change the action id passed with the correct module.

closes odoo/odoo#18812

Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2019-07-29 12:49:26 +00:00
Nans Lefebvre 47587de19b [FIX] payment_authorize: save payment token from form validated transaction
https://docs.python.org/3/library/stdtypes.html#truth
By default, an object is considered true unless
its class defines either a __bool__() method that returns False
or a __len__() method that returns zero

Since etree elements are iterator, they define a len function.
However it turns out that customerProfileId has always no children.
So bool(find(x)) is always False; the intended meaning was find(x) is None.

opw 1999427

closes odoo/odoo#34922

Signed-off-by: Nans Lefebvre (len) <len@odoo.com>

closes odoo/odoo#35246

Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
2019-07-29 08:10:42 +00:00
Christophe Simonis 5f419d4ad3 [MERGE] forward port branch 11.0 up to f2f24381f2 2019-07-25 16:12:08 +02:00
Stefan Andersen 6613611039 [CLA] signature for stfnndrsn
closes odoo/odoo#35156

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-07-25 12:00:09 +00:00
Christophe Simonis f2f24381f2 [MERGE] forward port branch saas-15 up to d649cab7b9 2019-07-25 11:43:19 +02:00
Christophe Simonis d649cab7b9 [MERGE] forward port branch saas-14 up to 39de3797f8 2019-07-25 11:42:01 +02:00
Christophe Simonis 39de3797f8 [MERGE] forward port branch 10.0 up to cb3bf5509f 2019-07-25 11:41:33 +02:00
Julien Castiaux 6d9dabd5d9 [FIX] web: hide dashboard tooltip on page change
Go to CRM/Sales/Team Pileline. Place your cursor on the chart, a tooltip
appears, move your cusror away, the tooltip disappear. Now clic anywhere
on the interface so the page change (i.e. on "x Open Opportunities") and
quickly while the page loads place your cursor on the tooltip, it
appears but when the page change it doesn't disappear.

The problem here is that the graph element is removed from the DOM which
prevent the correct handling of the `mousehover` event used internally
by nv.d3 to show/hide the related tooltip.

The solution is to manually hide the tooltip when the graph element is
removed from the DOM.

opw-2042286

closes odoo/odoo#35172

Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2019-07-25 09:14:45 +00:00
David Dufresne 6e759184d6 [FIX] hr_timesheet: missing group to settings
The menu Timesheet / Configuration / Settings should only be displayed to the group Administration / Settings.
Without admin access, an access error is raised when clicking on the menu item.
The equivalent menu item in other apps is restricted to Administration / Settings.

closes odoo/odoo#35388

Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
2019-08-02 08:02:29 +00:00
David Dufresne 921fab992d [FIX] google_drive: do not reset refresh_token
When setting the authorization code, a refresh token is generated in
the background and stored in a system parameter.

However, when saving the general settings (res.config.settings)
without changing the authorization code, the refresh token is deleted.

The refresh token should only be deleted if the authorization was
removed.

This was not the case as the set_param is always called and a value is
only computed when the authorization code has changed. The current
value was never retrieved.

Set a ir.config_parameter only when it a value has changed.

closes odoo/odoo#35028

Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
2019-08-01 14:11:54 +00:00
Tatiana Deribina e08f706b11 [FIX] mail: translate message of copied object
When duplicating a record, the language is set to None in the context
when copying a record

new = self.with_context(lang=None).create(vals)
self.with_context(from_copy_translation=True).copy_translations(new, excluded=default or ())

In mail.thread, the usecase of no language in the context was considered

if 'lang' not in self._context:
track_threads = threads.with_context(lang=self.env.user.lang)

but not the case of a language explicitly set to None

This means that, when duplicating a record, the tracked fields mesages
were untranslated.

Fixes odoo/odoo#35213
Closes odoo/odoo#35331

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-08-01 12:48:22 +00:00