Cédric Krier
421d692490
Add documentation about setting initial stock
...
issue6764
review41551002
2017-09-26 01:31:53 +02:00
Cédric Krier
88b96f2990
Raise a single warning for moves without origin
...
issue6764
review41551002
2017-09-26 01:31:25 +02:00
Cédric Krier
60108d24cf
Allow user to set effective date of the move
...
issue6764
review41551002
2017-09-26 01:30:42 +02:00
Cédric Krier
9d4ed677fb
Fix chained set_lang call in report
...
issue6548
review44281002
2017-09-07 18:53:30 +02:00
Cédric Krier
d2a5045184
Use Flat OpenDocument
...
issue6545
review35031002
2017-08-31 22:53:06 +02:00
Cédric Krier
ef9d0a87da
Allow to cancel staging move
...
issue6708
review44261002
2017-08-28 18:28:27 +02:00
Cédric Krier
36d196a110
Update to drone 0.8
...
issue6030
2017-08-19 08:54:36 +02:00
Cédric Krier
8c1afa76fa
Remove wrong classmethod on get_rec_name of Period
...
Introduced in changeset 706df76d7266
2017-08-10 12:33:01 +02:00
Cédric Krier
6b9a3b1666
Improve performance of average cost price computation
...
- Save the move state only when a second same products is going to be
proceeded.
- Write the new cost prices when the moves are saved.
- Use get_multivalue with extensible pattern using explicit company value.
- Rename _update_product_cost_price into _compute_product_cost_price
- Use grouped instances of moves with the right context to avoid to
instantiate a product on each call to _compute_product_cost_price.
issue6626
review36431002
2017-08-02 23:03:38 +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
6a655d5a58
Limit move locations 'child_of' constraints to specific shipment states
...
In order to allow to move locations, the constraint must be limited to states
where the move can be still be modified.
issue6577
review35081002
2017-07-26 23:57:39 +02:00
Cédric Krier
54996e1ccc
Ensure rec_name is a char, text type
...
Model.default_get with 'default_rec_name' context relies on the fact that
rec_name is a string base field.
issue6630
review36501002
2017-07-26 23:43:27 +02:00
Cédric Krier
47a9c4dfb1
Call check_inactive with only inactive locations
...
issue6590
2017-07-19 00:20:59 +02:00
Cédric Krier
6d28c7e369
Allow to delete staging move
...
issue6056
review38461002
2017-07-19 00:10:50 +02:00
Cédric Krier
696222c774
Use next built-in instead of next method
...
The next method has been renamed into __next__ in Python 3 (see PEP3114).
2017-07-12 22:30:02 +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
ced86b3910
Compute average cost with right product quantity
...
The product quantity must be computed on all storage location but without
childs otherwise the children quantity are added a second time on parent by
Move._get_quantity
To allow this behaviour the Move._get_quantity and Move._search_quantity use
the 'with_childs' context. If the context is not set, the default value will
be False if there are more than one location. This provides a sane default
behaviour because the locations could be children from each others.
issue6627
review35491002
2017-07-12 19:41:52 +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
998c564806
Evaluate stock quantity after summing the children
...
The search quantity can not use an having clause because the SQL query does
not sum the children. The evaluation of the domain expression must be done
after.
issue6605
review37501002
2017-07-12 19:29:19 +02:00
Cédric Krier
675a788d03
Remove unused import
2017-07-05 18:29:51 +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
a81448cf9a
Check location type against moves from all companies
...
issue6592
review38411002
2017-06-29 23:13:16 +02:00
Cédric Krier
265b8952ee
Add missing button decorator to ShipmentInternal.ship
...
issue6582
review42441002
2017-06-27 12:36:18 +02:00
Cédric Krier
fbdfb3ff39
Assign only move that requires assignation
...
issue6436
review32241002
2017-06-24 10:34:21 +02:00
Cédric Krier
522f3938be
Require unit price from supplier only to storage
...
issue6436
review32241002
2017-06-24 10:34:01 +02:00
Cédric Krier
7d5d54ba3d
Do not need origin if both types matches
...
issue6436
review32241002
2017-06-24 10:33:31 +02:00
Cédric Krier
8acd609ec4
Require move assignation also on view location
...
issue6436
review32241002
2017-06-24 10:30:30 +02:00
Cédric Krier
c4ef76e012
Increase version number
2017-05-01 20:26:49 +02:00
Cédric Krier
04407be8c7
Added tag 4.4.0 for changeset 03dc7be46d80
2017-05-01 20:25:17 +02:00
Cédric Krier
b2dae93e23
Prepare release 4.4.0
2017-05-01 20:25:14 +02:00
Cédric Krier
9a6fc9f43f
Update translations
2017-04-29 18:59:45 +02:00
Cédric Krier
2cab496862
Fix typo in ShipmentIn number label
...
issue6437
review30251002
2017-04-14 11:27:30 +02:00
Cédric Krier
f7e1f3b316
Catch KeyError on ModelData.get_id in default method
...
Since changeset 685f2d888dca, the default methods are always called in
__register__ when the XML files are not yet loaded.
issue6409
review34041002
2017-04-01 10:40:06 +02:00
Cédric Krier
bcb3833f32
Remove Property fields
...
issue2349
review38271002
2017-04-01 00:38:23 +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
Cédric Krier
e4cb95cf02
Do not assign consumable on view location
...
It is not allowed to assign remaining consumable on the current location if
this location is a view because the domain on location field of move does not
allow it.
issue6372
review33981002
2017-03-23 22:45:29 +01:00
Sergi Almacellas Abellana
021811541f
Show name instead of template in product quantities list
...
issue6392
review34811002
2017-03-23 15:27:33 +01: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
74ba82b3e1
Add inventory field on tree view of line
...
Without the inventory field, the inventory_state is not updated with the
on_change_with and so the lines are readonly.
issue6281
review32041002
2017-02-23 00:22:48 +01:00
Sergi Almacellas Abellana
3b55455cc1
Improve relate domain inversion when single record
...
issue5475
review33801002
2017-02-17 11:07:45 +01:00
Nicolas Évrard
34ad3f46a0
Set the right license in the classifiers
...
review9191003
2017-02-13 16:36:05 +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
ebc381300b
Do not copy number on shipments
...
issue6203
review33001002
2017-01-25 23:41:54 +01:00
Cédric Krier
305cba24ce
Select for update moves used to compute assignation
...
As a concurrent transaction could update a moves after waiting for the release
of the table lock, we must take a lock on each rows used for the computation.
issue6134
review25921002
2017-01-25 23:28:13 +01:00
Cédric Krier
16792a3a12
Add request state on internal shipment
...
And refactor set_transit to allow to use it outside the waiting state.
issue6123
review30901002
2017-01-15 00:17:40 +01:00
Cédric Krier
1da91db6f9
Remove unused global variable
2017-01-14 00:13:46 +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
09b756f0b0
Make outgoing moves readonly on packed and inventory on asssigned
...
We should forbid to create new moves on those states because they will make the
state inconsistent.
issue6156
review32931002
2017-01-13 20:06:42 +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