Commit Graph
101541 Commits
Author SHA1 Message Date
Nicolas Martinelli fe413bc8be [FIX] purchase: taxes from PO
If a user removes the taxes on a PO line, the product taxes will be
added back when the invoice is created.

opw-676858
2016-05-11 11:10:44 +02:00
Joren Van Onder c162e3489f [IMP] point_of_sale: verbose logging when dealing with 'rescue' sessions
When dealing with issues related to 'rescue' sessions we are very
limited in what we can do because the actual orders sent to the backend
exist only in localStorage in the browser on the device of the
user. Because of this it is important that we log some data about the
orders we receive in the backend to have an idea of what's going on.

opw-676497
2016-05-11 10:47:47 +02:00
qdp-odoo e6be42b168 [FIX] account: endless loop in exchange rate entry creation on full reconciliation fixed. ticket 676467 2016-05-11 10:43:25 +02:00
Nicolas Martinelli 2ad4bd4846 [FIX] account: print multiple GL
When several accounts are selected to print their GL, the GL of only one
is printed. This is due to two issues:
- 'active_id' is retrieved instead of 'active_ids'
- the method `get_action` is called with the wrong records. `self`
  refers to the wizard, not to the accounts selected.

opw-676061
2016-05-11 10:11:24 +02:00
Nicolas Martinelli 34f09a0e69 [FIX] base: no-break space in qweb
A non-breaking space is used between the amount and the currency.
However, if a space is used as a separator, there is a possibility that
the amount will be split into several lines.

opw-674535
2016-05-10 16:05:27 +02:00
Nicolas Martinelli 9348416867 [FIX] account payment difference sign
When a payment is registered on an invoice, the payment difference must
be considered differently if we receive the payment or pay a bill. This
is necessary at the creation of the 'Counterpart' entry. For example,
an invoice of 100 is considered as paid with a payment of 90. The
difference of 10 should be booked as a debit in case of a customer
invoice, but it should be booked as a credit in case of a vendor bill.

opw-675641
2016-05-10 15:32:42 +02:00
Denis Ledoux 77cb5f0ee0 [FIX] calendar: edition of events duration
In event not during all day, it looks like
`start_date` could be defined, but `stop_date` not.

Despite the fact this is not such a normal state, this should
not prevent the save of the event with the
`_check_closing_date` constraint, checking that the ending
date is after the starting date
(in the case of an event not during the whole day,
this is ensured with the `start_datetime` and the
`stop_datetime`

opw-676245
2016-05-10 14:44:02 +02:00
Joren Van Onder 28a9336ac8 [FIX] barcodes: also allow barcodes triggering buttons in dropdowns
On smaller screens some buttons will be hidden. An example of this is
the 'Validate' button in the stock.picking form view. It is not :visible
but it should still be possible to trigger through scanning a
'O-BTN.validate' barcode.

opw-676741
2016-05-10 12:59:37 +02:00
Martin Trigaux 59982a04a4 [FIX] tools: keep comment in CSV export
The comments field was ignored (because reasons) when exporting terms in CSV.
This was an issue when using the wizard 'Synchronize Terms' as it first export
the terms of every module in CSV.

opw-673853
2016-05-10 12:46:20 +02:00
Nicolas Martinelli 50b94ef079 [FIX] web: search input of date
When the user searches for date (or a datetime) in the search bar, the
suggested date can become completely wrong. For example, in the French
localization where the date format is DD/MM/YYYY, the system will search
for the date MM/DD/YYYY. This is even worse when the date is not fully
written: DD/MM could be converted to MM/DD/0000, which doesn't make any
sense. This is related to the moment issue
https://github.com/moment/moment/issues/1407.

The fix is to make sure that the input date has a correct format thanks
to `parse_value`. The latter converts the date into a fixed format.

Fixes #11876
opw-676604
2016-05-10 11:19:22 +02:00
Goffin Simon a775f437c8 [FIX] hr_holidays: date_from field
Wrong field date_from:month in model hr.holidays

opw:676837
2016-05-10 09:35:36 +02:00
Damien Bouvy 3ce23eb464 [FIX] sale: uom conversion for invoiced quantities
When invoicing products from a SO, you may decide to change the uom
of the invoice (if you invoiced only  a fraction of the product, for
example). In that case, conversion is necessary to ensure that the
"invoiced quantity" field on the SO line is correct.
2016-05-09 12:01:39 +02:00
Nicolas Martinelli 313bc91cf5 [FIX] account: account selection
When a user prints the GL of a given account, the GL of all accounts is
printed. On a production environment, this can generate thousands of
pages (and ultimately, a crash).

opw-676061
2016-05-09 10:41:20 +02:00
Nicolas Lempereur b9803b3de3 [FIX] mail: rapid click on "New Message" cause error
If the "NEW MESSAGE" or "Log an internal note" are clicked succeedingly
too fast, we can get into a situation where the composer is init'ed but
have not already been start'ed.

closes #11952
opw-675973
2016-05-09 10:39:14 +02:00
Goffin Simon 74525de9cf [FIX] project: Settings" in administration for a user
Used case:
-go as admin and set for the demo user the right "Settings" in administration
-connect as demo user, go in settings of project and untick the forecasts option and save

Result:
-Access rights error because the user has no rights to unlink records on "ir.values" model.

Fix:
When the user is in the group_system group, he has the rights to unlink records in "ir.values" model.

opw:676714
2016-05-09 10:05:43 +02:00
Goffin Simon b3a88b6ed8 [FIX] web: raise a warning for bad domain
When a user wrote a wrong value in char_domain field it should raise a warning
message instead of a traceback.

opw:676783
2016-05-09 09:35:13 +02:00
Odoo Translation Bot 9cdc40e3ed [I18N] Update translation terms from Transifex 2016-05-08 00:28:57 +02:00
Damien Bouvy e4e1e571c2 [FIX] website_sale_delivery: unset delivery line before update
When removing the last line (apart from the delivery line) from the
cart, it is necessary to remove the delivery line before updating
the cart; otherwise the carrier is contacted with a 0 weight order
and crashes.
2016-05-06 13:07:26 +02:00
Olivier Dony 3cdcc670fc [MERGE] Forward-port saas-6 up to d2f02ff1b1 2016-05-05 04:05:41 +02:00
Olivier Dony d2f02ff1b1 [MERGE] Forward-port 8.0 up to c8dc4c8daf 2016-05-05 03:55:24 +02:00
Olivier Dony c8dc4c8daf [MERGE] Forward-port 7.0 up to a0484cbe45 2016-05-05 03:52:47 +02:00
Olivier Dony a0484cbe45 [FIX] import: broken translation cache for absent translation of 'false'
Backport of 7d732b1011

Fixes #979
2016-05-05 03:39:54 +02:00
Olivier Dony 7cafe6a9c1 [FIX] account: set reconciliation date as admin
The user performing reconciliations may not always
have the right to update the corresponding partners,
for example if a partner is also a system user.

Doing it as super-user after verifying that the
user is indeed allowed to reconcile journal items
works around the problem.

Fixes #11931
2016-05-05 03:37:08 +02:00
Farrah Dickerson 5fd704d4e5 [CLA] signature for Farrah Dickerson
Closes #11917
2016-05-04 17:34:15 +02:00
Damien Bouvy 4b0c10734f [FIX] project: falsy demo data
The author_id field is actually a res.partner, not a res.users.

In some cases, if the partner with id 1 is deleted, installing
project was impossible.
2016-05-04 17:17:25 +02:00
Damien Bouvy aa510740fe [FIX] account_voucher: supplier voucher should list receivable accounts
opw-676508
2016-05-04 17:17:25 +02:00
Adrien Peiffer (ACSONE) 9ac9869a57 [FIX] purchase: Context propagation in wkf_confirm_order.
Closes #11916
2016-05-04 15:39:00 +02:00
Christophe Simonis 3381e7bedf [MERGE] forward port of branch saas-6 up to 19d62ec 2016-05-04 14:37:33 +02:00
Christophe Simonis 19d62ec5a7 [MERGE] forward port of branch 8.0 up to e664d30 2016-05-04 14:31:38 +02:00
Goffin Simon c768bbeb22 [FIX] base: Changing a company contact in a company
When a company contact is changed in a company, this contact will
not be displayed as a company contact.

opw:673715
2016-05-04 14:25:11 +02:00
Martin Trigaux f47e39edf9 [IMP] doc: add documentation of read_group
Has already a docstring but was not included
2016-05-04 13:42:47 +02:00
Adrien Peiffer (ACSONE) e664d3074c [FIX] account: A negative amount with sale taxes on bank statement line must be considered as a refund. Courtesy of Adrien Peiffer (ACSONE). PR #11877 2016-05-04 11:31:20 +02:00
Goffin Simon 86ae7b1e1a [FIX] website_project_issue: Issues visibility in frontend for portal users
The domain used to search the project issues in the website_project_issue
controller(['/my', '/my/home']) was useless thanks to the ir.rule portal_issue_rule

opw:676447
2016-05-04 10:46:13 +02:00
Denis Ledoux 6beeec363a [FIX] crm_partner_assign: Interested message subtype
When a partner tells he is interested or not by a lead,
the customer on the lead must not receive a mail
with this information.

opw-676729
2016-05-03 18:03:27 +02:00
Martin Trigaux dd6640616e [FIX] mrp: include workcenter cost in total cost
Estimate the workcenter cost based on produced quantity so far.
The workcenter cost is written on analytic accounts at the end of the production
only. A new method _compute_costs_from_production is needed to estimate the
workcenter total cost and then divide by the produced unit.

opw-675994
2016-05-03 17:13:49 +02:00
Martin Trigaux bc23c92c3e [FIX] mrp: avoid empty cost of produced product
If the production flow is in two steps:
1. consume raw material
2. produce manufactured product

The total_consume_moves was empty (so computed cost was 0)

Include the moves that were already consumed since the last production.
This will offer a correct estimation of cost of production in real time for
companies producing in several steps.

opw-675994
2016-05-03 17:10:20 +02:00
Raphael Collet d5abeb2c5b [FIX] base_action_rule: simplification typo in make_unlink() 2016-05-03 14:23:33 +02:00
Goffin Simon da3ca72ba3 [FIX] sale_mrp: return of _get_anglo_saxon_price_unit
This function _get_anglo_saxon_price_unit must always return the price_unit.
2016-05-03 13:16:36 +02:00
Damien Bouvy fdcd788afb [FIX] account: SO reference in register payment wzd
Follow up of fix 6f8030a

This previous fix removed the reference field when creating an
invoice from a sales order since this field was for Supplier
Invoices (and is not shown for Customer Invoices).

While this males sense, it had the side effect of removing the
default value for the "Register Payment" wizard.

To keep this wizard populated with the most sensible data,
the default is now set to reference or name or number (in that
order).

opw 676261
2016-05-03 10:59:57 +02:00
Aaron Bohy 019fcae90b [FIX] mail: messages sent as reply to previously selected message
In Discuss, if a message was selected as message to reply to, it wasn't reset
when switching to another channel. So if the user sent a message in that other
channel, the message was sent as reply to the previously selected message.

This rev. ensures to always unselect messages when switching between channels.

Closes #11879
2016-05-03 10:53:30 +02:00
Aaron Bohy bbf64347e4 [FIX] mail: escape author name in messaging menu 2016-05-03 10:53:30 +02:00
Sylvain LE GAL e94b2f8a3e [FIX] point_of_sale: display select button on client list after scanning
Before this, if you where on the customer selection screen and scanned a
customer barcode the customer would be shown, but you were not able to
select him.

This correctly sets ClientListScreenWidget.new_client to the scanned
partner which makes the button toggle.

Closes #11874
2016-05-03 10:36:05 +02:00
Goffin Simon e588d85315 [FIX] product_expiry: 'product_id' in context
When creating a new lot from an incoming picking transfer, the product_id
is written in the context.

opw:674608
2016-05-03 09:40:41 +02:00
Sylvain LE GAL 07633cda1e [FIX] point_of_sale: pass tax_ids to pos_config view
It's needed by the onchange on product_id. Without this the price will
be correctly computed by `onchange_product_id` but upon saving the
record tax_ids will be lost.

Closes #11875
Closes #11705
Closes #10378
2016-05-03 09:16:25 +02:00
Denis Ledoux 341d931782 [FIX] hr_holidays: mail notification on leave request confirm
The followers of the departments subscribed to the
`Leaves/Allocations Confirmed` are supposed to
receive a mail notification when an employee
confirms a leave request.

It was no longer the case since the below revision:
2be1dfc1ed

This revision subscribes the followers of the department
following the `confirmed` subtype manually
,on the leave request confirmation, because
`message_auto_subscribe` only works on fields for which
the value is passed to the `create` or `write` methods,
it doesn't work for related/computed fields
This can be removed as soon as `department_id` on `hr.holidays` becomes a regular
fields or as soon as `message_auto_subscribe` works with related/computed fields.

opw-676521
2016-05-02 16:21:20 +02:00
Alexandre Fayolle 822966d25d [FIX] base: res.config default value on selection fields
Since 3d8f7c2f, res.config support selection fields to set groups and install
modules using a selection field instead of boolean.
While the `module_*` fields are correctly casted from boolean to integers, it
was not the case with `group_*` fields.

This commit forces the conversion to get the expected field format value.

Closes #10373
2016-05-02 14:21:15 +02:00
Christophe Simonis db935df398 [MERGE] forward port of branch saas-6 up to e2faeab 2016-05-02 14:11:40 +02:00
Martin Trigaux c89dc632fb [I18N] Update translation terms from Transifex
Had a timeout on last sync
2016-05-02 13:52:12 +02:00
Nicolas Martinelli 740d67a089 [FIX] website_sale: set invoice address
When the user has several addresses, the call to the onchange method
`onchange_partner_id` will overwrite the actual invoice address chosen.

opw-675935
2016-05-02 13:00:34 +02:00
Christophe Simonis e2faeab4b8 [MERGE] forward port of branch 8.0 up to a4c4c43 2016-05-02 12:37:35 +02:00