Commit Graph
116859 Commits
Author SHA1 Message Date
Moises Lopez e68350fcb5 [FIX] project: iterate on a single task
Do not retrieve the attachment of all records
Performance impromevement when iterating on a large number of records

From #26446
2018-08-30 13:33:52 +02:00
Nicolas Martinelli 052a5702c5 [FIX] purchase: keep vendor reference
Create a PO and assign any string to the Vendor Reference field. Confirm
and create an invoice.

The Vendor Reference field on the invoice is empty, while it is expected
to be filled in.

opw-1879379
2018-08-30 10:07:35 +02:00
Lucas Perais (lpe) b8fe404eae [FIX] project: portal should see projects only when he has tasks
before this commit, on /my/tasks, in the filter dropdown, every project that had visibility = portal was displayed
regardless of whether the portal user was a follower or not

After this commit, we search project in a more clever manner

OPW 1878187
closes #26615
2018-08-30 09:17:23 +02:00
Goffin Simon 1962d17c4b [FIX] hr_attendance: White screen if employee is not set
When the user was not linked to an employee, the first screen of the Attendance app
(the check-in/out screen) stayed white.

opw:1880582
2018-08-30 09:12:34 +02:00
Nicolas Martinelli 93a586be7c [FIX] calendar: recurring events
Do not parse the rule with `rrulestr`, because converting back to string
will change the original rule.
2018-08-30 09:04:23 +02:00
Joren Van Onder a1802fa327 [FIX] point_of_sale: iface_print_auto doesn't require a POSBox
Auto-printing works with and without a POSBox. Skipping the print
screen only works with a POSBox.

Was possible in v10, small oversight of
80e89c7a11.

opw-1874390
2018-08-29 14:39:01 -07:00
Christophe Simonis 0b8ef693a0 [MERGE] forward port branch saas-15 up to 0dc8588c5b 2018-08-29 16:45:36 +02:00
Lucas Perais (lpe) 4ba87e073d [FIX] mail: right user_ids when calling /mail/follow
On a SO, write a note to a user
The mail the user receives contains a follow button
Click on it

Before this commit, the link did not add the user as follower of the SO
this was because the wrong uid was passed to the function

After this commit, user is added as follower

OPW 1869849
closes #26634
2018-08-29 15:58:10 +02:00
Christophe Simonis 0dc8588c5b [MERGE] forward port branch saas-14 up to 2a515bc7cb 2018-08-29 14:43:54 +02:00
Toufik Benjaa b367625248 [FIX] sale_payment: create payment.token when needed
- Before this commit, a sale order that generate a subscription and paid
  by the form method do not create a payment.token.

  After this commit, we check if the sale order need a payment.token to
  be created, if so we set the correct transaction type.
2018-08-29 13:55:03 +02:00
Nicolas Martinelli b53b637745 [FIX] mrp: 'To Consume' in workorder
Hide the field since it is always set to zero.

opw-1869511
2018-08-29 13:38:51 +02:00
Christophe Simonis 2a515bc7cb [MERGE] forward port branch 10.0 up to 068f1cd302 2018-08-29 12:13:48 +02:00
Christophe Simonis 068f1cd302 [MERGE] forward port branch 9.0 up to 5f25b902e5 2018-08-29 12:12:01 +02:00
len-odoo 683ecab8dd [FIX] web: use an unused variable in mock server
Fine-tuning of commit:
https://github.com/odoo/odoo/commit/818c18e55d0718286ff5bf332186a10f4d7a58ef
which introduced a variable that it didn't use.

opw 1867049
2018-08-29 11:04:46 +02:00
Goffin Simon 6bc2be09f5 [FIX] stock: Description for receptions are not being shown in Delivery Slip
Steps to reproduce

- Create a product with a custom description for receptions

- Create a purchase order

- Open the resulting picking

Shown behavior

- Product name is shown, description for receptions isn't shown in the delivery slip report

PS: Same scenario with a sale order

opw:1879069
2018-08-29 10:07:53 +02:00
Martin Trigaux a8469c4590 [FIX] tools: handle code in po
The previous code, as explained at b505ba9e0a, was to avoid creating duplicated
code entries for the same source (as only one is considered).

In case of a po comment like
 #. openerp-web
 #: model:ir.ui.view,arch_db:base.ir_access_view_search
 #: code:addons/web/static/src/js/chrome/search_inputs.js:716
 #: code:addons/web/static/src/xml/base.xml:1125
 #, python-format

the condition was not triggered (trans_type is model), creating two code entries

Necessary in #26614 to fix #26553
2018-08-28 18:10:03 +02:00
Martin Trigaux fe9cd11ab5 [FIX] base: generate translations in po format
Instead of csv, it allows to benefit from some features of POFile class like
handeling the duplicated terms correctly

In #26553, generating the missing terms was creating a new translation for
base.xml with no translation (value=src), making a previously translated term
no longer translated.

Closes #26614
Fixes #26553
2018-08-28 18:09:36 +02:00
Martin Trigaux 0312c604f4 [FIX] hr_gamification: allow employees to grant each other badges
When creating a new wizard, the related field user_id = employee_id.user_id
forces a write on employee model

Make sure we actually have the same value (to avoid using the wizard to modify
employees) and use sudo to grant the badge.

In master, the field should not be stored
2018-08-28 17:32:56 +02:00
Martin Trigaux 9e6e0da06f [FIX] web: accept false value in comparison
momentjs `isSame` method considers undefined values but not false
our method _isSameValue does consider false

Correct the error when running web tests
    Deprecation warning: value provided is not in a recognized ISO format
2018-08-28 16:10:40 +02:00
Goffin Simon 4a8d0b3484 [FIX] account: Rounding error with multi-currency payment
Fine tuning of this commit: a10ea93dbe

opw:1870351
2018-08-28 10:16:41 +02:00
Goffin Simon 3efc853f5f [FIX] stock_account: Display variant name in INVENTORY VALUATION report
When clicking on "Inventory valuation" in Stock module, the display name
of the variants didn't appear. So with a product template with several
variants, all the variants had the same name in the inventory valuation.

opw:1879572
2018-08-28 09:35:16 +02:00
LP Papillon b8e4374a4e [FIX] account_payment: use correct field
state_message instead of state_mesage

Closes #26444
2018-08-28 08:53:30 +02:00
LP Papillon 722b7e3867 [CLA] d2go Signs Odoo's CCLA
Done at #26444
2018-08-28 08:53:01 +02:00
Abdur-Rahmaan Janhangeer 5f25b902e5 [FIX] doc: update obsolete openobject link
The library https://github.com/syleam/openobject-library is obsolete
and advises to use OdooRPC instead.

Closes #26596
2018-08-28 08:49:57 +02:00
Abdur-Rahmaan Janhangeer 08d5390995 [CLA] signature for Abdur-RahmaanJ
Closes #26617
2018-08-28 08:49:03 +02:00
Sylvain LE GAL 3c0a0261be [FIX] doc: js mixin inheritance
Hamster extends Animal, not itself

Closes #26595
2018-08-27 15:26:40 +02:00
Devendra Kavthekar 6ab7f8d095 [CLA] signature for dek-odoo
Closes #26593
2018-08-27 14:20:13 +02:00
Josse Colpaert 12ceef0c12 [IMP] point_of_sale: posbox unbeta version 17 2018-08-27 13:26:20 +02:00
Lucas Perais (lpe) 7768abd40b [FIX] tools:image: reset stream on crop
When cropping the image with a size, we crop it first and then we make a thumbnail out of it

Before this commit, the same byte stream was used, meaning that the thumbnail was
appended to the original

After this commit, we reset the stream

OPW 1876496
closes #26575
2018-08-27 10:31:43 +02:00
Lucas Perais (lpe) c2b684654b [FIX] account: unreconcile payment from invoice with exchange difference
backport 1dbc655676

Company in USD
Invoice in EUR with rate A
Register a payment in EUR with rate B

Unreconcile them.

Before this commit, there was an error because we tried to reconcile the exchange items
with its reversal while the formers were already reconciled with the invoice

After this commit, there is no error

OPW 1864091
closes #26583
2018-08-27 10:26:39 +02:00
Dipalee Bhalodia 3c9aa50449 [FIX] web: Graph: group by two fields on line chart
Before this commit, when we applied two or more groupbys in line
graph, the groups displayed on the X axis where shifted to the left,
and the first one wasn't displayed at all.

related task: #1848289
Closes: #25037
2018-08-27 08:21:40 +02:00
Moises Lopez - https://www.vauxoo.com/ 8bda4744b5 [FIX] requirements: improve python3.7 compatibility
Continuation from https://github.com/odoo/odoo/commit/27c017ad98b4c9ac5fdcd28c9fd84d3690993118
PyYAML was missed in the list
Closes #26587
2018-08-27 08:19:53 +02:00
Odoo Translation Bot 7526b64e8a [I18N] Update translation terms from Transifex 2018-08-26 04:10:40 +02:00
Odoo Translation Bot 42e41b191c [I18N] Update translation terms from Transifex 2018-08-26 00:27:45 +02:00
Christophe Simonis 302ad0632c [FIX] base: set filename of javascript files of assets
A side effect of this bug was that other bugs like [1] wasn't caught by
the test suite.

[1] 2ed13c583e
2018-08-24 21:07:09 +02:00
Christophe Simonis 33981790de [MERGE] forward port branch saas-15 up to 4703d649dc 2018-08-24 18:03:00 +02:00
len-odoo 818c18e55d [FIX] web: fix js data during consecutive sequence of resequence moves
Let x_1, ..., x_a, x_{a+1}, ..., x_{a+k}, x_{a+k+1}, ..., x_{n} be a record
sequence ordered by its 'sequence' field.
Suppose the reordering occurs between elements x_{a+k} and x_{a+1}.
If the subsequence x_1, ..., x_a is ordered, then it does not change.
This is also true of the subsequence x_{a+k+1}, ..., x_{n}.
The resquence function makes exactly this assumption, and only sends the server
the subsequence x_{a+1}, ..., x_{a+k} to update its 'sequence' field.
The update of x is done as follows: it is index + offset, where index is the
position of x in the subsequence, and offset is the 'sequence' of the first
element of the sequence (i.e. x_{a+1}.sequence).

It is easy to see that we need another hypothesis: that the sequence numbers are
unique. To show it, suppose that the sequence of x_1, ..., x_a is 0, then all
x_{a+1}, ..., x_{a+k} have sequence 1, and lastly all x_{a+k}, x_{a+k+1}, ...,
x_{n} have sequence 2. Then after the call to the server resequence, the
subsequence x_{a+1}, ..., x_{a+k} would have sequence numbers 1, 2,..., k.
Since the x_{a+k+1}, ..., x_{n} subsequence have 'sequence' value 1, this would
obviously be incorrect.

We fix the reordering of the data in the js frontend to be consistent with
what is done by the server.
Note that this is only pertinent for sequences of reordering moves, since
otherwise the data comes directly from the server.

opw 1867049
2018-08-24 17:25:54 +02:00
Christophe Simonis 4703d649dc [MERGE] forward port branch saas-14 up to aeb3391a2d 2018-08-24 14:07:40 +02:00
Christophe Simonis aeb3391a2d [MERGE] forward port branch 10.0 up to b50958c40f 2018-08-24 11:42:33 +02:00
Lucas Perais (lpe) b50958c40f [FIX] account: allow range amount search for reconciliation widget
In the reconciliation widget, search for an amount like 5361.61

Before this commit, if the targetted line that you want to see was represented as 5361.61000001
you did not see it in the results of the search

After this commit, you do!

OPW 1872543
closes #26523
2018-08-24 09:43:51 +02:00
Invitu a19d2c98f4 [FIX] point_of_sale: consider timezone in return orders
Similar to 21575407 for returns
payment_date is a date field, make sure the day is the one of the user

Closes #25342
2018-08-23 15:52:55 +02:00
Nicolas Lempereur 01b1830219 [FIX] mail: access token in received cid images
Following 50ab18176 an access token is added in the URL, but there may
not be an existing access token. If so this commit generate one.

opw-1877347
closes #26526
2018-08-23 15:38:34 +02:00
Olivier Colson 12fbbacc6d [IMP] account: reconciliation widget: format dates depending on user's language preferences. 2018-08-23 14:53:25 +02:00
Swapnesh Shah d6ee2abb98 [FIX] point_of_sale: force invoice journal if enabled
When the option "iface_invoicing" is enabled, an account journal must be set.

Closes #24380
2018-08-23 14:10:14 +02:00
Hiral Bhavsar 5830fcf506 [FIX] account: reconciliation: Pass context properly when making RPC call
This way, language formatting is always performed (123.30 becomes 123,30 in French for example).
2018-08-23 13:29:41 +02:00
Lucas Perais (lpe) 7ea67cea2e [FIX] crm: make sure there is a create date when computing date_open
Display the field date_open in the crm.lead form view
Create a new record

Before this commit, there was a crash because since the record is a virtual one
there is no create_date, hence the crash

After this commit, we make sure we select records that have a create_date, and there is no crash

OPW 1877080
closes #26499
2018-08-23 11:27:26 +02:00
Christophe Simonis b844e9af8b [MERGE] forward port branch 9.0 up to 81f975d3f4 2018-08-23 10:54:52 +02:00
Toufik Benjaa 81f975d3f4 [FIX] mail: channel_get return wrong channel when duplicate partners
- In some cases (merge of partners, etc ...) there might be mail.channel
  that have two mail.channel.partner with the same res.partner.
  When you try to open a discuss window with a partner for which you
  have no existing mail.channel.
  The channel opened is the one where your partner is duplicated.
  This is due to the fact that the SQL request to find the mail.channel
  doesn't take in account that a mail.channel may have twice the same
  partner.

  To fix this issue, we try to exactly match the partners we search.
2018-08-22 17:59:22 +02:00
David Monjoie a66650a7fa [FIX] web: esc cancels kanban column quick create
The feature was already declared in AbstractQuickCreate, but the
ColumnQuickCreate object did not define a _cancel function.
2018-08-22 15:54:21 +02:00
Arnold Moyaux be4651cda3 [FIX] stock: compare quantities with different uom
Usecase to reproduce:
- Create a receipt for 1 dozen.
- Mark as todo
- Unlock and update initial demand to 3 dozen.
The reserved quantity on move line is 36 dozen.

It happens because reserved_availability and product_qty are
compare. However reserved_availability is in move UoM and product_qty
is in move's product UoM.

This commit clean the code in order to compare field that use the same
UoM.

Close #26504
2018-08-22 15:44:54 +02:00