120 Commits

Author SHA1 Message Date
shamoon
ceffcd6360
Fix: correct logged number of deleted documents on trash (#9148) 2025-02-17 18:41:47 -08:00
Sebastian Steinbeißer
e560fa3be0
Chore: Enable ruff FBT (#8645) 2025-02-07 09:12:03 -08:00
shamoon
f836c5ce3e Chore: some logging to trash emptying 2024-12-07 08:04:10 -08:00
shamoon
7d182ab894
Enhancement: prune audit logs and management command (#8416) 2024-12-03 19:28:27 +00:00
shamoon
c6fdf4409b Fix: include distinct on workflow objects filter 2024-11-24 12:22:48 -08:00
shamoon
2b29233a1e
Feature: scheduled workflow trigger (#8036) 2024-11-24 18:22:31 +00:00
shamoon
9c1561adfb
Change: change update content to handle archive disabled (#8315) 2024-11-20 20:01:13 +00:00
Trenton H
e6f59472e4
Chore: Drop Python 3.9 support (#7774) 2024-09-26 12:22:24 -07:00
shamoon
a771d2afd9
Fix: use JSON for update archive file auditlog entries (#7503) 2024-08-19 23:29:24 -07:00
shamoon
0f9710dc8f
Fix: index fresh document data after update archive file (#7057) 2024-06-21 18:33:01 +00:00
shamoon
a796e58a94
Feature: documents trash aka soft delete (#6944) 2024-06-17 08:07:08 -07:00
Trenton H
622f624132
Chore: Change the code formatter to Ruff (#6756)
* Changing the formatting to ruff-format

* Replaces references to black to ruff or ruff format, removes black from dependencies
2024-05-18 02:26:50 +00:00
Trenton H
b720aa3cd1
Chore: Convert the consumer to a plugin (#6361) 2024-04-18 02:59:14 +00:00
shamoon
4af8070450
Feature: PDF actions - merge, split & rotate (#6094) 2024-03-25 18:41:24 -07:00
Trenton H
2da5e46386
Refactor file consumption task to allow beginnings of a plugin system (#5367) 2024-01-13 16:11:14 +00:00
Trenton H
bd35030c59
Fix: Crash in barcode ASN reading when the file type isn't supported (#5261)
* Fixes a random crash in the barcode ASN reading so it doesn't try to access a not created temp dir

* Don't parse the barcodes twice, store the result instead
2024-01-06 05:08:24 +00:00
shamoon
3b6ce16f1c
Feature: Workflows (#5121) 2024-01-03 08:19:19 +00:00
Trenton H
122e4141b0
Fix: Document metadata is lost during barcode splitting (#4982)
* Fixes barcode splitting dropping metadata that might be needed for the round 2
2023-12-15 09:17:25 -08:00
shamoon
f27f25aa03
Enhancement: support assigning custom fields via consumption templates (#4727) 2023-12-03 15:35:30 -08:00
nanokatz
38e035b95c
Feature: Audit Trail (#4425)
Adds new feature for optionally enabling change tracking for possible audit purposes
---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
Co-authored-by: Trenton Holmes <797416+stumpylog@users.noreply.github.com>
2023-10-30 09:23:22 -07:00
shamoon
9712ac109d
Feature: consumption templates (#4196)
* Initial implementation of consumption templates

* Frontend implementation of consumption templates

Testing

* Support consumption template source

* order templates, automatically add permissions

* Support title assignment in consumption templates

* Refactoring, filters to and, show sources on list

Show sources on template list, update some translation strings

Make filters and

minor testing

* Update strings

* Only update django-multiselectfield

* Basic docs, document some methods

* Improve testing coverage, template multi-assignment merges
2023-09-22 16:53:13 -07:00
Trenton Holmes
650c816a7b Removes support for Python 3.8 and lower from the code base 2023-09-10 11:42:59 -07:00
André Heuer
52bdb1a80c Added self type 2023-08-29 23:09:47 -07:00
André Heuer
8f8a99a645 Added task id to pre/post consume script as env 2023-08-29 23:09:47 -07:00
Trenton H
26d5730ad2 Handles a special case where the classification model exists, but no items are auto matching any longer 2023-07-24 12:31:56 -07:00
Dennis Brakhane
8c7554e081
Feature: collate two single-sided multipage scans (#3784)
* Feature: collate two single-sided scans

Some ADF only support single-sided scans, making scanning
double-sided documents a bit annoying.

This new feature enables Paperless to do most of the work,
by merging two seperate scans into a single one, collating
the even and odd numbered pages.

* Documentation: clarify that collation is disabled by default

* Apply suggestions from code review

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>

* Address code review remarks

* Grammar fixes

---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
2023-07-24 00:29:04 -07:00
Trenton H
a3842d9228 Fixes the barcode setting always overriding the ASN, even if one wasn't found 2023-07-19 18:10:38 -07:00
Trenton H
70f3f98363 Let ruff autofix some things from the newest version 2023-06-13 20:15:18 -07:00
Trenton H
07e07fc7e8 Updates handling of barcodes to encapsulate logic, moving it out of tasks and into barcodes 2023-05-22 06:52:31 -07:00
Trenton H
6f163111ce Upgrades black to v23, upgrades ruff 2023-04-26 09:35:27 -07:00
Trenton H
3bcbd05252 Fixes ruff not running isort against the codebase 2023-04-26 09:35:27 -07:00
Trenton H
ce41ac9158 Configures ruff as the one stop linter and resolves warnings it raised 2023-04-01 17:03:52 -07:00
Trenton H
3c2bbf244d Creates a data model for the document consumption, allowing stronger typing of arguments and setting of some information about the file only once 2023-04-01 11:05:34 -07:00
Jonas Winkler
c87ca25f22 fix database locked error 2023-03-03 23:30:12 +01:00
Trenton Holmes
bec8d00232 Allow setting the ASN on document upload 2023-02-20 07:56:37 -08:00
shamoon
32754defef Merge branch 'dev' into feature-permissions 2023-02-14 11:32:37 -08:00
Trenton Holmes
8b3d01c49b When splitting via barcodes, cleanup the split documents better 2023-02-12 08:20:12 -08:00
shamoon
d2a6f79612 Merge branch 'dev' into feature-permissions 2023-02-03 14:23:50 -08:00
Trenton Holmes
61f7e73961 Fixes status payload filename after splitting 2023-01-31 20:48:35 -08:00
Michael Shamoon
44f860d9b0 Merge branch 'dev' into feature-permissions 2023-01-24 14:10:45 -08:00
Trenton H
7bc077ac08 Use dataclasses to group data about barcodes in documents 2023-01-24 09:43:52 -08:00
Peter Kappelt
5004771d79 Unified separator ans ASN barcode parsing
so that barcode parsing won't run twice
2023-01-24 09:43:52 -08:00
Peter Kappelt
92b9fc1ba9 Feature: Parse ASN from barcode
ASN-Barcodes are identified by a configurable prefix
2023-01-24 09:43:52 -08:00
shamoon
0cfa5211e9
Merge branch 'dev' into feature-permissions 2023-01-16 15:59:25 -08:00
Michael Shamoon
133532a463 Better Handle arbitrary ISO 8601 strings with dateutil.parser.isoparse 2023-01-15 15:14:55 -08:00
Michael Shamoon
737f00df3a Fix bulk setting null owner / permissions 2022-12-14 00:47:54 -08:00
Michael Shamoon
f021e7fcc3 Merge branch 'dev' into feature-permissions 2022-12-13 06:57:33 -08:00
Trenton Holmes
b6dd36a439 Notes a TODO for a later library release to remove a workaround 2022-12-12 15:37:01 -08:00
Michael Shamoon
446842ecfc Document uploads should be owned by user 2022-12-12 13:24:59 -08:00
Michael Shamoon
6dc5c1de32 Support bulk edit owner 2022-12-09 17:51:01 -08:00