Commit Graph
1790 Commits
Author SHA1 Message Date
Sergi Almacellas Abellana 29ef8deca7 Use simplified view for moves list on shipments
issue9459
review290501002
2020-08-14 14:20:42 +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 ee95ce1b3d Add move relate on product
issue9411
review291951002
2020-08-12 14:33:14 +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 f6eb3790f3 Use a single assign wizard
issue9422
review299961011
2020-07-25 08:19:31 +02:00
Cédric Krier 0915d89979 Add test on assign_try with unsaved move
We allow to pass unsaved move as parameters for the assignation search while
keeping the original values on the possible remaining moves.

issue9431
review300001002
2020-07-13 21:07:27 +02:00
David Harper 410165a333 Use Activate modules as test scenario section name
issue9395
review291901002
2020-07-09 10:21:07 +01:00
Cédric Krier fa3aee5d5f Normalize wizard message views
We use the proper icon between info, question, warning and error.
We remove the exclamation mark in info messages.

issue9429
review301831002
2020-07-09 00:21:48 +02:00
Cédric Krier 1cf17ecf7e Add model, record and records attribute on Wizard
issue9421
review309861012
2020-07-07 23:56:10 +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 cd8fd31d0b Add moves for product quantities by warehouse
We add a new model based on stock move that compute the cumulative quantity for
each incoming or outgoing move.
The product quantities by warehouse is refined to only get row at the date the
quantity actually change.
We also add company and access rules for both models.
On back-end without window function, the cumulative quantity is the initial
quantity of the day.

issue9389
review297881002
2020-07-04 23:46:35 +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
Sergi Almacellas Abellana b0cd64e7ca Set moves planned dates when updating internal shipment planned date
issue9334
review299681002
2020-06-17 14:09:55 +02:00
David Harper 51b4786235 Rename move state from cancel to cancelled
issue8927
review297851002
2020-06-06 10:30:11 +01:00
David Harper 1bcd282c0d Rename shipment states from cancel to cancelled
issue8927
review301711002
2020-06-06 10:17:30 +01:00
David Harper 90105403be Rename inventory state from cancel to cancelled
issue8927
review319561002
2020-06-04 11:08:53 +01:00
David Harper 835c7b4c6f Add icon license file
issue9152
review317481002
2020-06-01 10:08:02 +01:00
Cédric Krier ae6881b159 Override warehouse with context value for current user
issue9328
review311541002
2020-05-19 18:57:21 +02: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 a5502a22d4 Use _get_for_product_domain to search revision in get_for_product
Otherwise the revisions are not limited to the company.

issue9310
review313541002
2020-05-19 18:43:47 +02:00
José Salvador 376101921d Remove fixed price exception about initial stock level import process
issue9309
review295521002
2020-05-14 23:52:43 +02:00
Maxime Richez 20f9cf5dc3 Delete inventory moves before receiving supplier shipments
issue9315
review315451002
2020-05-14 23:45:16 +02:00
Cédric Krier b9c0e34031 Increase version number 2020-05-04 12:30:29 +02:00
Cédric Krier b5fb3ced70 Add tag 5.6.0 [skip ci] 2020-05-04 12:30:16 +02:00
Cédric Krier 8620486c5b Prepare release 5.6.0 [skip ci] 2020-05-04 12:30:16 +02:00
Cédric Krier 32132cd30e Update translations 2020-05-02 10:29:25 +02:00
Cédric Krier 91e0a4f9fc Set non-durable setting for postgresql testing service
issue9100
review286831003
2020-04-25 23:53:52 +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 371cc2edda Add link button
issue9051
review280841002
2020-04-13 12:21:55 +02:00
Sergi Almacellas Abellana fba865726e Fix create/write antipattern in loop on shipment
issue9208
review278961002
2020-04-12 09:03:25 +02:00
Cédric Krier 186f5d9658 Add employee on document for some states
issue8969
review276621002
2020-04-10 18:53:44 +02:00
Sergi Almacellas Abellana 410dcffb29 Add visual on product and location quantities
issue8982
review301191009
2020-03-30 09:37:30 +02:00
Sergi Almacellas Abellana 2499c83297 Add support for python3.8
issue8866
review274421004
2020-03-19 19:13:34 +01:00
Cédric Krier fe4650d885 Define lost and found location for inventory on parent location
We remove the lost and found location on the inventory to only used one define
on the warehouse or parent of the inventoried location.

issue9071
review276901002
2020-03-17 23:35:47 +01:00
Cédric Krier b434ce8e8d Set all fields readonly for inactive records
issue3747
review295061011
2020-03-17 20:08:12 +01:00
Cédric Krier 80f08743b2 Filter empty date when computing maximum planned date
and properly call _get_move_planned_date.

issue9141
review303061002
2020-03-17 20:06:43 +01:00
Cédric Krier 3260b80cd8 Fill planned date for inventory move
Shipments that create inventory moves should fill a planned date for them as we
have a method to compute it. The probability is high to inventory the product
once received.

issue9043
review272871002
2020-03-06 23:53:19 +01:00
Cédric Krier 6dfd7f6313 Set auth-method to trust for drone build
issue9063
2020-03-01 16:12:40 +01: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 9108890a0d Show warehouse in user status if not unique
issue8994
review256411002
2020-02-12 00:23:36 +01:00
Cédric Krier 623e3ffd38 Set a start date when recomputing cost price from revision
issue8930
2020-01-26 21:40:54 +01:00
Cédric Krier 55e588cc2c Add missing gettext call when raising ProductCostPriceError
issue8930
2020-01-26 21:32:38 +01:00
Cédric Krier d7c5c6b75a Store product cost price revision
The "Modify Cost Price" wizard create a revision record for each template or
product. The cost price re-computation methods apply those revisions at the
beginning of their date.
The stock accounting move is created and posted when the cost price is modified
by the re-computation.

issue8930
review260751002
2020-01-26 21:10:40 +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 6b05c83318 Remove global variables used for field definitions
They give the false idea that they can be extended or reused which is not the
case.

issue8967
review252851012
2020-01-25 20:18:49 +01:00