Cédric Krier
06f262091b
Add today record in Product Quantities By Warehouse
...
As the action has a search value that limits from today, having a fake record
for today shows the current stock quantity.
issue8681
review264281002
2019-10-08 19:00:25 +02:00
Sergi Almacellas Abellana
cd85fe4171
Allow consumable products on inventories
...
issue4945
review283991002
2019-09-19 14:04:54 +02:00
Cédric Krier
46e3596d95
Set correct date on internal shipment moves
...
The outgoing move must have the planned start date and the incoming move must
have the start date.
issue8655
review254291002
2019-09-16 23:58:02 +02:00
Cédric Krier
ade9061f99
Prevent assign unknown attributes on Model
...
by adding __slots__ on proteus classes.
issue6573
review254081002
2019-09-07 23:38:20 +02:00
Cédric Krier
2429ddadea
Improve moves synchronisation on shipments
...
By using the origin as synchronisation key, the code is simplified but also it
allows to follow when products are changed.
The same design is applied to the internal shipment which allows to synchronise
also the lots.
issue8363
review261811002
2019-08-18 19:22:43 +02:00
Cédric Krier
73e16504dc
Allow move as move's origin
...
issue8253
review269251028
2019-07-08 17:18:14 +02:00
Cédric Krier
6764b81c88
Add test scenario for Product Quantities by Warehouse
...
issue8355
review261481002
2019-05-22 18:32:01 +02:00
Cédric Krier
08e5893595
Don't set default unit price on stock move
...
issue8119
review255251002
2019-04-23 09:10:22 +02:00
Cédric Krier
3982b963c5
Raise NotImplementedError when setting Function field without setter
...
issue7985
review265101002
2019-03-27 00:28:57 +01:00
Cédric Krier
c59c13a590
Prefer to pick product from the source location
...
In order to implement this behavior, we move first the source location in the
quantities to pick.
issue8076
review68471002
2019-03-02 23:04:35 +01:00
Cédric Krier
0498c4cdd5
Add test Move assign_try skips to_location
...
issue7856
review66541002
2019-02-18 18:35:23 +01:00
Cédric Krier
a67d1952a7
Add ir.message and use custom exceptions
...
issue3672
2018-12-29 14:20:29 +01:00
David Harper
9804855bc3
Rename field quantity_resulting to total_quantity
...
issue7871
review60431002
2018-12-04 12:31:31 +01:00
Cédric Krier
258f9ad9e5
Add test to prevent create move at the closed period date
...
issue7489
review45721002
2018-09-17 17:48:26 +02:00
Cédric Krier
a04143efc6
Improve ModelStorage.copy
...
* Allow callable in copy default
* Support dotted notation in copy default
* Use setdefault in copy
* Copy default when needed
* Do not set default state in copy
* Use callable and dotted notation in copy default
issue5576
issue7648
review72291002
2018-09-01 01:02:04 +02:00
Cédric Krier
e5852ab668
Add count wizard on inventory
...
issue7515
review49461002
2018-07-27 17:07:31 +02:00
Cédric Krier
5061618d5b
Remove support for Python 2.7
...
issue7497
review53261002
2018-06-26 19:11:55 +02:00
Cédric Krier
42595dcce0
Manage same input and storage location in customer return shipment
...
issue7401
review51261002
2018-05-10 20:19:23 +02:00
Cédric Krier
549c71e642
Add tests for products_by_location on 2nd level flat_childs
...
issue7162
review44871003
2018-04-03 16:40:31 +02:00
Sergi Almacellas Abellana
70cd9d81c2
Manage same input and storage location
...
In this case there is no need to create inventory moves
issue6892
review42801002
2018-03-24 12:01:58 +01:00
Sergi Almacellas Abellana
65c1429178
Do not fill inventory quantity automatically
...
issue6977
review44571002
2018-03-19 09:56:45 +01:00
Cédric Krier
f632a9cc67
Remove product_ids from products_by_location for grouping_filter
...
issue7141
review44651002
2018-02-28 18:25:18 +01:00
Cédric Krier
55082d76a6
Allow to group per product columns to compute quantity
...
This is needed to add the quantity relates on the template form.
issue7068
review40031002
2018-02-11 14:38:33 +01:00
Sergi Almacellas Abellana
eb2417fdef
Preserve user values when completing inventory lines
...
issue6977
review42981002
2018-01-12 09:38:41 +01:00
Cédric Krier
2ad008f490
Add flat children option on location
...
issue6563
review36391002
2017-09-28 23:42:22 +02:00
Cédric Krier
8fdf25363b
Manage negative quantity in cost re-computation the same way as on move
...
In case of negative quantity, the unit price is used as cost price if it is an
incoming and the cost price is kept if tit is an outgoing.
issue6770
review44311002
2017-09-26 01:36:23 +02:00
Cédric Krier
54ccd5b967
Add set_user tools for test scenario
...
When changing the user of proteus, the context should be reloaded.
issue6652
review42551002
2017-08-02 19:38:23 +02:00
Cédric Krier
4356a58019
Allow to deactivate only empty locations
...
issue6590
review37491002
2017-07-12 19:55:02 +02:00
Cédric Krier
a568a82a97
Add sub-location to test scenario
...
issue6627
review35491002
2017-07-12 19:42:34 +02:00
Cédric Krier
bab6853346
Add test for evaluate stock quantity after summing the children
...
issue6605
review37501002
2017-07-12 19:30:38 +02:00
Cédric Krier
f132407fc0
Move cost price to product level instead of template
...
issue6515
review41321002
2017-07-05 14:51:50 +02:00
Cédric Krier
1e5d079d5c
Do not set effective_date on assign
...
When the effective date is set on assignation, if the move stays in this state
for more than 1 day, it is no more taken into account for stock quantity
computation.
But if the effective date is not set on assign, the stock quantity computation
must always include assigned moves when stock_assign is set with the exception
of delta computation which must always use the effective or planned date.
issue6371
review36261002
2017-03-29 22:44:33 +02:00
Sergi Almacellas Abellana
34073750ed
Avoid computation for assign_try with no moves
...
issue6366
review31201002
2017-03-22 11:14:45 +01:00
Cédric Krier
4393bf0e0a
Add employee on shipments for some states
...
issue6183
review26031002
2017-02-01 21:41:00 +01:00
Cédric Krier
8280320f8f
Manage same picking/storage and output location
...
Some organisation does wave picking so they do not need another assignation
step for the customer shipments.
issue6155
review27011003
2017-01-13 20:09:19 +01:00
Cédric Krier
7bc2bf1496
Do not increase available quantity on destination location in assign_try loop
...
This makes assignation behaves like compute quantity from changeset 056cbb515d4d
issue6100
review33651002
2016-12-30 22:07:19 +01:00
Diego Abad
2b8a3909a8
Change test on recompute_cost_price because of Function field
...
Since changeset 578bdd3fd776, cost_price on product.product
is a function field, using TemplateFunction pattern.
It is necessary to change test on recompute_cost_price and
recompute_cost_average_price because of Function field, and
change scenario for average cost price to force to write
recomputed cost.
issue5966
review27721003
2016-10-28 23:28:58 +02:00
Nicolas Évrard
bd1efc91bf
Use activate instead of install for module activation
...
issue1456
review28931002
2016-10-20 12:54:50 +02:00
Cédric Krier
c524df9220
Use install_modules tools in scenario
...
issue5794
2016-08-26 09:59:50 +02:00
Sergi Almacellas Abellana
bda1d3a346
Add test for expected quantity when inventory is done
...
issue5749
review21171002
2016-07-28 10:12:44 +02:00
Cédric Krier
a6225e3fc6
Add lead time and transit location for internal shipments between warehouses
...
issue5587
review25331002
2016-06-21 10:36:30 +02:00
Cédric Krier
0ba40a9aa5
Replace category by categories on Template
...
issue5320
review23791002
2016-03-19 09:05:42 +01:00
Cédric Krier
25952d5051
Use converted tests converted by 2to3
...
distutils import tests module from the source code, so we must force it to use
the test suite from the absolute path because it will be the converted on in
case of 2to3 otherwise we fall-back to the relative module.
issue3211
2016-03-11 21:57:21 +01:00
Cédric Krier
82dd783739
Fix tests to use Product class instead of self.product
2016-03-04 09:17:40 +01:00
Cédric Krier
c91a2409f2
Add a quick sum in compute_quantities for single location
...
When a single location is requested, we don't need to compute the value of all
the node of the subtree because all locations are children. So we can sum the
quantity directly as if it was for the location.
issue5297
review23781002
2016-03-04 00:21:29 +01:00
Cédric Krier
2e04a068ee
Add Python3 support
...
issue3211
2016-02-26 00:04:09 +01:00
Cédric Krier
3273c7e910
Make TestCase create and drop its database
...
and use with_transaction decorator.
issue5263
review20711002
2016-02-06 19:13:17 +01:00
Sergi Almacellas Abellana
1524bcddee
Add test for average cost price when product quantity is negative
...
issue5038
review15721002
2015-10-14 15:45:41 +02:00
Guillem Barba
7fc092eac5
fix empty storage in inventory scenario
...
Introduced in changeset 07ffaaad7b38
issue4781
review16371002
2015-06-17 08:31:11 +02:00
Guillem Barba
6c760d1253
Compute inventory lines in complete_lines() using new grouping() method
...
issue4781
review13211002
2015-06-15 01:22:10 +02:00