Commit Graph
1781 Commits
Author SHA1 Message Date
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
Cédric Krier 3242d3258c Iterate over a copy of keys in products_by_location
As the quantities dictionary may change during the iteration, we must loop over
a copy of the keys.

issue8978
review260771002
2020-01-20 11:08:53 +01:00
Cédric Krier 1790483208 Position new record based on order
We sent an order to the client for action and xxx2Many so its screen has
always a default order set.
To position a new record on non editable tree, we use the order of the 'id'
column if presents.

issue8880
review276501003
2019-12-28 18:16:28 +01:00
Cédric Krier abef9a7a8b Add company domain to check erase
issue8906
review256321002
2019-12-14 10:47:54 +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 d07cd6654c Add form view to Locations Tree Quantity
sao prevents to open tree with more children than its limit and it switches to
the form view. So to allow the user to see the data, we must add a form view.

issue8844
review274341002
2019-12-07 16:08:54 +01:00
Nicolas Évrard 6ccad44a78 Use direct access to backend classes
issue8836
review258421002
2019-12-06 17:33:47 +01:00
Cédric Krier 834874c6c8 Correctly activate share extension in drone pipeline
issue8830
2019-12-04 11:09:36 +01:00
Cédric Krier fcedb3e6a7 Replace echo with interpretation of backslash escapes by multiple commands
drone escape the echo option.

issue8830
2019-12-04 09:53:36 +01:00