Define the account and the party to use on bank statement line with a machine learning
Project description
This module add a machine learning on the account.bank.statement to predict the party and the account to use for a new line.
Install
Dependencies for ArchLinux
sudo pacman -S cairo pkgconf gobject-introspection
Dependencies for debian
sudo apt-get install libcairo2-dev libgirepository1.0-dev
Install the package
# installs python deps
pip install -e .
# createdb postgresql database
createdb bank_stmt_ml
# initialize database
trytond-admin -c trytond-dev.conf -d bank_stmt_ml --all
# install module hb_tryton
trytond-admin -c trytond-dev.conf -d bank_stmt_ml -u hb_bank_statement_machine_learning --activate-dependencies
Low level
The machine learning is added on the acount.statement.line, the machine learning is based on the field number on the line, this field must be filled
pool = Pool()
Line = pool.get('account.statement.line')
line = Line()
line.number = 'My number'
line.set_account_and_party_from_ml()
assert line.party
assert line.account
Usage
An on_change method on the field number exist to predict the fields party and account from the interface
CHANGELOG
0.1.0 (2021-09-28)
Implemented the machine learning
Implemented the on change method on the fields number
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file hb_bank_statement_machine_learning-0.1.0.tar.gz
.
File metadata
- Download URL: hb_bank_statement_machine_learning-0.1.0.tar.gz
- Upload date:
- Size: 18.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4dbda266f93138895bc749301323904a90edeafd1e4c4eb7f0dc919eb00af386 |
|
MD5 | f269048ad0ec4de63bad9f9590a46e10 |
|
BLAKE2b-256 | 8ec810d0a723743dfcbc861230d35d9154b105cd3da09d07d7b79704e69e2840 |
File details
Details for the file hb_bank_statement_machine_learning-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: hb_bank_statement_machine_learning-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b462bf125315e04de24f58d5e122f7257c491ea0de3d679746e7145df442e403 |
|
MD5 | 9fdd9a1075825c755471495ae2c4f78b |
|
BLAKE2b-256 | 5a38d81f5774e3ac6b324478c47e7aae583d275f0c561bc7563064dee14bd308 |