Commit Graph
25 Commits
Author SHA1 Message Date
Cédric Krier bfe78f818a Do not keep product replaced when copying
Closes #13880
2025-02-18 15:55:44 +01:00
Cédric Krier 48a3241dac Search on code of replacing products when searching on record name
Closes #13879
2025-02-18 15:47:04 +01:00
Cédric Krier c833195650 Set default integer digits to None 2024-11-25 23:47:12 +01:00
Cédric Krier 4b5fa06b60 Do not deactivate product in replacement wizard
If the product can be deactivated, it must be deactivated using the proper
method so all the operations like deleting staging and draft moves are
performed. Otherwise the stock moves for the deactivated product will stay.

Closes #13677
2024-11-13 13:19:25 +01: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 f288356adf Do not replace redefined product field with template function field
Closes #10322
2024-09-30 16:53:49 +02:00
Cédric Krier 68fdd840a9 Extend searchable of Template Function field instead of definition
Since 4689fc76ddb7 the definition is based on the searchable result.
2024-10-08 14:38:40 +02:00
Cédric Krier 0b5d5c2322 Manage to replace products 2024-09-03 12:39:57 +02:00
Cédric Krier 10949e13fa Group generation of product code at creation 2024-08-25 10:59:44 +02: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 4df4d72f8d Add Manufacturer Part Number product identifier 2024-03-05 10:42:44 +01:00
Cédric Krier f003128df6 Add brand product identifier 2024-03-05 10:42:10 +01:00
Cédric Krier e297a3ad47 Support generate barcode of different type 2024-03-05 10:41:23 +01:00
Cédric Krier 1415713e6b Explicitly define product identifier from stdnum 2024-03-05 10:40:18 +01:00
Cédric Krier 8ac18badfc Remove unused template variable to order product record name 2024-01-23 23:08:46 +01:00
Cédric Krier 86b9b16a95 Add product deactivable mixins
Those include the product and template active field in the expression when
converting domain on active field.

Closes #12955
2024-01-24 10:16:04 +01:00
Cédric Krier e030cd2470 Strip generated code of product
The template code or product suffix code allow to have trailing and leading
spaces but not the code of the product. So we must compare the code with a
stripped version of the generated code to avoid infinite loop.

Closes #12801
2023-12-05 10:28:35 +01: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 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 5c7648a6e1 Return multivalue from template when field is not defined on product
Closes #7474
2023-03-19 19:56:33 +01:00
Cédric Krier 61324ec547 Replace lstrip usage to remove field name from clause operand
Closes #12041
2023-01-29 00:46:36 +01:00
Cédric Krier 349dd77ae5 Add barcode function on product identifier 2022-12-26 22:32:23 +01:00
Cédric Krier 5a6e84c54c Prepare migration to monorepo 2022-12-16 17:34:13 +01:00