1 line
16 KiB
JSON
1 line
16 KiB
JSON
{"nodes": [{"id": "users_gurpreet_github_odoo_modules_work_in_progress_fusion_accounting_models_tax_python_py", "label": "tax_python.py", "file_type": "code", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L1"}, {"id": "tax_python_fusiontaxpython", "label": "FusionTaxPython", "file_type": "code", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L47"}, {"id": "tax_python_check_python_compute", "label": "_check_python_compute()", "file_type": "code", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L96"}, {"id": "tax_python_fusiontaxpython_compute_tax_python", "label": "._compute_tax_python()", "file_type": "code", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L108"}, {"id": "tax_python_fusiontaxpython_check_python_applicable", "label": "._check_python_applicable()", "file_type": "code", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L199"}, {"id": "tax_python_fusiontaxpython_get_tax_totals", "label": "._get_tax_totals()", "file_type": "code", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L252"}, {"id": "tax_python_rationale_1", "label": "Fusion Accounting - Python Tax Code Engine =====================================", "file_type": "rationale", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L1"}, {"id": "tax_python_rationale_48", "label": "Adds a *Python Code* computation mode to the tax engine. When ``amount_type", "file_type": "rationale", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L48"}, {"id": "tax_python_rationale_97", "label": "Validate that Python-type taxes have non-empty compute code.", "file_type": "rationale", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L97"}, {"id": "tax_python_rationale_111", "label": "Execute the Python tax code and return the computed amount. The code is", "file_type": "rationale", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L111"}, {"id": "tax_python_rationale_202", "label": "Evaluate the applicability code to determine if this tax applies. If no", "file_type": "rationale", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L202"}, {"id": "tax_python_rationale_253", "label": "Override to inject Python-computed taxes into the standard totals pipeline.", "file_type": "rationale", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L253"}], "edges": [{"source": "users_gurpreet_github_odoo_modules_work_in_progress_fusion_accounting_models_tax_python_py", "target": "logging", "relation": "imports", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L28", "weight": 1.0}, {"source": "users_gurpreet_github_odoo_modules_work_in_progress_fusion_accounting_models_tax_python_py", "target": "odoo", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L30", "weight": 1.0}, {"source": "users_gurpreet_github_odoo_modules_work_in_progress_fusion_accounting_models_tax_python_py", "target": "odoo_exceptions", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L31", "weight": 1.0}, {"source": "users_gurpreet_github_odoo_modules_work_in_progress_fusion_accounting_models_tax_python_py", "target": "odoo_tools_safe_eval", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L32", "weight": 1.0}, {"source": "users_gurpreet_github_odoo_modules_work_in_progress_fusion_accounting_models_tax_python_py", "target": "tax_python_fusiontaxpython", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L47", "weight": 1.0}, {"source": "users_gurpreet_github_odoo_modules_work_in_progress_fusion_accounting_models_tax_python_py", "target": "tax_python_check_python_compute", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L96", "weight": 1.0}, {"source": "tax_python_fusiontaxpython", "target": "tax_python_fusiontaxpython_compute_tax_python", "relation": "method", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L108", "weight": 1.0}, {"source": "tax_python_fusiontaxpython", "target": "tax_python_fusiontaxpython_check_python_applicable", "relation": "method", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L199", "weight": 1.0}, {"source": "tax_python_fusiontaxpython", "target": "tax_python_fusiontaxpython_get_tax_totals", "relation": "method", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L252", "weight": 1.0}, {"source": "tax_python_fusiontaxpython_get_tax_totals", "target": "tax_python_fusiontaxpython_check_python_applicable", "relation": "calls", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L276", "weight": 1.0}, {"source": "tax_python_fusiontaxpython_get_tax_totals", "target": "tax_python_fusiontaxpython_compute_tax_python", "relation": "calls", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L279", "weight": 1.0}, {"source": "tax_python_rationale_1", "target": "users_gurpreet_github_odoo_modules_work_in_progress_fusion_accounting_models_tax_python_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L1", "weight": 1.0}, {"source": "tax_python_rationale_48", "target": "tax_python_fusiontaxpython", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L48", "weight": 1.0}, {"source": "tax_python_rationale_97", "target": "tax_python_fusiontaxpython_check_python_compute", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L97", "weight": 1.0}, {"source": "tax_python_rationale_111", "target": "tax_python_fusiontaxpython_compute_tax_python", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L111", "weight": 1.0}, {"source": "tax_python_rationale_202", "target": "tax_python_fusiontaxpython_check_python_applicable", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L202", "weight": 1.0}, {"source": "tax_python_rationale_253", "target": "tax_python_fusiontaxpython_get_tax_totals", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L253", "weight": 1.0}], "raw_calls": [{"caller_nid": "tax_python_check_python_compute", "callee": "strip", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L99"}, {"caller_nid": "tax_python_check_python_compute", "callee": "ValidationError", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L100"}, {"caller_nid": "tax_python_check_python_compute", "callee": "_", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L100"}, {"caller_nid": "tax_python_fusiontaxpython_compute_tax_python", "callee": "ensure_one", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L127"}, {"caller_nid": "tax_python_fusiontaxpython_compute_tax_python", "callee": "UserError", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L129"}, {"caller_nid": "tax_python_fusiontaxpython_compute_tax_python", "callee": "_", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L129"}, {"caller_nid": "tax_python_fusiontaxpython_compute_tax_python", "callee": "context_today", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L147"}, {"caller_nid": "tax_python_fusiontaxpython_compute_tax_python", "callee": "strip", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L166"}, {"caller_nid": "tax_python_fusiontaxpython_compute_tax_python", "callee": "safe_eval", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L171"}, {"caller_nid": "tax_python_fusiontaxpython_compute_tax_python", "callee": "error", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L178"}, {"caller_nid": "tax_python_fusiontaxpython_compute_tax_python", "callee": "UserError", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L182"}, {"caller_nid": "tax_python_fusiontaxpython_compute_tax_python", "callee": "_", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L182"}, {"caller_nid": "tax_python_fusiontaxpython_compute_tax_python", "callee": "str", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L185"}, {"caller_nid": "tax_python_fusiontaxpython_compute_tax_python", "callee": "get", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L188"}, {"caller_nid": "tax_python_fusiontaxpython_compute_tax_python", "callee": "isinstance", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L189"}, {"caller_nid": "tax_python_fusiontaxpython_compute_tax_python", "callee": "UserError", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L190"}, {"caller_nid": "tax_python_fusiontaxpython_compute_tax_python", "callee": "_", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L190"}, {"caller_nid": "tax_python_fusiontaxpython_compute_tax_python", "callee": "type", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L194"}, {"caller_nid": "tax_python_fusiontaxpython_compute_tax_python", "callee": "float", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L197"}, {"caller_nid": "tax_python_fusiontaxpython_check_python_applicable", "callee": "ensure_one", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L208"}, {"caller_nid": "tax_python_fusiontaxpython_check_python_applicable", "callee": "strip", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L209"}, {"caller_nid": "tax_python_fusiontaxpython_check_python_applicable", "callee": "context_today", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L225"}, {"caller_nid": "tax_python_fusiontaxpython_check_python_applicable", "callee": "safe_eval", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L238"}, {"caller_nid": "tax_python_fusiontaxpython_check_python_applicable", "callee": "warning", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L240"}, {"caller_nid": "tax_python_fusiontaxpython_check_python_applicable", "callee": "bool", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L247"}, {"caller_nid": "tax_python_fusiontaxpython_check_python_applicable", "callee": "get", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L247"}, {"caller_nid": "tax_python_fusiontaxpython_get_tax_totals", "callee": "get", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L261"}, {"caller_nid": "tax_python_fusiontaxpython_get_tax_totals", "callee": "hasattr", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L262"}, {"caller_nid": "tax_python_fusiontaxpython_get_tax_totals", "callee": "filtered", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L264"}, {"caller_nid": "tax_python_fusiontaxpython_get_tax_totals", "callee": "get", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L269"}, {"caller_nid": "tax_python_fusiontaxpython_get_tax_totals", "callee": "get", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L270"}, {"caller_nid": "tax_python_fusiontaxpython_get_tax_totals", "callee": "get", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L271"}, {"caller_nid": "tax_python_fusiontaxpython_get_tax_totals", "callee": "get", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L272"}, {"caller_nid": "tax_python_fusiontaxpython_get_tax_totals", "callee": "get", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L273"}, {"caller_nid": "tax_python_fusiontaxpython_get_tax_totals", "callee": "with_context", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L283"}, {"caller_nid": "tax_python_fusiontaxpython_get_tax_totals", "callee": "super", "source_file": "/Users/gurpreet/Github/Odoo-Modules/Work in Progress/fusion_accounting/models/tax_python.py", "source_location": "L285"}]} |