Commit Graph

76212 Commits

Author SHA1 Message Date
Christophe Simonis 55d6c190da [MERGE] forward port of branch 7.0 up to e33bcde 2015-05-28 14:41:30 +02:00
Goffin Simon 1da3a8b353 [FIX] stock_account: description for extra moves
The extra moves must take into account the field description_sale or description_purchase and
the field default_code set on the product.

opw:640387
2015-05-28 13:59:11 +02:00
Denis Ledoux fff4215933 [FIX] stock_account: purchase and sale_refund are two different journal type
When creating an incoming shipment to be invoiced with as source location
"Transit"
and as destination location
"Stock"

Clicking on create invoice leaded to a crash.

opw-639536
2015-05-28 11:05:43 +02:00
Nicolas Martinelli e33bcdec19 [FIX] stock: return picking wizard handles one picking at a time
We force the user to select only one picking at a time. The reason is that we
can choose the number of products to return for every picking, so it does not
make sense to group the returns in one picking.

opw-640030
2015-05-28 10:19:38 +02:00
Nicolas Martinelli 9fe2e04c0d [FIX] stock: prevents multiple source/destination locations for the moves of the same picking
opw-640414
2015-05-28 08:44:19 +02:00
Goffin Simon 716fec913a [FIX] point of sale: Customer's country
When editing a customer, the actual country of the customer must be shown.

opw:639863
2015-05-28 08:18:21 +02:00
Nicolas Martinelli 1610fc41ef [FIX] stock_dropshipping: raise a warning in a specific invoice creation config
So far, we do not support the following combination:
- route set on 'dropship'
- PO invoicing set on 'picking'
- SO invoicing set on 'picking'

opw-634898
2015-05-27 16:11:31 +02:00
Nicolas Martinelli 1beb4db6c0 [FIX] purchase, sale_stock: make sure to avoid mixing between in and out invoices
When SO/PO invoices are generated on delivery, there might be a mix between
sale and purchase data on the invoice.

opw-634898
2015-05-27 16:11:31 +02:00
Nicolas Martinelli 4a7b383527 [FIX] stock: method do_prepare_partial takes into account moves in state 'waiting'
When scrapping received products, the state of the move will be switched back
from 'assigned' to 'waiting' in method 'recalculate_move_state'. These moves
must be taken into account in 'do_prepare_partial', which is called when
clicking on 'Transfer'.

Note that this bug would only appear if:
- reception in 2 steps is set
- the products are received without scrapping in the first step
- on the second step, we first scrap, then transfer. If we transfer,
  cancel, scrap and transfer, it works since the pack_operation_ids have been
  calculated correctly during the first click on 'Transfer'.

opw-640415
2015-05-27 15:13:57 +02:00
Denis Ledoux 2ac4a3854b [FIX] stock_account: Create invoice journal type for transit.
This revision is related to 4fb497b653.

For a 'To be invoiced' delivery order with a move with
as source location 'Stock' and
as destination location 'Transit'

There is no way to know if it's a Customer invoice
that should be created or a Purchase Invoice.
Indeed, the transit could be used as an intermediate to ship
to the supplier, or to the customer

opw-639536
2015-05-27 13:55:43 +02:00
Frédéric van der Essen da378722cc Revert "[IMP] web, point_of_sale: basic implementation of the cordova integration."
This reverts commit f7a1ac8b06.
The commit introduced a change that required a database update,
which should not be required in a stable version.
2015-05-27 13:46:26 +02:00
Goffin Simon 443605ce56 [FIX] account_asset: entries from assets
When an entry is generated from an asset, the number of this entry must be
 the sequence number linked to the journal of the asset and the reference of
 this entry is the name of the asset.

 opw:639760
2015-05-27 12:23:02 +02:00
Frédéric van der Essen f7a1ac8b06 [IMP] web, point_of_sale: basic implementation of the cordova integration. 2015-05-27 11:59:13 +02:00
Nicolas Martinelli 0854320ec1 [FIX] hr_holidays: leaves_count on stat button only counts type 'remove'
The stat button 'Leaves' on the employee's form view displays the total number
of leaves (including holidays allocations and leave requests). When the button
is clicked, only leave requests are show, which makes inconsistent the number
displayed with the list of results. This fixes this behavior.

opw-640349
2015-05-27 11:23:49 +02:00
Goffin Simon 75b9932451 [FIX] stock_account: VAT for extra moves
If an extra move contains a product which is not initially in the order,
the taxes set on this product must be considered according to the fiscal position
of this order.

opw:634305
2015-05-27 09:03:18 +02:00
Wolfgang Taferner e5a8d21a60 [FIX] Return picking moves do not match the return picking type and also
do not have a warehouse set (which can be retrieved based on the
picking_type in use)
2015-05-26 19:59:16 +02:00
Nhomar Hernandez 5920fc6a91 [FIX] website_sale_options: Test not enough restrictive
The `shop_customize` test (`website_sale.test.js`) relies on
a link containing 'shop'.

The probability to have several links in the ecommerce containing
'Shop' is high, and we therefore specify a bit more the test
to prevent the test to fail if other modules (community/extra)
add links containing 'Shop' within the ecommerce

opw-640639
2015-05-26 18:37:59 +02:00
Denis Ledoux 4dd5cabd30 [FIX] account: remove pudb
It has been a while since the last time.
2015-05-26 18:21:27 +02:00
Denis Ledoux a475a2721a [FIX] account: foreign exchanges gain/loss in reconciliation
When processing the reconciliation of invoices with bank statements
in foreign currencies, this is possible that there is a cent of difference,
due to the fact
the sum of amount exchanged could not be equal to the exchanged
sum of amount received.

For instance,
with a company in EUR as currency,
with a rate of 0.033 for USD,
with an invoice of 2.00 USD
(60.606060... rounded to 60.61 EUR)
and a bank statement of two lines of 1.00 USD
(30.30303030... rounded to 30.30 EUR)
The exchanged invoice amount, 60.61 EUR, is not equal to the sum of
statement lines exchanged amount (30.30 + 30.30 = 60.60 EUR).

In such a case, two journal items should be created in addition:
 - 0.01 in the debtors account
 - 0.01 in the foreign exchange loss account

opw-640078
2015-05-26 18:18:51 +02:00
Matthieu Dietrich 7d76d88b0c [FIX] product: Remove duplicate "categ_id" from template view
The categ_id field was set twice in the view
`product_template_form_view`

Closes #6802
2015-05-26 17:09:44 +02:00
Denis Ledoux 4fb497b653 [FIX] stock_account: invoice journal type for transit locations
When using locations of 'transit' type in pickings,
the invoice journal type was always set to "Sales",
while, for instance, for an incoming shipment,
with as source location a transit location, the invoice
journal should obviously be purchase

opw-639536
2015-05-26 16:30:38 +02:00
Nicolas Martinelli 60df5548ef [FIX] mrp_repair: do not set default state to stock.move when repair is done
When the repair is done, the stock moves were created in 'assigned' state,
and will therefore not be treated by move_obj.action_done.

opw-639676
2015-05-26 15:45:20 +02:00
Nicolas Martinelli f4a9afdd31 [FIX] stock: add a default group_id if stock.move created from stock.picking
The group_id of a picking is related to the group_id of the first stock.move
related to it. When a stock.move is added to a picking manually, the group_id
is normally not set. This can be an issue in a very specific case:

- In Settings / Sales, tick "Allow setting a different address for delivery and invoicing "
- Create a SO - Invoicing on delivery
- Customer: Agrolait; Delivery address: Thomas Passot
- Add a line: ice cream
- Confirm the SO
- In the DO, add a line , with an expected date higher than the one of the existing move
- Save
- Mark as todo
- Force reservation
- transfer - transfer
- Create invoice
=> See that two invoices are created, one for Agrolait, one for Thomas passot ( the DELIVERY address )

opw-639955
2015-05-26 15:37:41 +02:00
Nicolas Martinelli b9cdce1ed7 [FIX] mrp: display scrapped Produced Products in manufacturing orders
opw-634106
2015-05-26 14:56:07 +02:00
Goffin Simon de2a7a211a [FIX] account_followup: invoice address
On the follow up report, the address used in the report must be the address
of the responsible partner.

opw:639907
2015-05-26 14:33:11 +02:00
Goffin Simon 0ff26cf7cd [FIX] website_sale: quick add in the cart
If the product to quick add in the cart has several variants, the button cart
redirects the user to the page of this product. If "attribute_value_ids" is not
in the DOM when clicking on the button cart, the product is immediately added in
the cart.

Closes #6714

opw:639897
2015-05-26 13:33:04 +02:00
Guewen Baconnier 04ef9d991b [FIX] account_analytic_analysis: remove orphan recurring invoice lines
Delete recurring invoice lines when their contract is deleted.
Otherwise, when a contract is deleted, the lines remain orphan with no way to
access it or may generate wrong invoice (should not happen in standard as only
accessed through contracts via recurring_invoice_line_ids).
Fixes #6801
2015-05-22 12:44:01 +02:00
Nicolas Lempereur 1bd50551c5 [FIX] website_membership: free state and not free member
A member can be a free member, but still have paid membership.

So we only should display member in a free membership_state and should
not get dupes.

closes #6805
opw-640440
2015-05-22 11:00:44 +02:00
Denis Ledoux bf8877e485 [FIX] website: allow create/write/unlink for any views for group_system
A user (other than the admin) part of the group 'Manage QWeb views'
and the group 'Administration Settings' couldn't edit
any other view than QWeb views.

opw-640376
2015-05-22 10:15:01 +02:00
Olivier Dony 3c3581e19f [I18N] Sync latest translations from Launchpad (not the final one) 2015-05-21 18:01:57 +02:00
Denis Ledoux d8d49ef264 [FIX] website_event_track: each speakers images in event track
On the website, on an event track page having
multiple speakers, the image of the first speaker
was displayed for all speakers.

This is no longer the case with this revision.

opw-639915
fixes #6715
2015-05-21 17:05:03 +02:00
Christophe Simonis e20dcda50d [MERGE] forward port of branch 7.0 up to 99c87b6 2015-05-21 16:33:45 +02:00
Olivier Dony 99c87b6273 [FIX] account: prevent crashes when mixing types in context parameters 2015-05-21 16:08:17 +02:00
Olivier Dony 53980b7c52 [FIX] account, mail, etc.: uniformize evaluated expressions
opw-626694
2015-05-21 16:07:21 +02:00
Olivier Dony 96402a8f3a [FIX] account: prevent crashes when mixing types in context parameters 2015-05-21 16:02:58 +02:00
Olivier Dony 8d745f9f50 [FIX] account, mail, etc.: uniformize evaluated expressions
opw-626694
2015-05-21 15:26:35 +02:00
Olivier Dony ebb5ddcd65 [I18N] Sync latest translations from Launchpad (not the final one) 2015-05-21 14:42:20 +02:00
Christophe Simonis 327e471c9b [MERGE] forward port of branch saas-3 up to b62ee07 2015-05-21 14:19:24 +02:00
Christophe Simonis b62ee0734c [MERGE] forward port of branch 7.0 up to eaaca65 2015-05-21 14:11:39 +02:00
Martin Trigaux 02b8be4a8b [FIX] mrp: restore removed method _check_phantom_bom
Was removed at 5b479e6 as no longer used (and was a wrongly used there as dit not
check if a "normal" BoM has an higher sequence).
However for stablility reason, we do not remove methods in version 8.0 (if was
used in community).
Will be removed in master.
2015-05-21 14:00:09 +02:00
Nicolas Martinelli eaaca65594 [FIX] mail: does not write "False" if mail body is empty
opw-640309
2015-05-21 12:22:50 +02:00
Samuel Lefever f57f8c87ab [FIX] website : reset lang variable in template
In website template,
it was not possible to use the variable "lang",
containing the current language,
as the variable was overwrote in website.layout,
in a loop context.

Changing the variable name used by the loop
solves the issue.

opw-639488
closes #6320
2015-05-21 11:44:45 +02:00
David Béal 245b5afcfd [FIX] base_import: prioritise field name over string
When importing csv data, the column name is matched on the field name and string
attribute. For some fields (e.g. name & display_name), you could get a match on
both the string and technical field name for different fields
The order of the fields is not deterministic as stored in a dictionnary so
different results were possible at different import.
The technical name should be prioritised (more stable, unique constraint).

Fixes #6657
2015-05-21 10:48:31 +02:00
Goffin Simon 2c0529858f [FIX] point_of_sale: float format
The POS must adapt the float format according to
the language of the user. Inspired from 1da5d89ba3

opw:639567
2015-05-21 10:24:50 +02:00
xmo-odoo 6de6662ecb Merge pull request #6789 from savoirfairelinux/7.0-fix_account_move_line_exception_translation
[FIX] incorrect translation marking
2015-05-21 10:14:40 +02:00
Goffin Simon 5a10903e9b [FIX] point_of_sale: float format
The POS must adapt the float format according to
the language of the user. Inspired from 1da5d89ba3

opw:639567
2015-05-21 09:02:13 +02:00
Joao Alfredo Gama Batista 2e123fbb85 [FIX] Fix exception translation 2015-05-20 11:22:25 -04:00
Nicolas Martinelli ba896aabe7 [FIX] stock: if cost_method of a product is 'average' do not round the currency conversion
This prevents rounding errors if product decimal precision is different from
currency precision.

Fixes #6547
opw-634390

Do not fowardport since already done in v8.0:
https://github.com/odoo/odoo/blob/8.0/addons/stock_account/stock_account.py#L310
2015-05-20 17:00:37 +02:00
Nicolas Martinelli 9c6ae3cf6c [FIX] mrp_operations: adapt the date_planned of the WO when date_planned of MO is changed
Changing the scheduled date (date_planned) of the MO triggers a computation
of the scheduled date of the associated WO in order to keep the data
consistent.

Fixes #6694
opw-639771
2015-05-20 16:57:09 +02:00
Denis Ledoux 7d69759e73 [FIX] calendar: display event reminders
This issue is related to 4f03a6224d.

The above revision aimed to not fetch uselessly fields values

The thing is, `partner_id` of `get_next_potential_limit_alarm` method
expects a partner id, while partner['id'] is actually a user id.

The `partner_id` of the user must be taken, not the user id itself.
2015-05-20 15:49:36 +02:00
Nicolas Lempereur 4e8f84053d [FIX] pos_restaurant: changed unit caused issue on splitting
Commit 0fd51c2e6 changed the unit rounding from units from 1 to 0.001,
it was done mainly because it's the default unit and in the interface we
see quantities with 3 decimals after the floating point, so people might
expect to be able to set floating point quantities.

This change caused an issue when splitting a bill in the pos restaurant,
instead of a click being a piece of the product, it was 0.001 part of a
product.

This fix overrides the rounding of units in this case.

closes #6780
opw-639865
2015-05-20 14:25:24 +02:00
Denis Ledoux 75aa699f62 [MERGE] forward port of branch saas-3 up to 6026c2f 2015-05-20 13:41:03 +02:00
Denis Ledoux 6026c2f4d0 [MERGE] forward port of branch 7.0 up to cc61d46 2015-05-20 13:39:39 +02:00
Thomas Groutars 7b306fc17a [IMP] stock: improve detailed transfer performance
Transfers were slowed because of the continuous
computation of pickings remaining quantities.

This revision delay the computation at the end of the transfer,
so the computation is performed only once, and it
therefore leads to a huge performance improvment.

opw-634416
2015-05-20 13:07:24 +02:00
Denis Ledoux 453b373a68 [FIX] report: datetime already imported, differently
This rev. is related to 439cdb6871.

The module datetime was already available in the reports,
and it was the entire datetime module that was imported,
not just the class.

This rev. is not recompatible with 439cdb6871,
but there is no other choice, since other existing
reports might already expected the datetime module
and not the class

opw-640299
2015-05-20 12:19:29 +02:00
Denis Ledoux db3e5716b3 [FIX] ir_attachment: write traceback to logs when upload fail
When the upload of an attachment failed,
e.g. for access rights reasons,
the traceback wasn't written or returned anywhere,
preventing the easy debugging.

opw-640242
2015-05-20 11:09:05 +02:00
Denis Ledoux ac92551406 [FIX] ir_attachment: hide Attachments > Add/Delete if not write access
To be able to see record attachments, you need to have
read access to the record.

To be able to add or delete attachment, you need to
have write access to the record.

The button add/delete were displayed as soon
as you had the read access, but if you had not the
write access, both buttons failed.

This revision do not display the add/delete
buttons of Attachment dropdown menu if you do not
have the right to add / delete attachments to the record
(you do not have write access to the record)

opw-640242
2015-05-20 11:08:19 +02:00
Nicolas Martinelli 0fcb15c797 [FIX] payment_adyen: wrong error message
opw-640208
2015-05-20 10:17:28 +02:00
Goffin Simon cc61d467fa [FIX] purchase: validate invoice
A user that has the rights in Accounting & Finance equal to Invoicing & Payments
must have the right to validate a supplier invoice.

opw:634601
2015-05-19 14:14:07 +02:00
Nicolas Martinelli c0deb1f726 [FIX] sale_stock: check if moves are already done when cancelling a SO
It prevents to cancel a SO for which moves are already done.

opw-634415
2015-05-19 14:12:26 +02:00
Denis Ledoux bac5b87b73 [FIX] calendar: update cron as SUPERUSER.
As regular employees are not allowed to
alter cron activities.

opw-639419
2015-05-19 11:04:30 +02:00
Denis Ledoux f66b7ee62a [MERGE] forward port of branch saas-3 up to 70f2225 2015-05-19 10:28:30 +02:00
Denis Ledoux 70f22254f5 [MERGE] forward port of branch 7.0 up to 335a8af 2015-05-19 10:26:33 +02:00
Nicolas Martinelli 9b2b437df4 [FIX] sale_stock: add check on invoice type during generation of invoice from delivery
If route is set on dropshipping and the PO invoice is generated from picking, the unit price
used in the supplier invoice must be the cost price. In this particular configuration, this was
not the case because the unit price was replaced by the sale price.

opw-634898
2015-05-19 09:48:51 +02:00
Goffin Simon c5a613840f [FIX] point of sale: function is_paid:
When rounding globally, the function compute_all in charge to compute the taxes for
each line uses a very high currency rounding to avoid rounding per line.
The round must be done on the sum of each total amount line with taxes. To validate a payment with the pos,
the function is_paid verified that this sum is the same that the amount just paid.
Inspired from "sale.order.line", the precision of 'price_unit' and 'price_subtotal' in "pos.order.line"
must be taken from 'Product Price' to avoid rounding per line.

ps: we could not use the function get_all_prices to round globally because it used on every line.

Fixes #6681
Closes #6682
opw:639686
2015-05-19 09:41:51 +02:00
Nicolas Lempereur 6d25a1a18a [FIX] google_calendar: sync date on event date change
Set the record update time when the date is changed via another view
than calendar view. So when an synchronization is done, the update is
taken into account when updating calendar from the odoo to google.

closes #6752
opw-634674
2015-05-19 09:37:28 +02:00
Olivier Dony d5aa22ea5f [FIX] website, website_report: backwards compatibility with outdated templates
* Complements commits a696913364 and
21d4b3fda9 by adding the missing `data-lang`
attribute also in the report layout (in saas-6 a single QWeb
template is used for language links in both reports and website
layouts).

* Fix the "Edit Master" link to work also for outdated templates
where the data-lang attribute is dynamically set to 'default',
and thus cannot be used as URL prefix -> use /website/lang
controller to switch lang instead.
2015-05-18 19:34:11 +02:00
Denis Ledoux 235cd2d015 [FIX] mrp: find company bom when MO created from procurement through cron
Manufacturing Orders can be created from procurements,
as SUPERUSER_ID, since the procurements can be processed
through the WH scheduler, which is always ran as SUPERUSER_ID

In such a case, the record rules are ignored, and a BOM
normally not accessible to a user thanks to the multi-company
record rule could be chosen as the BOM of the MO.

This revision forces to find a BOM from a specific company
in such a case.

opw-640120
2015-05-18 17:20:31 +02:00
Christophe Simonis f722254018 [MERGE] forward port of branch saas-3 up to 0f5b6cf 2015-05-18 17:13:50 +02:00
Christophe Simonis 0f5b6cf60b [MERGE] forward port of branch 7.0 up to c435b84 2015-05-18 17:13:18 +02:00
Jeremy Kersten 30013c57ba [TYPO] website: add semicolon
Thanks @sle-odoo
2015-05-18 16:18:28 +02:00
Jeremy Kersten 21d4b3fda9 [FIX] website: force default lang for edit master option
Since user is redirected automatically in his preferred language, the button edit_master redirect always to
the current lang and so not the master.
2015-05-18 15:53:34 +02:00
Goffin Simon 1c90b9049b [FIX] website_sale_option: update product qty
When there is no user logged in the website, the product id must be written
in the DOM.

opw: 634535
2015-05-18 14:56:56 +02:00
Nicolas Martinelli 335a8afe79 [FIX] stock: remove state modifiers for field note in stock.picking
Remove the state modifiers for field note in stock.picking in order to have a
behavior which is consistent with sales orders or invoices.

opw-639956
2015-05-18 14:52:06 +02:00
Nicolas Martinelli f6c65a3d9e [FIX] website_sale: prevents the modification of a SO line if SO is not 'draft'
opw-634681
2015-05-18 13:08:01 +02:00
Nicolas Martinelli 6b7e6f6b90 [ADD] stock: onchange on wizard stock_change_product_qty
The proposed value for the new quantity on hand is calculated for the chosen
warehouse.

opw-639641
2015-05-18 12:54:20 +02:00
Denis Ledoux 439cdb6871 [FIX] report: print time in user timezone
In reports calling the internal headers layout,
e.g. the general ledger,
the print time was displayed in UTC,
while it should be in user tz.

closes #3341
opw-612043
2015-05-18 12:44:36 +02:00
Denis Ledoux a4c7c564cf [FIX] stock_account: average cost in multi-company environment
When receiving goods with average price set as costing method,
for a move from another company than the SUPERUSER_id company,
the average price updated was the one from the SUPERUSER company
instead of the one of the move.

opw-634167
2015-05-18 11:49:55 +02:00
Nicolas Lempereur 187ad0a054 [FIX] mail: chatter not shown when should
If the chatter is displayed, display the send message part.

Before it was only displayed if we can edit the record, but we are still
able to post in other case (i.e. if we are in the followers).

closes #6721
opw-631039
2015-05-15 17:08:45 +02:00
Nicolas Lempereur 02fb59fffa [FIX] website: widget share doesn't always work
Depending on the area (in this case a html field), the editor can escape
the url which wasn't taken into account by this widget.

closes #6726
opw-639852
2015-05-15 17:00:26 +02:00
Goffin Simon cab5e3668f [FIX] project: Project Time Unit
The domain set for the field 'project_time_mode_id' must use the xml_id to be
used with every languages.

opw:639603
2015-05-15 16:58:37 +02:00
Nicolas Martinelli bb63e9a012 [FIX] website_sale_delivery: display delivery desciption on the website
opw-639617
2015-05-15 14:22:46 +02:00
Denis Ledoux fb23de77a9 [FIX] google_calendar: multiple times the same reminder in an event
Use a set to prevent adding several time
the same calendar.alarm (reminder) in the same event

opw-639918
2015-05-15 14:04:55 +02:00
Nicolas Martinelli fefc8e0574 [FIX] mrp_repair: calculation of taxes
- Correct tax management in tab "Operations": use unit_price in tax computation
- Add tax calculation in tab "Invoicing" (Fees).

opw-639660
2015-05-15 10:17:05 +02:00
Yoshi Tashiro 9eeb5deab7 [ADD] l10n_jp 2015-05-13 18:09:03 +02:00
Olivier Dony 223541edb4 [FIX] hw_scanner: spurious method rename in 5b19ae8a59
`scanner` is the route method to override in hw_proxy
2015-05-13 18:06:29 +02:00
Goffin Simon c435b8438e [FIX] web: With safari, UnicodeDecodeError
The headers returned by content_disposition must be either in Unicode or in ASCII.
The encode function expects a Unicode or ASCII string.
The quote function from urllib2 expects a UTF-8 string and retruns a ASCII string.

opw:634205
Fixes #6160, #6557
2015-05-13 16:56:12 +02:00
Goffin Simon 787a1422d7 [FIX] sale_stock: Additional information on invoice
When invoicing "on delivery", the "additional information" must be passed
from the SO to the invoice. Same behaviour as "on demand".

opw:639590
2015-05-13 14:36:37 +02:00
Nicolas Martinelli 769fc81140 [FIX] stock_account: fix dependencies
Purchase and Sale are not part of the dependencies of stock_account, so purchase_line_id
and sale_line_id might not exist.

Fixes #6619
2015-05-13 12:51:18 +02:00
Denis Ledoux 3e14a4ee5e [FIX] product: supplier pricelist field in partner form
This is related to revision 73432ffe9f.

The inherited view adding
the purchase pricelist field on the partner form
no longer worked for user being in the purchase pricelist group
but not in the sale pricelist group, since the field was added
after the sale pricelist field, which was no longer in the view
for these users.

This revision partially revert the above revision, but
add the purchase pricelist group in the groups of the view,
so the view is loaded only if the user is part of one group
or the other.

opw-639685
2015-05-13 11:57:11 +02:00
Denis Ledoux acd61f8f0e [FIX] purchase: deletion of PO lines in states other than approved/done
This is related to revision 65d7cc524d

The `order_line` field of `purchase.order` is readonly within states
aprroved, done. See the field definition. This means it should be
possible to remove lines of a `purchase.order` when the PO is in
any other state than approved or done.

Therefore, the deletion of lines shouldn't be prevented
when the PO is not in state approved or done

opw-634538
2015-05-13 11:42:09 +02:00
Goffin Simon 71b3861a54 [FIX] stock: Inventory adjustment
When importing a csv in Inventory Adjustement, a default product_uom_id is set if there 's
no product_uom_id given in the csv.

opw:634612
2015-05-13 09:14:49 +02:00
Goffin Simon 661f76c94a [FIX] product_visible_discount: discount computation
The new_list_price(subtotal) variable must be computed with the currency set on
the price_type of the price_list rule applied.

opw:630039
2015-05-13 09:09:57 +02:00
Denis Ledoux ddb8d40e3b [MERGE] forward port of branch saas-3 up to ffc40b6 2015-05-12 18:03:04 +02:00
Denis Ledoux ffc40b611b [MERGE] forward port of branch saas-3 up to e2bfb96 2015-05-12 17:55:50 +02:00
Olivier LAURENT 242e61796b [FIX] mail: missing spaces in email subjects composed of several encoding
sometimes some blank spaces are lost in subject of some incoming messages

There is a bug in `decode_header` in Python < 3.3,
which leads to lost some spaces in the email subjects
when several encodings are used in this subject.

See
- Issue: http://bugs.python.org/issue1079
- Fix: https://hg.python.org/cpython/rev/8c03fe231877

Joining the strings returned in the result of `decode_header`
solves most cases. Only extreme cases, like having
a subject with several different encodings following
each other without white spaces between them could lead
to have extra spaces in the subject. It won't happen
most of the time.

Closes #6629
2015-05-12 17:53:16 +02:00
Stéphane Bidoul d83befdb0f [FIX] account: tax amount for include_base_amount
The tax_amount on account.move.line generated from the validation of an invoice
did not include the taxes with 'include in base amount' enabled.
Instead of using the line total, use the price_unit of the tax which is
correctly computed through compute_all method.
Fixes #5939
2015-05-12 16:07:24 +02:00
Nicolas Martinelli 1d40f6b8ae [FIX] account_voucher: allow forcing the period of the generated journal in create "Customer Payment"
opw-634696
2015-05-12 13:37:50 +02:00
Denis Ledoux 4f03a6224d [FIX] calendar: calendar_last_notif_ack is not user self readable.
`calendar_last_notif_ack` is not in the self readable fields list
of `res.users`. See `SELF_READABLE_FIELDS` in res_users.py.

This field must therefore be read as SUPERUSER.

opw-634402
2015-05-12 12:21:56 +02:00
Denis Ledoux 417f012ce9 [IMP] mail: use `has_group` to check a user is part of a group
`has_groups` is more efficient, and won't lead to useless
prefetches.

opw-634402
2015-05-12 12:21:56 +02:00
Denis Ledoux 55fb3f6ff2 [FIX] share: do not add new rules for `res.company`
When trying to share a partner through the share feature,
a new record rule was added on `res.company`,
allowing the access to this model only if
the `partner_id` of the `res.company` was equal
to the user `partner_id`.
Except that the share users must have access
to the company he is currently in.

opw-634402
2015-05-12 11:33:43 +02:00
Denis Ledoux 953a5509d2 [IMP] mail: use `has_group` to check a user is part of a group
`has_groups` is more efficient, and won't lead to useless
prefetches.

opw-634402
2015-05-12 11:33:43 +02:00
Denis Ledoux 73432ffe9f [FIX] *: accesses of views concernings specific groups
If the whole view relates to a specific group,
apply the group on the view itself instead of
each view part (each fields, each page, each div,...),
so the view is loaded / added to the base view
only if the user is in the right group.
So the view is not loaded uselessly
and the fields are not read for nothing
(performances & security).

Indeed, when a group is applied on a field itself, the field content
is read, but hidden, therefore reading the content of the field
uselessly, and potentially leading to accesses issues
if the user hasn't the rights to read the field.
(e.g. reading a property when not having access to the model
of the proprty, pricelists on partners for instance)

opw-634402
2015-05-12 11:33:43 +02:00
Josse Colpaert cf6d7479d5 [IMP] Stock valuation: Avoid consumables with real-time valuation
When the product is a consumable, avoid to use real-time valuation, by adapting
the onchange in the views and making the valuation field invisible when the
product is a consumable / service.
2015-05-12 09:53:20 +02:00
Matthieu Dietrich d1c4d16a3a [FIX] account: Don't copy many2many when copying statement line
When duplicating confirmed bank statement lines,
the many2many `move_ids` links were preserved, and,
therefore, there were links between the duplicated
lines and the move entries of the original lines.

Closes #6617
2015-05-11 16:54:30 +02:00
Nicolas Martinelli 46d446fd47 [FIX] mrp_repair: add calculation of taxes in subtotal, reset taxes after invoice creation
The calculation of the taxes is added in the calculation of the subtotal.
When the invoice is created, a reset of the taxes is performed so the user does not have to do
it himself.
opw-634711
2015-05-11 15:51:32 +02:00
Goffin Simon bff6dffbb4 [FIX] website_sale: Coupon Code
The pricelist linked to the coupon code is just applied in the cart.
In the shop, the pricelist of the user is applied.

opw:634639
2015-05-11 14:25:11 +02:00
Goffin Simon af86f029c9 [FIX] account: Translation of journal name
The journal name showed in the pop over of the reconciliation bank statement wizard
must be in the language of the user.

opw:634378
2015-05-11 14:16:15 +02:00
Goffin Simon 740efb9349 [FIX] point_of_sale: bad indentation 2015-05-11 14:10:12 +02:00
Goffin Simon 163e7ee5ed [FIX] point_of_point: POS sales details
Total of the day must include the invoiced lines.

opw:634098
2015-05-11 13:52:44 +02:00
Julien De Coster 2d260b78d8 [FIX] Don't send mail to opt-outed contacts in mass mailing 2015-05-11 13:45:28 +02:00
Denis Ledoux 9d2dbda8ca [FIX] stock_dropshipping: not enough stock warning for MTOs
When 'stock_dropshipping' was installed, in a sale order,
choosing a product being stockable + buy + MTOs returned
the "Not Enough Stock" warning, while it shouldn't.

It's because the according method `_check_rounting` was
overriden in this module, with a @api.one, which aggregates, while
the method expects to return a simple boolean even for a list of
multiple ids.
Converting the method to @api.multi solves the issue.

opw-639426
2015-05-11 13:22:48 +02:00
Nicolas Martinelli 8ab987d828 [FIX] stock_account: set the same unit price for extra moves than for moves linked to SO
When extra moves are created, the unit price of the invoice line for these extra moves is now the
same than the unit price of the moves generated from the SO.

opw-634227
2015-05-11 12:23:19 +02:00
Jeremy Kersten 2e49fc09ff [FIX] calendar: set context if none
Avoid traceback if no context in get_recurrent_date_by_event when code do:
    context.get('xx')
2015-05-11 10:41:02 +02:00
Nicolas Martinelli b8779f0c53 [FIX] stock: keep inventory options consistent
Make sure that appropriate fields are emptied when switching to in between inventory filters.
This prevents incoherent results due to hidden fields which were filled in a previous selection.

opw-634388
Fixes #6512
2015-05-11 08:30:10 +02:00
Nicolas Martinelli 61a5bbfb21 [FIX] stock_account: add taxes to invoice when creating an invoice from delivery
Generating an invoice from a delivery now add the taxes to the invoice.
This impacts a returned purchase for which the invoice is created from the delivery, and a sale
order which is set to create invoice on delivery.
opw-634565
2015-05-11 08:26:14 +02:00
Christophe Simonis 94aae97c04 [MERGE] forward port of branch saas-3 up to e2bfb96 2015-05-08 18:52:57 +02:00
Christophe Simonis e2bfb969ed [MERGE] forward port of branch 7.0 up to 6e23b2a 2015-05-08 18:10:30 +02:00
Denis Ledoux 4e015bd96e [FIX] payment_adyen: live Adyen payment acquirer URL
The production payment page of Adyen is not
`https://prod.adyen.com/hpp/pay.shtml`
but
`https://live.adyen.com/hpp/pay.shtml`

opw-634894
2015-05-08 16:41:20 +02:00
Denis Ledoux 63db719151 [FIX] account: Exchanges rates gain/loss during supplier reconciliations
This revision is related to dd47b6f5bc.

The above revision was allmost correct, except that, in a supplier
invoices, the `amount_currency` of the invoice is negative,
and the one of the bank statement is possitive.

To check that both are equal, we should subtract one to each other,
and check that the diff is 0, but both part need to be the
absolute value.

opw-634263
closes #6533
2015-05-08 16:13:03 +02:00
Olivier Dony 5b19ae8a59 [FIX] hw_*: enforce Python dependencies + disable if missing dependency
Prevents installing the hw_* modules at all when the python
dependencies are missing. If they were already installed
do not start the hardware threads to avoid wasting resources
and logging errors
2015-05-08 12:49:19 +02:00
Olivier Dony 5275c10e70 [FIX] hw_proxy: routes shadowed by same method name 2015-05-08 12:39:32 +02:00
Nicolas Lempereur 5804246e0f [FIX] website_membership: perf, pagination
This fixes :
 * pagination only on /members and sometimes with bad page count,
 * free members could not be searched (were always all displayed),
 * all elements are displayed even if there is a pagination,
 * for members without country, errors happened in some use case,
 * when too much locations were on a map (>2000) it failed,
 * numbers of members by countries was not displayed for guest.

And also as performance improvemnts:
 * only query all partners when the map is enabled (customize > left
   world map),
 * limit partners put on the map to 2000 (even then it's a lot for
   google maps),
 * don't browse all membership_line to get res_partner but use a query.

opw-634653
2015-05-08 11:10:53 +02:00
Daniel-CA 68599dcd43 [FIX] mrp: avoid float representation error
Avoid ZeroDivisionError if a move is confirmed with quantity of 0 (when stored
in database where the rounding is done by the precision defined on product_qty
field.
Fixes #6439
2015-05-08 10:47:32 +02:00
Goffin Simon 44fecec058 [FIX] mrp: Manufacture Order Sequence
The name of the manufacture order created must include the sequence linked
to the company of the salesperson.

opw:632600
2015-05-08 08:46:16 +02:00
Denis Ledoux 612b44648e [FIX] crm: hide mark won/lost buttons when opportunity is won
When an opportunity has a 100% probability, it is regarded
as won. When the opportunity is regarded as done,
there is no more use to show the mark won/lost button.

opw-634420
2015-05-07 18:18:03 +02:00
Goffin Simon ac8b663d12 [FIX] im_livechat: date in website_livechat
The lang of the date used in website_livechat must be
the lang of the user as in "Instant Messaging".

opw:633746
2015-05-07 16:08:49 +02:00
Goffin Simon 4a9deb8be3 [FIX] im_chat: translate placeholder
The placeholder "Search Users..." must be translatable.

opw:633746
2015-05-07 16:08:49 +02:00
Nicolas Martinelli 561346db9e [FIX] stock: forbids possibility to make inventory of all products when a given product is chosen
opw-634388
Fixes #6512
2015-05-07 14:04:26 +02:00
Nicolas Martinelli f9d25973d0 [FIX] account: create statement from invoice line uses statement date instead of today's date
Using statement date is necessary in order to select the appropriate currency rate.

opw-634297
2015-05-07 13:52:21 +02:00
Levent Karakas 81dbbd8d87 [FIX] sale_layout: access rights 0 instead of O
Typo in ir.model.access with a letter instead of a number. 'O' will be
considered as True instead of '0' considered as False.
2015-05-07 12:13:50 +02:00
Denis Ledoux 272e085df4 [MERGE] forward port of branch saas-3 up to da93981 2015-05-07 11:34:48 +02:00
Denis Ledoux da93981cb0 [MERGE] forward port of branch 7.0 up to f300d64 2015-05-07 11:33:59 +02:00
Nicolas Martinelli 610a461099 [FIX] purchase: update and cancel of purchase order line takes into account existing procurements
Update:
When an existing purchase order line is updated, for example if a new procurement was required,
we check if the sum of existing running linked procurements is larger than the quantity in the
purchase order. If it is the case, we update the quantity and the unit price accordingly.
Without this fix, we systematically add the procurement quantity (or the provider minimum quantity)
to the purchase order line, even if the sum of the procurements is smaller than the ordered
quantity.

Cancel:
When a procurement is cancelled, we recompute the unit price of the associated purchase order
according to the quantity and make sure the provider minimum quantity is met. If the required
quantity is zero, we cancel and unlink the purchase order line.

opw: 632175 and 632176
2015-05-07 11:19:28 +02:00
Nicolas Martinelli 5b6dcbb3a8 [FIX] stock_dropshipping: use route with 2 steps for crossdock test 2015-05-07 11:19:28 +02:00
Goffin Simon f300d648a8 [FIX] web: attachment with safari
With Safari, the function content_disposition must return "attachment; filename=\"%s\"" % filename
to avoid that Werkzeug raises an UnicodeDecodeError.

Fixes #6160
opw:634205
2015-05-07 10:13:10 +02:00
Nicolas Lempereur d65dec9eef [FIX] mass_mailing: mismastched mailing list view name
opw-634693
2015-05-07 09:02:39 +02:00
Denis Ledoux dd47b6f5bc [FIX] account: Exchanges rates gain/loss during reconciliations
When processing the reconciliation of a bank statement
within the company currency with an invoice in a foreign currency,
avoid to recompute the bank statement debit / credit within
the currency rate at the time of the invoice when the
`amount_currency` of the bank statement line and the `amount_currency`
of the invoice move line are the same
(while having the invoice move line and the
bank statement move line in the same currency,
and having the bank statement currency and
the company currency the same),
to prevent gain/loss exchanges during currencies conversion.

Computing the amount of the statement line
within the currency of the invoice is useful
to compute the difference of amount paid within the company currency
when a change of currency rates occured between the invoice date
and the date of the payment.

Nevertheless, recomputing the amount in the currency of the company
is useless when the payment currency
and the company currency are the same,
and the amount of the invoice and the statement in the foreign currency
are identical, since the amount is already computed, within the
debit/credit field of the invoice move line.

Besides, this prevents gain/loss changes.
opw-631748
opw-632133
opw-631895
closes #6559
2015-05-06 18:29:47 +02:00
Denis Ledoux 9335fed9fe [FIX] account: debit/credit values for move lines in foreign currencies
When the target currency is the company currency, there
is no need to re-compute the debit/credit amounts of the move lines,
since these debit/credit values already contains the amount
of the move line within the company currency.

Avoiding the recomputation prevents gain/loss during currencies exchanges

opw-631748
opw-632133
opw-631895
2015-05-06 18:29:47 +02:00
Nicolas Martinelli 4392289745 [FIX] account_invoice: residual of invoices in foreign currencies
If a line of the invoice move was in a foreign currency
but its residual amount in this foreign currency was 0,
the `amount_residual` (in company currency) was used,
instead of the `amount_residual_currency`, which
is the residual amount in this foreign currency.

This was due to the fall back with the `and / or` statement.
Using `if / else` instead solves the issue.

This could lead to issues when the residual amount
in the foreign currency was 0, but the residual amount
in the company currency was 0.01, due to the exchange rate
loss.
2015-05-06 18:29:47 +02:00
Denis Ledoux 8aa6aa0c78 [FIX] account: entries analysis with null values in debit/credit
In SQL, the addition/subtraction between NULL and an integer/numeric
returns NULL.

Therefore, if either debit or credit was set to null instead
of 0.0, debit-credit returned null, instead of the actual subtraction

opw-634044
2015-05-06 18:22:16 +02:00
Alexandre Fayolle a922d39632 [ADD] sale, delivery: tests for sales prepaid flow
Test uses cases for revision b7f1b9c01e
2015-05-06 17:29:37 +02:00
Denis Ledoux 576cf26a53 Revert "[FIX] stock: `product_qty` field is not recomputed at record creation."
This reverts commit a1da6c2132.

This revision was a temporary patch to solve function fields
computation issues, solved thanks to the commit b7f1b9c01e
2015-05-06 17:27:17 +02:00
Nicolas Lempereur 6553eb3742 [FIX] website_quote: use sale description for options lines
Use the sale description for suggesteds items.

So when seeing suggesteds items in a quotation, we so the sale description
(if there is one) next to the product name.

It was already done for contained items, but not for the suggested ones.

closes #6565
opw-634507
2015-05-06 15:41:00 +02:00
Denis Ledoux 6b72008c32 [FIX] point_of_sale: products search with ':' in products names
This is related to revision bb913d0.

':' in product names are removed, to avoid issues when
searching products with ':' in their name.

JS replace method only replaces the first occurence, if the
needle isn't set as a regex with 'g', e.g. /':'/g

opw-634547
2015-05-06 14:04:34 +02:00
Nicolas Lempereur a124988c52 [FIX] website_quote: typo for accept button's modal
Correcting typo introduced by commit 0d591ca.
2015-05-06 13:25:05 +02:00
Nicolas Lempereur 4237207000 [FIX] website_quote: css issue for mobile view
When seen from a mobile, the shortcut menu was over the content of the
quote and hid it.

This fix sets the menu inline in the page when he has no place to be on a
column on its own.

opw-633890
2015-05-06 13:24:50 +02:00
Denis Ledoux a939a272ef [MERGE] forward port of branch saas-3 up to ae634e7 2015-05-05 17:55:25 +02:00
Denis Ledoux ae634e7a04 [MERGE] forward port of branch 7.0 up to 567ade5 2015-05-05 17:51:31 +02:00
Denis Ledoux 567ade56df [FIX] account: import invoices wizard currency amount
Within the 'import invoices' wizard in bank statements
(addons/account/wizard/account_statement_from_invoice.py)

Prevent currency rate differences when the statement
currency is within the company currency (and therefore
the debit/credit fields are already within the currency
of the statement)

opw-631895
Closes #6504
2015-05-05 17:48:18 +02:00
Lionel Sausin 9d7b6aa67f [FIX] mrp: default sequence on bom line
To avoid null sequence
Fixes #6074
2015-05-05 17:25:21 +02:00
Christophe Simonis 94fc45b7e7 [FIX] mass_mailing: create an index on mail_mail_statisctics.mail_mail_id
As deletion of mail.mail records is frequent, we need to have an index
on this column to speed up deletion
2015-05-05 14:40:07 +02:00
Arthur Maniet bb252f201e [FIX] account: bank reconciliation widget: correctly set the 'New' button a new line (continuation of bf9544d7d4) 2015-05-05 12:50:37 +02:00
Julien Legros 8e6f9be08f [CHG] web: odoo.com account fallback url
The default odoo.com account page is now located at
https://accounts.odoo.com/account.
2015-05-05 11:29:15 +02:00
Jeremy Kersten 9f93a9ae1c [IMP] ir_http: add facebookinternalhit in the list of bot.
Avoid redirect in en_US if lang is installed  when a link is added via Facebook
2015-05-05 10:55:00 +02:00
belkacem77 72cc8b99a9 [ADD] web: Kabyle datejs file
Missing globalisation file for kab_DZ
2015-05-05 10:46:55 +02:00
Martin Trigaux 7dd2d201a0 [FIX] web: localisation for Lao and Bosnian
The datejs globalisation files are loaded based on the user's language.
If the file is not present, the loading crashed and the user could not access to
the web client.
Adding empty files for lo_LA and renaming bs-BS.js to bs-BA.js for bs_BA (see
65d92da) that were missing.

By the way, this is a 0 bit commit, beat that!
2015-05-05 10:28:17 +02:00
Olivier Dony c667eb06b8 [FIX] website: only consider valid languages in URL path
Improves aea358ca67 and avoid spurious
redirects for URLs that do not match a controller but do not
have a valid language.

When the URL does not match any controller, the language
matcher tried to strip the leading path component, treating
it as a language code. For example:
    /fr_BE/page/homepage
would not match any route, so it would be rerouted internally
as  /page/homepage, after setting `request.lang` to fr_BE.

This breaks the magical 404 handler that allows ir.attachment
entries to be mapped to static URLs. Due to the internal rerouting,
the mapping of e.g. /website_mycompany/static/src/image/logo.png
would be rerouted to /static/src/image/logo.png and not match
the mapped URL anymore.

Now the stripping of the path component will only occur if
that path component matches an installed language code.

The consequence is that URLs containing uninstalled language codes
will now lead to 404 errors - an acceptable trade-off (e.g.
when an older version of the website is still indexed by a search
engine)
2015-05-05 10:12:22 +02:00
Arthur Maniet ce32867a90 [FIX] account: bank statement reconciliation:
- ctrl-enter only persist balanced reconciliations
- give a reconciliation proposition only if there's an unambiguous match
- added some missing tanslations
- use default order to display statement lines in reconciliation widget
2015-05-05 09:55:36 +02:00
Denis Ledoux 90cb409be9 [FIX] stock: procurement set as done of sets bom.
In the case of sets, several stock moves can have
the same procurement.

Therefore, appending procurements in the list `procurement_ids`
without checking if the procurement isn't already in the list
could lead to having several times the same
procurement in that list,
and could therefore lead to the check of the same procurement
over and over, leading to performances issues and the fact you cannot
call `write` on a list having several times the same id.
See models.py 3875

Using a set instead of a list solve this issue

opw-634393
2015-05-04 18:05:17 +02:00
Erwin van der Ploeg 782deef905 [FIX] hr_timesheet_invoice: untranslated warning message 2015-05-04 15:07:51 +02:00
Mathieu Le Marec - Pasquet f6a4c932b0 [FIX] auth_ldap: anonymous connection
LDAP allows anonymous authentication with no password. In such case
conf['ldap_password'] is None so converting would fail.
Fixes #5763
2015-05-04 14:43:09 +02:00
Goffin Simon 7d79520559 [FIX] web_graph: graduations on Y axe
For bar chart, the graduations along Y axe must be in language format
of the user.

opw:631659
2015-05-04 12:16:17 +02:00
Nicolas Lempereur dd88f3c82f [FIX] search: searching fields.property not set
When searching if a many2one property field is not set, there may be less
results since only the ones with a reference set to NULL are returned.
We should also get those not in the table.

This commit change this case so instead of returning ['id', 'in', {matching non-set ids}],
the ['id', 'not in', {matching set ids}] is returned.

e.g: if (1, 3, 8) are set, (5, 9) are not set. ['id', 'not in', (1, 3, 8)] would
be returned instead of ['id', 'in', (5, 9)] which might not select all non-set
property fields.

closes #6044
opw-631057
2015-05-04 12:00:22 +02:00
Denis Ledoux 1288536c03 [FIX] point_of_sale: sale details, start/end date with user tz
opw-633998
2015-05-04 10:30:57 +02:00
Goffin Simon c884be3be9 [FIX] stock_account: Current inventory valuation
The "Current inventory valuation" report should only take the outgoing quants into account
to compute the inventory value.

opw:632358
2015-05-04 08:46:33 +02:00
Denis Ledoux 41f4b11ef4 [MERGE] forward port of branch saas-3 up to e552e09 2015-04-30 15:45:03 +02:00
Martin Trigaux cff65f57eb [IMP] report: use unminifed version reset.css
Source from https://code.google.com/p/reset5/
Used same file to be able to merge in stable but should be moved to separate
file in lib folder in master.
Fixes #6376
2015-04-30 15:31:48 +02:00
Denis Ledoux e552e09873 [MERGE] forward port of branch 7.0 up to e601a41 2015-04-30 14:38:17 +02:00
dufresnedavid e601a416ad [ÏMP] l10n_ca: complete Canadian chart of account
Fixes #5496
2015-04-30 14:35:02 +02:00
dufresnedavid f3339c6c51 [FIX] l10n_ca: tax signs of refund taxes
Fixes #5496
2015-04-30 14:34:48 +02:00
Denis Ledoux 338df8f492 [FIX] payment_adyen: pspReference is not mandatory
Indeed, when canceling a transaction, pspReference
is not passed.

In such a case, the arg authResult is set to
`CANCELLED`, and in such a case, we should
just bypass the form_feedback, as done in
the payment_paypal module.

opw-634210
2015-04-30 14:26:34 +02:00
Denis Ledoux 1da5d89ba3 [FIX] web: advanced search on floats with ',' as decimal separator
When using another decimal separator than `.` (dot)
in the language settings,
it wasn't possible to build an advanced search specifying
the decimals.

e.g. with a language with decimal separator `,` and thousand
separator `.`,
if you want to search invoices with amount total 366,38
The advanced search "Total" "is equal to" obliged you
to enter your number with `.` as separator (366.38),
and then, when entering the search, the `.` was
regarded as the thousand separator, giving as domain
`('amount_total', '=', 36638)`, which is not what you asked.

opw-634201

PS: The `|| '.'` in the xml template are only for
retro-compatibility, so if the server sources are
updated, but the browser cache is not refreshed
(meaning the Javascript code isn't refreshed, and,
therefore, `widget.decimal_point is undefined)
it still works.
2015-04-30 13:39:30 +02:00
Denis Ledoux 2c3c2b57db [MERGE] forward port of branch 7.0 up to f2f4391 2015-04-30 10:50:51 +02:00
Olivier Dony caf333eb59 [FIX] account.invoice.report: performance problem in currency rate computation
The SQL view implementing the "Invoice Analysis" report
JOINs the res.currency.rate table in order to obtain the
correct currency rate to convert each invoice line amount
in the same currency.

The matching of the rate needs to be done on the date
of that rate (`name` column) - the last rate preceding
the invoice date is presumed to be the right one.
However there is no simple way to make a direct JOIN between
account.invoice.line and res.currency.rate with a single
match, without using an ORDER BY clause and LIMIT 1.
This requires a costly SUBSELECT query for each invoice
line, quickly becoming prohibitive.

Through the use of PostgreSQL's Common Table Expressions
(CTE) it is possible to construct a temporary table
with the rates' start and end date of application.
This temporary table can then be used in a direct
JOIN with account.invoice.line, delivering much better
performance (no SUBSELECT needed for each invoice line)

On a database with 50k invoice lines this makes invoice
analysis return results in less than 800 ms instead of
10+ seconds.
2015-04-30 00:20:12 +02:00
Denis Ledoux f2f4391e8b [FIX] account_followup: partial overdue payments
This is related to rev. ab9f02cdee

The above rev. take care to exclude payments that are not yet due;
meaning the ones due in the future, by checking the maturity
date.

Problem: Payments (e.g. move lines from bank statements)
do not have a maturity date. Only move lines that actually
have a maturity date, in the future, must be excluded,
not the one that do not have a maturity date.

opw-633930
2015-04-29 17:45:02 +02:00
Martin Trigaux 6e25d6e589 [FIX] stock: better recomputation of pack operations
Revert c06a96 "[FIX] stock: force recomputing transfer information on picking"
and unlink packoperations only when move lines are changed (fix opw 620636).

c06a96 introduced a regression as it prevents to plan moves (e.g. assigning lots
through the barcode interface) before the reception.
2015-04-29 17:36:20 +02:00
Nicolas Martinelli fa01054ae0 [FIX] delivery: delivery price uses pricelist currency instead of company currency
opw-632574
2015-04-29 17:17:20 +02:00
Jeremy Kersten aea358ca67 [FIX] website: ir_http - auto redirect for lang, use cookies to save pref language
Save in cookie the last lang selected to allow to stay consistent at the next visit from visitor
2015-04-29 14:19:52 +02:00
Alejandro Santana db44db8edb [FIX] crm_profiling: answers order in view.
colspan on separator is ignored so the answers are not grouped
Fixes #6226
2015-04-29 13:50:11 +02:00
Mohammad Alhashash a6a3db3188 [FIX] account: custom '_where_calc' method instead of 'search'
The domain on account.account was preprocessed in search method but it had no
effect on read_group. This lead to inconsistency or errors when using 'goup by'
filter.

Move domain processing in '_where_calc' method instead as this is used by both
'search' and 'read_group'.
2015-04-29 11:17:47 +02:00
Goffin Simon ec47493f46 [FIX] website: edit menu
when closing a modal, the class 'modal-open' was removed from the
'body' tag and all the existing modals became not scrollable.
The class 'modal-open' must be kept in the 'body' tag if there is
still a visible modal in the dom.
Inspired from commit: dee000be14

opw:633801
2015-04-29 11:09:51 +02:00
Mohammad Alhashash 717a695317 Revert "[FIX] account: remove journal_id from account domains"
This reverts commit 24526b18a7.
The journal_id field is not present on account.account but is processed in
search method.
Next commit will improve the processing to also accept journal_id in read_group.
2015-04-29 11:06:29 +02:00
Christophe Matthieu e9c3336003 [IMP] website: improved tours error message and race conditions 2015-04-29 10:25:20 +02:00
Nicolas Lempereur 21e65ae3c6 [FIX] website_blog: don't add background from backend
Adding an image from the frontend use ir.attachment or pre-existing url
and set the url in the blog.post's background_image field. This is
not the same as a binary field which sets the data in the field.

Since it's possible to do it in the frontend, there is no use of the
field in the backend. This fix removes this field.

closes #6497
issue #1305
opw-633725
2015-04-28 16:50:34 +02:00
Mohammad Alhashash 24526b18a7 [FIX] account: remove journal_id from account domains
From invoice lines and move lines views.

The model 'account.account' has no field journal_id.
2015-04-28 16:34:29 +02:00
Guewen Baconnier ff09135dbb [FIX] sale_crm: SO created from opportunity in wrong language
The onchange partner on the sale.order set the 'note' field as the terms of the
company in the partner's language.
When the SO is created from an opportunity, the terms are not translated.
Call get_salenote method that handles patner's language.
2015-04-28 16:13:28 +02:00
Christophe Simonis dd84e612d0 [FIX] payment: remove extra field.
Commit 8a6e859 wrongly introduced this new field when adding the new
`payment_authorize` module.
As 8.0 is a [stable version](http://git.io/vfACM), no data model change
is allowed.

We convert this field to a `fields.dummy` in case someone installed (or
update) this module with this fields to ensure the view still applied
and is not broken.
2015-04-28 15:46:34 +02:00
Goffin Simon 37bf219643 [FIX] account: Display Taxes
The function _unite_compute and _unit_compute_inv did not give the same display result.
Regardless the way the tax is computed, the display must be the same. The display must
only shows the name of the tax.

opw:633828
2015-04-28 11:25:44 +02:00
Denis Ledoux 39325842e4 [FIX] note: do not set self in args of a super call
This silly mistake prevents to group notes by
something else than stages.

opw-633980
2015-04-28 11:18:07 +02:00
Goffin Simon 4775c24af7 [IMP] sale_mrp: bom and property tests
-Test the function _bom_find to check that it searches the bom corresponding
	 to the properties passed or takes the bom with the smallest sequence.
	For this commit: d357667df4279070b51af58cad55ef314688d69f

	- Test the function _bom_explode to check that it only takes the lines with the
	 right properties.
	For this commit: 6b6e71a3e0c86aa8a9b8c4f20eaa61b17c64ce7b
2015-04-28 11:11:30 +02:00
Goffin Simon 8a7993958d [IMP] mrp: properties on mrp.bom.line
Now it's possible to put a property on a bom line.
For example, the bom for an apple pie and for an apricot pie can be made
in a single bom.
Three lines are necessary in the bom of the product "pie":
	- First line with product " dough" without property
	- Second line, with product "apple" with property "apple" if you want an apple pie
	- Third line, with product "apricot" with property "apricot" if you want an apricot pie

The type of this bom pie must be "set" to allow the customer to assemblate
his favorite pie by himself.

Now to sell an apple pie, you must create a SO with the product "pie" and
the property "apple".

In that way, the delivery order consists of two lines:
	- dough
	- apple
2015-04-28 11:11:29 +02:00
Goffin Simon 5b479e6114 [FIX] mrp: bom properties
The bom related to the product in a sale line order must be
filtered by the function _bom_find. If two boms can be applied
on a product, the bom with the smallest sequence is applied.

opw:632558
2015-04-28 11:11:29 +02:00
Goffin Simon 1062905acb [IMP] purchase: fiscal positions
Automatic detection of a fiscal position is now working for Purchase.

opw:631554
2015-04-28 11:05:03 +02:00
Olivier Dony 622e00baa5 [I18N] Sync 8.0 translations from Launchpad 2015-04-28 09:45:53 +02:00
Nicolas Lempereur 71aa34fb54 [FIX] web: see selection didn't show selection
This fix gives the domain to the "See selection" view opened from a
FieldCharDomain.

In Odoo 8.0, this widget is available at two places:

- mass_mailing: Marketing > Mass Mailing | Mass Mailing > (any
  newsletter) > "See selection".

- gamification: Settings > Gamification Tools > Challenge > (any
  challenge) > "See selection".

With this fix the "Selected records" view display selected records.

closes #6463
opw-633201
2015-04-28 09:22:07 +02:00
Goffin Simon 3c055a769f [FIX] account: Taxes report
The Tax Report printed with details should not include draft accounting entries.
Technicaly, the account move lines include in a draft account move do not have to be
printed

opw:633642
2015-04-27 16:25:43 +02:00
Goffin Simon a90b94f291 [FIX] sale_margin: product margin
The product margin computed on each line of a sale order must be
rounded according to the currency of the order pricelist.
Inspired from the field 'price_subtotal' in addons/sale/sale.py
2015-04-27 15:38:01 +02:00
Denis Ledoux cf4d14ce39 [MERGE] forward port of branch saas-3 up to 09b277c 2015-04-27 14:02:52 +02:00
Denis Ledoux 09b277c008 [FIX] crm: fp mistakes during d6ae7fb7db.
`crm.meeting`
has been replaced by
`calendar.event`

`base_calendar.view_crm_meeting_search`
has been replaced by
`calendar.view_calendar_event_search`
2015-04-27 13:21:51 +02:00
Nicolas Lempereur 068071cf9a [FIX] website_hr: add published for hr.employee
Previously, we could unpublish an employee from the website, but there
was no simple way to publish it again after we leave the page.

This fix show the unpublished employees on the about us page for the
users who can modify these employees records.

closes #6416
opw-633462
2015-04-27 12:57:35 +02:00
Denis Ledoux 70d28a69b9 [FIX] crm: silly mistake during forward-port d6ae7fb7db
type="object" was already there, no need to set it twice.
2015-04-27 12:46:01 +02:00
Denis Ledoux d6ae7fb7db [MERGE] forward port of branch 7.0 up to 3e7d3c7 2015-04-27 12:19:43 +02:00
Denis Ledoux 3e7d3c7ee4 [FIX] account: tax_amount can be null in database
The `tax_amount` of move lines is by default set to `0.0`.
Nevertheless, this default value is set by Odoo,
not by postgresql.

This is therefore likely that the `tax_amount` is set as
null instead of 0.0, in database.

Therefore, when getting this value directly with a SQL
request, this is possible that `null` will be returned.

Therefore, in this specific case, `res.get(record.id, 0.0`
could return `False`, if the sum of `tax_amount` is `null`,
and try to multiply a boolean with an integer is not possible:
`_rec_get(rec) * rec.sign`

opw-633903
2015-04-27 12:01:21 +02:00
David Monjoie 675fd554f1 [FIX] website: removed the deers picture
The new image comes from www.gratisography.com by Bells Design and is
licensed under Creative Commons Zero.
2015-04-27 11:26:02 +02:00
Nicolas Lempereur bf9544d7d4 [FIX] account: float issue in reconciliation wizard
The CSS on the linei with the "New" button of an bank statement
reconciliation wizard was only applied when there was only a multiple of
two "block" before.

Hence it worked when there was a multiple of 2 cases before, but if not
(for example when account_analytic_plans is installed) on:

- google chrome: the button is on the right (instead of on a line by its
  own).

- firefox: idem, but also a difference in float display positioning
  caused the parent container to not take floating elements into account
  to calculate it's height.

This fix apply the CSS independently if the last block is even or odd.

Before this fix in firefox:
 https://cloud.githubusercontent.com/assets/9977887/7315195/70ca5eca-ea6b-11e4-8892-1272f7ee0cb4.png

After this fix in firefox:
 https://cloud.githubusercontent.com/assets/9977887/7315194/6e2b05ca-ea6b-11e4-9400-69c9cd587756.png

closes #6459
opw-633703
2015-04-27 09:26:23 +02:00
Guewen Baconnier 3a314780c0 [FIX] sale_*, delivery: more consistent ignore of cancelled SO lines
Sales Order lines have a cancelled state, but this state is not
always considered when looping over lines. This check is
done in some places already and this patch's aim is to do it in the
remaining places.

- Cancel the procurement of a sale line in sale.order.line
instead of sale.order, so a line canceled individually with
sale_order_line.button_cancel will properly cancel it
procurement.
- Sale report: uses the state of lines instead of Sales order,
so canceled lines of not-canceled orders are correctly represented
in the analysis.
- test: do not create invoices lines for canceled sale lines
- test: creation of moves with canceled lines
- test: check if lines are still canceled when sale order is done

Closes #6036
2015-04-24 17:29:51 +02:00
Ravi Gohil a7cb326e5a [FIX] stock_dropshipping: do not warn for dropshipped items non-availibility
When selectiong a dropshipped product in a sale.order, the user should not be
warned that the product is not available in stock (as it never goes to the stock
anyway but directly from the supplier to the customer).
Factorise verification in _check_routing method.
2015-04-24 15:55:56 +02:00
Denis Ledoux 3c61ee5c68 [FIX] report: random disappearance of headers/footers
This issue is related to the wkhtmltopdf issue
https://github.com/wkhtmltopdf/wkhtmltopdf/issues/2083

It seems there is a race condition in the Javascript file
loading in wkhtmltopdf 0.12.x.

The subst.js file put in the header/footer of reports
was not always loaded when the page was being rendered,
leading to the crash of the onload="subst()" attr in
the body node, leading to the non-rendering
of the header/footer.

Replacing the script file by its content solves
the issue.

Increasing the --javascript-delay of the wkhtmltopdf
executable (e.g. 1000 ms instead of 200 ms,
the default value) seems to solve the problem
as well, but will lead to obvious performance issues.

We therefore choose to put the javascript code inline,
as a workaround,
the time the issue is solved in wkhtmltopdf, at least.

closes #3047,#5548,#6207
opw-633161
2015-04-24 15:55:35 +02:00
Goffin Simon 296130fbd3 [FIX] account: Invoice's creation problem
The action window "action_invoice_refund_out_tree" must have the same
context that "action_invoice_tree1"

opw:633635
2015-04-24 13:39:17 +02:00
Goffin Simon 3760b1f0f4 [FIX] website: customize logo
The company logo can't be customized because it's a t-field from the db.
This fix don't have to be forward ported because the problem is
already fixed in saas-6.

opw:632702
2015-04-24 13:30:47 +02:00
Nicolas Lempereur a1bfa84f65 [FIX] web: get right result for arrow suggestions
In the search input, the result of filtered search with an arrow was
placed under the currently selected arrow.

Hence if we get to another arrow filter before the result is received,
the result is added under the wrong arrow.

This fix adds the result under the right arrow.

closes #6442
opw-632519
2015-04-24 11:32:58 +02:00
Martin Trigaux 641c25b2e6 [FIX] project: typo 2015-04-24 11:19:34 +02:00
Josse Colpaert 6dcccae568 [FIX] project: use selected unit of measure in gantt display
Hack to use working time unit in gantt view. Similar to 533399f for project.task
Fixes lp:1108913, opw 613979
2015-04-24 10:53:54 +02:00
Martin Trigaux 316be12a3c [FIX] purchase: mark order as invoiced when fully invoiced only
Make sure the purchase order is marked as invoiced only when fully invoiced.
If the invoices are generated on delivery order (invoice_method picking), make
sure all products are delivered before setting it as invoiced.
opw 614256
2015-04-24 10:46:42 +02:00
David Monjoie e66efbd9f6 [FIX] website_sale: search button didn't work on product page
You can't move elements which needs website_sale js outside of the element with class oe_website_sale
2015-04-24 09:54:42 +02:00
Goffin Simon 0d74dce709 [FIX] sale_margin: sale margin accuracy
Unit Price, Cost Price and Margin must have the same accuracy.

opw:632511
2015-04-24 09:08:53 +02:00
Goffin Simon 67530c7b1d [FIX] website_sale: checkout problem
When the user is not logged, there is no branding for the options.
This is why, the product_id of the option must be written in the
template "optional product".

opw:633093
2015-04-24 09:00:39 +02:00
andreparames d4aa2decde [FIX] web: onchange compare changes using === operator
The onchange handler is doing a weak comparison between the values received from
the onchange() method and the current field value, which leads to a falsy value
such as "0000" being treated as equal to False.
This patches changes the operator to enforce non-coercive equality.
Fixes #6405
2015-04-23 16:02:21 +02:00
Richard deMeester 555b5487c9 [FIX] account: Bank Statement Action View Sequence
Ensure correct sequence of bank statement action views.
As the views are sorted based on the sequence, make sure the tree is selected
before the form view.
Fixes #6413
2015-04-23 15:26:44 +02:00
Nicolas Lempereur 81a3f56651 [FIX] stock,event,pos: fix "today" filter with regard to timezones
The previous filters didn't take timezones into account, and
returned stringified naive datetime values in local browser
time. Those would then be interpreted by the server-side as
UTC date, and depending on the current timezone offset vs UTC,
yield partially incorrect results.

By returning directly a datetime.datetime object instead of
a stringified version (see previous commit 76881fb),
we can get the expected result regarless of the timezone.

Fixes #2972
Closes #6229

opw-621282
2015-04-23 14:11:24 +02:00
Nicolas Lempereur 76881fb226 [FIX] web: backport datetime.toJSON() so we can return local datetimes in search domains
This fix adds the toJSON() method to datetime.datetime,
so domain expressions can use datetime values directly,
without having to compute the stringified version
with convoluted strftime() and timezone calculations.

The datetime results are sent down to the JSON-RPC
level where the JSON.stringify() serialization will
convert them to UTC string, to be deserialized
properly as UTC datetime values on the server side.

Thanks to this we can use the browser's local midnight
timestamp in a filter expression, for example like this:

`datetime.datetime.combine(context_today(), datetime.time(0,0,0))`

and get the expected result regardless of the user/browser's
timezone.

related to issue #2972 and pull request #2914 and #6229

(Next commit will fix them)

opw-621282
2015-04-23 14:05:56 +02:00
Martin Trigaux 5267e3a158 [FIX] portal: share with group wizard
Correctly creates menu and add implied groups.
Since the conversion from res.portal to res.group, we lost the field
parent_menu_id so a search is needed to find parent menu.
To add the access of existing users to the new groups, implied id rules are
needed. opw 612594
2015-04-23 13:53:08 +02:00
Damien Bouvy 775ecc6cad [FIX] account_analytic_analysis: fiscal position should use the get_fiscal_position() function
When automatically generating invoices, contract should browse the fiscal position by calling
the function get_fiscal_position of the account.fiscal.position class instead of checking the
property field on the partner
2015-04-23 13:35:48 +02:00
Nicolas Lempereur f2fccdfaf0 [FIX] web: allow to export unordinary table
Previously, there was an exception when exporting unordinary table (e.g:
reports) coming from the export of the xml_id.

With this change, if the table is not ordinary, the xml_id is not
present in the exported file.

closes #6428
issue #6336
opw-633066
2015-04-26 16:38:36 +02:00
Adil Houmadi f2ef46e9f4 [FIX] product: purchase report, correct warehouse
Fix stock warehouse column on purchase report,
we need to join stock_picking_type and stock_warehouse
in order to have the warehouse itself

Closes #6409
2015-04-23 13:23:40 +02:00
Martin Trigaux 9e1100ae2f [FIX] product: pricelist specific to a product
Double list comprehension is a nice try but does not work in python.
prod_ids was a list containing only the first variant, so getting the
product-specific pricelists only for the first variant of the first template.
Fixes #2900
2015-04-23 10:38:48 +02:00
Martin Trigaux ab65c388cd [FIX] crm: list of meetings from opportunity
When opening the list of meetings from an opportunity, show only the meetings
linked to the current opportunity.
Use search_default_ to be able to remove the filter if not needed.
Remove context on meeting button as it's ignored in action_makeMeeting (and
there is no field attendee_id linked to a crm.lead anyway)
opw 614039
2015-04-23 10:00:01 +02:00
Denis Ledoux 8c40bdd410 [FIX] account_cancel: reload whole bank statement on transaction canceling
When canceling a bank.statement.line of a bank.statement
ready to be closed
(all lines reconciled,
reconcile button hidden and close button visible)

The form wasn't reloaded, and the reconcile button
was not displayed after having cancel the statement line

opw-632063
2015-04-22 18:22:51 +02:00
Denis Ledoux 84e10ad03b [FIX] web: translation of default M2O values in search bar
When a many2one field of a searchview was selected
by default, through a default_*_id within the context,
the many2one value name wasn't translated.

e.g. with Spanish loaded (and l10n_multilang installed),
translate a project.project name in Spanish.
Then, while being in Spanish, in the project.project kanban,
click on the Tasks link of a project (tareas),
then, notice the value of the project name in the
search bar.

opw-632818
2015-04-22 17:53:35 +02:00
Damien Bouvy 0d591ca6df [FIX] website_quote: accept button wasn't shown if no expiration date was set on the sale order 2015-04-22 16:47:47 +02:00
Damien Bouvy 88260a3f2c [FIX] analytic_contract_hr_expense: incorrect function signature no longer perturbates API wrappers (on_change returned result in list when expecting a dict when called from new api) 2015-04-22 16:47:47 +02:00
Damien Bouvy 128c2c92fc [FIX] sale_analytic_plans: remove faulty view 2015-04-22 16:47:47 +02:00
Damien Bouvy e4d8246c81 [FIX] website_sale: fix unnecessary permanent update of pricelist on checkout 2015-04-22 16:47:47 +02:00
Martin Trigaux d84b5d35ac [FIX] product: pricelist on product to apply on template
If a product as only one variant, using the product.product or the
product.template in the pricelist configuration should have the same effect.
This is particulary important for the ecommerce where template without variants
do not show the product. Having a pricelist for that product had no effect on
the price used in the e-commerce.

Fixes #2900, opw 615153
2015-04-22 16:27:05 +02:00
Nicolas Lempereur 2b90e054bb [FIX] web: keep domain with search field
Currently (since commit e6a2d222d6), the domain of a search view field tag
is dropped.

This previous change was done since some of these domains refers to a
field not available in the javascript.

This fix drop the domain only if it can't be evaluated in the javascript
side.

opw-632030
2015-04-22 10:58:19 +02:00
Rifakat Haradwala ecdaf89469 [FIX] membership: shown customer invoice form instead of supplier
When somebody buys a membership, he is a customer, opw 615986
2015-04-22 09:10:28 +02:00
Ajay javiya 8a6e859c2b [ADD] New payment acquirer Authorize.net. 2015-04-21 17:15:05 +02:00
Ravi Gohil 40982f5ace [FIX] website: Published/Not Published button now dynamically updates
Prior to this fix, when you clicked on Publish or Not Published, the
effect was immediate, but the button disappeared instead of just
updating itself to the new value.

Fixes opw 614561.
2015-04-21 15:34:35 +02:00
David Monjoie 8f90636686 [IMP] crm: Opportunities Analysis menu visible to Sale Manager
Before this commit, it was only visible by the admin user.

I used the crm.phonecall.report rules as an example, but I don't
think either of those or the opportunities ones are actually
used in the case of group_sale_salesman, because the submenu
Sales of the Reporting menu is only visible to the Sale Manager.

Fixes opw 615048.
2015-04-21 15:26:57 +02:00
Nicolas Lempereur 86116fd082 [FIX] sale: set company sales team for quotation
If there is not a dedicated salesteam for the current user, this fix sets the
sales team to the one dedicated to a customer if there is one.

opw-633134
2015-04-21 15:06:03 +02:00
Goffin Simon 6f679678f6 [FIX] account: duplicate tax
the duplication of a tax must duplicate the child_ids.

opw:630510
2015-04-21 10:09:56 +02:00
Vincent Vinet 3cc3ab6252 [FIX] document: polynomial time reordering of document ids
Triggered every time on list views as the list view uses a
search_count (filtered but unlimited) to display pagination.

closes #6397
2015-04-21 09:49:47 +02:00
David Monjoie f4e1974d67 [FIX] web_calendar: fixed counting of days when selection spans multiple weeks
As event_obj._length doesn't return the number of days when the selection spans
multiple weeks, the test was wrong when the selection ended on the first day of
a subsequent week.

This fix was originaly written by rha-odoo at 95d344b, but I rewrote it a little.
I would have liked a cleaner way of finding how many days there were between the
two dates, but I couldn't find anything better, considering I didn't want to
create new objects just for that test.
Fixes opw 614703.
2015-04-21 09:37:50 +02:00
Goffin Simon 7b923b57ba [FIX] sale_stock: supplier invoice
During the creation of an invoice, the partner returned by "_get_master_data" depends on inv_type.
inv_type = "out_invoice" is for customer invoice
inv_type = "in_invoice" is for supplier invoice

opw:632392, 632583
2015-04-21 08:47:06 +02:00
Martin Trigaux 0b2bc27adc [FIX] stock: use unit of measure for manual receptions
When using the manual reception wizard, if a quantity in a different unit of
measure was set, the unit was ignored. opw 617336
2015-04-20 17:16:22 +02:00
Luc De Meyer f8a2a64ade [FIX] web: onchange on field binary
If a onchange is set on a binary field, the name of the file (filename attribute
defined in the view) is still the name of the previous file.
Fixes #2427, opw 617109
2015-04-20 16:42:15 +02:00
Martin Trigaux 6262e3479b [FIX] web: onchange on field binary
When setting a value to a field binary, a char field can be set as 'filename'
that needs to be recomputed to specify the new file name.
Before new api, the _internal_set_value method would trigger a onchange but it's
no longer the case now (so onchange on filename field was no longer executed).
Instead, manually set the value using set_value method which do trigger the
onchange.
Fixes #2427, opw 617109
2015-04-20 16:33:55 +02:00
Goffin Simon 1aed46d2a8 [FIX] mail: Work order translation
The action_confirm function losses the context when called by a workflow.
To have the right translation, the lang of the user must be written in the context.

opw:632873
2015-04-20 15:56:48 +02:00
Goffin Simon 0422df2ad7 [FIX] account: general ledger report
The "Progress" column must be renamed in "Balance".

opw:633076
2015-04-20 15:53:38 +02:00