Commit Graph
127612 Commits
Author SHA1 Message Date
qsm-odoo 88d48818c2 [FIX] website: correctly define website.error function
* The Dialog dependency was missing
* The function arguments were wrong
2016-10-24 16:43:59 +02:00
Simon Lejeune 097f46e09a [REF] packaging: debian: depend on python-babel
Before this patch, the debian package depends on `python-pybabel`.
According to the documentation, this is a dummy package for transition
from `python-pybabel` to `python-babel`[1].

This dummy package has thus been removed in debian stretch in favor of
`python-babel`, and the odoo package is thus not installable in debian
stretch.

To fix this, we depend directly on `python-babel`, which is available in
all debian releases[2].

Closes #13905

[1] https://packages.debian.org/jessie/python-pybabel
[2] https://packages.debian.org/jessie/python-babel
2016-10-24 16:22:17 +02:00
Nicolas Lempereur f82ab99c1a [FIX] web: BufferedDataSet write to length field
Underscore method _.each expects an array like object when a
"length" property is present.

This was an issue with a record having a numeric "length" field set
to a non-negative value.

opw-691070
2016-10-24 15:57:43 +02:00
Christophe Simonis df0fada9ca [MERGE] forward port branch saas-11 up to 87b6838 2016-10-24 15:29:58 +02:00
Christophe Simonis 87b683828b [MERGE] forward port branch 9.0 up to 7974cc6 2016-10-24 15:08:35 +02:00
Christophe Simonis e721f3eb99 [MERGE] forward port branch 9.0 up to 4d1fc7e 2016-10-24 15:06:45 +02:00
Simon Lejeune 7974cc6597 [FIX] packaging: windows: correctly include reportlab font files
Without this patch, the fonts are not included and the barcodes in the
reports were not displayed.
2016-10-24 15:02:03 +02:00
Christophe Simonis a18fc55ffc [FIX] account_asset: remove dependency on deleted field 2016-10-24 14:45:45 +02:00
Olivier Dony 4d1fc7e390 [FIX] sale: missing account mapping in advance invoice
The `map_account()` method expects a browse_record as
parameter, and returns a browse_record (possibly the
argument if no mapping happened).

It was being called with an account ID instead, so
fiscal position mapping would never match, and would
always return the argument itself.
2016-10-24 13:58:29 +02:00
Olivier Dony a3d6e7f2ff [FIX] sale: fix recompute of fiscal position
The `fiscal_position_id` field actually depends on both
the `shipping_partner_id` and the `partner_id` field,
not just the former.

Theoretically the recompute should trigger on both fields
anyway because changing the `partner_id` will automatically
change the `shipping_partner_id`.

Unfortunately this onchange chaining does not work as expected
as of Odoo 9, at least when the `partner_id` field is set
to the same value (was done for optimization reasons).
This special case really happens when you edit the Partner
from a sales order form view, and save the changes.
It triggers a "dummy on_change" for the `partner_id`
value, with the same value as before.
If the edit changed the fiscal position or another
field on which it depends, a recompute is really needed.

Adding the direct dependency works around this limitation,
and is semantically valid, too.

An extra fix of this special case in the framework might still
be nice to have, though.

Ref: feedback ID 29042
2016-10-24 13:58:29 +02:00
qdp-odoo b60059f6f3 [FIX] hr_expense: fix errors introduced when forward-porting saas-11 on revision dabf82870a
acc_date was not defined
move's ref should be the sheet's name
date should be given again at the account.move.line level
2016-10-24 13:55:50 +02:00
Nicolas Lempereur 5d17749ff4 [FIX] web: repair length field in view list
Underscore method _.each expects an array like object when a "length"
property is present.

This was an issue with a record having a numeric "length" field set to a
non-negative value. When changing a line the change would not appear on
blur.

This issue was fixed with 0e664c9e9 but introduced back with f0e331e00.

opw-691070
2016-10-24 13:25:58 +02:00
Christophe Simonis dabf82870a [MERGE] forward port branch saas-11 up to 25e0b25 2016-10-24 13:07:46 +02:00
Simon Lejeune 40f1f781bd [FIX] packaging: redhat: use a log file
Without this, odoo log outputs to stdout and is catched by journald. We
force the use of a log file to keep the behavior consistent with the
debian package.
2016-10-24 12:51:52 +02:00
Christophe Simonis 25e0b25508 [MERGE] forward port branch 9.0 up to 6690bfb 2016-10-24 12:48:56 +02:00
Christophe Simonis 6690bfb14a [MERGE] forward port branch saas-6 up to 1d00e32 2016-10-24 12:42:51 +02:00
Raphael Collet ec4b5f5c58 [FIX] account_voucher: 'select=True' should be 'index=True' 2016-10-24 12:27:33 +02:00
Raphael Collet cae04ba1d3 [IMP] fields: add warning for field attributes select and digits_compute 2016-10-24 12:27:33 +02:00
Raphael Collet bb786944de [REF] base: make view.model_data_id a non-stored computed field (#13918)
This fixes the problem of recomputing that field in a much better way.  The
field was stored for the sake of searching; instead we implemented a search
method for it.
2016-10-24 12:26:22 +02:00
Denis Ledoux 39a8b39a28 [FIX] product: variant name_get for specific providers
This is related to revision
b65c67a259

The field `seller_ids` is a field which is set
on the `product.template`, and this is why
the condition `(x.product_id == product)` is being applied
in the list comprehension searching the current seller
of the product sellers.

The `variant` variable is a string containing
the attribute name of a variant.
Therefore, if a product tempalte has only one variant, without
any attribute (e.g. when you don't use variants),
`variant` will be empty, and therefore the condition
`if variant:` will be `False`, and therefore it won't search
in the product sellers with a specific `product.product`, while it
should, as, even if there are no attributes, there could be a
seller line with this specific `product.product`.

Besides, as we are in the `name_get` of `product.product`, and
not the `name_get` of `product.template`, we are always in the case
of a `variant`, this test is therefore pointless.

opw-682390
2016-10-24 12:04:19 +02:00
Christophe Simonis 1d00e3221d [MERGE] forward port branch 8.0 up to 8f484fd 2016-10-24 11:48:45 +02:00
qsm-odoo 9a75c6d608 [FIX] web_editor: correct ViewEditor widget life cycle
These two fixes are now important since the ViewEditor is now also
used in the backend.

* The start method must return a deferred.
* The destroy method must unbind the event on the document element.

Note: in master, the ViewEditor is being refactored.
2016-10-24 10:52:00 +02:00
qdp-odoo f3a721940c [FIX] hr_expense: don't group accounting entries of hr.expense if several are generated at the same time.
This grouping was causing problem at the time of bank statement reconciliation, if the expenses were set as already paid by the company, since we had only one account.move related to several bank statement lines although the DB structure wasn't allowing such a case (the link was made as a m2o from account.move to account.bank.statement.line where a m2m would have been needed).
2016-10-24 10:22:42 +02:00
Nicolas Martinelli a25cc28ac7 [FIX] account: define tax base
Make sure tax.base is always defined to avoid traceback.
2016-10-24 09:53:02 +02:00
Denis Vermylen (dve) dad7036ce2 [FIX] hr_timesheet_attendance: correct attendance computation on timesheets
Attendances (model hr.attendance) that overlapped different dates where not
computed correctly in timesheets (model hr_timesheet_sheet.sheet.day).
The difference in dates was not taken into account.

This commit fixes this issue; attendances are now linked with the check_in date
to hr_timesheet_sheet.sheet.day.
(so 8 hours recorded from 20:00 to 04:00 the next day will be recorded as
 8 hours on the first day)
2016-10-24 09:45:43 +02:00
Nicolas Martinelli 3164ca8962 [FIX] account: define tax base
Make sure tax.base is always defined to avoid traceback.
2016-10-24 09:01:21 +02:00
Raphael Collet 19c5237ccf [FIX] account: account tax base computation
In the earlier fix 327f88df, the computation of the amount crashes when the
field `tax_id` is not set.  Simply add an 'if' statement to avoid that case.
2016-10-24 08:31:50 +02:00
Nicolas Martinelli 627bba14b1 Revert "[FIX] account: fix forward port bug induced by 6466aa499fc37bba5f4feeeecac99448ef88e62e"
This reverts commit 37c8b82a01.

Because it's not the right fix. The right fix follows...
2016-10-24 08:31:50 +02:00
Odoo Translation Bot e45d402396 [I18N] Update translation terms from Transifex 2016-10-23 03:38:54 +02:00
Odoo Translation Bot 8f484fd137 [I18N] Update translation terms from Transifex 2016-10-23 02:57:47 +02:00
Odoo Translation Bot f74ea276cd [I18N] Update translation terms from Transifex 2016-10-23 00:35:59 +02:00
Simon Lejeune 56d7bf1f46 [REF] packaging: update requirements.txt
closes #13721
2016-10-22 13:37:56 +02:00
David Beal e773c1dce8 [FIX] resource: prevent error when deleting resource.calendar records
Attendance entries should be cascade-deleted along with the parent
record.

Closes #10310
Closes #13044
2016-10-21 19:57:23 +02:00
Mansi Trivedi 9fe3915370 [ADD] sale_mrp: Added default lead time test cases in python.
Case 1: To check schedule date of picking and manufacturing order,
	  - Configure lead times:
		- At a product level set Manufacturing Lead Time and Customer Lead Time
		- At a company level set Manufacturing Lead Time and Sales Safety Days

Case 2: To check schedule dates of pickings and manufacturing order,
	  - Configure lead times:
		- At a product level set Manufacturing Lead Time and Customer Lead Time
		- At a route level set delay of pull rules

Detailed Use Cases
==================

CASE 01 :
========

(Consider order date : 2016-04-18 11:10:44)

Create Product
--------------
Name : Product A
Product type : stockable
Manufacture : True
Make To Order : True
Manufacturing Lead Time :  5 days
Customer Lead Time :  5 days

Configure your company data
---------------------------
Manufacturing Lead Time : 3 days
Sales Safety Days : 3 days

Create SO
---------
Customer : Asustek
Order Lines : Select Product A with Order Qty :  10
Confirm this SO

Run scheduler

Result
------
Manufacure Order :-- Schedule date : 2016-04-12 11:10:44
Delivery Order :-- Schedule date : 2016-04-20 11:10:44

CASE 02 :
========

(Consider order date : 2016-04-18 11:10:44)

Create Product
--------------
Name : Product A
Product type : stockable
Manufacture : True
Make To Order : True
Manufacturing Lead Time :  5 days
Customer Lead Time :  5 days

Warehouse configuration (YourCompany)
-------------------------------------
Outgoing Shippings : Pick + Pack + Ship

Routes
------
YourCompany: Pick + Pack + Ship
Procurement Rules:
------------------
WH: Output -> Customers :-- Delay : 2 days
WH: Packing Zone -> Output  :-- Delay : 2 days
WH: Stock -> Packing Zone  :-- Delay : 2 days

Create SO
---------
Customer : Asustek
Order Lines : Select Product A with Order Qty :  5
Confirm this SO

Run scheduler

Result
------
Manufacure Order :-- Schedule date : 2016-04-14 11:10:46
Delivery Orders :--
PICK :--> Schedule date : 2016-04-19 11:10:46
PACK :-> Schedule date : 2016-04-19 11:10:46
OUT :--> Schedule date : 2016-04-21 11:10:46
2016-10-21 15:29:28 +02:00
Mansi Trivedi a2c567ffe8 [ADD] sale_stock: Added default lead time test cases in python.
Case 1: To check schedule date of picking,
	  - Configure lead times:
		- At a product level set Customer Lead Time
		- At a company level set Sales Safety Days

Case 2: To check schedule dates of pickings,
	  - Configure lead times:
		- At a product level set Customer Lead Time
		- At a route level set delay of pull rules

Detailed Use Cases
==================

CASE 01 :
========

(Consider order date: 2016-04-18 05:34:00)

Create Product
--------------
Name : Product A
Product type : stockable
Customer Lead Time :  5 days

Configure your company data
---------------------------
Sales Safety Days : 3.00 days

Create SO
---------
Customer : Asustek
Order Lines : Select Product A with Order Qty :  10
Confirm this SO

Result
------
Delivery Order :-- Schedule date : 2016-04-20 05:34:00

CASE 02 :
========

(Consider order date: 2016-04-18 05:34:00)

Create Product
--------------
Name : Product A
Product type : stockable
Customer Lead Time :  5 days

Warehouse configuration (YourCompany)
-------------------------------------
Outgoing Shippings : Pick + Pack + Ship

Routes
------
YourCompany: Pick + Pack + Ship
Procurement Rules:
------------------
WH: Output -> Customers :-- Delay : 2 days
WH: Packing Zone -> Output  :-- Delay : 2 days
WH: Stock -> Packing Zone  :-- Delay : 2 days

Create SO
---------
Customer : Asustek
Order Lines : Select Product A with Order Qty :  5
Confirm this SO

Result
------
Delivery Orders :--
PICK :--> Schedule date : 2016-04-17 05:34:28
PACK :-> Schedule date : 2016-04-19 05:34:28
OUT :--> Schedule date : 2016-04-21 05:34:28
2016-10-21 15:29:10 +02:00
Mansi Trivedi 83de09d895 [ADD] purchase: Add python tests for default lead time
Case 1: To check order date of purchase order and schedule dates of shipment and purchse order,
	  - Configure lead times:
	        - At a product level set Delivery Lead Time
		- At a company level set Purchase Lead Time

Case 2: To check order date of purchase order and schedule dates of multiple purchase order line of the same purchase order,
        we create two procurements for the two different product with same vendor and different Delivery Lead Time

Case 3: To check order date of purchase order and schedule dates of shipments and purchase order,
	  - Configure lead times:
		- At a product level set Delivery Lead Time
		- At a route level set delay of push rules

Detailed Use Cases
==================

Consider today's date = 2016-04-21 ( date_planned of procurement = today's date + 10 days)

CASE 01:
========

Create Product
--------------
Name : Product A
Product type : stockable
Buy : True
Make To Order : True
Delivery Lead Time :  5 days

Configure your company data
---------------------------
Purchase Lead Time : 3.00 days

Procurement Request
-------------------
Warehouse : YourCompany
Product : Product A
Quantity :  15.00
Planned Date: 2016-05-01 00:00:00

Confirm Purchase Order

Result
------
Purchase Order :-- Schedule date: 2016-04-28 00:00:00
    Order date: 2016-04-23 00:00:00
Incoming shipments schedule date :-- 2016-04-28 00:00:00

CASE 02:
========

Create Product
--------------
Name : Product A
Product type : stockable
Buy : True
Make To Order : True
Delivery Lead Time :  5 days

Create another Product
----------------------
Name : Product B
Product type : stockable
Buy : True
Make To Order : True
Delivery Lead Time :  2 days

Procurement Request
-------------------
Warehouse : YourCompany
Product : Product A
Quantity :  10.00
Planned Date: 2016-05-01 00:00:00

Procurement Request for second product
--------------------------------------
Warehouse : YourCompany
Product : Product B
Quantity :  5.00
Planned Date: 2016-05-01 00:00:00

Confirm Purchase Order

Result
------
Purchase Order :-- Schedule date: 2016-04-28 00:00:00
    Order date: 2016-04-26 00:00:00
    Schedule date of purchase order line for product A: 2016-05-01 00:00:00
    Schedule date of purchase order line for product B: 2016-04-28 00:00:00
Incoming shipments schedule date :-- 2016-04-28 00:00:00

CASE 03:
========

Create Product
--------------
Name : Product A
Product type : stockable
Buy : True
Make To Order : True
Delivery Lead Time :  5 days

Warehouse configuration (YourCompany)
-------------------------------------
Incoming shipments : three steps

Routes
------
YourCompany : Receipt in 3 steps
Push Rules:
-----------------
WH: Input -> Quality Control :-- Delay : 2 days
WH: Quality Control -> Stock  :-- Delay : 2 days

Create Procurement:
-------------------
Product : Prosuct A
Quantity : 5.000
Warehouse : YourCompany
Procurement Location : WH/Input
Schedule date : 2016-05-01 10:30:43
Notes : 'Test scheduler for RFQ'

Confirm Purchase Order

Result
------
Purchase Order :-- Schedule date: 2016-05-01 10:30:43
    Order date: 2016-04-26 10:30:43
Incoming shipments schedule dates :--
In type :--  2016-05-01 10:30:43
Internal type 1 :--  2016-05-03 10:30:43
Internal type 2 :--  2016-05-05 10:30:43
2016-10-21 15:22:06 +02:00
Yannick Tivisse 37c8b82a01 [FIX] account: fix forward port bug induced by 6466aa499f 2016-10-21 12:49:25 +02:00
Raphael Collet bde400ca3e [FIX] account: account tax base computation
In the earlier fix 327f88df, the computation of the amount crashes when the
field `tax_id` is not set.  Simply add an 'if' statement to avoid that case.
2016-10-21 09:46:59 +02:00
Kinjal Mehta b87e6e02a8 [IMP] general: Place (Un)Archive button as last button by default
PURPOSE
=======

Usability Issue of  "Archived" button. People tend to click on it accidentally

+ Also rename `Unarchive` into `Restore`
2016-10-21 09:34:13 +02:00
Aristobulo Meneses d31bd1feb0 [IMP] account: display totals on float fields
On the Customer invoice, Vendor Bills and Payments list views.
The feature exists for Journal Items and entries, but not on invoices and
payments.

Closes #13915
Fixes #13914
2016-10-20 17:21:12 +02:00
Martin Trigaux 83fb76e4c0 [IMP] point_of_sale: sort report by product name
Instead of undeterministic order on a dictionnary
2016-10-20 16:52:30 +02:00
Denis Vermylen (dve) c952685624 [FIX] mrp_repair: fix repair "workflow"
Workflow was badly removed, before repair invoice method didn't make the stock
moves.

Corrected the issue and made the moves happen always at the end of reparation,
not when the repair reaches the done state (ambiguously named "Repaired").
2016-10-20 15:58:11 +02:00
Ravi Patel 5bd4514c6f [IMP] prodcut_expiry: 'Product Alert Time' improvement
- Hide life_time, use_time, removal_time and alert_time if tracking = no tracking
- Change the tooltip of these fields(life_time, use_time, removal_time, alert_time)
- Add filter 'Expiration Alert' on the Lot/Serial Number list view based on the lot/sn alert date
- Add a tag 'Expiration alert' when the alert_date is reached.
2016-10-20 15:37:51 +02:00
dut-odoo 9c77467f07 [FIX] l10n_in: taxes tags
There are inconsistencies between the tax tags as defined in the module
and what the reporting expects.

opw-689188
2016-10-20 15:36:36 +02:00
Nicolas Martinelli 53281b5dbf [FIX] payment_stripe: tracebacks
Tracebacks due to key not present in dict, and inconsistent return of
the method.
2016-10-20 15:16:35 +02:00
Nicolas Martinelli bbe9bc4026 [FIX] payment: traceback
Boom boom if `clean_vals` not defined.

opw-691706
2016-10-20 15:14:03 +02:00
Yannick Tivisse 95de49a9ab [MERGE] website_sale_delivery: Simplify delivery methods management in the e-commerce 2016-10-20 14:43:00 +02:00
Denis Vermylen (dve) 0b703b436a [IMP] website_sale_delivery: unpublish data delivery methods by default
Currently all delivery methods are published after module installation. But if none is published we have an issue processing the checkout.

Free of charge : published by default
The other ones : unpublished by default
2016-10-20 14:33:23 +02:00
Rohan Patel 4b35ce8db2 [IMP] website_sale_delivery: set auto_install True
When e-commerce and delivery are installed, website_sale_delivery should be
installed.
2016-10-20 14:32:08 +02:00
Rohan Patel 6d9c59f348 [IMP] website_sale_delivery: Allow to (un)publish delivery methods from website
Grant the ability to publish delivery methods from the website for those who
have the access rights, in that case to sales manager with publication access rights.

Use the previous commit to display small buttons
2016-10-20 14:32:07 +02:00