Commit Graph
175 Commits
Author SHA1 Message Date
Thibault Delavallée bdd2080d04 [TESTS] stocl: Some new tests and yml to py
Including

 - unit tests for test/inventory.yml
 - unit tests for test/move.yml
 - unit tests for test/shipment.yml
 - integration of test_reuspply.py
 - integration of test_owner_available into test_product.py

New tests are temporarily deactivated. Indeed they rely on onchange methods
that will change during migration. Tests will be reactivated after migration
and updated.
2016-04-29 12:18:29 +02:00
Raphael Collet ab4de2a453 [FIX] stock, stock_calendar: fix duplicate names of pickings in test files 2015-12-18 16:51:52 +01:00
Josse Colpaert a0b8829798 [FIX] stock: when moving lots it should also take into account pack operation info
When moving lots, we should also take into account the information on the
pack operation: specific location, package to take it from and owner.

Also, in the get_preferred_domain for the pack operations, when not giving any pack,
we should check the quant is not in a pack.  It is also better to copy the list
to avoid that the constraints added to the list would get into the next call.
2015-11-10 17:08:46 +01:00
Nicolas Martinelli b65c67a259 [IMP] product: new product_id field on supplierinfo
We introduce a new field on supplierinfo: product_id. Thanks to this
field, the vendor information which will be used in a purchase order can
be specific to the product variant.
2015-09-25 11:34:01 +02:00
Fabien Pinckaers 05e3a1a31d [FIX] shipment test was buggy 2015-09-12 17:49:14 +02:00
Nicolas Martinelli 1017b0b952 [IMP] stock*: adaptation due to the new Sale module
Major changes:
- No use of UoS anymore
- Remove invoicing process

Reason: complete rewrite of the Sale module.

Responsible: fp, dbo, nim
2015-08-27 19:21:37 +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
Christophe Simonis 2cf91d16a5 [MERGE] forward port of branch saas-6 up to 63e92cb 2015-07-22 16:17:54 +02:00
Yannick Tivisse e9ad290221 [IMP] stock : small test improvement 2015-07-17 15:32:31 +02:00
Josse Colpaert 995cb87c62 [IMP] stock: No need to do recompute when creating/writing pack operations manually
There is no need in recomputing each time the link between pack operations and
moves, when changing a pack operation.  It would change the remaining qty
on the move, but this is not shown anywhere.

In the tests of wise_operator, when moving pack operations to another picking,
the links shoud be deleted as it is not done somewhere else
2015-07-06 10:04:20 +02:00
Xavier Morel f5b88f6309 [IMP] minor perf improvement during tests
During tests, some creation of user records would unnecessarily trigger
password reset or set a password, both of which would trigger password
hashing which takes some time (for good reasons).

Fix by:
* passing no_reset_password in YAML tests and some Python tests still
  missing it (a number of Python tests already used it)
* removing passwords from YAML records as they're never necessary, the
  test user records are not expected to ever log in
2015-06-26 14:22:29 +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
Nicolas Martinelli 561346db9e [FIX] stock: forbids possibility to make inventory of all products when a given product is chosen
opw-634388
Fixes #6512
2015-05-07 14:04:26 +02:00
Denis Ledoux bd338a779a [FIX] stock: typo incomming -> incoming in demo & tests
I avoid to change external ids, in case some custom/community modules use it in their own tests
2014-11-25 17:38:32 +01:00
Josse Colpaert 277c870de7 [FIX] Previous move subtleties 2014-09-22 11:29:39 +02:00
Josse Colpaert 0aad6b0498 [IMP] Check other comments on pull request: xmlid, no split in context + continue improve receipts instead of receptions 2014-07-16 11:58:22 +02:00
Raphael Collet cbe2dbb672 [MERGE] new v8 api by rco
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.

- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
2014-07-06 17:05:41 +02:00
Josse Colpaert 6ea8251efb [IMP] Add test and moves state should only be recalculated after the quants have been moved
bzr revid: jco@openerp.com-20140418083539-njjh3kqwhdmiqcv5
2014-04-18 10:35:39 +02:00
Josse Colpaert 24023677ef [IMP] Simplify negative quants reconciliation and add extra fallback domain to be able to still take from other moves
bzr revid: jco@openerp.com-20140417152432-s12qpgskqvwvyslp
2014-04-17 17:24:32 +02:00
Josse Colpaert 95d77902cd [IMP] Correct wise operator test and make sure it is possible to have a negative pack
bzr revid: jco@openerp.com-20140417120204-9zisd67sr4dd412a
2014-04-17 14:02:04 +02:00
Josse Colpaert e55ac5a9de [WIP] In case the warehouse operator chooses other quants than foreseen that were reserved on another move
bzr revid: jco@openerp.com-20140408162717-khax5gied2atr7gd
2014-04-08 18:27:17 +02:00
Quentin (OpenERP) 78457a17ea [FIX] stock: fixes of bug introduced in previous branch merge
bzr revid: qdp-launchpad@openerp.com-20140326085657-wm57dug2a6poq0ft
2014-03-26 09:56:57 +01:00
Quentin (OpenERP) da1431f544 [FIX] stock, packingneg.yml: location_id and location_dest_id are required
bzr revid: qdp-launchpad@openerp.com-20140312100009-u9b83h8bqzik2yx0
2014-03-12 11:00:09 +01:00
Quentin (OpenERP) 46c6aba808 [FIX] stock, packing.yml: location_id and location_dest_id are required
bzr revid: qdp-launchpad@openerp.com-20140312095711-lyxfyda4nydd6twd
2014-03-12 10:57:11 +01:00
Quentin (OpenERP) fcf8d13806 [FIX] stock: ...
bzr revid: qdp-launchpad@openerp.com-20140312081010-x5oxh4te1xh0v3vv
2014-03-12 09:10:10 +01:00
Quentin (OpenERP) ff09748ec9 [FIX] stock: shipment.yml fixed. The fields location_id and location_dest_id are now required on pack.operations
bzr revid: qdp-launchpad@openerp.com-20140311171443-sbxsa2p8biyzo7t9
2014-03-11 18:14:43 +01:00
Quentin (OpenERP) 485ac1ab76 [FIX] stock: when unboxing, the package must be given explicitelly (introduced in revision 9583)
bzr revid: qdp-launchpad@openerp.com-20140302235750-c8s99jzhsqqu7v9a
2014-03-03 00:57:50 +01:00
Quentin (OpenERP) 762248f8d7 [FIX] stock: packing yaml tests fixed
bzr revid: qdp-launchpad@openerp.com-20140224153755-m9n1efw5h8c2ihgf
2014-02-24 16:37:55 +01:00
Quentin (OpenERP) 96ffae6e63 [FIX] stock: typos
bzr revid: qdp-launchpad@openerp.com-20140224140512-2r4ogs6ku1frtp3c
2014-02-24 15:05:12 +01:00
Quentin (OpenERP) 9df9382f12 [REF] stock: refactoring made during code review
bzr revid: qdp-launchpad@openerp.com-20140224112112-go4uj37htcv3zo4k
2014-02-24 12:21:12 +01:00
Josse Colpaert 95b6ce63eb [FIX] Change remaining qty
bzr revid: jco@openerp.com-20140218091222-so0xw06wy9y400z6
2014-02-18 10:12:22 +01:00
Josse Colpaert f546ce8ad3 [IMP] Quant should be transferred as a whole
bzr revid: jco@openerp.com-20140217143222-scplxx05xhrct52w
2014-02-17 15:32:22 +01:00
Josse Colpaert ce657e58fe [FIX] Remove bad line in packing yml
bzr revid: jco@openerp.com-20140217132418-thq836sm4br7z4bj
2014-02-17 14:24:18 +01:00
Quentin (OpenERP) 9926f983cd [FIX] stock: partial processing of a picking + quants assignation fixed
bzr revid: qdp-launchpad@openerp.com-20131119153300-921hn3kidm1rsyxv
2013-11-19 16:33:00 +01:00
Quentin (OpenERP) 9c0381416d [FIX] stock: fixing the redbot: outdated references to 'do_partial' + security access rights for new object stock.move.operation.link
bzr revid: qdp-launchpad@openerp.com-20131118134701-is7gp517r3q5nex2
2013-11-18 14:47:01 +01:00
Quentin (OpenERP) 9ca77ea0c0 [FIX] stock: error in yaml test
bzr revid: qdp-launchpad@openerp.com-20131112165809-4a15uwgu0mmlf80k
2013-11-12 17:58:09 +01:00
Quentin (OpenERP) cd543d96e0 [IMP] misc usability improvements
bzr revid: qdp-launchpad@openerp.com-20131108165217-wk9b079p7jladswm
2013-11-08 17:52:17 +01:00
Quentin (OpenERP) 65966940c8 [MERGE] merged with main trunk
bzr revid: qdp-launchpad@openerp.com-20131010133212-t058auv973pvvmjm
2013-10-10 15:32:12 +02:00
Martin Trigaux 11308f37dd [FIX] test: avoid getting error when trying to send an email to the newly created user (email replaced by login)
bzr revid: mat@openerp.com-20131003143234-8tu732aa4rmycoif
2013-10-03 16:32:34 +02:00
Josse Colpaert 98a14249bf [FIX] Add active true by default for global procurement rules
bzr revid: jco@openerp.com-20130927144930-c4145b30ih0q3icc
2013-09-27 16:49:30 +02:00
Josse Colpaert e49b9b1945 [IMP] Add reconcile negative quants tests
bzr revid: jco@openerp.com-20130925133442-n09cu9nwmipg2atf
2013-09-25 15:34:42 +02:00
Josse Colpaert f90c341a24 [WIP] Negative quants and packing operations
bzr revid: jco@openerp.com-20130924143220-dcm9u876tfbxzayz
2013-09-24 16:32:20 +02:00
Josse Colpaert 01c98d49e5 [IMP] Picking of purchase order should have its picking type.
bzr revid: jco@openerp.com-20130919095757-ng16zkboiz0y5fh8
2013-09-19 11:57:57 +02:00
Quentin (OpenERP) acef8065b8 [MERGE] inventory branch
bzr revid: qdp-launchpad@openerp.com-20130912065241-m5njpaii7r8xd5iu
2013-09-12 08:52:41 +02:00
Josse Colpaert b7720420a1 [IMP] Fix packing.yml test with packings chosen and fix back order generation of empty lines (not ok yet)
bzr revid: jco@openerp.com-20130911162022-1twvkuxewup3dk3m
2013-09-11 18:20:22 +02:00
Cedric Snauwaert 5a22eabb9f [FIX]shipment_test: when creating backorder, it is not in draft anymore + cosmetic on view
bzr revid: csn@openerp.com-20130911101044-zickvlouxkuch4at
2013-09-11 12:10:44 +02:00
Turkesh Patel (Open ERP) a1af9d9479 [MRG] merge with lp:~openerp-dev/openobject-addons/trunk-wmsimplement-seduce-fp
bzr revid: tpa@tinyerp.com-20130904125022-xziws8dxenywro48
bzr revid: tpa@tinyerp.com-20130905092701-kul8m0h1jg3pnjdf
2013-09-05 14:57:01 +05:30
Josse Colpaert cd64a655d7 [IMP] Change packing.yml not to try negative quants yet
bzr revid: jco@openerp.com-20130904133214-nkwf11o0j0t6tdfh
2013-09-04 15:32:14 +02:00
Josse Colpaert 9d5801f4cd [IMP] Do not rereserve, such that quants are not unnecessarily split, remove assert warehouse po
bzr revid: jco@openerp.com-20130904130717-hmwruiy0imxdqpo7
2013-09-04 15:07:17 +02:00
Josse Colpaert cc71e22490 [IMP] Remaining quantity and product_qty store calculated fields order, None for reserved quants in rereserve, remove do_partial that is too much in shipment.yml
bzr revid: jco@openerp.com-20130904102929-hfi9phc67w9ci2zb
2013-09-04 12:29:29 +02:00