Commit Graph
64 Commits
Author SHA1 Message Date
Arnaud Baes 438006b56d [ADD] stock: replenish wizard
This wizard allows the stock users to replenish a product using the
routes applied to this product. A specific route can also be applied
to bypass the default route.

This replaces the "request procurement" wizard from v10, lost during the
stock refactoing.

Task ID: 47938
related to #22041
2018-04-04 16:06:19 +02:00
Pratima Gupta 55c0221e38 [IMP] stock, mrp{,_repair}: warn when operating on out of stock products
This implements a warning when the user tries to do any of the
following operations on a product that is not in stock:

- Scrapping
- Unbuilding
- Repairing

The warning displays the current stock of the product in question per
location which can be helpful in case the user selected the wrong
location.
2017-09-26 21:36:10 -07:00
Simon Lejeune ce4da0531d [REF] stock, stock_account: inventory and valuation report
Kind of switches the behavior for inventory and valuation report,
meaning allows the user to see the quantity at date and disallow him to
see the valuation at date.
2017-09-25 15:34:55 +02:00
Joren Van Onder a2a361f7e0 [IMP] stock: ask confirmation when validating overprocessed moves 2017-09-20 15:08:34 +02:00
Fabien Pinckaers 0e4f3bb959 [IMP] stock: remove procurement orders to fufill immediately
This removes the procurement.order model. To fufill their needs SO, PO, MO and
stock moves now call the _run method of the relevant procurement.group.

This mecanism is now only used for stockable product, tasks now uses their own
independent mecanism.

The _run method will check all the applicable rules and create directly the
needed model to fufill the need.

The modules stock, purchase, mrp, extends the _run method to implement their
specific strategy relevant for the rule type they define.

If an exception happens the message will be logged as a mail messsage on the
source model, for example, if a sales order cannot be fufilled the salesperson
will now see directly the reason.

OLD commit messages:
[WIP] procurement: removing procurement.order in stock, sale, purchase, sale_stock. WIP
fixup! [WIP] procurement: removing procurement.order in stock, sale, purchase, sale_stock. WIP
[IMP] Basic tests
[FIX] test not necessary anymore
[FIX] remove unnecessary print statement
[FIX] unnecessary test + why passing warehouse worked before?
[IMP] purchase: one move by purchase order line
[FIX] purchase: correct inventory tests and pass move_dest_ids among procurements
[FIX] because of bad cherry-pick merge
[IMP] make mrp pass by adding move_dest_ids there too
[IMP] tests of sale_mrp, no need for cancelpropagation then
[IMP] better to consistently use recordsets also for one2many
[FIX] purchase_requisition
[FIX] Exceptions should trigger errors, which should be caught in the tests
[FIX] sale_mrp: remove usage of procurement.order and use sale order name instead of sol
[FIX] stock_dropshipping: add sale_line_id on purchase_line_id
[FIX] Remove pdb
[IMP] add stock_dropshipping files
[IMP] stock: search carrier through sale line instead of procurement group
[IMP] add procrule test and preision needed when updating sol
[FIX] sale_order_dates + [IMP] procurement exceptions by scheduler
[FIX] No need to return task
[IMP] move file as name changes and add corrections
[FIX] Continue Run Schedulers wizard fix
[FIX] name issues of takss
[FIX] updating sale order line, but there is still a problem with the recompute
2017-09-08 17:08:05 +02:00
xmo-odoo b4429c2a91 [FIX] Various P3-related import changes
* LDAP import: python-ldap is not python3-compatible, pyldap is

  Warning: only supported from debian Stretch (current testing)?
  https://packages.debian.org/search?searchon=names&keywords=pyldap

* implicitly relative imports
* imports of moved or removed stdlib modules

issue #8530
2017-04-28 09:06:53 +02:00
Josse Colpaert 2ddc35a530 [REF][NEWPIE] mrp: new MRP
This commit contains the core of the new MRP. It contains a whole refactoring
of the MRP application, with improved and new features, written in new API.
Among other here are the main manufacturing workflow improvements :

 - Picking type not only for pickings but also for manufacturing orders
 - Properties replaced by picking type
 - BoM can only be produced with its routing (no other)
 - Either produce without routing with only production orders, or produce with
   routing
 - By default, there is an order in the work orders (serially), but you can
   override it to be able to work in parallel
 - Time clocking on work orders and block time on work centers with reporting
   on OEE, performance, losses, ...
 - Real-time adaptation of timings on operations
 - Lots/serial numbers can be inputted like in the pickings on manufacturing
   orders.  It is also possible to input them in the work orders.
 - Material availability independent of production order state (possibility to
   start production when only part of it is there)
 - Work sheets on work orders
 - Put messages on work orders to make your workers pay attention to something
 - Full traceability link to see for each produced piece of stock, the
   consumed pieces, ...
 - Separate scrap object (a scrap is not done based on an original move
   anymore)
 - Separate unbuild system (if you want to unbuild into its original
   components)

Thanks to all people that helped during this development, notably but not
limited to Chirag A Dodiya (cod@odoo.com), Gaurav Panchal (gan@odoo.com),
Jignesh Rathod (jir@odoo.com), Mansi Trivedi (mtr@odoo.com), Pariket Trivedi
(ptr@odoo.com).
2016-07-04 16:22:37 +02:00
Thibault Delavallée 7a555a9fd1 [MOV] stock: wizards
Wizard models and views are moved in their own file. This commit only moves
files. No change is done.
2016-04-29 12:18:48 +02:00
Josse Colpaert 22b81b92e1 [IMP] stock: instead of splitting the pack operation by lots, we allow for multiple lots by pack operation
When scanning multiple serial numbers e.g., the list of pack operations
can become quite long.  In order to avoid that, we make it possible
for pack operations to contain multiple lots.

The implementation is done in the way that the links between moves
and pack operations remains the way it was.  The important difference
is that on action_done, it will check all the reserved quants and their lots at
once first and only afterwards, it will check the lots one by one to check what
it can reserve.

As the details for the lots for the pack operation became a real object, the wizards related
to the pack operation details are not necessary anymore and were replaced
by a form view of the pack operation.
2015-08-25 10:07:30 +02:00
Josse Colpaert d2b4b3909e [IMP] stock: Improve lots with serial numbers, define lot tracking by picking type and convert stock with lot False to a lot when necessary
Instead of having only outgoing, manufacturing, incoming, all... traceability on the product,
we can define on the product if there is no tracking, lot tracking or unique serial number tracking.
On the picking type we can define whether we will only create lots for the picking type or use existing lots.

The lots are required when the product and the picking type demand it.

The option for serial number will check that each piece (quantity 1) has its
own serial number.

A lot splitting wizard is added on the pack operations in the picking form.

We want to be able to handle the case where we receive a lot of iPads e.g. and we
only assign a serial number when the product is delivered.  For this, when the product is
delivered, we see that we only have products with no lots.  When we see that we take something
without lot for something that needed one, we assign the lot to that piece of stock.

For negative quants: a positive quant with no lot can reconcile with a negative quant with/without lot,
a positive quant with lot, will preferably reconcile with a negative quant with the same lot, afterwards
with that without lot.
2015-07-03 17:50:35 +02:00
Josse Colpaert 2cb3a90c1c [IMP] Barcode interface and transfer wizard in picking form instead
Pack operations will not appear in a transfer wizard or bar code interface anymore, but
in the picking form itself.  Some wizards are still needed however to ask whether a
backorder needs to be created and whether we need to do an immediate transfer

The biggest change in the model is in the picking where the locations of the picking
are not a related anymore, but need to be set. That is why the tests need to be changed.
This allows also to have pickings without moves initially and just move one pack e.g.
Locations won't be visible on stock moves in a picking either.  (as they should be those of the picking)

In order to avoid confusion, the pack operations are created immediately when stock is reserved and we
are not waiting until the wizard or the bar code interface is launched anymore.

The recompute button previously in the barcode interface will only appear when the reservation changed
and the user indicated in the pack operations that something was moved already.  Otherwise it will
recompute the pack operations.  That way the reservation on the stock moves, is reflected by the pack operations.

Return pickings are not confirmed automatically when confirming the return wizard.
That should make it possible to choose another location for the return.  (Don't return in output e.g.)

Barcode scanning is not in this commit.
2015-06-15 10:18:17 +02:00
Olivier Dony 0bd4545348 [LEGAL] Use global LICENSE/COPYRIGHT files, remove boilerplate text
- Preserved explicit 3rd-party copyright notices
- Explicit boilerplate should not be necessary - copyright law applies
  automatically in all countries thanks to Berne Convention + WTO rules,
  and a reference to the applicable license is clear enough.
2015-06-02 03:16:04 +02:00
Josse Colpaert 3891892d9f Merge from nse back-end partial picking wizard 2014-08-20 18:28:57 +02:00
Quentin (OpenERP) 0170fe87bc [REF] removal of stock/wizard/mrp_procurement.py which was unused + refactoring of procurement.do_view_procurements() in order to use new API of ir.model.data
bzr revid: qdp-launchpad@openerp.com-20140507091818-hp6fgipxi1arpv4u
2014-05-07 11:18:18 +02:00
Josse Colpaert b01a61e396 [WIP] Remove unnecessary reports
bzr revid: jco@openerp.com-20140317150409-wusdimhx4hx001to
2014-03-17 16:04:09 +01:00
Josse Colpaert 8ec0968f8d [WIP] Reorganise action_consume wizard to start from mrp and clean op inventory wizards
bzr revid: jco@openerp.com-20140128151834-ni90kny7b2y6sr36
2014-01-28 16:18:34 +01:00
Quentin (OpenERP) e3d7ff9c69 [REV] stock: added back the wizard to change the quantity removed in previous commit: it's not deprecated at all as it applies on product, not stock moves\!
bzr revid: qdp-launchpad@openerp.com-20140107110409-hclpl2552l65bs3i
2014-01-07 12:04:09 +01:00
Quentin (OpenERP) a0558ad4fd [IMP] stock: rehabilited the constraint check on traceability of lots. Improved it by allowing to track all operations (included the internal -> internal ones). Refactored in order to move the track_production field in mrp, where it's meaningful. Removed also a unused/deprecated wizard to change qty on a move
bzr revid: qdp-launchpad@openerp.com-20140107103915-bx9spjoclrlhalbr
2014-01-07 11:39:15 +01:00
Turkesh Patel (Open ERP) 8794b51ec0 [IMP] remove fill inventory wizard and improved view.
bzr revid: tpa@tinyerp.com-20130829112827-ywcklnhz0p6fxi4a
2013-08-29 16:58:27 +05:30
Fabien Pinckaers da89a60702 [FIX] some fixes and cleaning
bzr revid: fp@openerp.com-20130729214443-r3t4gnlisvp8hwyk
2013-07-29 23:44:43 +02:00
Quentin (OpenERP) 90aa53ad15 [WIP] removed stock_splitinto wizard + implemented the preparation of pack operations
bzr revid: qdp-launchpad@openerp.com-20130726180942-skbp1lnri8j05t6t
2013-07-26 20:09:42 +02:00
Quentin (OpenERP) ffa06fc422 [WIP] pack operations + do_partial refactored again
bzr revid: qdp-launchpad@openerp.com-20130723153424-9179x8burkch0ap0
2013-07-23 17:34:24 +02:00
Quentin (OpenERP) 038fd04ea5 [WIP] split stock module in stock and stock_account that installs itself only if account+stock are installed
bzr revid: qdp-launchpad@openerp.com-20130711130528-c9jjiduqriakj9iv
2013-07-11 15:05:28 +02:00
Fabien Pinckaers bcca9e9652 [IMP] manifest stock
bzr revid: fp@tinyerp.com-20130630223813-59gb27p3m12gzui7
2013-07-01 00:38:13 +02:00
Mayur Maheshwari (OpenERP) 6138453497 [IMP]stock:Improvement in yml
bzr revid: mma@tinyerp.com-20110802132714-jh8jam8fgdwv3t5g
2011-08-02 18:57:14 +05:30
Mayur Maheshwari (OpenERP) 4f149e642b [IMP]stock:Improvement in yml
bzr revid: mma@tinyerp.com-20110729111953-0mbb9za6nhn0hhl9
2011-07-29 16:49:53 +05:30
ron@tinyerp.com d108a970e6 [ADD]wizard to change Product Quantity from Product form View
bzr revid: ron@tinyerp.com-20101203130621-ddfrcf36mls4p7q5
2010-12-03 18:36:21 +05:30
sbh (Open ERP) 42f572a889 [Fix] stock: remove the name from init
bzr revid: sbh@tinyerp.com-20101014062942-8xbckw3h857oxjt2
2010-10-14 11:59:42 +05:30
sbh (Open ERP) 6c34dc63a2 [IMP] stock : Remove the stock_picking_makwizard
bzr revid: sbh@tinyerp.com-20101014054259-umw0er3gzua08o40
2010-10-14 11:12:59 +05:30
sbh (Open ERP) 1239d4c8cd [ADD] stock: Improve the tooltips of fill_inventory wizard and merge set_stock_zero
[REM] Remove the set_stock_zero wizard

bzr revid: sbh@tinyerp.com-20100909061510-3rdpvo4m48qxehnv
2010-09-09 11:45:10 +05:30
sbh (Open ERP) 8ee7e61b8b [Add] stock: stock_return_picking and stock_picking_make wizard
bzr revid: sbh@tinyerp.com-20100810122852-tfftucd8hbqirysj
2010-08-10 17:58:52 +05:30
nel@tinyerp.com dd20f9ff47 [ADD] stock: packing report
bzr revid: nel@tinyerp.com-20100615084644-5qdod7k6vg7c79ty
2010-06-15 10:46:44 +02:00
mtr 514ab7423a [IMP] stock: Task ID-581: Converted stock_ups and stock_replacement wizards into osv_memory wizards.
bzr revid: mtr@mtr-20100423135017-bg5iuwdyodj1dbao
2010-04-23 19:20:17 +05:30
uco (OpenERP) fc40ca40cf [REM] stock: Task ID 350: Removed Make Picking and Return Picking wizards.
bzr revid: uco@tinyerp.co.in-20100421102202-35zd7a7hvx5o3kd4
2010-04-21 15:52:02 +05:30
Fabien Pinckaers 7d5a38ba3b [IMP] stock management - simplified view
bzr revid: fp@tinyerp.com-20100409000121-34mhhp8rbl2u3osy
2010-04-09 02:01:21 +02:00
Fabien Pinckaers c73db61caf merge
bzr revid: fp@tinyerp.com-20100404184958-i1cwl4uwswu9fyyt
2010-04-04 20:49:58 +02:00
mra (Open ERP) f86af1d2c7 [MERGE] Merge with main branch
bzr revid: mra@tinyerp.com-20100401052558-f37imn7zb7xlwntu
2010-04-01 10:55:58 +05:30
uco (OpenERP) cdc23c6119 [ADD] stock: Added osv_memory wizards: (1) Return Picking and (2) Split Moves.
bzr revid: uco@tinyerp.co.in-20100401050848-ugxbxzloaqtrit2y
2010-04-01 10:38:48 +05:30
Harry (Open ERP) 101b96a591 [FIX] stock: correct incomplete work
bzr revid: hmo@tinyerp.com-20100331065102-lkawbyzxkh9mvndv
2010-03-31 12:21:02 +05:30
uco (OpenERP) 6f65cd47f2 [ADD] stock: Added an osv_memory wizard 'Make Picking'.
bzr revid: uco@tinyerp.co.in-20100330094924-fhhuh7gxemmpu1fd
2010-03-30 15:19:24 +05:30
Mantavya Gajjar abec91491e [FIX]: fix a problem of the wizard renamed
bzr revid: mga@mga-20100330073044-f21vak056uvr4n8k
2010-03-30 13:00:44 +05:30
Mantavya Gajjar 703c633255 [REVIEW]: fix a problem of wizard moved
bzr revid: mga@mga-20100330072828-viksmojrys3h22hf
2010-03-30 12:58:28 +05:30
Harry (Open ERP) 373b2701c5 [IMP] stock: stock partial move wizard
bzr revid: hmo@tinyerp.com-20100326145201-3viwi4gcsujnvfhd
2010-03-26 20:22:01 +05:30
mtr f1ca4fb2a4 [ADD] stock: Added osv_memory wizard for 'Upstream Traceability' and 'Downstream Traceability' wizards.
bzr revid: mtr@mtr-20100326130416-e245kw4dr7eutedo
2010-03-26 18:34:16 +05:30
Harry (Open ERP) f688de89c1 [IMP] stock: change cost price and partial wizard
bzr revid: hmo@tinyerp.com-20100326092502-3f4jfnr6wjjrbayf
2010-03-26 14:55:02 +05:30
uco (OpenERP) 04b333863c [ADD] stock: If changing cost of a product, to take this valuation delta into account with a corresponding accounting entry.
bzr revid: uco@tinyerp.co.in-20100316133419-9zzx22kcxyaoosab
2010-03-16 19:04:19 +05:30
Harry (Open ERP) bdc78703ea [MERGE]
bzr revid: hmo@tinyerp.com-20100311142449-gfhiuwigpchfr074
2010-03-11 19:54:49 +05:30
KSA (Open ERP) e97cd87fcd [IMP] stock: Converted wizards into osv_memory wizard.
bzr revid: rpa@tinyerp.com-20100310094247-0gi9qlre6r82244w
2010-03-10 15:12:47 +05:30
rpa (Open ERP) 819f2a33fe [IMP]: stock: Improvement for wizards of consume and scrap moves + converted simple wizards to osv_memory wizards
bzr revid: rpa@openerp.co.in-20100219105145-f9pvx6g8ua9fjq0r
2010-02-19 16:21:45 +05:30
uco (OpenERP) 031765285d [ADD]: *Added Production lot field in stock.inventory.line. *Added a wizard to split inventory line using production lot.
bzr revid: uco@tinyerp.co.in-20100119085759-ku0d7dz9meg2gs22
2010-01-19 14:27:59 +05:30