🎉 Initial commit - Hazard Odoo 16 project

- Custom modules: hazard_shopify, hazard_inventory_report, hazard_website
- Third-party modules: bi_sql_editor, query_deluxe, sql_request_abstract, l10n_mx_sat_sync_itadmin_ee
- Docker setup: Odoo 16 + PostgreSQL 17
- Utility scripts: backup_hazard.sh, update_module.py
- Agent configuration: .agents/AGENTS.md
- Security: Enterprise modules, credentials, backups and production data excluded via .gitignore
This commit is contained in:
2026-06-30 06:12:35 -06:00
commit 28d9e56f47
350 changed files with 99832 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
import csv
from collections import defaultdict
filename = 'orders_export_1 (8)(1).csv'
total_lineitem_price = 0
total_with_qty = 0
total_with_discount = 0
with open(filename, 'r', encoding='utf-8-sig') as f:
reader = csv.DictReader(f)
for row in reader:
name = row.get('Lineitem name', '').upper()
if 'CLUB 78' in name or 'PADEL 78' in name or 'PADEL' in name:
price = float(row.get('Lineitem price') or 0)
qty = int(row.get('Lineitem quantity') or 0)
discount = float(row.get('Lineitem discount') or 0)
total_lineitem_price += price
total_with_qty += (price * qty)
total_with_discount += (price * qty) - discount
print(f"Total price only: {total_lineitem_price}")
print(f"Total with qty: {total_with_qty}")
print(f"Total with discount: {total_with_discount}")