Commit Graph
150 Commits
Author SHA1 Message Date
Cédric Krier abc47d665f Increase version number
--HG--
branch : 7.0
2026-02-01 11:16:51 +01:00
Cédric Krier 9ba8c4a91e Prepare release purchase-7.0.17
--HG--
branch : 7.0
2026-02-01 11:16:43 +01:00
Cédric Krier 62184f4e90 Add missing purchase reporting views from 49a612454113
Closes #14497
(grafted from 09fa58ec1ee665619603ebfcf91e49d80a5131cb)

--HG--
branch : 7.0
2026-01-14 19:04:50 +01:00
Cédric Krier 745be06c7f Increase version number
--HG--
branch : 7.0
2025-12-17 19:38:37 +01:00
Cédric Krier b5daeb5da5 Prepare release purchase-7.0.16
--HG--
branch : 7.0
2025-12-17 19:38:29 +01:00
Cédric Krier 0a46153971 Round moved quantity before compare to 0
As moved quantity is the sum of float, it may carry rounding issue so it must
be rounded before comparison.

Closes #14386
(grafted from 760368f8aa28083ad69311ce0f424c0de3d54b3d)

--HG--
branch : 7.0
2025-11-25 18:38:51 +01:00
Cédric Krier 9279a2c159 Increase version number
--HG--
branch : 7.0
2025-11-21 08:35:08 +01:00
Cédric Krier 3ce266ea34 Prepare release purchase-7.0.15
--HG--
branch : 7.0
2025-11-21 08:34:57 +01:00
Cédric Krier d9df1c0c22 Test from location when checking warehouse for purchase line with negative quantity
Closes #14333
(grafted from f21002c5cb1882a5cc6e7375aec7db45fc56698f)

--HG--
branch : 7.0
2025-10-30 01:11:22 +01:00
Cédric Krier e3c198d9eb Increase version number
--HG--
branch : 7.0
2025-06-04 23:42:52 +02:00
Cédric Krier 028a070d75 Prepare release purchase-7.0.14
--HG--
branch : 7.0
2025-06-04 23:42:43 +02:00
Maxime Richez d5b2919200 Set empty currency and unit price on stock move when not required
Closes #14023
(grafted from 6090f9c621e782cd47eb0537dee972c2f1fa8fe6)

--HG--
branch : 7.0
2025-05-16 13:20:28 +02:00
Cédric Krier 52cc4086e8 Increase version number
--HG--
branch : 7.0
2025-05-02 22:28:17 +02:00
Cédric Krier 80382a8b10 Prepare release purchase-7.0.13
--HG--
branch : 7.0
2025-05-02 22:28:07 +02:00
Cédric Krier eb5d8e6cd1 Make lines of sales, subscriptions and purchases read only without a company and currency
Closes #13948
(grafted from 47c126ef770e2da3227eaaf10b64398d9b27d6e9)

--HG--
branch : 7.0
2025-03-27 23:07:41 +01:00
Cédric Krier b8f7504601 Increase version number
--HG--
branch : 7.0
2025-04-26 17:45:22 +02:00
Cédric Krier ce26f00405 Prepare release purchase-7.0.12
--HG--
branch : 7.0
2025-04-26 17:45:13 +02:00
Cédric Krier 0504a0e766 Ensure the contextual company is not None and positive before using it
Closes #13868
(grafted from 0ea68af90f3ef7059c7c9c7a33d13fa216e23bc4)

--HG--
branch : 7.0
2025-03-10 23:43:49 +01:00
Cédric Krier fe7f71adc2 Increase version number
--HG--
branch : 7.0
2025-04-03 01:00:49 +02:00
Cédric Krier 043c90f955 Prepare release purchase-7.0.11
--HG--
branch : 7.0
2025-04-03 01:00:40 +02:00
Cédric Krier be3de61310 Convert list/tuple value to list of IDs only if it contains records
The Modify Header set the start value from the sale or purchase values but when
it is a list or a tuple, it should also ensure it contains records before
converting to a list of ids.

Closes #13915
(grafted from 35fc6e3d271b4eeb7ef123f58085836fdab77228)

--HG--
branch : 7.0
2025-03-10 23:26:14 +01:00
Cédric Krier 9135c72ffa Increase version number
--HG--
branch : 7.0
2025-02-16 12:13:14 +01:00
Cédric Krier 7980a0918a Prepare release purchase-7.0.10
--HG--
branch : 7.0
2025-02-16 12:13:03 +01:00
Cédric Krier 9fd12e21d1 Link invoice lines and stock moves for different quantity sign if invoice method is not shipment
Closes #13821
(grafted from 09524e5cc8c4edd63a556b5c5dc723af9edb4cfa)

--HG--
branch : 7.0
2025-01-16 17:38:14 +01:00
Cédric Krier 3c2ebbd659 Increase version number
--HG--
branch : 7.0
2024-12-01 20:52:35 +01:00
Cédric Krier a48778bfcd Prepare release purchase-7.0.9
--HG--
branch : 7.0
2024-12-01 20:52:26 +01:00
Cédric Krier 7c28af4bd5 Do not convert invoiced quantity if sale or purchase has not unit
Closes #13593
(grafted from 203c7f14ff6c4b230fe9bc0de42052d4b8cf90cb)

--HG--
branch : 7.0
2024-10-27 19:41:19 +01:00
Cédric Krier 25cd063226 Increase version number
--HG--
branch : 7.0
2024-11-06 21:36:19 +01:00
Cédric Krier 6c6d5c7b3f Prepare release purchase-7.0.8
--HG--
branch : 7.0
2024-11-06 21:36:11 +01:00
Cédric Krier 4bca0da9be Return location instance in getter of sale and purchase
If the location field is empty, it prevents to raise an attribute error when
accessing the id.

Closes #13544
(grafted from 277281d61a6223e2ed42a0e6b3002a559c6a67ff)

--HG--
branch : 7.0
2024-10-11 15:59:18 +02:00
Cédric Krier 2515a5cc6a Increase version number
--HG--
branch : 7.0
2024-10-05 18:02:37 +02:00
Cédric Krier 31b9ca8f1c Prepare release purchase-7.0.7
--HG--
branch : 7.0
2024-10-05 18:02:27 +02:00
Cédric Krier e18d53e99c Test if origin id is greater or equals to 0 before accessing the target record
Closes #13498
(grafted from 497490225779fc8dc210c9cee997cd5ce4b4381e)

--HG--
branch : 7.0
2024-09-09 12:46:16 +02:00
Cédric Krier 716437be2d Link stock moves with invoice lines only for the same quantity sign as the order line
When invoice lines are created to correct invoices quantity, it should not be
linked to stock moves because it comes from a stock move being cancelled.

Closes #12972
(grafted from 20c538f39c871bacc0486b8506957229268f59cd)

--HG--
branch : 7.0
2024-09-28 18:05:21 +02:00
Cédric Krier 24e74319c7 Increase version number
--HG--
branch : 7.0
2024-07-17 23:49:12 +02:00
Cédric Krier 1ac10eb136 Prepare release purchase-7.0.6
--HG--
branch : 7.0
2024-07-17 23:49:01 +02:00
Cédric Krier 6377c401db Clear cached amount when resetting to draft sale, purchase and purchase requisition
Closes #13296
(grafted from 8e441329d11b93ceafa47d553cb23883e5b4ec2f)

--HG--
branch : 7.0
2024-06-13 12:34:50 +02:00
Cédric Krier 23f4232157 Do not copy cached amounts of sale, purchase and purchase requisition
Closes #13336
(grafted from f8ddc8aae5c43b08f62cc3009172a3463f2e4363)

--HG--
branch : 7.0
2024-06-13 12:11:51 +02:00
Cédric Krier 383a848f6e Increase version number
--HG--
branch : 7.0
2024-06-02 18:23:20 +02:00
Cédric Krier 49bdcc626c Prepare release purchase-7.0.5
--HG--
branch : 7.0
2024-06-02 18:23:08 +02:00
Cédric Krier c2091befaa Use decimal 0 without digits as default value
If the digits of the field is 0, than using '0.0' trigger the validation error
introduced by 2be02f249a1d.

Closes #13197
(grafted from 979cd092ea24f04328af5f4ff315c418e1c5b3e6)

--HG--
branch : 7.0
2024-04-30 19:15:44 +02:00
Cédric Krier 1deae2fec4 Increase version number
--HG--
branch : 7.0
2024-05-01 13:39:22 +02:00
Cédric Krier c6e457aea9 Prepare release purchase-7.0.4
--HG--
branch : 7.0
2024-05-01 13:39:11 +02:00
Cédric Krier a6e822f877 Depends on xxx2many fields when they are assigned by a change function
Closes #13099
(grafted from 4a24c323d44a3b5ab440b1bafc4b3b9005500642)

--HG--
branch : 7.0
2024-04-22 08:59:48 +02:00
Cédric Krier 87135f32d5 Always return float for invoice or moves progress
The fields are Float so they must return a float.
(grafted from 68824d0fd7e6b7568db499d0a6594476c7f9ab66)

--HG--
branch : 7.0
2024-04-04 15:12:21 +02:00
Cédric Krier f0d2e98782 Increase version number
--HG--
branch : 7.0
2024-04-17 12:40:58 +02:00
Cédric Krier 86e8a5ac1d Prepare release purchase-7.0.3
--HG--
branch : 7.0
2024-04-17 12:40:46 +02:00
Cédric Krier 01ad452523 Consider sale or purchase as done when states are none and methods are not manual
This partially reverts 87d1b5dd99c6 and cc3f0e8968a4 to base the state on the
methods instead of the quantity.

Closes #13154

--HG--
branch : 7.0
2024-04-02 15:33:01 +02:00
Cédric Krier 76b05ac12a Increase version number
--HG--
branch : 7.0
2024-04-04 09:50:43 +02:00
Cédric Krier 98285e4c14 Prepare release purchase-7.0.2
--HG--
branch : 7.0
2024-04-04 09:50:31 +02:00