Commit Graph

92879 Commits

Author SHA1 Message Date
Josse Colpaert 84b47f62eb [IMP] Add already the possibility to fill in the products you want in an inventory
In order to do that, we change the theoretical quantity into a functional stored field.
Therefore the on_change changes, but the old still work.
The UoM of the inventory line is also taken into account

[IMP] Manual selection, no theoretical qty compute on import, comments
2015-03-02 14:09:16 +01:00
Josse Colpaert edaec21835 [IMP] Change order of search terms when creating domain for search qty, clean 2015-03-02 13:59:39 +01:00
Denis Michiels acbef5552d [FIX] stock: improvement search on product
- The search on qty_available is faster by looking only to the quants.

- Less SQL queries
2015-03-02 13:59:39 +01:00
Josse Colpaert d4152c2a40 [IMP] Optimize child_of with parent_left and parent_right
[FIX] Make sure it does not give errors on runbot by providing an alternative when parent_left would be zero
2015-03-02 13:59:39 +01:00
Denis Ledoux 19ce5932e2 [FIX] warning: stock picking warnings
Warnings on pickings no longer worked, while it was possible
to set them in the partner form.

The problem comes from the fact onchange_partner_in no longer exists
on the picking form, by default. It was therefore never called,
on the warning never displayed.

opw-628956
2015-03-02 12:11:29 +01:00
Andrius Preimantas 2bc75369dc Versada signing CLA 2015-03-02 11:52:06 +01:00
Julien Legros 9339f1bfb1 [IMP] sale: quotation confirmed mail subtype defaults to False
This reverts commit 0130ce4e84.
2015-03-02 11:06:32 +01:00
Josse Colpaert 50fc06e275 [IMP] Fasten up procurement JIT in v8 already 2015-03-02 09:41:19 +01:00
Nicolas Lempereur 85ede15793 [FIX] purchase: get taxes when create rfq from bid
When creating a request for quotation from a call for bids, the suppliers
taxes where not present in the quotation. Since a product `taxes_id` field
is a many2many, the unused triplets syntax caused the issue.

fixes #5307
2015-03-02 09:11:13 +01:00
Goffin Simon 631d2f7146 [FIX] purchase: pricelist and related currency mismatch on purchase order (Bid received).
pricelist must be readonly when currency is readonly because there 's an onchange on currency which depends
on the pricelist.

opw:627009
Fixed #4598
2015-03-02 08:44:45 +01:00
Leonardo Pistone ddb900c7c5 [FIX] product: demo data irrelevant product description
Closes #4735
2015-03-01 03:34:00 +01:00
Laetitia Gangloff eda2736e4c [FIX] account: journal_id should be readonly when there is already invoice internal number
Closes #5162, #5167
2015-03-01 03:23:01 +01:00
Holger Brunn 323233dd02 [FIX] ir_filters: return _auto_init's result
Closes #5204
2015-03-01 03:06:03 +01:00
Cédric Pigeon cf2b1143dc [FIX] hr_timesheet_invoice avoid empty returns in invoice line description
Closes #5242
2015-03-01 02:42:40 +01:00
Ravi Gohil 04de292885 [FIX] http: support old version of psutil
Add support for older versions of psutil (<1.2.0). Only used when
debug_rpc is enabled.

Closes #5108, #5163
2015-03-01 02:17:04 +01:00
Daniel Reis ccf021938d [FIX] auth_ldap login when password is unicode
python ldap library api is str based, assume utf-8 encoding for non-ascii
chars.

Closes #5376 lp:1079476
2015-03-01 02:06:54 +01:00
Antony Lesuisse e5a94f74aa [CLA] mailmap update 2015-02-28 17:58:22 +01:00
Simon Lejeune 1f8c8d6dd5 [IMP] doc: install: advised wkhtmltopdf version
Also redirect to our builds of wkhtmltopdf 0.12.1 for debian jessie, as
the wkhtmltopdf team does not provide one.
2015-02-27 18:41:32 +01:00
Christophe Simonis 128de187a3 [FIX] web: KanbanSelection and Priority widgets
Use directly datarecord id instead of previously stored value which may
not be up to date.
2015-02-27 17:18:06 +01:00
Samus CTO fb285d8695 [FIX] prevent unneeded chmod datadir, but check writable 2015-02-27 17:16:16 +01:00
Christophe Simonis e6396deb4e [IMP] models: log source when "Comparing apples and oranges" 2015-02-27 15:57:13 +01:00
Denis Ledoux b11c49d6f6 [FIX] sale: sales team amount invoiced exclude purchases
This is possible to assign a sales team to a supplier invoices
Supplier invoices must be rejected in the invoiced count
of sales team (in the kanban view of sales team).

The invoiced amount must be the customer invoices amount minus
the customer refund invoices amount

opw-629105
2015-02-27 15:44:40 +01:00
Xavier Morel 4bd2ee1aaa [FIX] undefined variable
Variable was added to an error message, then inlined in only one of the
two callsites. Undefined variable error would only appear when an error
is triggered in the actual (postgres-level) backup call.

inserted in ec9a543

fixes #5241
2015-02-27 15:07:15 +01:00
Xavier Morel 68f14c6870 [FIX] handling of big fields in CSV
fixes #2742
2015-02-27 14:11:21 +01:00
vnsofthe 05905b794e [FIX] mrp: xmlid of Manufacture route
Is present in mrp and not stock module.
2015-02-27 17:57:50 +05:30
vnsoft 816faf133b Sign CLA agreement for vnsofthe 2015-02-27 17:57:50 +05:30
Denis Ledoux 3bf1615ad4 [FIX] hr_timesheet: worked hours summary when sign in without sign out
In a timesheet, when a sign in is added, and a sign out
is not following, the current time is took as sign out value.

Rev. dbb2a669f4 corrected an issue
regarding the worked hours summary not taking into account
the employee timezone.
This timezone has to be applied on the current_time also.

e.g: For an employee being in timezone UTC + 1
If the current_time is presently 12:00 (UTC+1)
If the employee set his sign in to 10:00
and do not entered a sign out
The hours summary table displayed 1:00 of worked hours,
based on computation (11:00 - 10:00)
11:00 being 12:00 but in timezone UTC

Besides, another issue was present when entering
a sign in at midnight exactly without a sign out:
If the employee set his sign in to 00:00:00
and do not set a sign out, worked hours displayed 0 worked hours
whatever the current time.

Fixes #5379
Closes #5378
Closes #5503
2015-02-27 12:04:49 +01:00
Toilal 2e9e100d20 [FIX] Packaging: include all files from scaffold templates in MANIFEST.in
closes #5393
2015-02-27 12:04:08 +01:00
Simon Lejeune eaf25908f1 Merge pull request #5495 from leorochael/8.0
Avoid pip re-downloading PyChart
2015-02-27 10:24:34 +01:00
Leonardo Rochael Almeida 12e7d80273 Declare PyChart package name in requirements.txt
While calling `pip install -r requirements.txt`, the PyChart tarball is
always downloaded even if `pip` has a download cache configured (which
it does by default in later versions).

This is because `pip` has no way of knowing which package the PyChart
tarball contains before downloading and running its `setup.py`.

By declaring the PyChart "egg" in `requirements.txt` the tarball is no
longer downloaded if it's already in the download cache.
2015-02-26 16:28:47 -03:00
Leonardo Rochael Almeida 9e62efc8fb [CLA] Leonardo Rochael Almeida 2015-02-26 16:28:47 -03:00
Markus Schneider daf16c2abc add CLA for initOS 2015-02-26 18:07:43 +01:00
Denis Ledoux d4f41a18a6 [FIX] sale: sales count button on variants
The button was no more redirecting to the
sales order lines list view,
following a distraction error introduced during 68b8286d5f
2015-02-26 17:39:47 +01:00
Denis Ledoux 25bf2674d5 [FIX] web: prevent set value of priority if readonly
The priority widget did not handle the readonly concept
It was therefore possible to set the priority of
an issue (for instance) even if the field was marked
as readonly.

opw-628960
2015-02-26 17:21:10 +01:00
David Monjoie 5f45e7ca96 [FIX] hr_timesheet_sheet: properly unlink timesheets when deleting a timesheet_sheet
Adaptation of afe4a97d03, but we properly unlink the timesheet lines themselves instead of going for the account.analytic.lines like the original commit proposition did. Actually, the unlink method of hr.analytic.timesheet already unlinks the corresponding acount.analytic.line, but those records were previously deleted via ondelete='cascade', which didn't trigger the unlink method at all, so the associated analytic lines were not deleted accordingly.
Fixes opw 628256.
2015-02-26 16:18:08 +01:00
Daniel Kraft 51f61ed23d [ADD] D9T GmbH CLA
closes #5433
2015-02-26 16:15:50 +01:00
Christophe Simonis f0dc416871 [FIX] phantomjs 2.0 compatibility
phantomjs 2.0 remove the deprecated attribute `phantom.args`. Use the
new `system` module.
2015-02-26 15:08:17 +01:00
Olivier Dony 05bbe78d87 [FIX] product.product: name_search() must preserve natural order
The natural order was discarded when merging results with a set,
and this was actually un-necessary as the second search()
excludes the previously found `ids`.
2015-02-26 14:03:05 +01:00
Olivier Dony bf31ab6718 [FIX] product.template: name_search compatibility with product.product
In the rare places with a m2o field to product.template
(e.g BoMs), it is necessary to be able to search on product
codes, EAN, etc, the way it works on product.product.
This is done by delegating the name_search to product.product
and then returning the corresponding templates.
This has a small penalty of executing name_get() twice,
but is simpler and more robust for future changes.

An alternative would have been to extract the name_search()
method into a mixin and mix it on both product.product and
product.template. However this would be more brittle and
only work as long as the name_search implementation strictly
uses fields that are present in both tables.

OPW 626662
2015-02-26 14:03:05 +01:00
Martin Trigaux e2fa66b05d [FIX] web: avoid incoherent actual_mode after refresh
When accessing an existing record in form mode directly (enter the url or refresh a page), the daterecord has not been initialized yet. This means that the value of actual_mode will be set to 'edit' before loading the current record (method _actualize_mode() called from do_show()).
This was problematic for one2many fields that we loaded in edit mode, showing add/delete icons/buttons in readonly views. (opw 607910)

Backport of 7ec7f1ba40 for 7.0 and saas<6. (opw 627885)
2015-02-26 13:55:48 +01:00
Xavier Morel e700805a43 [FIX] ws doc: language switcher in some iOS versions 2015-02-26 11:47:07 +01:00
Vijay Baladaniya 10a1d44389 [FIX] Change the target_version for anonymization.
Fixed #5476
2015-02-26 10:30:01 +01:00
Raphael Collet 0c1b95d824 Merge pull request #5439 from guewen/test-inherits-3-levels
Reload fields of parent inherits, fixes #5398
2015-02-26 10:06:31 +01:00
Fabrice Henrion e9b391c308 [FIX] base_import: typos
closes #5478
2015-02-26 10:02:45 +01:00
Denis Ledoux 22acc5d379 [FIX] project_timesheet: retrocompatibility for 73f7a2ba35
It looks like it was possible to pass vals['date']
in date format (!= datetime format) to _create_analytic_entries.

This rev. is a retrocompatible patch for 73f7a2ba35.

In addition, it solves the same issue than the rev.
73f7a2ba35, but in the case the project is
set on the task after the work hours are created.
See ab5ecef476

opw-628729
2015-02-25 18:30:26 +01:00
Aaron Bohy e73a3c6898 [FIX] Web: view_list.js: pager next and previous actions
When the number of records n and the limit l were such that n%l = 0
(e.g. 16 records total, 8 displayed per page), clicking on the
previous button on the first page, or on the next button on the
last page produced a bug because the total number of pages
computed for this edge case was incorrect.
2015-02-25 14:35:19 +01:00
Lionel Sausin (Numérigraphe) 5be3ac1fd0 [FIX] sale_stock: use current product's UoM to check availability
When selecting a product in a sale.order, the asked quantity is verified against
the available quantity.
If the user changes the UoM or the onchange from super call changes it,
the context should be updated accordingly.
Fixes #2559
2015-02-25 18:32:26 +05:30
Josse Colpaert 37f9459610 [IMP] Return of return should be linked with original destination move should fix #5253
[FIX] Split of return move should keep the returned move

[IMP] Better comment and check for state not cancelled
2015-02-25 12:03:49 +01:00
Josse Colpaert d416492259 [IMP] To determine the invoice we put extra moves in, it is better to take the values from the sale order / purchase order if we can find it through the picking
[IMP] Add comments

[IMP] Simplify code
2015-02-25 10:30:36 +01:00
Josse Colpaert cb6e27c992 [IMP] When invoicing from multiple pickings, services should be checked for all purchases/sales
[FIX] Should make sure purchase order lines are not invoiced twice
2015-02-25 10:29:50 +01:00