Skip to main content

Hb Bank Statement Machine Learning Module

…

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 hb_tryton_sale_subscription_automatic_post
# install the module
trytond-admin -u sale_subscription_automatic_post --activate-dependencies

Install the db by hb-tryton-devtools

pip install git+https://gitlab.com/hashbangfr/tryton-modules/hb_tryton_devtools.git#egg=hb_tryton_devtools
export TRYTON_DATABASE_URI=postgresql:///
export TRYTON_DATABASE_NAME=test
hb-tryton-admin create-db --modules sale_subscription_automatic_post

Test package

The package need pytest and hb-tryton-devtools

pip install pytest pytest-cov
pip install git+ssh://git@gitlab.com/hashbangfr/tryton-modules/hb_tryton_devtools.git#egg=hb_tryton_devtools

Run the test with pytest with environ variable

export TRYTON_DATABASE_URI=postgresql:///
export TRYTON_DATABASE_NAME=test
pytest sale_subscription_automatic_post/tests

Design

This module adds new fields to the Subscription Model and the Sale Configuration model.

The field “Invoice State” of the Subscription Model allows to set, for each instance of Subscription, to set the state of the invoices that will be generated : draft, validated or posted.

The default value of this field is set by the field “Default Subscription invoice state” of the Sale Configuration model.

Usage

Setting the state of the invoices generated by a subscription

When creating a new subscription, select a state (draft, validated or posted) in the “Invoice State” field, set up all the subscription, quote and run. Then, when running the Consumption Creation wizard and the Invoice Creation wizard, all the invoices linked to this subscription will have the state of the “Invoice State” field of the subscription.

Setting the default value of the invoice state of a subscription

Open the Sale Configuration menu, and select a state (draft, validated or posted) in the “Default Subscription invoice state” field. Then, when creating a new Subscription, the default value of the “Invoice State” will be the value selected in the Sale Configuration. The value of “Invoice State” is still editable.

When the “Default Subscription invoice state” field is empty, the default value of “Invoice State” is draft.

CHANGELOG

1.0.0 (2022-05-17)

  • Added field on subcription to indicate if the invoice will be posted or not.

Metadata

Release files for hb-tryton-sale-subscription-automatic-post 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hb-tryton-sale-subscription-automatic-post 1.0.0
File Size Uploaded Provenance Actions
hb_tryton_sale_subscription_automatic_post-1.0.0.tar.gz 20.5 kB Without provenance Details for hb_tryton_sale_subscription_automatic_post-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hb-tryton-sale-subscription-automatic-post 1.0.0
File Interpreter ABI Platform Actions
hb_tryton_sale_subscription_automatic_post-1.0.0-py3-none-any.whl Python 3 none any Details for hb_tryton_sale_subscription_automatic_post-1.0.0-py3-none-any.whl

Total release size: 44.1 kB

Release files / hb_tryton_sale_subscription_automatic_post-1.0.0.tar.gz

Download URL hb_tryton_sale_subscription_automatic_post-1.0.0.tar.gz
Size 20.5 kB
Tags Source
SHA-256 checksum
How to use checksums
cb8bbc1c09fab652f76c9e97732d003a48eef90523b7487a3177edce170badb7
BLAKE2b-256 checksum
How to use checksums
a586eaa388ae086816d8dfb4649fe5df5c528cdd5578679b09e158f89f74faa6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.2

Release files / hb_tryton_sale_subscription_automatic_post-1.0.0-py3-none-any.whl

Download URL hb_tryton_sale_subscription_automatic_post-1.0.0-py3-none-any.whl
Size 23.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
872653c14f9247a529a11b6c377aa339e25b65e1658aa45189197444bcf732c4
BLAKE2b-256 checksum
How to use checksums
7504ccc7564e99af686f3f099de0ccf10f9d8a15ed878866a97725c6516ea0af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.2

Security for hb-tryton-sale-subscription-automatic-post 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page