Commit Graph

92312 Commits

Author SHA1 Message Date
jir 6c23a9ca19 [ADD] Test cases of stock in new api. 2015-01-06 17:05:11 +01:00
Josse Colpaert 6ea0cc41b9 [FIX] Drop shipping invoice correction
When invoicing from dropshipping picking, choose the correct partner.
Also, change the partner on the picking to be the partner of the purchase.
Change the picking report to include the destination partner or the warehouse address on the right.

[IMP] Only put partner_id on move from purchase when really necessary

[FIX] Default value of partner on stock move should be False
2015-01-06 15:21:35 +01:00
Aaron Bohy ba37ae3cf3 [DEL] Cleaning: key 'images' removed from all __openerp__.py 2015-01-06 14:20:38 +01:00
Martin Trigaux cda46d7d81 [FIX] base: contact image wrongly displayed
The image of a contact of a company was wrongly resized.
Use image_small instead of image for correct ratio (anyway 48x48px).
Remove image_preview as always use image_small (was wrongly positioned and
considered as cache attribute, getting '&cache=NaN' urls...)
opw 593992
2015-01-06 12:31:25 +01:00
Arthur Maniet a6f31ee8e8 [IMP] account: bank statement reconciliation widget: added a 'Show more' button to load further reconciliations. PR #4519 2015-01-06 11:50:49 +01:00
Denis Ledoux ea54d4af9f [FIX] crm: opportunities button in partner form only count opportunities
Before, all crm.lead of the partner were counted, whatever it was a lead or an opportunity, but the button opens the opportunity tree, which has a domain type = opportunity. So leads were not displayed, and the count was therefore misleading.

Besides, the button is called "Opportunities", and it was misleading to count leads for a button with such a name
2015-01-06 11:33:07 +01:00
Olivier Dony d9e52f793b [FIX] res.lang: filter out unsupported format options in default locale info 2015-01-06 11:22:30 +01:00
Martin Trigaux 1d99784a0a [FIX] report: allow margin with size 0
Setting the margins of a paperformat to 0mm was ignored and fallbacked on wkhtml
default margins.
This change is considered as relatively safe as margin-* fields have a default
value and setting 0 is then an explicit choice.
Fixes #3367, opw 620130
2015-01-06 10:56:46 +01:00
Martin Trigaux 96d1520a5e [FIX] base: no line feed in translations
Revert "[FIX] ir_translation: remove control characters from translations"
This reverts commit 6d4e1cc73e.

This was intended to clean malformed translations but it introduced the side
effect of removing all '\n' in translations.

Fixes #4092, opw 619175
2015-01-06 10:43:54 +01:00
Martin Trigaux 39748abf8c Revert "[FIX] stock_account: return product at purchased price"
This reverts commit 1fd13fbe2b.
For FIFO it was not needed as the cost is already set to the returned quant.
For standard price, this is wrong as the stock is reevaluated when the product
price is changed.
2015-01-05 17:32:40 +01:00
Arthur Maniet 239e1618f2 [FIX] account: do not restrict tax move lines creation from account_move_line.create() 2015-01-05 16:29:08 +01:00
Arthur Maniet 371e96767d [FIX] account: account.move.line creation with account_tax_id accepts taxes with both base code and tax code or neither. base code xor tax code raises a warning.
Fixes #4452
2015-01-05 16:00:58 +01:00
Arthur Maniet 2107896d22 [FIX] account: bank reconciliation widget: a currency amount was not rounded
Fixes #4450
2015-01-05 16:00:58 +01:00
Denis Ledoux be5717434e [FIX] fields: apply user timezone in display name for models using a datetime as name
For models using a datetime field as name (hr.attendance for instance), the user timezone wasn't applied in the display name.
Therefore, in the breadcrumb, the datetime was different than in the form if the user had another timezone than UTC.

This rev. is related to 27d8cb843b, but is for the 8.0 api

We are aware we introduce a tiny change of API (method signature change), which we normally prohibit, but considering the really low level of the method, the fact it is probably not ovveriden by any other modules and the fact there is no cleaner way to correct this, we are making an exception.
2015-01-05 15:48:37 +01:00
Denis Ledoux 00762bbae0 [MERGE] forward port of branch saas-3 up to 643bbcb 2015-01-05 14:25:34 +01:00
Denis Ledoux 643bbcb00b [MERGE] forward port of branch 7.0 up to 27d8cb8 2015-01-05 13:48:01 +01:00
Christophe Matthieu 6471fa6ddb [FIX] website_sale: Discussion not working on product and gives '500: Internal Server Error' if public user try to comment on product (without login). Need to redirect to the login page (all user who want to write a comment have already buy the product and can use the portal login) 2015-01-05 13:30:36 +01:00
Martin Trigaux 9a9bf02b1b [FIX] product: display variant in product label report
Following d80c0ff, Fixes #3138
Proper for loop should be done when converting to QWeb report
2015-01-05 12:49:51 +01:00
Denis Ledoux 27d8cb843b [FIX] fields: apply user timezone in display name for models using a datetime as name
For models using a datetime field as name (hr.attendance for instance), the user timezone wasn't applied in the display name.
Therefore, in the breadcrumb, the datetime was different than in the form if the user had another timezone than UTC.
2015-01-05 12:48:38 +01:00
Martin Trigaux b303613f85 Forward port of branch saas-3 up to 6d41af4 2015-01-05 12:47:51 +01:00
Martin Trigaux 6d41af4432 Forward port of branch 7.0 up to d80c0ff 2015-01-05 12:41:05 +01:00
fka-odoo d80c0ff647 [FIX] product: Product Label report did not display product
The name of the product was stripped from the product label report
Fixes #3138 (only blank entries)
2015-01-05 12:36:36 +01:00
Aaron Bohy 6977c4daac [FIX] Packaging: debian: .dsc file reference to .tar.gz
Renamming logic (odoo_version.timestamp.extension) of published
files moved out of publish function
2015-01-05 12:15:23 +01:00
Aaron Bohy a8a8beb294 [IMP] Packaging: debian: package maintainer/descriptions updated
Mainly renaming of OpenERP into Odoo
2015-01-05 12:15:05 +01:00
Yannick Vaucher 5906f10436 [FIX] hr_holidays: Add missing context check
Backport of ead3f03
Fixes #4341
2015-01-05 11:37:15 +01:00
Martin Trigaux fefc13a2db [IMP] account: better fix than edbd0df for reconciliation test
Revert edbd0df
Instead of removing the demo data (demo data is our friend), make the test more
specific, adding a date to match the rate of 1.5289 all year long.
2015-01-05 11:30:49 +01:00
Martin Trigaux 33c8aae8e4 [FIX] orm: do not aggregate non-stored columns
Columns defined in the new api as interger, computed and non-stored should not be aggregated in read_group.
Fallback on False if column is None
Fixes #3972, opw 619536
2015-01-05 11:30:26 +01:00
David Monjoie 1d64b65103 [FIX] website_sale_options: use field image_medium instead of image like in the modal template 2015-01-05 10:38:51 +01:00
Jeremy Kersten faee926f1b [FIX] google_calendar - force to strip client_id and secret key.
Fix #4280
Copy Past from google or default value contains some space which need to be trimed.
2015-01-05 10:23:01 +01:00
Martin Trigaux edbd0df9a0 [FIX] account: test assuming specific currency rate
Old demo data hardcoded the currency rate of USD to 1.5289 at the half
of the year, introducting new year red runbot.
Using assertAlmostEquals to avoid values like 32.730000000000004
2015-01-02 14:24:56 +01:00
Frédéric Van der Essen d1c3ff5127 Merge pull request #4120 from initOS/8.0-escpos_command_presorting
[FIX] implement pre-ordering of ESCPOS commands
2014-12-31 15:48:31 +01:00
Ronald Portier (Therp BV) 7c2795ca04 [FIX] base: specify correct pot file linked to po
In case of different directory for stroing po and pot files than 'i18n'
(e.g. 'i18n_extra'), a po could be linked to a wrong pot file.
Use the same folder as the po file to look for pot.
Fixes #4326
2014-12-31 13:56:54 +01:00
tfossoul f3c4688715 [FIX] Calendar : virtual ID fix. Close #4465 2014-12-31 11:56:28 +01:00
Jérome Maes 1adb3de371 [FIX] mail : close #2250. If trying to send empty message in chatter, no other messages can be send wihtout refreshing page. Moving the flag_post allow sending a new message only when the previous one is sucessufully sent. If case of empty message, nothing will happen, and the chatter will not be blocked. 2014-12-30 11:24:55 +01:00
Nicolas Seinlet 8347d36bf1 [FIX] use inner join to avoid null id's in read_group 2014-12-29 15:22:35 +01:00
Josse Colpaert 52f7fad109 [FIX] Factor should be compared with factor, not id 2014-12-29 11:20:02 +01:00
Frédéric van der Essen aab3d9f4b4 [FIX] point_of_sale: use the same rounding sequence as the backend
Conflicts:
	addons/point_of_sale/static/src/js/models.js
2014-12-26 17:52:06 +01:00
Frédéric van der Essen 4647f896a4 [FIX] point_of_sale: prevent negative bank payments 2014-12-26 17:50:07 +01:00
Maxime Chambreuil fa515607cb [FIX] Issue #4424 2014-12-25 14:57:46 -05:00
Frédéric Van der Essen 681c33aa11 Merge pull request #4027 from akretion/8.0-fix-4026-discount-barcode
[FIX] Fixes #4026 on discount barcode in POS
2014-12-24 16:33:58 +01:00
Aaron Bohy 3505dcce70 [FIX] web: view_form.js: radio buttons bug fix
Clicking on a checked radio button doesn't uncheck it anymore
2014-12-24 15:37:50 +01:00
Xavier ALT 8de7be6219 [FIX] stock_account: keep all picking origins when creating a grouped invoice 2014-12-24 15:23:36 +01:00
Denis Ledoux 753a4d787d [FIX] website_blog: ids of create_history method may be an integer 2014-12-24 15:13:22 +01:00
Denis Ledoux 1684206122 [MERGE] forward port of branch saas-3 up to 0b1b820 2014-12-24 14:04:18 +01:00
Denis Ledoux 0b1b820677 [MERGE] forward port of branch 7.0 up to 6372313 2014-12-24 14:02:17 +01:00
Denis Ledoux 5a207fa08e [FIX] web: firefox print all pages of list view
opw-619093
2014-12-24 13:52:45 +01:00
Denis Ledoux 6372313494 [FIX] web: datetime value parsing without time
If the date format language was changed to invert month & day values (so, changed to the classic european format instead of the american format)
Then, when entering manually a datetime without the time (so just '01/02/2014' instead of '01/02/2014 00:00:00', the day and month were inverted (the datetime was set to 02/01/2014 instead of 01/02/2014) because the datetime entered did not exactly match the date + time pattern.

We therefore added a fallback case, to test to parse the value with the date pattern alone (without the time)
2014-12-24 11:37:55 +01:00
Martin Trigaux 1fd13fbe2b [FIX] stock_account: return product at purchased price
For FIFO and standard price, return product at the purchased price instead of
the cost or current standard price.
Not applied for average as returning a purchased product do not recompute
the average price and would lead to an inconsistency in the stock value.
opw 615263
2014-12-24 11:23:51 +01:00
Aaron Bohy e607f03fd0 [FIX] packaging: debian: references to README.md removed 2014-12-24 09:45:10 +01:00
Jos De Graeve 544eefdd32 [FIX] website: add missing decorator for better guess type
The definition of the render method was guessed as cr_uid_context instead of
cr_uid_ids_context, making calls in the new api breaks
Fixes #4401
2014-12-23 14:29:59 +01:00