Skip to content

Commit cca47cd

Browse files
author
Callum Dickinson
committed
Add support for managing attachments
Add a new manager for attachment records (`ir.attachment`) in Odoo. These are intended to be used for uploading/downloading attachments to/from invoices. Invoice attachments will then be attached to invoice emails sent out to customers. The contents of the attachments won't be fetched when querying them from Odoo by default; instead it is intended that the separate `download` method be used to download the attachment contents separately. An `upload` method is also available, to provide an easier to use interface for uploading attachments.
1 parent 8390d8d commit cca47cd

File tree

13 files changed

+1098
-3
lines changed

13 files changed

+1098
-3
lines changed

_typos.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[default.extend-words]
2+
datas = "datas"

changelog.d/7.added.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add support for managing attachments

docs/managers/account-move.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ Values:
265265
* ``reversed`` - Reversed
266266
* ``invoicing_legacy`` - Invoicing App Legacy
267267

268-
### state
268+
### `state`
269269

270270
```python
271271
state: Literal["draft", "posted", "cancel"]

0 commit comments

Comments
 (0)