Commit Graph
117156 Commits
Author SHA1 Message Date
Nicolas Martinelli a4e46846d7 [FIX] point_of_sale: float comparison
- Create the following pricelist for product A:
  4 Units: 2.88
  3 Units: 3.45
  2 Units: 4.85
  1 Units: 7.50
- In the POS, click several time on A to add in the cart

The 2 first units are merged in a single line, but from the third one a
new line is created.

This is because of the float reproesentation of 4.85, which becomes
4.8500000000000005.

opw-1887586

closes odoo/odoo#27539
2018-10-08 13:16:51 +00:00
Christophe Simonis 1b5f14713b [MERGE] forward port branch saas-15 up to 0ef5cedebb 2018-10-08 18:59:03 +02:00
Nicolas Lempereur 56fe8ee9ee [FIX] base: access_token test pass for python2
In 46f2e1918 that replaced traceback when accessing an attachment with
access token with 403 or 404 errors, the added test would fail if run in
python2.

fix for https://github.com/odoo/odoo/commit/46f2e191#commitcomment-30796449
closes #27514
2018-10-08 09:09:58 +00:00
Lucas Perais (lpe) 2c6cd3f357 [FIX] stock_dropshipping: check on purchase lines for everyone
confirming a sale order would fail without this fix if the user has access
to sale but not to purchase and/or stock

OPW 1890057

closes odoo/odoo#27429
2018-10-04 13:18:55 +00:00
Lucas Perais (lpe) de678fdd1e [FIX] account: invoice line form should contain fields present in the list
In the invoice form view, remove the editable attribute on the invoice line tree

Create an invoice, click add an item in the invoice_line_ids field

Before this commit there was a crash because the tree view contains analytic_tag_ids
but the invoice line form doesn't

After this commit, there is no crash and the invoice line form works as exepected

OPW 1889107

closes odoo/odoo#27382
2018-10-02 11:55:24 +00:00
Nicolas Martinelli be6bcae848 [FIX] account: reconcile error
- From the accounting dashboard, click on the 'Reconcile' button of a
  bank journal
- Click on the 'Bank reconciliation' text at the top left
- Click on the 'OK' button that just appears

A traceback occurs.

This event is used to change the name of the statement, when clicking on
'Reconcile' from a bank statemet. In this case, it shouldn't do
anything.

opw-1883308

closes odoo/odoo#27359
2018-10-02 11:15:51 +00:00
Arnold Moyaux 9cf22e5ef6 [FIX] stock: inventory display archived product
Usecase to reproduce:
- Archive a stockable product with quantity on hand
- Start an inventory with all products.

-> Archived product is displayed

It happens because the search is an SQL request that is build
and it thus does not benefits from the automatic search on active
objects.

This commit add an active search on quant for inventory lines.

Fixes #27302

closes odoo/odoo#27384
2018-10-02 12:57:00 +00:00
Odoo Translation Bot 47369090db [I18N] Update translation terms from Transifex 2018-10-07 04:11:56 +02:00
Niyas Raphy d3b2d1a82e [CLA] cybrosys signs Odoo CCLA
closes odoo/odoo#26597
2018-10-04 13:26:59 +00:00
Christophe Simonis 45922f397f [MERGE] forward port branch saas-15 up to 6cb75dc3d6 2018-10-03 16:43:31 +02:00
Odoo Translation Bot 6bb4b305f0 [I18N] Update translation terms from Transifex 2018-10-03 14:27:50 +02:00
Christophe Simonis 218eec5482 [MERGE] forward port branch 10.0 up to 854eb97b2e 2018-09-26 11:28:33 +02:00
Christophe Simonis 854eb97b2e [MERGE] forward port branch 9.0 up to bc14f30ecc 2018-09-26 10:17:05 +02:00
Nicolas Martinelli a6bf3ef7d8 [FIX] point_of_sale: AccessError
Missing `sudo` which prevents a non-admin to close a POS session.

opw-1888252
opw-1888358
2018-09-26 08:05:29 +02:00
Olivier Colson bc14f30ecc [FIX] l10n_co, l10n_cr: make 'bank & cash' accounts not reconcilable
Accounts of this type should not be reconcilable. When making payments, only the counterpart line should be, in some receivable or payable account.
2018-09-25 17:31:55 +02:00
Olivier Colson 6b96e5024a [IMP] account: forbid making a 'bank & cash' account reconcilable
Making a bank account reconcilable is a very common mistake, and leads to confusing and useless data (the move lines made on this account) to be displayed in the reconciliation widget. With this commit, we make sure the user cannot make this mistake anymore.
2018-09-25 17:31:55 +02:00
David Tran cf30f35f3e [FIX] base: address_format for Vietnam
Vietnam address should come with Province name, not `state_code`

Closes #27164
2018-09-24 10:21:04 +02:00
Odoo Translation Bot facc3b9a63 [I18N] Update translation terms from Transifex 2018-09-23 00:28:15 +02:00
Olivier Dony fe2df80d73 [FIX] mass_mailing: make campaign default to non-A/B testing
In A/B testing mode, a given recipient will only ever receive a single
email from a given mass-mailing campaign, no matter how many mailings
were sent to them.

This is useful for A/B-testing various mailings in order to check their
results. But is very difficult to understand for users who simply want
to organize their mailings into campaigns.

Additionally, the A/B testing option is hidden as a technical feature, so
it is hard to discover in order to troubleshoot unexpected number of
emails sent by a given mailing.

It will be safer to keep it off by default.
(keeping the parameter explicit, to better show that it is on purpose)

This partially reverts dee5c31264
2018-09-21 14:28:10 +02:00
Christophe Simonis d23601cc67 [MERGE] forward port branch saas-14 up to a119373b5b 2018-09-21 14:18:48 +02:00
Christophe Simonis a119373b5b [MERGE] forward port branch 10.0 up to cda1bec3e0 2018-09-21 10:42:19 +02:00
zeroheure cda1bec3e0 [DOC] cmdline: proper default for limit-memory
The default values for --limit-memory-(soft|hard) had been changed in
Odoo v8.0, but this change wasn't reflected in the cmdline --help.

Closes #22315
2018-09-19 14:47:13 +02:00
SimoRubi 05f1a7886c [FIX] project: project does not have hierarchical structure anymore
The action is not used anywhere but was not working

Closes #27034
2018-09-19 11:32:44 +02:00
Romain Derie 29b3b21ad2 [FIX] website_sale: website_order_line becomes computed field
Fix on sale_coupon (enterprise) https://github.com/odoo/enterprise/pull/2224 needs this change to be able to merge
SO lines when a program generates multiple discount lines on different taxes.

Closes #24971
task-1866977
task-1832967
task-1857843
2018-09-18 12:12:56 +02:00
Martin Trigaux 6dec0bc308 [FIX] calendar: compare display_name for empty recordset
When sorting by a many2many fields (e.g. partner_ids) with one of the record
having an empty value on the sorted field, the comparison method used to compare
and empty record (e.g. res.partner()) and a name_get result (e.g. "Agrolait").

This is because the sort_field was initialized with the result of self[field]
but never assigned a new value below.

Fallback on an empty string when no record is found

Fixes #26908
2018-09-18 10:51:10 +02:00
Christophe Simonis 03b83abb7f [MERGE] forward port branch saas-14 up to b28f705b64 2018-09-17 14:51:13 +02:00
Christophe Simonis b28f705b64 [MERGE] forward port branch 10.0 up to 69af1df70a 2018-09-17 14:15:46 +02:00
Christophe Simonis 69af1df70a [MERGE] forward port branch 9.0 up to 7dc13e237c 2018-09-17 14:06:21 +02:00
Nicolas Martinelli 034e1d37d9 [FIX] report_intrastat: delivery address
Complement of commit d5b46020c3, applied to the generic
Intrastat report.

opw-1878590
2018-09-17 13:38:28 +02:00
Nicolas Martinelli d5b46020c3 [FIX] l10n_be_intrastat: shipping country
- Create a partner in Germany
- Set an invoice address for this partner in Poland
- Create an invoice for the Poland address, but the delivery to Germany
- Validate invoice

The Intrastat reports the transaction in Poland, while it should be
Germany.

opw-1878590
2018-09-17 07:57:43 +02:00
jem-odoo 5937d13cf3 [FIX] portal: avoid strange domain when fetch messages
When fetching messages from the portal controller, we might
give a domain to restrict the message selection. Typically,
the ecommerce allows users to submit messages with rating
of the product. Users are allowed to filter the messages
with a certain rating.
Passing a non-normalized domain to this controller could
give strange result, as the code was using `+=` to concat
domains; some result domain could have been correct, but
return some strange results.

This commit normalizes all domains used in the code
making a non-normalized domain (given as parameter) crashes,
instead of returning unexpected messages.

Closes #26939
2018-09-16 12:32:24 +00:00
Odoo Translation Bot 548f8dba82 [I18N] Update translation terms from Transifex 2018-09-16 00:29:05 +02:00
Martin Trigaux a307d4fc80 [FIX] account_asset: use the last day of fiscal year for depreciation date
The depreciation was hardcoded as starting the first of January.
If a user changed the configuration to set a different value than 31/12 it had
no impact.

In saas-11.3, this was improved to allow to configure the behaviour at 805f3a610

opw-1878927
2018-09-14 12:03:21 +02:00
Lucas Perais (lpe) 9511cb2bb0 [FIX] point_of_sale: param for reconcile orders and payment
It has been argued that a regression took place because of e2efec8e54
Before that commit, everything was reconciled together
After, only payments and orders with a partner set were

While that commit improved performances (there are much less move lines to reconcile),
it introduced an inconvenience business wise because of the noise created
by the unreconciled lines

This commit proposes to cut the pear in half by introducing an ir parameter
to choose between the two options

OPW 1883594
closes #26971
2018-09-14 10:10:38 +02:00
Olivier Colson 7dc13e237c [FIX] l10n_es: apply correct type to each account. 2018-09-13 15:49:58 +02:00
Christophe Simonis a27a24c5ed [MERGE] forward port branch saas-14 up to 7322b7ee56 2018-09-13 11:33:56 +02:00
Christophe Simonis 7322b7ee56 [MERGE] forward port branch 10.0 up to dd20539ffe 2018-09-13 11:32:43 +02:00
Christophe Simonis dd20539ffe [MERGE] forward port branch 9.0 up to cbdb7383e9 2018-09-13 11:07:53 +02:00
Richard Mathot cbdb7383e9 [REV] account: revert 8781286f1c
Causes a traceback "Expected singleton" when opening the Reconciliation
from the accounting dashboard
2018-09-13 11:00:15 +02:00
Christophe Simonis a651e8eed8 [MERGE] forward port branch saas-14 up to 72b2bab8c8 2018-09-13 10:58:54 +02:00
Christophe Simonis 72b2bab8c8 [MERGE] forward port branch 10.0 up to e6ca846c65 2018-09-13 10:54:06 +02:00
Jeremy Kersten e6ca846c65 [FIX] base_geolocalize, website_crm_partner_assign: API keys are now required
Google Important Updated: API keys are now required
We began enforcing the use of API keys, effective June 11th 2018.
Keyless usage will result in a degraded experience, or an error.

https://developers.google.com/maps/billing/important-updates
2018-09-12 17:07:23 +02:00
Mathieu Duckerts-Antoine 4cbc9b8d61 [FIX] account: translate default overdue_msg
opw-1880132

Closes #26852
2018-09-12 16:52:29 +02:00
Frederik Kramer 60c9742dfb [CLA] backport signature for initos
This is a backport of 5a53e5b8e9 as requested at #26638
Added Florian Kantelberg to our team of contributors
2018-09-12 16:25:04 +02:00
Nicolas Lempereur 72d7dd8994 [FIX] *mail_thread: don't modify modified help
The 'help' of window action is often fiddled with, adding thing before,
after or arround it.

For example in CRM leads, we add at the beginning "Click to add a new
opportunity" with an arrow towards the button, and after if there is a
mail alias: "All email incoming to * will automatically create new...".

But for crm.lead, hr.expense, sale.order this would not take into
account that the fiddled "help" can be edited, so if we edit 2 times
help in studio or backend action editing, we would get:

  Click to add a new opportunity
  Click to add a new opportunity
  Click to add a new opportunity
  [Original help content]
  All email incoming to * will automatically create new...
  All email incoming to * will automatically create new...
  All email incoming to * will automatically create new...

And see several "arrows" towards the button (in enterprise the
additional ones are on same color background).

With this commit we do what is done in "mail.thread" by default which is
not fiddling with the `help` if has been fiddled before (if it contains
"oe_view_nocontent_create" class).

note: for 10.0 up to not including 11.0 which is fixed by #26911

opw-1877663
closes #26912
2018-09-12 13:11:21 +02:00
Gustavo Valverde 4ae13e68bf [FIX] account: Show receipt residual amount in invoice currency
When paying an invoice in USD, using EUR as payment. The residual amount was shown in the payment currency instead of the original invoice residual currency.

closes odoo/odoo#26916
2018-09-11 20:07:33 +00:00
Goffin Simon c2dfdc3081 [FIX] sale_mrp: Updating delivered qty
Steps to reproduce the bug:

- Create Product P: with BOM type - Kit and BOM components > Set - Invoicing: on delivered quantity
- Create SO with P and confirm - delivery 1 will be generated
- Cancel the SO - delivery 1 - will also get canceled
- Reset the canceled SO to quotation and confirm it - new delivery 2 will be generated
- Validate the delivery and receive product KIT

Bug:

Check SO - 'Delivered quantity' was not updated

opw:1888449

closes odoo/odoo#27358
2018-10-01 13:59:47 +00:00
Goffin Simon 1c6a7a1e58 [FIX] l10n_be_invoice_bba: Duplicating an existing in_invoice with BBA structured message
Steps to reproduce the bug:

- Create a partner P with communication type set to BBA

- Create an in_invoice I for P with a BBA structured communication

- Validate I and try to duplicate it

Bug:

A UserError was raised "Empty BBA Structured Communication!"

opw:1883982

closes odoo/odoo#27331
2018-10-01 09:21:18 +00:00
Gustavo Valverde a9a556178d [FIX] stock_account: Use product display_name in errors
When working with product variants, if the error which gets displayed does not include the product attributes, it's harder to identify the variant with the error.

closes odoo/odoo#27298
2018-09-28 12:38:34 +00:00
Christophe Simonis 56658ad8de [MERGE] forward port branch saas-15 up to 88fa382664 2018-09-28 19:17:24 +02:00