Commit Graph

3839 Commits

Author SHA1 Message Date
Josse Colpaert 6f8546dfb5 [FIX] Make sure we can select dropship on purchase order and see the related customer and invoicing based on shipments works for sale only
[FIX] Sale should lead to invoicing
[IMP] Journal should not depend on picking type code when in dropship

Make sure drop shipment with invoicing on sale orders only, works.
Also the picking type of dropshipping should be incoming.  This
makes it possible to select it on the purchase order.  This also fixes #3421.
And we can create a dropship from a purchase only. (not the good way)
For this, we make the invoicing based on the shipment look at the
purchase related and not on its picking type code as the picking type
of dropshipping is changed back to incoming.
The purchase order will also show the customer address when in
a dropship case.

Closes #3421
2014-12-17 17:10:40 +01:00
Gaurav Panchal a9b4c56343 [FIX] purchase: supplier invoice and purchase order count
Value of purchase_order_count and supplier_invoice_count should be coherant with
the behaviour of the button on partner form: count records for the contact of
the company as well.
Fixes #4224
2014-12-16 12:28:08 +01:00
sve-openerp d347e9c28c [IMP] sale,purchase: harmonize address layout in qweb reports
Shipping and invoice addresses header are now bold and sticked to the related
address.
2014-12-11 13:38:01 +01:00
Martin Trigaux 6dceae0de9 [FIX] purchase: access rights when validating a picking
When a warehouse user transfer an incoming shipment, the linked purchase order
is updated as well but the user may not have access to it.
Trigger the workflow as admin instead. opw 619775
2014-12-10 14:45:33 +01:00
sve-openerp a5d7d2072f [FIX] purchase: display only one shipping address
The warehouse location is the fallback value
Fixes #4056
2014-12-10 14:28:20 +01:00
Josse Colpaert c12f4efc53 [IMP] Cancelling of procurements related to purchase orders should check state/UoM of the purchase order line + optim action_cancel
[IMP] Add tests

[IMP] Clean up
2014-12-08 17:03:16 +01:00
Denis Ledoux 4630226514 [FIX] purchase: replace widget selection by option no_create
For the same reasons as 37c805f26f
2014-12-05 17:45:09 +01:00
Denis Ledoux 37c805f26f [FIX] purchase: replace company_id widget selection by option no_create
For selection fields, name_get calls to resolve the display name are client-side initiated, and will display "Unknown" if the user does not have read access to the selected company. And the reason for using a selection widget in the first place was to prevent inadvertent creation of companies. This is now doable via the no_create option, so we can remove the selection widget.
2014-12-05 14:41:30 +01:00
sve-openerp ff3cb41d5c [FIX] purchase: remove redundancy in report
The warehouse name and address name is often the same (name of the company).
Remove the name of the address as two warehouse may use the same address.
Fixes #4062
2014-12-05 13:51:28 +01:00
Denis Ledoux 04f3fffdb4 Revert "[ADD] purchase: average price computation test"
This reverts commit 5f9280e854.

These tests have been introduced in 7.0/saas-3, but can no longer be applied in 8.0, as they uses models that do not exist anymore in the new wms.

if such tests do not exist yet in Odoo 8.0, then these tests needs re-work, they cannot be applied like that

Conflicts:
	addons/purchase/tests/test_average_price.py
2014-12-04 10:20:55 +01:00
Christophe Simonis 5ca7fa18fc [MERGE] forward port of branch 8.0 up to 31a01ea 2014-12-03 19:24:57 +01:00
Christophe Simonis 7c49c6d79d [FIX] purchase: do not use deprecated api 2014-12-03 18:40:36 +01:00
Alexis de Lattre 31a01ea772 Fixes #3851 Create invoice from picking copies some parameters from the order to the invoice 2014-12-03 17:53:25 +01:00
Christophe Simonis 2ed212dcbf [MERGE] forward port of branch 7.0 up to d6daf5f 2014-12-03 17:51:06 +01:00
Mart Raudsepp 7a979b2d3e [FIX] Fix floating point handling in purchase _prepare_order_line_move
Without this better floating point handling, an extra stock move might
be created for zero quantity for some order lines upon PO confirmation,
because qty is equal to something closer to e.g 1.14e-13, but this is
larger than 0, so it creates a stock.move, which gets rounded too late
to 0.0

Closes #3346
2014-12-03 16:10:58 +01:00
Grover Menacho c7b6a96239 [FIX] action_confirm was not asking for purchase pricelist, otherwise it was asking for sale pricelist 2014-12-03 11:28:59 +01:00
Julien Legros 5f9280e854 [ADD] purchase: average price computation test 2014-12-02 19:33:23 +01:00
Will Stott c854404a2c [FIX] purchase(_requisition): typo negociation -> negotiation 2014-11-27 10:36:55 +01:00
Olivier Dony a6d24db305 [I18N] Update translations from Launchpad 8.0 branches 2014-11-19 17:49:12 +01:00
Josse Colpaert 506c52bcd1 [FIX] Avoid access error on XML id in browse when choosing picking type for manual purchase order. As they are ordered by sequence, just take the first you can find. 2014-11-18 17:22:32 +01:00
Josse Colpaert 2f5ca4380a Revert "[IMP] Remove unnecessary refresh statements because of new api"
This reverts commit b213438176.
2014-11-17 09:44:10 +01:00
Josse Colpaert b213438176 [IMP] Remove unnecessary refresh statements because of new api 2014-11-17 09:24:06 +01:00
Denis Ledoux c5714135c2 [MERGE] forward port of branch 7.0 up to 922a52d 2014-11-14 17:59:00 +01:00
Martin Trigaux 0a7633c11e [FIX] purchase: keep PO currency on picking
The delivery of a purchase order was not keeping the currency and cost price
from the purchase order for the reception. This was problematic for orders where
the invoice was generated from the picking (Invoicing Control: Based on incoming
shipments). The currency of the purchase order was kept while the cost was the
one in the company's currency.
It's better to keep the currency of the purchase order to make the invoice as
it's usually the one expected (and not convert everything to the currency of the
company). opw 615555
2014-11-14 17:29:40 +01:00
Denis Ledoux 7ab413724a [MERGE] forward port of branch 7.0 up to da15c9d 2014-11-14 15:59:33 +01:00
Martin Trigaux 7f4c4a5e8a [IMP] purchase: error message linked to product, not company 2014-11-14 12:24:31 +01:00
Josse Colpaert 518b2f6a3f [FIX] super of scheduler / delivery method and phantom boms / average price
[FIX] super of scheduler should have same params + use_new_cursor should be passed to procure orderpoint confirm

[IMP] Make sure the delivery works when doing phantom boms

[FIX] This should update the average price properly when having multiple moves with the same product

[FIX] Average price should take into account the quantities of all variants

[FIX] Make sure purchase picking type in other company works

[IMP] Views of quants and destination locations of moves
2014-11-13 11:50:01 +01:00
Josse Colpaert 86f785ae1b [FIX] #3153 Digits in wizard should be those of moves,... / Recreate delivery order from sale / Delivery method on delivery order
[IMP] Provide better purchase order picking type

[IMP] Possibly a better product uos handling in the sale order line

[FIX] Recreate of delivery order when sales order in shipping exception

[FIX] Delivery method should be passed to delivery order
2014-11-13 11:50:01 +01:00
Leonardo Donelli fb6892f857 [FIX] Remove duplicate "Can be purchased" filter.
Duplicate product filter "To Purchase" and "Can be Purchased". Same search
criteria and same name, so removing one doesn't affect people who were
referencing it (e.g. with search_default_* key in context).  Left the one
named "Can be Purchased" because consistent with the equivalent sale filter
"Can be Sold".

Fixes #2718, closes #2864
2014-11-03 15:46:55 +01:00
David Monjoie 4f973248dc [FIX] purchase: fixed recomputation of unit price when changing product quantity or uom 2014-11-03 09:09:52 +01:00
David Monjoie 7e454beff1 [FIX] purchase: fixed product_uom and price_unit update on product_id change on purchase.order_line form view 2014-10-30 12:31:37 +01:00
David Monjoie 27fa742a70 [FIX] purchase: translate purchaseorder and quotation reports 2014-10-29 11:23:34 +01:00
Josse Colpaert 06de55649b [FIX] Correct price correction courtesy of richard_willowit #2983 #2985 2014-10-17 17:38:38 +02:00
Josse Colpaert fa2461036b [FIX] Use currency of pricelist when creating PO from procurement 2014-10-13 21:33:13 +02:00
Olivier Dony 7439421ad2 [I18N] Update translations from Launchpad 8.0 branches 2014-10-08 17:52:25 +02:00
Denis Ledoux b675ff1f0a [FIX] purchase: do not pass uom in product_id_change when changing of product
To allow the on change to set the product default unit of measure when changing of product, and only in this case (not when changing price or quantity)
2014-10-08 17:21:29 +02:00
Christophe Simonis 388f1a1d7e [MERGE] forward port of branch saas-3 up to 3d4b82c 2014-10-01 16:46:03 +02:00
Denis Ledoux 3d4b82cd56 [MERGE] forward port of branch 7.0 up to 9cc54dc 2014-10-01 12:41:42 +02:00
dhr-odoo 3c9df6a71f [FIX] purchase: minmum purchase quantity and float precision (opw 610557) 2014-09-30 17:04:04 +02:00
Denis Ledoux 143d024904 [FIX] purchase: do not reset price_unit on qty or uom change
only when the product is actually changed
2014-09-30 10:41:19 +02:00
Denis Ledoux 428cb3fb13 [FIX] purchase: payment_term_id twice in the view
+ replace widget selection by options no_open no_create
2014-09-29 10:49:01 +02:00
Olivier Dony b74d830eb2 [I18N] Update translation templates with latest term changes 2014-09-23 19:13:50 +02:00
Olivier Dony 1c5b5e4290 [I18N] Update translations from Launchpad 8.0 branches
server: rev. 26 rev-id launchpad_translations_on_behalf_of_openerp-20140923072744-tkfs0yinu8msjh09
addons: rev. 39 rev-id launchpad_translations_on_behalf_of_openerp-20140923072715-5j7qvnuvmmb1zzy1
web: rev. 23 rev-id launchpad_translations_on_behalf_of_openerp-20140923072757-jvh9l6r2x0vfcyhb
2014-09-23 13:42:05 +02:00
Cedric Snauwaert fa561f5caf [FIX] wms: fix lookup of xmlid route_warehouse0_buy
Fixes #2610 courtesy of gurneyalex
2014-09-23 11:05:22 +02:00
Martin Trigaux c82bd1365c Forward port of 7.0 up to rev 9b87d6f 2014-09-19 15:28:02 +02:00
Martin Trigaux 9b87d6f371 [FIX] purchase: keep fallback behaviour that was removed at rev 8973217
If no valid invocie is found on the purchase order line, use the price and currency of the line (coherent with help message)
2014-09-19 14:47:33 +02:00
Denis Ledoux 5bd0249515 [MERGE] forward port of branch 7.0 up to a218a9e 2014-09-18 16:05:34 +02:00
Olivier Dony 53aa92d3c9 [I18N] Update translations from Launchpad branches 2014-09-18 11:47:16 +02:00
Josse Colpaert 5aeccbd90e [IMP] Use display_name instead of partner_ref 2014-09-17 21:42:07 +02:00
Josse Colpaert 066af964bf [IMP] Purchase on incoming shipments with services added 2014-09-17 21:41:42 +02:00