9 Commits
Author SHA1 Message Date
Cédric Krier 6e47bcfc55 Accept email without content as incoming document
It allow the creation of incoming document without data as long as it has
children. This supports the case of email without text nor HTML content but
only an attachment.

Closes #14109
2025-10-17 14:51:15 +02:00
Cédric Krier 74ee169c54 Refactor of trytond.config to add cache
This removes the need to store configuration in global variable and so make it
easier to update for example for testing.

Closes #14249
2025-10-07 08:19:57 +02:00
Sergi Almacellas Abellana 9ef6152a16 Do not require result nor type for inactive documents
Otherwise children documents can not be processed because the parent document
raises a RequiredValidationError when saved

Closes #14015
2025-05-12 15:17:26 +02:00
Cédric Krier 58b10f68df Sanitize attachment filename for incoming document from email
When creating document incoming from email's attachments, the filename value
must be sanitized as there is no control on the data.

Closes #13801
2025-01-08 17:35:27 +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 aec4eae3f5 Replace forbidden char of document incoming name by space
When creating document incoming from email, the name value must be sanitized as
there is no control on the data.

Closes #13608
2024-10-19 16:34:36 +02:00
Cédric Krier 48cf2814ea Use "No Subject" fallback when creating document incoming from email with empty subject
Closes #13606
2024-10-19 15:25:33 +02:00
Cédric Krier e59a24de94 Fix test_document_from_inbound_email of document_incoming
Closes #13319
2024-06-09 17:41:59 +02:00
Cédric Krier f7faf6935c Add document_incoming module 2023-09-14 13:10:41 +02:00