Commit Graph
109244 Commits
Author SHA1 Message Date
qsm-odoo fb81c331f8 [FIX] web_editor: fix double Shift + Enter
Pressing Shift + Enter twice was buggy because of small refactoring
made by https://github.com/odoo/odoo/commit/c227b8fd88e0ed635a8e807501b559b46fee7786#diff-cc5180b5ec2395c1df5c4e475aff43fbL416

opw-806003
2018-01-25 13:58:59 +01:00
Romain Derie edac5550ec [FIX] website_blog: copy dict correctly
The 'copy_vals' dict would refer to the same 'vals' dict since list are
mutables. This was not the expected behavior.
2018-01-25 13:09:31 +01:00
Christophe Simonis efd300156b [MERGE] forward port branch 9.0 up to d29c2dbbdd 2018-01-24 17:22:44 +01:00
Lucas Perais (lpe) d29c2dbbdd [FIX] account: no payment terms on refund
In the case where:
create an invoice with payment terms that contains at least 2 term lines
Validate
create a refund by clicking cancel and reconcile

Before this commit, the refund move lines were wrongly created and reconciled with the invoice's move lines

After this commit, since payment terms are irrelevant on refunds, we set it to false and the problem doesn't raise

OPW 804752
2018-01-24 16:41:42 +01:00
Lucas Perais (lpe) adad192cc0 [FIX] account: reconciliation on payment terms
The case: create an invoice of 2000 euros. Payment terms have been configured as:
1) fixed amount 150, 0 days after invoice date.
2) fixed amount 200, 10 days after invoice date.
3) fixed amount 200, 20 days after invoice date.
4) balance, 30 days after invoice date

Before this commit, when issuing a payment of 150 at day 0, that payment got reconciled with the balance line.

After this commit, the payment is reconciled with the right payment term line

OPW 805006
2018-01-24 16:38:41 +01:00
Lucas Perais (lpe) 7dd3ab9c55 [FIX] website_sale: pending message do not disappear
On the payment confirmation page, when the payment is still pending.

Before this commit:
the user friendly message disappeared and a warning icon took its place

After this commit, the warning icon is prepended to the message.

OPW 787799
2018-01-24 16:18:02 +01:00
Romain Derie 3c998acaaf [FIX] website_blog: archive multiple blog.post throws a server error
Step to reproduce:
  - Go to 'Blog' > 'Blog Posts' in the 'Website Admin' module
  - Select several blog.post on the list view
  - Click on 'Archive' in the 'Action' dropdown

This will throw a server error since write() is overriden for blog.post and
do an ensure_one()

This commit closes #22208
2018-01-24 15:48:49 +01:00
Nicolas Martinelli 34bfadb2f2 [FIX] web: suggested date
- Set the OS to a GMT- timezone (e.g. 'America/Los Angeles')
- Set the format of the date to '%d/%m/%Y'
- Go to 'Account > Adviser > Journal Entries'
- Type '02-01-2018'

The suggested date is 31/01/2018.

Setting the moment object as UTC will lead to a conversion of the date
to the OS timezone when calling `toDate`, e.g.:
Mon Jan 31 2018 16:00:00 GMT-0800 (PST)

UTC should only be used in case of datetime, not date.

opw-803466
2018-01-24 14:11:55 +01:00
Christophe Simonis c0fa5228d8 [MERGE] forward port branch 9.0 up to 779afb7ac5 2018-01-24 11:50:35 +01:00
Martin Trigaux 0ac6043ec7 [FIX] base: bad back-port
53e221fc was intended for 11.0 and backported too quickly in 10.0

Remove fields that do not exist yet
2018-01-24 11:39:56 +01:00
Sergei Ruzki 53e221fc16 [FIX] base: adding BYN to currenciest list
From 2016-07-01 BYN is new currency sign for Belarus
See https://en.wikipedia.org/wiki/Belarusian_ruble

BYR is no longer used.
Kept for backward compatibility and stability reason

Closes #22307
2018-01-24 11:19:27 +01:00
Sergei Ruzki 1ac7257dd2 [CLA] signature for sergeiruzkiicode
Done at #22307
2018-01-24 11:18:52 +01:00
tbe-odoo bc69b47073 [FIX] http: Implicit session deactivation -> Explicit destruction
- Replace the implicit session deactivation with explicit destruction.
2018-01-23 16:21:10 +01:00
Nicolas Martinelli 822a5e9085 [FIX] account: default FY day and month
In any piece of code, execute the following:
```
self.env['account.config.settings'].create({})
```
It overwrites the values of `fiscalyear_last_day` and
`fiscalyear_last_month` to 31 and 12.

Setting a default value on a related field will automatically write
these values on the related.

opw-805205
2018-01-23 14:51:51 +01:00
Florent de Labarre b3b8a471cc [FIX] stock: To avoid singleton error
In this way, it ensures that a single record is used when calling
the function _get_move_values

opw:806668
2018-01-23 09:35:42 +01:00
Lucas Perais (lpe) 296c5a2106 [FIX] point_of_sale: automatic reconciliation with returns
In the case where:
1- Do an order on the pos selling a product A (amount = 10)
2- Do another order returning a certain quantity of A (with a quantity < 0)
3- Do a third order selling something else (amount = 5)

Before this commit, the account move lines of the payment move and of the sale move of operation 2 weren't reconciled
This was because the credit to the receivable account of the return was reconciled with the debit of the first operation,
leaving the debit of the payment of the return alone
(i. e. the lines number 1 & 3 & 5 were reconciled together, instead of 1 & 2 & 5, and 3 & 4)

We end up in a situation like this (at validation time)

	RECEIVABLE
D	|	C	||	OPERATION		|	Line Number
----------------------------------------------------------------------------
15	|		||	(1 & 3-Engaging Sale)	|	1
	|	10	||	(1-Payment)		|	2
	|	10	||	(2-Engaging Return)	|	3
10	|		||	(2-Payment Return)	|	4
	|	5	||	(3-Payment)		|	5

After this commit, we reconcile the returns for each order before reconciling other transaction chains
The fix is limited in its scope as the automatic reconciliation for the pos transaction is fairly recent
and a "nice to have"

OPW 787298
2018-01-23 09:23:42 +01:00
Lucas Perais (lpe) 779afb7ac5 [FIX] point_of_sale: pos manager should have unlink rights 2018-01-23 09:21:42 +01:00
Nicolas Lempereur 7a63d471ed [FIX] website_event_track: use event timezone
Depending on the location, on the website different timezone were used
to display tracks:

- in `Agenda` day date (as of saas-14): the current user timezone
- in `Agenda` track times: the event timezone
- in `Talks` subtitle: the event timezone
- in `Talks` tracks: the current user timezone
- in a track page: the first user (admin) timezone

With this change in all those instance the event timezone is used.

There is still a usability hindrance in the backend: the timezone used
when encoding track or event datetime is the browser timezone.

So if the browser is GMT+2 and the event is GMT+6, encoding a 4h00 time
would save it as 2h00 (in UTC) and display it on the website as 8h00.

This would make sense to encode these datetime in user timezone but
currently there is no framework option to do it.

opw-805358
closes #22427
2018-01-22 12:38:52 +01:00
Christophe Simonis aac9cd4ca8 [MERGE] forward port branch 9.0 up to 216edc206c 2018-01-22 11:18:14 +01:00
Florent de Labarre c5586134a3 [FIX] purchase: keep context
Modify the existing context instead of replacing it.

Closes #22400
opw-806661
2018-01-22 08:43:45 +01:00
Odoo Translation Bot ae6037e17a [I18N] Update translation terms from Transifex 2018-01-21 00:42:13 +01:00
jem-odoo 2cd74cdd0d [FIX] hr_expense: don't display confusing button
When adding line from expense sheet, you don't want to see
the header with action button, nor the stat buttons.

Closes #16996
2018-01-19 15:37:05 +01:00
qsm-odoo 216edc206c [FIX] web_editor: properly evaluate if a range is an image
The previous implementation apparently came from an old version
of summernote (see https://github.com/odoo/odoo/commit/d33086c03fc1a0882be38ae62989b7f72df20d3b).

This commits should improve it to handle all known cases.

See https://github.com/odoo/odoo/issues/20877
2018-01-19 14:02:24 +01:00
Atchuthan, Sodexis 171ce8fb2a [FIX] payment_authorize: Credit cards expiration date
- Fixes the validation for credit cards expiration date.

In the courtesy of @SodexisTeam
2018-01-18 15:21:18 +01:00
qsm-odoo f314cf0bb3 [FIX] web_editor: deleteContents when no selection
Changing the `deleteContents` method of the editor is tricky. This
commit however dares to add a behavior: if the range does not
represent a selection but only the cursor position and is then asked
to delete its content... it should not do anything as nothing is
selected.
2018-01-18 15:19:16 +01:00
qsm-odoo cdb2cf744f [FIX] web_editor: DOMElement used as jQuery element
The function receives a jQuery element most of the time but it
may receive a DOMElement in some cases.
2018-01-18 15:17:48 +01:00
Christophe Simonis ea700016dd [FIX] mail: give access to mail.message to notified users
Before this commit, users had only access to messages if they were
recipients. However, you can still be notified for messages your are not
a recipient; leaving you with notifications (needaction) on unreachable
message.
2018-01-18 14:28:25 +01:00
Maximilien Tantin 710ce85c31 [FIX] website_sale: fix wizard_checkout when only services
This commit display only 'Invoicing' if cart have only service.
Set website_sale_order variable to get right context of order.

This commit closes 22259
2018-01-18 14:13:23 +01:00
Jairo Llopis a92eba42b8 [FIX] website_form: avoid race condition
This fixes what is explained in https://github.com/odoo/odoo/issues/20821#issuecomment-358574349

 (PR #22330)
2018-01-18 11:43:53 +01:00
Nguyen Duc Tam 094c735f00 [CLA] Signature for nguyenductamlhp
Closes #22255
2018-01-18 09:56:17 +01:00
Yenthe V.G 40998a4ded [CLA] OdooExperts signs CCLA
Company renamed, was Bas Solutions
Closes #22324
2018-01-18 09:39:44 +01:00
Christophe Simonis e72eb4f38d [MERGE] forward port branch 9.0 up to 74b564cf8d 2018-01-17 18:00:05 +01:00
Jeremy Kersten 74b564cf8d [FIX] website_slides: dont show upload button for public user
This commit closes #15369
2018-01-17 15:37:58 +01:00
Christophe Matthieu 128656f6ea [FIX] website: space symbol is missing when compress html is enabled
Issue: when the qWeb compress rendered HTML for a better Google PageSpeed
result, some text fields are missing spacebar between fa icons and text,
and between some fields.
2018-01-17 14:50:15 +01:00
Swapnesh Shah 57e37d6629 [FIX] calendar: Made Start/End date required in meetings
This commit closes #22279 and closes #21979
2018-01-17 14:12:06 +01:00
Swapnesh 0690911d75 [CLA] signature for sswapnesh
Backport of 4e333607f1

CLA already signed in v11
2018-01-17 14:12:06 +01:00
Goffin Simon c05c2cc03c [FIX] hr_payroll: Unable to refund payslip
The function action_payslip_done has been overwritten in module hr_payroll_account.
Due to this overwrite, the function compute_sheet which creates the payslip lines
was called after the creation of the entries.

Then creating a refund payslip didn't create any entries.

opw:785033
2018-01-17 13:11:41 +01:00
Nicolas Lempereur 80f1d9ded6 [FIX] mail: reduce no sudo effect mark_all_as_read
The "Mark all read" button either set all messages as read, or if a
domain is given, filter messages on it.

But this filtering is also dependent on not doing sudo so odd
notification to which we would somehow not have any access would never
disappear in the unread number.

Adding a sudo is risky, so this changeset just modify the test on domain
since in most instance the domain is just an empty list (so: []).

The added test before this change would fail at the last assert ("mark
all read should conclude all needactions even inacessible ones").

opw-805185
closes #22277
2018-01-17 11:49:48 +01:00
Nicolas Lempereur 23a2bac3fa [FIX] hr_equipment: no technician subscribe in 9.0
In 9.0, an "Human Resources / Employee" see only hr.equipment for which
they are set as the "Employee".

But the code automatically subscribed the "Technician" because the field
name was named technically "user_id" which is automatically subscribed
by the system.

This led to a possible issue with read / unread message because of
feature that just happen by coincidence.

For 9.0 only (in 10.0 the field has been renamed technician_user_id and
access rules have been changed).

opw-805185
closes #22273
2018-01-16 15:09:45 +01:00
Nicolas Lempereur ef8cd11a6b [FIX] website{,_slides}: display date in locale
In 10.0 since 52f268d0 some parts such as the date/datetime widget are
adapted to the current locale and not just displayed in english.

But the dates in the slides module are always in english because they
don't wait for the locale to be loaded.

To wait for the locale, this commit also adds a reference localeDef on
the website.website module.

note: this fix is only for [10.0,11.0[, another fix must be done in 11.0

opw-804555
closes #22241
2018-01-15 16:31:19 +01:00
Christophe Simonis 5a83c9143d [MERGE] forward port branch 9.0 up to 11c73cd0aa 2018-01-15 14:39:29 +01:00
Nicolas Martinelli d8112b0238 [FIX] purchase: change invoice date
- Create a PO, generate the vendor bill
- Change a price unit
- Change the invoice date

The price unit is reset to the PO value.

We only recompute it if the currency of the invoice is different from
the currency of the PO.

Fixes #22164
opw-804894
2018-01-15 08:47:05 +01:00
Odoo Translation Bot aa875b08af [I18N] Update translation terms from Transifex 2018-01-14 00:41:46 +01:00
Joren Van Onder 11c73cd0aa [FIX] stock_landed_cost: round former_cost of valuations for total_cost
When computing the total_cost of a landed cost make sure to round the
individual costs of the valuation lines the same way as done by the
ORM (i.e. with the 'Product price' precision).

Otherwise the sum of the additional costs on the valuation lines will
not equal the price of the cost lines. This is wrong and leads to
errors during validation.

opw-804396
2018-01-12 11:14:09 -08:00
Martin Trigaux afc2bb92e9 [I18N] Update translation terms from Transifex 2018-01-12 17:27:04 +01:00
Christophe Simonis d76237e038 [MERGE] forward port branch 9.0 up to 26d3b77a1d 2018-01-12 15:32:15 +01:00
Randall Castro aea2cafd18 [CLA] signature for rcastro-tyc
Done at #22184
2018-01-12 15:19:50 +01:00
Guillaume Masson 26d3b77a1d [CLA] update CCLA for META IT
To add github username
Closes #22185
2018-01-12 15:17:17 +01:00
Martin Trigaux f166a3b69a [FIX] website_blog: correct RSS feed
Order blogs by post_date
write_date is changed each time a new visitor reach the page (number of visit)

Fixes tw:legalsylvain/status/951559451399671808
Closes #22198
2018-01-12 14:16:05 +01:00
Nicolas Martinelli d0dbd570b6 [FIX] mrp: digits in move.production.lots
Add decimal precision to quantitites in stock.production.lots.
Otherwise, if the UoM uses a DP larger than 2, inconsistencies may arise
since the field is automatically rounded to 2 decimals in the interface.

For example, if the DP of the UoM is 4:
- Set Qty Done to 1.234567
- Save => qty recorded in DB is 1.234567
- Edit, change nothing and save => qty recorded in DB is 1.23

This happens since the web client parses the value in the DOM and
detects a value change.

opw-788078
2018-01-12 13:48:38 +01:00