This module based on Odoo 18 Community Edition, provides multi-currency sale margin report, both as a web-based and pdf.
Reports can be generated from Sales ➔ Reporting ➔ Sales Margin Report: Multi-currency
Git clone this repo into your custom addons path, then execute the following command line
using Docker:
docker exec -it <odoo_container_id> bash -c "odoo -d <odoo_db_name> -i bm_sale_margin_reports"
docker exec -it <odoo_container_id> bash -c "odoo -p <port> -d <test_db_name> -r <db_username> -w <db_password> --db_host=<db_host> --db_port=<db_port> -i bm_sale_margin_reports --test-enable --stop-after-init"
Example:
docker exec -it odoo18_community bash -c "odoo -p 5050 -d odoo18_db_test -r odoo -w odoo --db_host=db --db_port=5432 -i bm_sale_margin_reports --log-level=test --test-enable --stop-after-init --test-enable --stop-after-init"
or to execute specific test case example:
docker exec -it odoo18_community bash -c "odoo -p 5050 -d odoo18_db_test -r odoo -w odoo --db_host=db --db_port=5432 -i bm_sale_margin_reports --log-level=test --test-enable --stop-after-init --test-enable --stop-after-init --test-tags /bm_sale_margin_reports:ComplaintsTests.test_default_settings"
