Sergi Almacellas Abellana
ceefdeb72f
Manage staging moves on shipment workflow
...
Staging moves are automatically assigned when purchased so
we should remove them when packing a shipment as they are
not part of the shipment.
We also skip moves with zero quantity because they will
always succeed.
issue9448
review313951002
2021-03-06 19:19:53 +01:00
Sergi Almacellas Abellana
9e6e245f02
Test date in the future after setting effective date
...
issue10134
review347721002
2021-03-06 19:07:48 +01:00
Cédric Krier
b8a8b9ebf0
Add test on context of company multivalue target fields
...
issue10067
review333851026
2021-03-05 15:49:20 +01:00
Cédric Krier
a5d07f7298
Update unit price after invoice posted and move done
...
issue9962
review292991002
2021-02-03 21:21:03 +01:00
Cédric Krier
25906f28ff
Prevent ValueError when from location is a view
...
If the from location is a view, it may not be in the childs list.
issue9896
review316751002
2021-01-08 22:57:47 +01:00
Cédric Krier
5006ce2bac
Use cache to fill Reference selections
...
issue9235
review335301003
2020-12-27 00:19:30 +01:00
Cédric Krier
b035935cef
Manage move in future at inventory level
...
As the inventory creates and do the moves in the same transaction, the warning
about effective date in future can not be ignored (the ids change).
Also the warning name should be based on an ordered list of record to ensure to
generate always the same name.
issue9707
review328441002
2020-10-12 20:31:27 +02:00
Sergi Almacellas Abellana
95b4dae623
Allow lost and found on inventory moves
...
issue9156
review323431002
2020-10-11 23:46:10 +02:00
Sergi Almacellas Abellana
90f34e0f37
Prevent doing moves in the future
...
issue9355
review327351002
2020-10-04 23:57:37 +02:00
Cédric Krier
61f8d6629b
Use query clause when searching quantity for 1 location
...
We can use the compute quantities query if the request is for a single location
because all the locations are children and so we can do a SUM.
issue9594
review323991002
2020-09-27 18:20:34 +02:00
Cédric Krier
a7affa630b
Do not enforce uom category on done or cancelled move
...
The user can no more fix such move so we should not fail if the validation is
triggered by the update of another field.
issue9503
review319761002
2020-08-12 22:02:26 +02:00
Sergi Almacellas Abellana
45665750cd
Only try to assign non assigned moves
...
issue9206
review311191005
2020-08-12 14:28:23 +02:00
Cédric Krier
acc3db8f60
Use original cost price for returned move
...
and factorize the cost price of move for cost computation
issue9440
review327491003
2020-08-10 23:38:04 +02:00
Cédric Krier
ab81afbe99
Fill grouping values when assigning move
...
issue9480
review303951082
2020-08-10 23:30:14 +02:00
Cédric Krier
671e1b2599
Enforce unit price on drop and customer return moves
...
Those values are interesting information for reporting or to compare with the
cost price.
issue9402
review327421002
2020-07-04 23:49:25 +02:00
Cédric Krier
8586ea73fa
Add unit_price_company Function field on stock move
...
issue9401
review290341002
2020-07-04 00:21:39 +02:00
Cédric Krier
542fae7fc0
Enforce filling cost price of move
...
We set cost price only for outgoing or incoming moves.
issue9397
review321611002
2020-07-03 21:22:43 +02:00
David Harper
51b4786235
Rename move state from cancel to cancelled
...
issue8927
review297851002
2020-06-06 10:30:11 +01:00
Cédric Krier
e3cd7bed4f
Run multiple lock queries for large number of locations
...
Also reduce the assign_try method size by externalise the lock mechanism, this
will also allow to customize it.
issue9326
review307581002
2020-05-19 18:45:29 +02:00
Cédric Krier
f542e01b88
Add round_price
...
We add a common method to round prices that are stored using the price digits.
It is useless to use the digits from the field because it can not be changed in
any other way than by configuration.
issue9146
review299521002
2020-04-23 21:44:00 +02:00
Cédric Krier
5c12d36b7d
Fix flake8 errors and warnings
...
We add the flake8 configuration used so we ensure everyone uses the same.
We remove the usage of __all__ for non public API.
When possible, we rationalize the class name according to its __name__ and module.
issue9082
review297061002
2020-03-01 12:33:54 +01:00
Cédric Krier
615e7d3507
Ensure quantity field is always for today with future dates
...
An empty stock_date_end is converted into max date in compute_quantities_query
and forecast context should be explicitly disable.
issue9044
review282931002
2020-02-15 01:41:47 +01:00
Cédric Krier
97490c0018
Manage explicitly stock_skip_warehouse context
...
The windows that display product quantities should explicitly manage the
stock_skip_warehouse context to ensure static result.
issue9041
review253051002
2020-02-15 01:40:11 +01:00
Cédric Krier
f204b7bd0b
Update cost of moves when recomputing product cost
...
issue8795
issue7271
review260381003
2020-01-26 15:29:23 +01:00
Cédric Krier
8881739a64
Use integer to retrieve instances
...
The values of Many2One can be instances.
issue8861
2019-12-13 16:56:44 +01:00
Cédric Krier
14a0242d95
Read products and uoms in bunch to compute internal quantity at creation
...
issue8861
review256291002
2019-12-11 19:38:57 +01:00
Cédric Krier
1449bb5cc0
Display quantity in record name
...
issue8797
review274151002
2019-11-26 22:20:24 +01:00
Cédric Krier
e1b295b27c
Filter by company when searching stock period for cache
...
issue8760
review282301002
2019-10-25 23:47:52 +02:00
Cédric Krier
78bcc4cdc0
Ensure to select period from the right company
...
As the selection is explicit, we remove also the usage of the rule on stock
move by an explicit clause on company.
issue8718
review258281002
2019-10-16 21:27:48 +02:00
Cédric Krier
a99477ac15
Improve selection of moves used for cost
...
issue8700
review282201004
2019-10-14 00:04:14 +02:00
Cédric Krier
1babe42799
Add visual context on tree view
...
issue8562
review261951002
2019-09-20 11:47:15 +02:00
Cédric Krier
45a8c87208
Prevent assign unknown attributes on Model
...
by adding __slots__ on PoolMeta
issue8567
review254091002
2019-09-07 23:45:08 +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
08e5893595
Don't set default unit price on stock move
...
issue8119
review255251002
2019-04-23 09:10:22 +02: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
e8e7cc1495
Do not put view location in quantities to pick
...
There are by design no product to pick there.
issue8077
review47801002
2019-03-02 22:59:03 +01:00
Cédric Krier
e3b6c3559d
Do not pick product at the destination location
...
It is forbidden to create move with the same source and destination locations.
To avoid this case, we remove the destination location from the quantities to
pick.
issue7856
review66541002
2019-02-18 18:34:32 +01:00
Cédric Krier
a67d1952a7
Add ir.message and use custom exceptions
...
issue3672
2018-12-29 14:20:29 +01:00
Sergio Morillo
191b26972d
Avoid duplicate column names in compute quantity when grouping with existing columns
...
issue7916
review53491002
2018-12-22 18:16:57 +01:00
David Harper
93f3022413
Add help text
...
issue6401
review34861002
2018-12-04 12:25:45 +01:00
Cédric Krier
194cf8f97b
Use int and Decimal instead of lambda
...
issue7816
review74401002
2018-10-31 18:17:35 +01:00
Cédric Krier
03ddb0f77b
Prevent create move at the closed period date
...
The value stored in a period are at the date so it should be forbidden to
create move ate this date and we can use the value up to this date.
issue7489
review45721002
2018-09-17 17:47:56 +02:00
Cédric Krier
31f96f8c38
Remove migration before 3.0
...
issue6470
review52421002
2018-08-09 20:43:51 +02:00
Cédric Krier
973dd92330
Add __table_handler__ to ModelSQL
...
issue7581
review48531002
2018-07-24 22:01:08 +02:00
Cédric Krier
d8aaad50dc
Add index on move for join on period
...
issue7342
review51441002
2018-07-24 19:27:45 +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
64108233a9
Add _stock_move_split in context to copy move for split
...
issue7152
review36121002
2018-04-09 10:40:13 +02:00
Cédric Krier
d2befe114e
Do not include flat location children from child_of search
...
If the flat location children are not explicitly in the requested locations,
they should not be included because the quantity is already included in the
parent location and they will be added twice if a single location is requested
(because of the quick loop).
issue7162
review44871003
2018-04-03 16:40:00 +02: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
88302f5437
Ensure grouping has no duplicate fields
...
Otherwise it generates ambiguous SQL query.
issue7141
2018-02-21 14:34:58 +01:00