Commit Graph
108492 Commits
Author SHA1 Message Date
Nicolas Martinelli ecda057e11 [FIX] payment_stripe: integer currencies
Complement of commit b335ae0348

opw-760707
2017-08-03 11:05:16 +02:00
Timo Talvitie 1be57f2825 [CLA] Corporate CLA for Vizucom Oy
Done at #18591
2017-08-03 11:04:05 +02:00
Fabien Meghazi 2c0f6f39d7 [IMP] http: improve dumpstacks and remaining requests handling during tests (#18640)
This patch modifies Root#dispatch() in order to keep the httprequest url
in the current thread's attribute and use if for dumpstacks and the
phantomjs tests remaining requests handling.

Also added a counter in order to avoid looping forever when trying to join unclosed http requests
in phantomjs test suite after a phantomjs failure + added a log.warning in such a case so it's easier to troubleshoot runbot's ir.logging.
2017-08-03 10:50:18 +02:00
Lucas Perais (lpe) ef39b3d9e4 [FIX] account: bank_statement: journal accounts not required in reconciliation widget
Use case: click on "reconcile X items" on a journal which doesn't have its default credit or debit account set.
Result: Before this commit, a useless traceback popped to the user.
After this commit, move lines are searched without taking into account the journal's default accounts for debit or credit

OPW 760305

Closes #18485
2017-08-03 09:54:47 +02:00
Lucas Perais (lpe) ac3bfee8f3 [FIX] website: fix html editor view to be edited
Before this commit, the view selected to be edited by the html editor was the wrong one
This was caused by the simplification brought about by commit a2ae219d4e
which transfered from python to js the decision to make a view a header for the [customize] menu (on the website
In this case, the first view in the return list of python was the header, and the second the actual view

Now that python just sends a list of unique views without any distinction whatsoever, the right view to pick when entering the html editor is the first one, at index 0

opw 760279

Closes #18603
2017-08-03 09:36:01 +02:00
oco-odoo 7ac19968f7 [FIX] stock_account: currency comparison on invoices (#18655)
In anglosaxon accounting's stock valuation, the case where invoice and company currencies are different was not managed properly, because of a syntactic error in the condition checking this case.

(this has already been merged on saas-14, but the PR should have initially been made for 10.0 ... my mistake ! See https://github.com/odoo/odoo/pull/17259 )
2017-08-03 09:34:42 +02:00
Goffin Simon 89360f9d9b [FIX] product: Two product.price.history created for one variant
When a unique variant was created from a product template with function create_variant_ids,
two product price history were created:

-One was created from function create on product.product
-The other one was created from function _set_standard_price on
product.template

The first product.price.history created in this situation was all the time
set to 0 and it lead to some problems in the report inventory date.
This first product.price.history doesn't have to be created.

opw:747857
2017-08-02 16:42:26 +02:00
Benjamin Willig f32b8acb2c [FIX] account: performance on manual reconciliation
Avoid reconciled move lines selection during manual reconciliation

Closes #18435
opw-756956
2017-08-02 15:51:47 +02:00
Nicolas Martinelli ce8c3af3a9 [FIX] base: default company on rate
- Activate multi-company
- Company B is parent of Company A
- Admin is in Company A
- Demo is in Company B
- Create a rate with Demo

The rate is recorded on Company A, not Company B as expected.

This is because we call: `self.env.user._get_company()` which would be
equivalent to `self.env.user.env.user.company_id`. Since the user is
browsed as `sudo`, it returns the company of the Admin.

opw-753139
2017-08-02 14:04:35 +02:00
Nicolas Martinelli b335ae0348 [FIX] payment_stripe: integer currencies
The currencies with zero decimal should not be multiplied by 100. See
https://stripe.com/docs/currencies#zero-decimal

opw-760707
2017-08-02 11:02:36 +02:00
Goffin Simon d28e410d36 [FIX] hr_expense: adding new line on an approved expense report
When an expense report is confirmed, it's not possible to add a new
line.

opw:755969
2017-08-02 10:11:39 +02:00
Christophe Simonis afd4b68acc [FIX] website_crm_partner_assign: mock geolocalisation during tests 2017-08-01 22:39:29 +02:00
Christophe Simonis d1cf4f9672 [MERGE] forward port branch saas-11 up to ed36929265 2017-08-01 22:39:16 +02:00
Christophe Simonis ed36929265 [FIX] core: avoid tests to contact gravatar server 2017-08-01 22:03:39 +02:00
Goffin Simon 39892cdaa1 [FIX] account: Only 64 characters for the name of an entry
When creating a customer invoice with description/reference with more than
64 characters, the description was cut to generate the name of the account move
lines. But it's possible to create an entry with more than 64 characters as name
by the interface. The limitation is deprecated.

opw:760316
2017-08-01 17:14:28 +02:00
Christophe Simonis e6ad245634 [MERGE] forward port branch saas-11 up to ab0e083ecb 2017-08-01 17:00:03 +02:00
Christophe Simonis ab0e083ecb [MERGE] forward port branch 9.0 up to 587668797e 2017-08-01 16:32:23 +02:00
Christophe Simonis 587668797e [MERGE] forward port branch saas-6 up to b3ddbbd4ba 2017-08-01 16:05:13 +02:00
Christophe Simonis b3ddbbd4ba [MERGE] forward port branch 8.0 up to 40197b38e5 2017-08-01 15:44:24 +02:00
Christophe Simonis e2826028ab [FIX] website_slides: only query google api if info is missing
With demo data, avoid doing requests on external service for
information we can provide.
2017-08-01 15:39:02 +02:00
Nicolas Martinelli 6c3bff8fd3 [FIX] stock: traceability button
- Archive a product
- Click on "Traceability" stat button => crash

opw-760717
2017-08-01 15:06:10 +02:00
Nicolas Lempereur 40197b38e5 [FIX] web: typo css class 69925ca6
opw-760956
closes #18601
2017-08-01 14:05:21 +02:00
Nicolas Lempereur 69925ca6f0 [FIX] web: display prev/next arrow after grouping
On a list view, if we group records the arrows and changing page
feature are disabled. But if then we removed the grouping, the arrows
never reappeared.

note: not necessary as of 9.0 it was already solved in 1280bf251

opw-760956
closes #18596
2017-08-01 13:56:26 +02:00
Jeremy Kersten 66a6b670e9 [FIX] stock: improve warning to help user to find blocking move.
Add into the warning message the list of stock.move that raise the constraints
error.

When you create an 'Inventory Ajustment' of 1000 lines and see this error,
it is not easy to find which product could cause the problem.

This solution is not perfect since the name is not uniq, but it decrease
drastically the number of record to check manually.

opw-760643
2017-08-01 10:43:36 +02:00
Jeremy Kersten 856f35eb21 [FIX] UserError: don't display None in Warning popup.
UserError uses a retrocompatibility function 'except_orm' which one can take a
second parameters. The default value of this second param is None, so if we
don't force an empty string, we will see a None on each raise UserError as last line.
2017-08-01 10:43:36 +02:00
Goffin Simon abbb937607 [FIX] sale_stock: return a delivered product with a non internal location
When returning a delivered product with a non internal location,
the delivered quantity on the SO was not updated.

Steps to return a delivered product:
- Click on button "Return" on stock.picking
- Check the refund box
- Click on return
PS: for the field return location, you can choose a child location from
WH/stock. So it can be a not internal one.

opw:749610
2017-08-01 09:33:06 +02:00
Goffin Simon 8452cc2e36 [FIX] purchase, sale: Warning message visibility on Product
When "No message" is set on field purchase_line_warn/sale_line_warn,
the message doesn't have to be displayed in the respective field
purchase_line_warn_msg/sale_line_warn_msg.

opw:760801
2017-08-01 09:27:36 +02:00
Odoo Translation Bot bbd4e7e292 [I18N] Update translation terms from Transifex 2017-08-01 02:40:08 +02:00
Nicolas Martinelli 9bb2e4595d [FIX] l10n_in_hr_payroll: IFSC code
The IFSC code is not populated when the advice is created automatically
(no onchange triggered).

opw-746466
2017-07-31 15:53:44 +02:00
Nicolas Martinelli 88c9ab3cbc [FIX] hr, hr_contract: personal information
Personal information should be protected at the model level, not only
the view. Otherwise, user can read these fields when exporting.

Courtesy of @odony

opw-752734
2017-07-31 11:48:02 +02:00
Christophe Simonis 1e64a88cd3 [MERGE] forward port branch saas-11 up to 285a9d0406 2017-07-31 11:17:16 +02:00
Christophe Simonis 285a9d0406 [MERGE] forward port branch 9.0 up to 3bda87a8d3 2017-07-31 11:13:41 +02:00
Goffin Simon 6fe846ec2f [FIX] purchase: Wrong scheduled date for backorder
Fine tuning of this commit:7333f5e

When the PO lines were not ordered according to the scheduled date,
the scheduled date of the picking was wrong when delivering.

opw:752192
2017-07-31 10:28:24 +02:00
Fabien Meghazi b244f31151 [FIX] server: don't crash in case we can't check if a database exists
In case Postresgl access rights prevents the pguser to access
`pg_database`, the server should not crash when trying to create the
database because the pguser does not have the right to check if the
database exists and he won't be able to create a new database anyway.

However the database might exists and in such a case the flow should
continue. This patch allows the flow to be resumed in such a case, and
in case the database did not actually exists, a warning will tell the
user that it was not possible to check if the db existed and the
registry for this database will fail to be loaded afterward.
2017-07-31 10:03:45 +02:00
Goffin Simon 3bda87a8d3 [FIX] point_of_sale: Default lang when creating a partner
When creating a partner in Sales app, the default language is the language
of the user. The same behavior is expected in the POS.

opw:752739
2017-07-31 09:38:06 +02:00
Odoo Translation Bot b1e79e85bd [I18N] Update translation terms from Transifex 2017-07-30 04:40:00 +02:00
Odoo Translation Bot 6493dc9837 [I18N] Update translation terms from Transifex 2017-07-30 00:32:09 +02:00
Christophe Simonis a6d30abccd [FIX] website_slides: set title when creating link tracker of slide
Avoid the link tracker to querying the slide to get it.
2017-07-29 17:03:24 +02:00
Jeremy Kersten 3d558c435a [FIX] stock: improve warning to help user to find the picking that block.
When you valid a picking wave of 100 pickings, and that one is blocked
(eg: no serial attributed), you have no way to know wich one fail except
opening all one by one.
2017-07-28 18:30:01 +02:00
Jeremy Kersten f3f66d2b8e [FIX] web: avoid cast None in int
Some function send None instead of 0
2017-07-28 18:30:01 +02:00
Christophe Simonis e686385138 [MERGE] forward port branch saas-11 up to 5e6637a240 2017-07-28 16:26:57 +02:00
Christophe Simonis 5e6637a240 [MERGE] forward port branch 9.0 up to b054902655 2017-07-28 16:24:48 +02:00
Christophe Simonis b054902655 [MERGE] forward port branch saas-6 up to 683a7cb029 2017-07-28 16:23:27 +02:00
Christophe Simonis 683a7cb029 [MERGE] forward port branch 8.0 up to 1644b92fd8 2017-07-28 16:18:08 +02:00
Thibault Francois 1644b92fd8 [FIX] account format error message correctly
Cherry-Pick of a04c1a2ac5244fe2fd3098fc22c59d336e352981
2017-07-28 16:15:35 +02:00
Yenthe V.G d82933d8e7 [FIX] web: change exception name from openerp to Odoo
The crash manager still used the old name for the exception. (PR #18522)
2017-07-28 15:44:18 +02:00
Christophe Simonis a7b7576536 [FIX] test_converter: declare string containing unicode as unicode 2017-07-28 15:41:46 +02:00
Thibault Delavallée 55d9c37520 [FIX] payment_authorize: avoid crash when contact ogone without street on partner 2017-07-28 15:07:52 +02:00
Olivier Dony 586b97e17b [FIX] crm: correct duplicate record ID
Introduced by a8c5b7810f

+ spellchecking
2017-07-28 11:19:37 +02:00
Christophe Simonis c39f7e4987 [FIX] mrp: force help message in unicode 2017-07-27 23:03:02 +02:00