Cédric Krier
914219bad7
Define product variable to raise error when cost price expression is not a Decimal
...
The product variable is used to format the error message but also as for
50bf49b7b031 it may be empty.
Closes #14062
(grafted from b7ad263fbd16f56cf01d3f922e50245c11d75144)
--HG--
branch : 7.0
2025-06-10 18:12:43 +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
f903732d69
Read only cost price from the history product when computing cost value
...
Closes #13767
(grafted from dc91e07427dec54b2dfcd323dd444e00ef92d313)
--HG--
branch : 7.0
2024-12-20 11:48:10 +01:00
Cédric Krier
ed689b63a6
Fallback to 0 when summing stock values of products
...
Closes #13581
(grafted from 929d753eaf33a2121362ab7429813a82e288e97a)
--HG--
branch : 7.0
2024-10-09 20:15:47 +02:00
Maxime Richez
1c3045f26f
Use today as planned date for assigned move in stock moves by warehouse
...
Closes #13417
(grafted from bc28a787ed0da0f87c769cde7a8920da01ba2cc7)
--HG--
branch : 7.0
2024-08-28 10:26:44 +02:00
Sergi Almacellas Abellana
03101c7fe3
Round code price before storage when modifying from product wizard
...
Closes #13041
(grafted from 0809f9f56c4e0120646507fb4c8c12448a4b9864)
--HG--
branch : 7.0
2024-03-15 19:18:30 +01:00
Cédric Krier
2d6c34db34
Always fill product and template of cost price revision
...
If an error is raised when computing the new cost price, the management tries
to display the product name. So the product and the template must be set
explicitly because the revision is not yet saved in the database.
Closes #12616
2023-10-05 13:06:22 +02:00
Cédric Krier
cb08557fad
Rename Uom to Unit for move and inventory
...
Closes #2221
2023-08-22 13:18:33 +02:00
Cédric Krier
7f9550e9ba
Return 0 as default recomputed fixed cost price
...
Closes #12535
2023-08-29 14:24:58 +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
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
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
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
b0b173f84d
Convert product cost datetime in UTC from the company timezone
...
Closes #12026
2023-04-11 00:30:00 +02: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
4de9b6480e
Prepare migration to monorepo
2022-12-16 15:33:21 +01:00