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
Sergi Almacellas Abellana
94e9d784fb
Add depends on Button
...
issue6919
review40811002
2018-02-19 11:41:53 +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
Cédric Krier
253a7890d6
Allow to enforce product default UoM category on move
...
It uses the product_uom_category field which is a Function to allow other
modules to extend the computation to enforce a specific category.
issue6839
review39791002
2017-10-18 14:49:35 +02:00
Cédric Krier
2ad008f490
Add flat children option on location
...
issue6563
review36391002
2017-09-28 23:42:22 +02:00
Cédric Krier
a8f15c8ea7
Fix searcher methods for dot notation
...
issue6757
review40651002
2017-09-27 18:37:34 +02:00
Cédric Krier
8e5c000f34
Encode move string before hashing it with md5
...
In Python3 hashlib.md5 requires a bytes instead of str.
2017-09-26 02:07:12 +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
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
ef9d0a87da
Allow to cancel staging move
...
issue6708
review44261002
2017-08-28 18:28:27 +02:00