- 23 Apr, 2016 2 commits
-
-
Odoo Translation Bot authored
-
Nicolas Lempereur authored
For the partner ledger report, since LEFT JOIN are used in the request we could get NULL values which broke the following code. note: issue reported on 7c6c1880
-
- 22 Apr, 2016 9 commits
-
-
qsm-odoo authored
Commit 3b19fa42 fixed a bug where the column title of kanban group was overflowing its area when too long. However, when the column is folded, the title is now really small (width of the folded column) and then stopped to add the "..." ellipsis. The solution is to let the text overflow when the column is folded.
-
Nicolas Lempereur authored
As noted in the csv module documentation*, up to python 2.7 it is best to used UTF-8 as input (and worst to use UTF-16 csv). closes #11792 opw-674756 * https://docs.python.org/2/library/csv.html
-
Tanguy Charlier authored
Before showing a chat notification, a check is performed to ensure that the browser does support notifications. On browsers that do not support Notification (IE, android native,...), the check was wrong and would eventually cause a traceback. This will no longer happen.
-
qdp-odoo authored
[FIX] account: bank statement reconciliation with taxes use case. The journal item for the bank should have the same amount as in the statement line except in case of already recorded payments only. Ticket 673358
-
Tanguy Charlier authored
* It is always better to restrict the read to the fields that are actually needed * In this particular case, since _get_task is called during the create() of an an analytic line with task_id set, it would result in reading the analytic line being created, which will overwrite the cache for stored computed fields with wrong empty values. Restricting the fields to read means that computed fields are not read and keep their appropriate values
-
Aaron Bohy authored
-
Nicolas Lempereur authored
opw-675734
-
Nicolas Martinelli authored
During batch invoicing, the client reference kept is only the reference of the first invoice. opw-673188
-
Nicolas Martinelli authored
'Write-Off' is not an appropriate label when the payment is reconciled. A write off (aka. bad debt) is when I emitted an invoice, delivered a service, and never got paid for it entirely. opw-672716
-
- 21 Apr, 2016 10 commits
-
-
Olivier Dony authored
- The "From" should not be the administrator user but the postmaster/system, and should be an address that ignores double-bounces. Using the default bounce email accomplishes both. - The "To" recipient should be the "envelope from" sender when available, usually as provided by the "Return-Path" header set by the upstream MTA. If not present, fall back to the "From" of the original email. - adapt tests to verify the behavior wrt Return-Path
-
Fabien Pinckaers authored
opw-674409
-
Raphael Collet authored
The translation value is given as an HTML fragment. It is converted to a valid XML fragment if the translation's field requires it.
-
Nicolas Martinelli authored
When the stage name is too long, the column header is messed up: the 'Settings' and the 'Quick Add' icons are located outside of the column. The fix is to truncate stage names when they are too long. opw-672710
-
Denis Ledoux authored
When clicking on the "Refunds" link of a Sale / Purchase invoices journal, creating a new invoice did not create a new refund invoice, but a normal invoice. opw-675408
-
Denis Ledoux authored
The above revision allow to edit an event with a start date greater than the stop date. This issue was solved by the revision 6c785419 that the above revision reverts. The reason why the constraint on `event.start` and `event.stop` was replaced by a constraint on `event.start_datetime` and `event.stop_datetime` and `event.start_date` and `event.stop_date` are explained in 6c785419: Basically, `start` and `stop` are computed fields, that are not recomputed in time, before the constraint is checked. Besides, the revision b7e393a7 re-set the constraint on `start` and `stop`, but forget to replace the fields in the constraint definition: ``` (_check_closing_date, 'Error ! End date cannot be set before start date.', ['start_datetime', 'stop_datetime', 'start_date', 'stop_date']) ``` opw-673297
-
pvy authored
-
Goffin Simon authored
When creating an customer invoice with a product linked to a deferred revenue category, the account used in the invoice line must be the account_asset_id. When creating an vendor bill with a product linked to an asset category, the account used in the invoice line must be the account_depreciation_id. opw:22157
-
Nicolas Lempereur authored
An account.move.line could be not linked to a partner. opw-675586
-
Nicolas Martinelli authored
The method `compute_all` in new api expects a browse record, not an id. opw-675428
-
- 20 Apr, 2016 19 commits
-
-
Nicolas Martinelli authored
Commit 6339bae8 fixes the tests, but now the tests are not testing what should be tested ;-)
-
Christophe Simonis authored
Previous forward-port (17b6191a) includes new tests (added by eb26694e) which are now broken because quants with a cost of zero are forbidden. Force a standard_price on created product to avoid this situation. Adapt quants cost values. Also change references of accounts and journals on records.
-
Géry Debongnie authored
The read_slice method in dataset is problematic, because it alters the dataset ids. So, if 2 consecutive read_slice are started, but the first one ends after the second one, we don't have the correct ids in the dataset. This commit just make sure that previous read_slice do not alter the ids of the next read_slice.
-
Géry Debongnie authored
These 2 commits in kanban view fixed 1 bug by introducing a few other severe bugs. The tradeoff is not worth it, especially when it is balanced again deleting some contacts in your database.
-
Denis Ledoux authored
Adding date & datetime inputs in the website form builder couldn't work, because the posted values for these input types were not treated at all, and they were not in the format the date/datetime were stored in database. opw-672674
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Nicolas Martinelli authored
Oversight of commit bd025cda. I'm an idiot, I should have checked that another solution was applied from 9.0 with accounting refactoring. We apply it here as well.
-
Nicolas Martinelli authored
When stock landed costs are divided per product unit, inconsistencies may arise between the real stock valuation and the stock valuation account. This is likely to happen when several products are bought, but these products leave the stock one at a time. A numerical example is the following: a landed cost of 15.00 is applied to a purchase of 13 units. An amount of 15.00 is recorded when the products enter the stock. If the product leave the stock one at a time, 13 entries of 1.15 are recorded (15.00/13 = 1.153846... ≈ 1.15), which is then equal to 13 * 1.15 = 14.95. In this case, All the products have left the stock (stock valuation is zero), but 5 cents remain on the account. This is of course even worse the higher the ratio is. For example, a landed cost of 4.00 split into 1000 units sold piece by piece will never be recorded when a product leaves the stock. The fix is to record the rounding difference on a specific quant. In the previous example, instead of adding 1.153846... on the unit cost of the 13 units, we do the following: - 12 units to which we add 1.15 on unit cost - 1 unit to which we add 1.20 on unit cost opw-675222
-
Nicolas Martinelli authored
When the product price is divided per product unit, inconsistencies may arise between the real stock valuation and the stock valuation account. This is likely to happen when a product is bought in a UoM different from the standard UoM of the product. A numerical example is the following: a box of 13 is bought for 15.00. An amount of 15.00 is recorded when the products enter the stock. If the product leave the stock one at a time, 13 entries of 1.15 are recorded (15.00/13 = 1.153846... ≈ 1.15), which is then equal to 13 * 1.15 = 14.95. In this case, All the products have left the stock (stock valuation is zero), but 5 cents remain on the account. This is of course even worse the higher the ratio is. For example, a box of 4.00 split into 1000 units sold piece by piece will never be recorded when a product leaves the stock. The fix is to record the rounding difference on a specific quant. In the previous example, instead of adding 1.153846... on the unit cost of the 13 units, we do the following: - 12 units to which we add 1.15 on unit cost - 1 unit to which we add 1.20 on unit cost opw-675222
-
Nicolas Martinelli authored
The precision of `former_cost_per_unit` should not be set. Indeed, a stock move can contain several quants with different unit prices. Therefore, we should not round the field when stored, otherwise the difference per unit will not be calculated correctly. This is a workaround since we cannot change the DB structure in stable. opw-675222
-
Nicolas Martinelli authored
Use the normalized quantity, otherwise the amount per unit is wrongly calculated.
-
Goffin Simon authored
Translation. opw:674632
-
Goffin Simon authored
The Cost of Good Sold should be of type "Direct Costs opw:674632
-
Olivier Dony authored
Complement of f992c8ee, to be reverted in saas-6+ and in 8.0 when Chrome's fix reaches the stable Chrome channel. Fixes #11629 See https://bugs.chromium.org/p/chromium/issues/detail?id=603507
-
Joren Van Onder authored
Everything's displayed fine on orderlines with weighable products, this only affected the small blue labels on the products. opw-674264
-
Denis Ledoux authored
When importing a quotation, if the lines `name`, `price_unit`, `product_uom` or `tax_id` are not specified, but the product is, retrieve them from the product `on_change` This was the case in Odoo 8.0, it was done as well in the override `create` method of `sale.order.line` opw-675434
-
Denis Ledoux authored
The location name get is computed as: `parent.name + '/' + child.name` While, the complete was computed as: `parent.name + ' / ' + child.name` This leaded to an obvious inconsistency. Besides, this prevented to use the `location` filter in the search of the products list to know the quantity available of products for a specifc location, as the domain used to retrieve the locations is set as `[('complete_name','ilike',context['location'])]` `context['location']` containing the content of the `name_get` (No spaces surrounding `/`) and `complete_name` surrounding `/` with spaces. opw-674378
-