35 Commits
Author SHA1 Message Date
Cédric Krier 5dfb094459 Select the first supplier when all suppliers have the same maximum supply date
Since all suppliers have the same supply delay, the order must be used for
selection.

Closes #14939
(grafted from c4f986450d75ba8211ea9e3523de8d3b01f908b0)

--HG--
branch : 8.0
2026-07-08 09:19:35 +02:00
Cédric Krier 6e482d8859 Convert to boolean the invisible state of the "Create Purchase" button on the purchase request
Closes #14700
2026-03-21 09:21:04 +01:00
Cédric Krier 6f26a9cc79 Add chat to operational documents 2025-12-02 16:01:39 +01:00
Cédric Krier c50d717dd7 Prevent running create purchase wizard from request with purchase line
Using a button we can prevent to use the wizard on purchase request with
purchase line.
2025-11-19 12:22:17 +01:00
Xavi Hermoso 4ae463d725 Improve stock level help message of purchase request 2025-11-18 00:09:52 +01:00
Xavi Hermoso 020931eef5 Add documentation to purchase request stock level
closes #14317
2025-10-27 10:13:33 +01:00
Cédric Krier 4a17e80070 Use the fastest product supplier when anyone can supply on time
Closes #12806
2025-11-11 18:04:50 +01:00
Cédric Krier 9995fa616f Use product record name in record name of purchase request
Closes #14141
2025-08-01 10:01:14 +02:00
Cédric Krier 5aeff66acd Use ModelStorage hooks instead of extending create/write/delete 2025-04-06 00:14:17 +02:00
Cédric Krier 1772caec90 Clean migrations for series before 6.0 2025-01-04 00:19:42 +01:00
Nicolas Évrard cbdad75620 Remove old-style of super() calls 2025-04-04 00:45:18 +02:00
Sergi Almacellas Abellana 4288e9c6b0 Do not set the unit price of the purchased lines from the request to zero
Since 65be15fb7d8a its possible to set empty unit price

Closes #13886
2025-02-24 10:29:45 +01:00
Cédric Krier 184536c72a Remove usage of getattr to access state view fields of wizard 2024-11-20 10:35:06 +01:00
Cédric Krier 839d952e80 Set company id as context to compute today when creating purchase from request 2024-10-21 22:21:31 +02:00
Udo Spallek 8b252472c4 Replace usage of docstring of Model by __string__ attribute
Closes #8402
2024-11-19 10:09:52 +01:00
Cédric Krier a2dfc4455b Refine index definition
- Set low and high cardinality to index usage
- Use Range usage for numerical expression instead of Equality
2024-07-27 18:36:14 +02:00
Cédric Krier 01574e6700 Add searcher to summary fields
Closes #13401
2024-07-18 10:12:04 +02:00
Adrià Tarroja Caubet 78f0aae2e2 Use empty string for empty descriptions to construct grouping key
Closes #12952
2024-08-18 14:25:54 +02:00
Cédric Krier 441abbfbf8 Delete purchase request when the product is deleted
Closes #12917
2024-05-11 11:58:40 +02:00
Cédric Krier f100bb11ed Use title case for button in wizard to handle purchase request cancellation 2024-04-21 12:18:38 +02:00
Cédric Krier f978cf0f73 Fill currency, payment term and invoice address with on_change_party of purchase
Closes #7027
2023-12-02 23:17:25 +01:00
Cédric Krier 545e10465f Open purchases created from purchase requests
Closes #12796
2023-12-02 23:42:08 +01:00
Cédric Krier cc53f0bd4b Make purchase request description always readonly
The changeset 3a0931d04904 added a readonly states but the description is a
substitut to the product so it should be readonly like the product.

Closes #12555
2023-10-07 19:22:06 +02:00
Cédric Krier a4cb3f9f61 Normalize Unit of Measure labels
For short label, we only use UoM with an help text showing with capital letter
the meaning of UoM.
2023-08-20 12:17:27 +02:00
Cédric Krier 3a6e278b39 Rename UOM to Unit for purchase request
Closes #2221
2023-08-21 09:31:27 +02:00
Cédric Krier 2df45a15d4 Ensure to always have a unit price on purchase line created from request 2023-08-17 16:16:56 +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
Adrià Tarroja Caubet 960c220329 Remove migrations previous to 5.0
Closes #11324
2023-01-19 11:25:25 +01:00
Cédric Krier b9c4b8230d Return instance in on_change_with methods 2023-03-26 09:49:00 +02:00
Cédric Krier 810780a789 Remove purchasable constraint on product when quantity is negative
Closes #9057
2023-03-23 17:37:34 +01:00
Cédric Krier 147140ebd1 Reload screen after creating purchase from purchase request
This way the user see that the selected purchase requests have been purchased
as they are no longer in the draft tab.
2023-02-09 11:06:42 +01:00
José Antonio Díaz Miralles e814732e9c Sort purchase request by purchase and line key before create purchases
This is needed to have requests ordered also when grouping them into purchase
line.

Closes #12073
2023-02-10 21:34:59 +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 704aaf01de Support None as search value of composite rec_name 2023-01-12 11:36:41 +01:00
Cédric Krier 288f910470 Prepare migration to monorepo 2022-12-16 16:41:44 +01:00