Commit Graph
71 Commits
Author SHA1 Message Date
Cédric Krier a33d2d879d Move assign_try and pick_product from product.product to stock.move
Fix assign_try to work on all child locations
Use copy in assign_try to be more generic
2009-01-20 01:04:28 +01:00
Cédric Krier 7fcdd952b2 Add on_change_uom to handle unit_price and don't round unit_price when calling currency.compute 2009-01-16 18:49:18 +01:00
Cédric Krier d8a8768acd Add cost_price on move and fill it with the current cost_price at the move done 2008-12-22 18:54:37 +01:00
Cédric Krier 754b6b6a64 Improve default value for location and handle for outgoing with supplier 2008-12-04 15:41:14 +01:00
Cédric Krier 0cd88f4d45 Handle average price for products return to supplier 2008-12-03 12:44:33 +01:00
Cédric Krier d5079cfc13 Remove type on move and use unit_price_required 2008-12-02 19:48:35 +01:00
Bertrand Chenal f550e94bc3 merge 2008-11-13 17:20:00 +01:00
Bertrand Chenal 7983747aad Allow to update move from assign to draft. Avoid cancellation accordingly. 2008-11-13 17:19:28 +01:00
Cédric Krier 435b02db79 Add context on uom for default category value 2008-11-13 15:21:05 +01:00
Cédric Krier f2ac9930ed Fix typo in on_change_with_unit_digits (unit -> uom) 2008-11-10 12:01:47 +01:00
Bertrand Chenal 8393ae24df Use a more performant implementation for name_search 2008-11-06 00:19:38 +01:00
Bertrand Chenal aa751618eb Improved name_{search,get} on move 2008-11-05 12:00:37 +01:00
Bertrand Chenal 02c1152df9 Use name_get and name_search instead of non-useful _rec_name on move 2008-11-04 23:33:23 +01:00
Cédric Krier a8041b4b0f Use date instead of datetime 2008-11-03 18:41:29 +01:00
Cédric Krier 9694112ddd Use Date for effective_date and planned_date instead of DateTime 2008-11-03 15:42:37 +01:00
Cédric Krier 4b378a03fe Prevent division by zero by using the previous cost price 2008-11-03 15:42:07 +01:00
Cédric Krier f4256013fb Use template quantity to update cost_price 2008-10-31 14:15:20 +01:00
Cédric Krier ef173e1618 Put the test for calling _update_product_cost_price outside the function
This will allow to use this function for other cost_price_method than average
2008-10-30 11:31:12 +01:00
Cédric Krier 39bde19663 Use negative quantity to update cost price 2008-10-29 19:59:17 +01:00
Bertrand Chenal a8f72bea74 Average cost price: handle move cancelation 2008-10-25 16:24:00 +02:00
Bertrand Chenal 4efa5c1d37 Handle currency on move for cost price update 2008-10-23 23:24:45 +02:00
Bertrand Chenal 0836283c25 Fix typo's 2008-10-23 22:55:06 +02:00
Bertrand Chenal b26ec30b74 Removed unused code, fix typo and set effective date automaticaly at move creation 2008-10-23 18:32:03 +02:00
Bertrand Chenal c9f01d1fc9 Removed set_state_* from move:
* use write to update effective_date
* Added cost price update when move is created with state done.
2008-10-23 17:22:25 +02:00
Bertrand Chenal c0a36428a4 Removed buttons on move:
* since internal packing is now available
* ensure more consistency with packings
2008-10-21 13:11:46 +02:00
Bertrand Chenal 1e30460e29 Added internal packing 2008-10-06 12:20:19 +02:00
Cédric Krier 90998afe93 Use new product.default_uom.category keyword to search on uom 2008-09-16 16:41:24 +02:00
Cédric Krier 3c4acb02f8 Fix compute price in the on_change to pass BrowseRecord instead of id 2008-09-15 15:39:46 +02:00
Cédric Krier 4feb652f93 Fix search for new clause syntax 2008-09-04 18:29:14 +02:00
Cédric Krier 7dae48e0fd Add unit_digits and use it
Add domain on uom for only uom of the same category than the default on
product.
2008-08-26 19:05:47 +02:00
Bertrand Chenal 89faf08e20 Removed unused import 2008-08-26 09:16:05 +02:00
Cédric Krier c81afef1ad Add translation of _constraints 2008-08-05 11:36:37 +02:00
Cédric Krier 3272f0d49c Change unlink to delete for issue201 2008-07-25 12:49:38 +02:00
Cédric Krier 9d59a71032 Use new raise_user_error function 2008-07-17 19:37:38 +02:00
Bertrand Chenal 63558aa4ab Fix : allow to delete cancelled moves 2008-07-11 00:27:42 +02:00
Bertrand Chenal d2ef559ce5 Added context to compute_qty and compte_price call on uom object 2008-07-09 15:53:50 +02:00
Cédric Krier c9cd70b20e Remove "waiting" state in move
Improve menu order
Fix some guidelines
Add readonly on inventory_move on packing with state done
2008-07-07 15:54:10 +02:00
Cédric Krier b0b88df2c6 Remove select_move wizard and use instead add_remove attributes on one2many 2008-07-07 11:37:38 +02:00
Cédric Krier 5249cc7143 Fix COPYRIGHT 2008-06-23 21:01:22 +02:00
Bertrand Chenal aac22b0cd2 Guidelines 2008-06-11 20:18:37 +02:00
Cédric Krier 52ccd0591d Fix check_product_type to check the product type and remove bad indent 2008-05-27 10:30:57 +02:00
Bertrand Chenal 5ef5a5c8f3 Add constraint on move: forbid service product. 2008-05-27 00:55:13 +02:00
Cédric Krier aa0024dec6 Remove bad duplicate default_company 2008-05-22 09:31:16 +02:00
Bertrand Chenal f7d9dabbdd Added default value for company field on move 2008-05-22 02:02:50 +02:00
Cédric Krier 9490e898d6 Fix write on move to work with single id 2008-05-19 17:50:15 +02:00
Cédric Krier ab75b9fc0c Fix typo 2008-05-13 16:47:26 +02:00
Cédric Krier ea16dba0eb Add Average Cost Price update
Move state change constraints on write function
2008-05-13 13:11:53 +02:00
Cédric Krier 5ad46d4893 Add unit_price on move
Add function field type to display or not unit_price
Add on_change to update unit_price
2008-05-13 11:49:37 +02:00
Cédric Krier b2ac57f74e Add company on move 2008-05-09 12:32:46 +02:00
Cédric Krier 6993d27f1c Simplify packing in workflow
- Remove waiting activity/state
- Add "Reset to Draft" to restart the workflow
- Simplify signal name
- Remove unused rpc_allowed function
2008-05-08 17:24:49 +02:00