Commit Graph
353 Commits
Author SHA1 Message Date
Cédric Krier b5936e06db Save less often cost values when doing move
We can save the cost values only when a cost value was computed for a product
already moved.
Also FIFO requires to save extra moves which can be included in the save loop
so the Move._do method returns an extra list of moves to save.

issue10640
review369361002
2021-08-27 08:59:26 +02:00
Cédric Krier c4efb34fdf Use domain method to select incoming and outgoing move to recompute cost price
issue10586
review369311002
2021-07-28 00:33:12 +02:00
Cédric Krier 28d761fbf6 Add default value for CI env
issue10455
review332961002
2021-07-04 17:54:47 +02:00
Cédric Krier e97c866dd8 Increase version number 2021-05-03 15:44:15 +02:00
Cédric Krier b4688db66b Add tag 6.0.0 [skip ci] 2021-05-03 15:44:07 +02:00
Cédric Krier 08d10c0bf7 Prepare release 6.0.0 [skip ci] 2021-05-03 15:44:07 +02:00
Cédric Krier 2c97e89233 Update translations [skip ci] 2021-05-02 10:30:12 +02:00
Cédric Krier 014de3fb24 Add Romanian [skip ci]
issue9110
review301541002
2021-05-02 09:56:33 +02:00
Cédric Krier 120e80b6c8 Add support for Python 3.9
issue9685
2020-12-19 17:08:45 +01:00
David Harper a02dbaec5b Test long_description using twine check
issue9781
review337181002
2020-12-15 11:42:56 +00:00
Cédric Krier d97c7be2e4 Manage local version in tox and do not set local_version when no CI
issue9928
2020-12-11 13:51:52 +01:00
Cédric Krier eceb6356c3 Add support for local_version on trydevpi.tryton.org
issue9928
2020-12-10 23:05:56 +01:00
Cédric Krier da3fb6a28f Increase version number 2020-11-02 16:02:25 +01:00
Cédric Krier 2d3e2c4091 Add tag 5.8.0 [skip ci] 2020-11-02 16:02:15 +01:00
Cédric Krier cdafaacfb8 Prepare release 5.8.0 [skip ci] 2020-11-02 16:02:15 +01:00
Cédric Krier 7bc3e8689e Update translations [skip ci] 2020-10-31 12:14:30 +01:00
Cédric Krier b822e805d7 Remove support for Python 3.5
issue9733
2020-10-24 13:45:11 +02:00
Bernat 5fcc9ab99c Do not set fifo_quantity greater than quantity
issue9664
review328231002
2020-10-21 23:33:28 +02:00
Cédric Krier 76b67bbab6 Ignore flake8 E741 2020-10-16 19:19:57 +02:00
Sergi Almacellas Abellana b6fbb99aa1 Clear fifo_quantity when copying a move
issue9554
review321981002
2020-08-25 18:06:27 +02:00
Cédric Krier 2691cb7ecf 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 e0631bf9fe Do not update average cost price if the quantity is negative
This is the same test done in Move._compute_product_cost_price. When the stock
quantity is below zero, the average cost price should not change.
And we process the incoming move first in order to keep quantity positive
where possible.

issue9484
review325801002
2020-07-29 23:50:03 +02:00
Cédric Krier 9a7f61d8db Keep last cost price when quantity is zero
When there is no quantity in stock, we keep the last cost price instead of
setting it to zero. This gives the same behavior between on move computation
and on product recomputation.

issue9443
review317771007
2020-07-13 20:48:13 +02:00
David Harper 373e48c1ee Use Activate modules as test scenario section name
issue9395
review291901002
2020-07-09 10:21:06 +01:00
Cédric Krier ed54edae30 Add unit_price_company Function field on stock move
issue9401
review290341002
2020-07-04 00:21:39 +02:00
Cédric Krier 452550c92f 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
Cédric Krier 885c02bf77 Update FIFO cost price recomputation scenario with lost found location
issue9274
review321471002
2020-06-19 00:26:36 +02:00
Cédric Krier 8764236bb9 Use all moves to compute FIFO
We must consider any incoming moves (ex: inventory) for the computation of the
FIFO otherwise the back computation to find first in moves does not pick enough
moves. As not all incoming moves have a unit price, we use the current cost
price as fallback.
Also in re-computation, the in or out move test should only rely on the storage
location usage in order to properly compute the average cost.

issue9274
review321471002
2020-06-19 00:24:56 +02:00
David Harper d80d899109 Rename move state from cancel to cancelled
issue8927
review297851002
2020-06-06 10:30:11 +01:00
Cédric Krier d8aef6140b Increase version number 2020-05-04 12:20:17 +02:00
Cédric Krier 828a0ee50c Add tag 5.6.0 [skip ci] 2020-05-04 12:20:08 +02:00
Cédric Krier 380626cab1 Prepare release 5.6.0 [skip ci] 2020-05-04 12:20:08 +02:00
Cédric Krier b5d0062fe4 Set non-durable setting for postgresql testing service
issue9100
review286831003
2020-04-25 23:53:51 +02:00
Cédric Krier 51ed77ee32 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
Sergi Almacellas Abellana 9d2b72a5cf Add support for python3.8
issue8866
review274421004
2020-03-19 19:06:32 +01:00
Cédric Krier 3ed3d47143 Set auth-method to trust for drone build
issue9063
2020-03-01 16:12:39 +01:00
Cédric Krier f5b63d4635 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:52 +01:00
Cédric Krier 220b918dfa 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 d2daba9cb8 Update cost of moves when recomputing product cost
issue8795
issue7271
review260381003
2020-01-26 15:29:23 +01:00
Cédric Krier 26e4b57969 Correctly activate share extension in drone pipeline
issue8830
2019-12-04 11:09:36 +01:00
Cédric Krier 457557d333 Replace echo with interpretation of backslash escapes by multiple commands
drone escape the echo option.

issue8830
2019-12-04 09:53:36 +01:00
Cédric Krier 2f10412021 Use pooled storage for clone in done
issue8830
review284451002
2019-12-03 22:59:31 +01:00
Cédric Krier 4a4f1d7b62 Append CI build number to package version
This makes them unique and avoid collision with the shared cache.

issue8831
review254651002
2019-11-25 21:55:20 +01:00
Cédric Krier faabc31a3b Increase version number 2019-11-04 13:02:08 +01:00
Cédric Krier 78ea3cc489 Added tag 5.4.0 for changeset 774058ccd185 2019-11-04 13:02:00 +01:00
Cédric Krier 279ad83bae Prepare release 5.4.0 2019-11-04 13:02:00 +01:00
Cédric Krier 98324c9d8b Update translations 2019-11-02 18:07:42 +01:00
Cédric Krier a233614f7d Add Indonesian
issue8184
review285461002
2019-11-01 23:34:59 +01:00
Cédric Krier e9d3ca720f Add test for FIFO cost price with no input
issue8699
review252351002
2019-10-24 18:58:34 +02:00
Cédric Krier e0a799df3d Use current cost price if no FIFO moves
If we can not find any FIFO moves, the products should be moved out at the
average cost price instead of zero.

issue8699
review252351002
2019-10-24 18:57:55 +02:00