RiBa tools!
Project description
This is a library for creating RiBa CBI documents starting from Odoo 12 data.
Table of contents
Installation
The library is available on PyPI and the suggested way of installing it is by using pip:
pip install ribalta
Usage
Import the Document and Receipt classes:
from ribalta import Document, Receipt
Create and instance of the Document class passing the required data:
riba_doc = Document(
creditor_company = creditor_res_partner_obj,
creditor_bank_account = creditor_res_partner_bank_obj
)
Create a Receipt object for each receipt to be included in the CBI and add it to the riba_doc:
rcpt_1 = Receipt(move_line_1, invoice_1, debtor_partner_1, debtor_bank_1)
rcpt_2 = Receipt(move_line_2, invoice_2, debtor_partner_2, debtor_bank_2)
riba_doc.add_receipt(rcpt_1)
riba_doc.add_receipt(rcpt_2)
Render the CBI document (the result of the rendering is a string):
cbi_str = riba_doc.render_cbi()
See the docstring for details about the required arguments.
Known issues / Roadmap
No known issues at the moment
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported.
Do not contact contributors directly about support or help with technical issues.
License
License: LGPL-3
Credits
Contributors
Marco Tosato <marco.tosato@didotech.com>
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 ribalta-0.4.5.tar.gz
.
File metadata
- Download URL: ribalta-0.4.5.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d58f0998705a95a39c46f3365d905beda6d5a32458db751b8420c68325a8fdc |
|
MD5 | 4855ed82a34250e285ef9f928f433eed |
|
BLAKE2b-256 | c642e6970407e3a778ab75af81f10140ec99f50625899e2c0b688eeaa36f2814 |
File details
Details for the file ribalta-0.4.5-py3-none-any.whl
.
File metadata
- Download URL: ribalta-0.4.5-py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab06dac012262941dc5118da90e253e159d448103532df17d74276cc76935df6 |
|
MD5 | c47869cc05f528d1d982876b7b15f3c1 |
|
BLAKE2b-256 | 8f5b117ddba52e96e80228375df8ca9a16be71dd18797f63f4e69de6a85a6289 |