Commit Graph
106162 Commits
Author SHA1 Message Date
Mansi Gandhi ba6a5ddc8d [IMP] website_crm: add 'Default Sales Team' and 'Default Salesperson'
To leads created from the 'contact_us' form from the website.
2016-10-25 13:56:00 +02:00
dut-odoo 500b73323d [IMP] l10n_in: changed account tag ids 2016-10-25 09:52:49 +02:00
dut-odoo 0e02d0e9da [IMP] l10n_in: applied new tax structure for the India 2016-10-25 09:52:49 +02:00
Atul Patel f65ae49f38 [ADD] hr_holidays: Add track visibility onchange to employee, start and end date and number of days to take leaves to easily track in history with mail. 2016-10-25 09:55:00 +05:30
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
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
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
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
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
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
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
Rohan Patel b0e9416962 [IMP] website: add btn_class on publish_management template
To be able to have publish buttons for the website of adaptable sizes.

example:

<t t-call="website.publish_management">
    <t t-set="btn_class" t-value="'btn-group-xs'"/>
    <t t-set="object" t-value="delivery"/>
    <t t-set="publish_edit" t-value="True"/>
</t>
2016-10-20 14:27:43 +02:00
rmu-odoo 542201eed3 [IMP] payment: support defining payment providers for specific countries. 2016-10-20 11:59:17 +02:00
Srushti Patel cac170de23 [IMP] stock: Only display related pickings on "Package Transfer" button
Purpose
=======
On a stock stock.quant.package form view, the "Package Transfer" button does not have any filter, it opens all the pickings

Clicking on "Package Transfer" button should display its related pickings
2016-10-20 11:48:33 +02:00
Christophe Simonis 58171177d3 [MERGE] forward port branch 10.0 up to d53bb47 2016-10-19 18:53:32 +02:00
Christophe Simonis d53bb47163 [FIX] account: workflow are gone in 10.0 2016-10-19 18:51:59 +02:00
Christophe Simonis 42481f9849 [FIX] website: convert new test to new-api 2016-10-19 18:26:34 +02:00
Christophe Simonis 938ffb92da [MERGE] forward port branch 10.0 up to 6466aa4 2016-10-19 18:16:14 +02:00
djt c840227e10 [FIX] doc: correct a misspelled word
Closes #13822
2016-10-19 18:11:19 +02:00
Whitley 423660b59e [CLA] signature for WhitleyStriber
Closes #13825
2016-10-19 18:11:19 +02:00
Christophe Simonis 6466aa499f [MERGE] forward port branch saas-12 up to 00f4547 2016-10-19 18:09:53 +02:00
Christophe Simonis 00f45470da [MERGE] forward port branch saas-11 up to 8411b89 2016-10-19 17:56:52 +02:00
Christophe Simonis 8411b893ad [MERGE] forward port branch 9.0 up to 28560a3 2016-10-19 17:34:21 +02:00
Christophe Simonis 28560a34da [MERGE] forward port branch saas-6 up to 8e094bb 2016-10-19 17:23:45 +02:00
Goffin Simon c27d8715af [FIX] stock: _search_quantities
The operator and the value defined on each domain filter were not
used in the function "_search_quantities".

opw:690753
2016-10-19 16:33:17 +02:00
Denis Vermylen (dve) db85ad489c [FIX] hr_holidays: correct new api migration
an old [record_id] was creating a traceback for the "Absent Today" employee
filter, now removed and it works fine again.
2016-10-19 16:25:36 +02:00
Pierre Masereel 57c7b1d3a1 [FIX] barcodes: _set_quantity_listener
Before, the '_set_quantity_listener' function was opening a 'window.prompt'
which had different comportment depending the navigator. For example,
the focus was not allways on the input field, the enter key 'Cancel'
the prompt or 'validate' it.

So to improve the usability and the consistancy we used a dialog instead
a prompt, to manage the focus and the 'Enter' key pressed when we want to
set a quantity.
2016-10-19 16:14:00 +02:00
Raphael Collet 3ec5a23007 [FIX] base: recompute view.model_data_id (#13885)
The field was a stored computed field without dependencies, and therefore it
was never (re)computed. Add a simple dependency on the model `ir.model.data`
to make the recomputation everytime a view is modified. Moreover, when views
are created from modules, delay the recomputation of view fields until their
`ir.model.data` record is created.
2016-10-19 15:20:14 +02:00
Simon Lejeune ecac88dcc0 [ADD] pylint: using variable before assignment 2016-10-19 15:18:58 +02:00
qsm-odoo 01186fef58 [FIX] website_blog: prevent blog title to overflow the cover
Note: in 10.0, the layout has changed and it is not a problem anymore.
2016-10-19 14:52:39 +02:00
Martin Trigaux 5709bd5b98 [FIX] pos_cache: use base64 for attachment content
an ir.attachment expects base64 content
Closes #13878
2016-10-19 14:51:16 +02:00
Nicolas Martinelli 756262639f [FIX] website: traceback in route '/website/action'
The route `/website/action` crashes since `action` and `action_id` might
not be defined.

opw-691634
2016-10-19 14:38:24 +02:00
Jeremy Kersten ce7f7a5687 [FIX] account: change link in planner for Contract and subscriptions
account_analytic_analysis doesn't exists anymore.

This commit closes #13867
2016-10-19 14:38:21 +02:00
Nicolas Martinelli 0f3048e059 [FIX] account: invoices from partner view
When the user clicks on the stat button to access the partner invoices,
the invoices are not displayed.

This is because the domain is wrong.

Fixes #13883
2016-10-19 14:10:21 +02:00
Goffin Simon d3c84ed42c [FIX] account, account_cancel: visibility of the button_cancel_reconciliation
When a account statement is validated, it's not possible to cancel a statement line.
To cancel a line from a validated statement, you must first reset to new the statement.
In this way, it's not possible to have a validated statement with unreconciled lines.

opw:690766
2016-10-19 14:09:22 +02:00
Nicolas Martinelli d3e2aa5551 [FIX] purchase_requisition: incorrect method call
Missing arguments in method call, which causes crash.
2016-10-19 11:13:35 +02:00
Nicolas Martinelli d8c88079d3 [FIX] purchase_requisition: unit price when quantity change
On a PO linked to a purchase tender, changing the quantity on a PO line
will trigger a recompute of the unit price. However, this recomputation
will take into account the unit price of the supplier pricelist, not the
unit price on the purchase tender.

opw-690483
2016-10-19 11:08:15 +02:00
Nicolas Martinelli fad9378d17 [FIX] purchase_requisition: price unit in blanket order
When the purchase tender of a PO refers to a blanket order, the price
unit used to create/update the order lines doesn't take into account the
potential difference of UoM.
2016-10-19 11:08:07 +02:00
Nils Hamerlinck 8e094bb8fd [FIX] point_of_sale: return raises an irrelevant warning
When returning an item by entering an orderline with a negative quantity
you got a warning message asking you to confirm a large payment
amount. Introduced by 5a3d9ce9ce.

Closes #13777
2016-10-18 17:53:02 -07:00
Joren Van Onder 8e720a9319 [FIX] point_of_sale: delete validated orders immediately from db
If you validate an order it will be sent to the backend. If you then
close the POS frontend somehow before clicking 'Next order' this order
will be reloaded from localStorage when reopening it. This is
problematic because it allows the user to then modify this order and
validate it again. Everything will appear fine but in the backend this
new, modified order will be ignored as it has the same pos_reference as
the one that was sent initially.

The deeper underlying issue is that there exists a brief timeframe where
the same order can exist twice in the db: both as 'order' and
'unpaid_order'. To ensure this does not happen this fix removes the
order from the unpaid orders after it is saved as a validated order.

Fixes #13538
2016-10-18 16:56:46 -07:00
Jeremy Kersten 23c3bc1a59 [FIX] web: really remove traceback on unlink_if_refcount
Previous commit was just stupid: #4128ab641 - Mea Culpa
2016-10-18 18:11:42 +02:00
Olivier Dony b62b2423e6 [FIX] account: fix typo in new API conversion
`record.ids` is already a list and should not be wrapped in
another list

Introduced in conversion at d6e1d41128
2016-10-18 16:40:30 +02:00
Martin Geubelle 6348b56755 [FIX] calendar: prevent traceback if no real_ids
After 488e9f2 there is traceback
if the list real_ids is empty.

opw-690761
2016-10-18 16:25:05 +02:00