Commit Graph
58 Commits
Author SHA1 Message Date
Cédric Krier 855a0aaeab Update origin of outgoing moves for internal shipment
When synchronize moves, the origin of outgoing is updated to point the
new incoming move instead of the original one.

Closes #12272
2023-08-25 18:08:17 +02:00
Maxime Richez f082344b66 Update origin of inventory moves for customer shipment
When synchronize inventory to outgoing moves, the origin of the inventory is
updated to point to the new corresponding outgoing move instead of the
original one.

Closes #12272
2023-08-25 16:34:06 +02:00
Cédric Krier b32eeae46a Store synchronized moves of customer shipment even when quantity is not updated
ed41959390ff added a synchronization on assign to prevent infinite warning
loop on pack if it creates new move without origin.
But 38e2a76db719 refactoring lost this behavior.

Closes #12503
2023-08-18 14:47:39 +02:00
Cédric Krier ad0b2411c8 Order number fields first by length
This is more natural for incremental field.
2023-08-03 15:53:18 +02:00
Cédric Krier 301cb13dca Evaluate also parent shipment to make readonly dates and buttons of stock move
Closes #12404
2023-07-23 21:07:34 +02:00
Cédric Krier adc26533da Add .readthedocs.yaml configuration [skip ci]
This is required by Read the Docs service:
https://blog.readthedocs.com/migrate-configuration-v2/

Closes #12344
2023-08-06 11:06:08 +02:00
Cédric Krier 7b9a61c624 Add product cost price to move
It is used to store the cost price of the product when the cost price of the
move is not the same.
2023-06-16 13:43:09 +02:00
Cédric Krier c1d4a667bd Do not try to assign shipments that do not need to be assigned
Closes #12311
2023-06-07 16:53:24 +02:00
Cédric Krier abf3167bcb Allow to use storage location as input or output location
When the input or output location is the same as the storage location, it can
be of type view.
2023-06-05 18:55:41 +02:00
Cédric Krier b2abd35dca Allow to store view location as warehouse storage on shipments
It is allowed to have a view location as storage for a warehouse so the
shipment should support it.

Closes #12307
2023-06-05 18:20:44 +02:00
Cédric Krier 74fb2982d6 Remove computed unit digits fields for stock quantity
The unit field can be used directly as digits.
2023-06-12 16:23:25 +02:00
Maxime Richez df3aca4022 Add location and date to inventory name
Closes #12188
2023-06-09 09:15:31 +02:00
Maxime Richez b4ab5413ac Disable unaccented search for inventory number 2023-06-07 15:37:17 +02:00
Cédric Krier d0b24968c8 Delete delivered to warehouse when party is deleted 2023-06-02 17:46:11 +02:00
Cédric Krier 08639d8b9b Add company to context model of stock quantity models
Closes #12268
2023-05-30 13:05:34 +02:00
Cédric Krier b4e809df2a Instantiate transaction only once when computing stock quantity 2023-05-30 13:03:55 +02:00
Cédric Krier 0c9269d6b2 Do not compute stock quantity for user without company
User without company should not see the stock quantity of all the companies
except for root user (as it is used to check for empty location).
2023-05-30 13:02:19 +02:00
Cédric Krier 59759f9b87 Do not repeat "Location" in the string of location type
This is redundant and is awkward when typing a filter by type on stock move
like "From Location.Location Type".
2023-05-10 08:51:23 +02:00
Cédric Krier 8da59ae521 Use sum_tree for stock reporting margin 2023-05-11 16:35:03 +02:00
Sergi Almacellas Abellana c594bc67df Manage empty stock end date values on location quantities
Closes #12289
2023-05-25 15:55:40 +02:00
Cédric Krier 399b443831 Remove timezone info after converting datetime in UTC
The datetime are always in UTC without tzinfo so they can be compared with the
data from the database.

Closes #12262
2023-05-10 10:07:34 +02:00
Cédric Krier 5335a2022d Convert sum attribute into boolean 2023-05-06 14:25:22 +02:00
Adrià Tarroja Caubet 960c220329 Remove migrations previous to 5.0
Closes #11324
2023-01-19 11:25:25 +01:00
Cédric Krier 74540107b1 Handle evaluation error in get_cost_price of cost price revision
The method can be called with unsaved record so the check has not yet been
called.

Closes #12216
2023-04-13 16:40:09 +02:00
Cédric Krier 1a11e103bf Increase version number 2023-05-01 14:11:22 +02:00
Cédric Krier 1901135502 Prepare release 6.8.0 2023-05-01 13:19:11 +02:00
Cédric Krier 3a15e586ca Delete on cascade locations
Closes #3689
2023-04-22 18:43:45 +02:00
Cédric Krier 84a2b5e271 Update translations 2023-04-29 10:07:40 +02:00
Cédric Krier b0b173f84d Convert product cost datetime in UTC from the company timezone
Closes #12026
2023-04-11 00:30:00 +02:00
Cédric Krier b9c4b8230d Return instance in on_change_with methods 2023-03-26 09:49:00 +02:00
Cédric Krier b719d8aed1 Add rstcheck 2023-03-15 16:33:19 +01:00
Cédric Krier ac4d4a7fbb Use multivalue API to access product multivalue fields
Closes #7474
2023-03-19 19:57:30 +01:00
Cédric Krier 6be816d947 Set order for stock moves on shipments
On shipment a good default order is by target location and product, but we add
the id to have deterministic result and remove the target location if by
design it is always the same.
On report with sequence on location, the order is fixed by the sequence of the
location.

Closes #7819
2023-02-22 16:58:23 +01:00
Cédric Krier d1f1d0b023 Add account_stock_eu module for intrastat report
Closes #11837
2023-03-12 22:21:54 +01:00
Cédric Krier aa941c80a9 Group copy calls when trying to assign stock moves
Close #9802
2023-02-24 09:02:34 +01:00
Cédric Krier ba701d5a38 Remove invalid fields from default copy 2023-03-15 16:11:51 +01:00
Sergi Almacellas Abellana bf6fb5b760 Use inventory company to complete lines
Closes #12127
2023-03-09 13:37:12 +01:00
Cédric Krier 5cc5a8f672 Update tox.ini to set py311 and remove py37 2023-03-03 00:17:18 +01:00
Cédric Krier 567b504d4c Add stock invert context to compute quantity 2023-02-11 12:36:49 +01:00
Nicolas Évrard 039761e061 Remove support for Python 3.7 2023-01-29 20:36:51 +01:00
Nicolas Évrard 777ee10f27 Add support for Python 3.11 2023-01-27 11:02:47 +01:00
Sergio Hervas 472b4b0aa7 Display and order by planned date when searching incoming moves from supplier shipment
Closes #12060
2023-02-13 14:30:29 +01:00
Cédric Krier b48e4966d5 Add functions and attribute to handle check access and active records
Closes #11863
2022-12-30 13:56:10 +01:00
Cédric Krier 68753ff402 Run action from button with proteus 2023-01-17 14:39:18 +01:00
Sergi Almacellas Abellana e779b8107e Add rec_name searcher on reporting models
Closes #11263
2023-01-09 14:49:16 +01:00
Cédric Krier 69a1be6404 Assign all possible shipments and productions when trying
If assign_try fails to assign all the moves, we check if all the moves of each
shipment and production are assigned and then assign them.
Also we remove the boolean return which makes no more sense.

Closes #7006
2023-01-14 15:41:26 +01:00
Cédric Krier 0da84b21a3 Allow children location as source of outgoing moves for customer shipment
When the output location is the same as the storage location, we should allow
to record that products have been picked in a children location.

Closes #11973
2022-12-29 19:07:56 +01:00
Cédric Krier 66349b4121 Store warehouse locations on shipments
This ensures that the domain based on warehouse location stays valid even if
the warehouse configuration is changed after the creation of the shipment.

Closes #11974
2022-12-30 01:36:00 +01:00
Cédric Krier e121edc9ec Ignore explicitly stock moves for assignation
Closes #11945
2022-12-18 15:40:10 +01:00
Cédric Krier 4683fde7ac Make scenario independent of the current day
The fiscal years are created centered on the passed date such that if the
current day change during the execution, the fiscal year is still usable.
Also fiscal year can be created for a range of dates such that it is guarantee
that the dates are in the fiscal year.
And finally remove datetime and dateutil import when they are not used.

Closes #9977
2023-01-01 10:36:03 +01:00