Commit Graph
75 Commits
Author SHA1 Message Date
Arnold Moyaux 943da6df0f [IMP] stock, purchase_stock, mrp: Replenishment Report
New report to easily order missing products in each warehouse.
Orderpoint have a new type: 'manual'. Manual orderpoint are not
trigger by the scheduler but the user could create replenishment
from the report directly. The report use the forecast report in
order to detect missing quantity for today (it does not search
depending the lead time for each product warehouse due to lake
of performance). It compares missing quantity with incoming RFQ
and other ongoing orderpoint. If it still missing a new entry
for replenihsment is created (it's also automaticaly deleted if
the replenihsment has been done another way).

Task: 2161378
2020-04-22 07:52:45 +00:00
Arnaud Baes eddc695ac3 [REM] stock: overprocessed quantity wizard.
As this wizard only shows the first product overprocessed and does nothing else,
we remove it completely for cleaning purposes.

task-1938108

closes odoo/odoo#39161

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-10-22 09:36:28 +00:00
svs-odoo 72a0fb6740 [REM] stock: remove stock_picking_responsible.py
As the responsible can be assigned directly in the list view, the assign
responsible wizard is now useless. The Country will not forget what you
did for us wizard, thank you.

closes odoo/odoo#38365

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-10-10 09:58:22 +00:00
svs-odoo 8c4507e7e3 [REM] stock: remove assign responsible
Removes the action assign responsible on picking since it can be assign
directly on the list view now.
The wizard must be deleted in the next version.

Task #2078163
2019-10-01 13:53:27 +00:00
svs-odoo 657adbe482 [IMP] stock: get back Change Product Qty. wizard
Product "Update Quantity" button can open the "Change Product Quantity"
wizard if all advanced stock options (stock locations, assign owner,
tracking by SN/LN, packaging) are disabled.

Task #2006337

closes odoo/odoo#33873

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-06-27 09:49:31 +00:00
svs-odoo 3520220268 [IMP] stock: generate multiple SN/LN for SML
Adds a button in stock move form view to generate multiple serial number
and assigns them to stock move lines.
Through a wizard, the user enter the first SN. Then, starting with this
number, iterates to assign and increment the SN on each move line who
doesn't have already one.

Task #1832645

closes odoo/odoo#33466

Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2019-06-24 12:56:02 +00:00
svs-odooandsle-odoo da33eb36b8 [IMP] stock: editable quants
Made some changes in stock.quant model to allow user to modify product
quantity easier.

To allow the edition of quant without opening more permissions on the
model, we switch to sudo in create mode and write if the conditions are
met (special key in context + access rights on the current user + write
on a specific field).
Also, we have two list views for the quant:
    - The old list view who still readonly.
    - A new list view where user can create new quant or edit quantity
    of existing ones

We display the second one if user is a stock manager.
For existing quants, user can modify counted quantity (which will modify
product quantity). User can also create new quant, in this case:
    - The quant is really a new one (ex.: new product/location
    association) so will simply create a new quant.
    - A corresponding quant already exist, so will modify the existing
    quant instead of create a new one.

When an user creates a new quant, the model will check each time a
non-quantity field (product, location, SN/LN, package or owner) is
modified to see if corresponding quant exists. In this case, it'll get
the quant ID and will update reserved and on hand quantities.
If user didn't change the inventory quantity, it'll be updated too.

On product form view, the 'Update quantity' button was removed as user
can now simply modify quant with 'On Hand' stat button.

Task #1935921

Co-authored-by: sle-odoo <sle@odoo.com>
2019-05-29 13:59:01 +00:00
Jinal Patel edef08eeee [IMP] stock: assign someone to picking
purpose is allow to assign picking to users
- add field responsible on the picking that allows to select a user
- Now we assign responsible to several picking at once
- add default filter 'My Transfers' and 'Unassigned Transfers'

Related task : 1938107

closes odoo/odoo#31138

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-04-02 14:41:19 +00:00
William Henrotin ff7df19bd3 [IMP] stock: choose destination wizard
Purpose : during a transfer, if some move lines have different
destination locations and the user click on 'put in pack' button, an
warning is triggered. This message, saying : 'You cannot put in the same
pack move lines having different destination location', is replaced by a
wizard allowing the user to choose a unique destination location. This
location will be set as location_dest_id on all transfer's stock move
lines. After that, the wizard calls again the _put_in_pack() method
where all the logic remains the same.

Task : 1872345
2018-09-20 14:47:06 +02:00
Pierre Masereel 94a3919d09 [ADD] stock, sale_stock, purchase_stock, mrp: Routes 2D report
We are adding a new report available on products that displays all the
routes applicable on the products and dislay them as arrows between the
different locations.

We also display the putaway rules and reordering rules on locations
where they are applied.

TASK-46972
2018-08-10 11:25:01 +02:00
dip-odoo 692847255c [IMP] stock: validate inventory adjustment with product tracked
When you have some product tracked in an inventory adjustment, the
lot/serial number is not required, so when you confirm an inventory
adjustment with product tracked for which you didn't provide serial/lot
number you get a warning to inform you.

TASK-30921
2018-06-28 10:42:28 +02:00
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