mirror of
https://github.com/bringout/oca-ocb-l10n_me-africa.git
synced 2026-04-27 01:02:04 +02:00
Initial commit: L10N_Me Africa packages
This commit is contained in:
commit
c265268138
611 changed files with 75334 additions and 0 deletions
59
odoo-bringout-oca-ocb-l10n_sa/README.md
Normal file
59
odoo-bringout-oca-ocb-l10n_sa/README.md
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
# Saudi Arabia - Accounting
|
||||
|
||||
|
||||
Saudi Arabia Accounting Module
|
||||
===========================================================
|
||||
Saudi Arabia Accounting Basic Charts and Localization
|
||||
|
||||
Activates:
|
||||
|
||||
- Chart of Accounts
|
||||
- Taxes
|
||||
- Vat Filling Report
|
||||
- Withholding Tax Report
|
||||
- Fiscal Positions
|
||||
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
pip install odoo-bringout-oca-ocb-l10n_sa
|
||||
```
|
||||
|
||||
## Dependencies
|
||||
|
||||
This addon depends on:
|
||||
- l10n_multilang
|
||||
- l10n_gcc_invoice
|
||||
|
||||
## Manifest Information
|
||||
|
||||
- **Name**: Saudi Arabia - Accounting
|
||||
- **Version**: 2.0
|
||||
- **Category**: Accounting/Localizations/Account Charts
|
||||
- **License**: LGPL-3
|
||||
- **Installable**: False
|
||||
|
||||
## Source
|
||||
|
||||
Based on [OCA/OCB](https://github.com/OCA/OCB) branch 16.0, addon `l10n_sa`.
|
||||
|
||||
## License
|
||||
|
||||
This package maintains the original LGPL-3 license from the upstream Odoo project.
|
||||
|
||||
## Documentation
|
||||
|
||||
- Overview: doc/OVERVIEW.md
|
||||
- Architecture: doc/ARCHITECTURE.md
|
||||
- Models: doc/MODELS.md
|
||||
- Controllers: doc/CONTROLLERS.md
|
||||
- Wizards: doc/WIZARDS.md
|
||||
- Reports: doc/REPORTS.md
|
||||
- Security: doc/SECURITY.md
|
||||
- Install: doc/INSTALL.md
|
||||
- Usage: doc/USAGE.md
|
||||
- Configuration: doc/CONFIGURATION.md
|
||||
- Dependencies: doc/DEPENDENCIES.md
|
||||
- Troubleshooting: doc/TROUBLESHOOTING.md
|
||||
- FAQ: doc/FAQ.md
|
||||
32
odoo-bringout-oca-ocb-l10n_sa/doc/ARCHITECTURE.md
Normal file
32
odoo-bringout-oca-ocb-l10n_sa/doc/ARCHITECTURE.md
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# Architecture
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
U[Users] -->|HTTP| V[Views and QWeb Templates]
|
||||
V --> C[Controllers]
|
||||
V --> W[Wizards – Transient Models]
|
||||
C --> M[Models and ORM]
|
||||
W --> M
|
||||
M --> R[Reports]
|
||||
DX[Data XML] --> M
|
||||
S[Security – ACLs and Groups] -. enforces .-> M
|
||||
|
||||
subgraph L10n_sa Module - l10n_sa
|
||||
direction LR
|
||||
M:::layer
|
||||
W:::layer
|
||||
C:::layer
|
||||
V:::layer
|
||||
R:::layer
|
||||
S:::layer
|
||||
DX:::layer
|
||||
end
|
||||
|
||||
classDef layer fill:#eef8ff,stroke:#6ea8fe,stroke-width:1px
|
||||
```
|
||||
|
||||
Notes
|
||||
- Views include tree/form/kanban templates and report templates.
|
||||
- Controllers provide website/portal routes when present.
|
||||
- Wizards are UI flows implemented with `models.TransientModel`.
|
||||
- Data XML loads data/demo records; Security defines groups and access.
|
||||
3
odoo-bringout-oca-ocb-l10n_sa/doc/CONFIGURATION.md
Normal file
3
odoo-bringout-oca-ocb-l10n_sa/doc/CONFIGURATION.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Configuration
|
||||
|
||||
Refer to Odoo settings for l10n_sa. Configure related models, access rights, and options as needed.
|
||||
3
odoo-bringout-oca-ocb-l10n_sa/doc/CONTROLLERS.md
Normal file
3
odoo-bringout-oca-ocb-l10n_sa/doc/CONTROLLERS.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Controllers
|
||||
|
||||
This module does not define custom HTTP controllers.
|
||||
6
odoo-bringout-oca-ocb-l10n_sa/doc/DEPENDENCIES.md
Normal file
6
odoo-bringout-oca-ocb-l10n_sa/doc/DEPENDENCIES.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# Dependencies
|
||||
|
||||
This addon depends on:
|
||||
|
||||
- [l10n_multilang](../../odoo-bringout-oca-ocb-l10n_multilang)
|
||||
- [l10n_gcc_invoice](../../odoo-bringout-oca-ocb-l10n_gcc_invoice)
|
||||
4
odoo-bringout-oca-ocb-l10n_sa/doc/FAQ.md
Normal file
4
odoo-bringout-oca-ocb-l10n_sa/doc/FAQ.md
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# FAQ
|
||||
|
||||
- Q: Which Odoo version? A: 16.0 (OCA/OCB packaged).
|
||||
- Q: How to enable? A: Start server with --addon l10n_sa or install in UI.
|
||||
7
odoo-bringout-oca-ocb-l10n_sa/doc/INSTALL.md
Normal file
7
odoo-bringout-oca-ocb-l10n_sa/doc/INSTALL.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# Install
|
||||
|
||||
```bash
|
||||
pip install odoo-bringout-oca-ocb-l10n_sa"
|
||||
# or
|
||||
uv pip install odoo-bringout-oca-ocb-l10n_sa"
|
||||
```
|
||||
13
odoo-bringout-oca-ocb-l10n_sa/doc/MODELS.md
Normal file
13
odoo-bringout-oca-ocb-l10n_sa/doc/MODELS.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Models
|
||||
|
||||
Detected core models and extensions in l10n_sa.
|
||||
|
||||
```mermaid
|
||||
classDiagram
|
||||
class account_chart_template
|
||||
class account_move
|
||||
```
|
||||
|
||||
Notes
|
||||
- Classes show model technical names; fields omitted for brevity.
|
||||
- Items listed under _inherit are extensions of existing models.
|
||||
6
odoo-bringout-oca-ocb-l10n_sa/doc/OVERVIEW.md
Normal file
6
odoo-bringout-oca-ocb-l10n_sa/doc/OVERVIEW.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# Overview
|
||||
|
||||
Packaged Odoo addon: l10n_sa. Provides features documented in upstream Odoo 16 under this addon.
|
||||
|
||||
- Source: OCA/OCB 16.0, addon l10n_sa
|
||||
- License: LGPL-3
|
||||
3
odoo-bringout-oca-ocb-l10n_sa/doc/REPORTS.md
Normal file
3
odoo-bringout-oca-ocb-l10n_sa/doc/REPORTS.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Reports
|
||||
|
||||
This module does not define custom reports.
|
||||
8
odoo-bringout-oca-ocb-l10n_sa/doc/SECURITY.md
Normal file
8
odoo-bringout-oca-ocb-l10n_sa/doc/SECURITY.md
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# Security
|
||||
|
||||
This module does not define custom security rules or access controls beyond Odoo defaults.
|
||||
|
||||
Default Odoo security applies:
|
||||
- Base user access through standard groups
|
||||
- Model access inherited from dependencies
|
||||
- No custom row-level security rules
|
||||
5
odoo-bringout-oca-ocb-l10n_sa/doc/TROUBLESHOOTING.md
Normal file
5
odoo-bringout-oca-ocb-l10n_sa/doc/TROUBLESHOOTING.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# Troubleshooting
|
||||
|
||||
- Ensure Python and Odoo environment matches repo guidance.
|
||||
- Check database connectivity and logs if startup fails.
|
||||
- Validate that dependent addons listed in DEPENDENCIES.md are installed.
|
||||
7
odoo-bringout-oca-ocb-l10n_sa/doc/USAGE.md
Normal file
7
odoo-bringout-oca-ocb-l10n_sa/doc/USAGE.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# Usage
|
||||
|
||||
Start Odoo including this addon (from repo root):
|
||||
|
||||
```bash
|
||||
python3 scripts/nix_odoo_web_server.py --db-name mydb --addon l10n_sa
|
||||
```
|
||||
3
odoo-bringout-oca-ocb-l10n_sa/doc/WIZARDS.md
Normal file
3
odoo-bringout-oca-ocb-l10n_sa/doc/WIZARDS.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Wizards
|
||||
|
||||
This module does not include UI wizards.
|
||||
10
odoo-bringout-oca-ocb-l10n_sa/l10n_sa/__init__.py
Normal file
10
odoo-bringout-oca-ocb-l10n_sa/l10n_sa/__init__.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# -*- encoding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import api, SUPERUSER_ID
|
||||
from . import models
|
||||
|
||||
|
||||
def load_translations(cr, registry):
|
||||
env = api.Environment(cr, SUPERUSER_ID, {})
|
||||
env.ref('l10n_sa.sa_chart_template_standard').process_coa_translations()
|
||||
46
odoo-bringout-oca-ocb-l10n_sa/l10n_sa/__manifest__.py
Normal file
46
odoo-bringout-oca-ocb-l10n_sa/l10n_sa/__manifest__.py
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
# -*- encoding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
{
|
||||
'name': 'Saudi Arabia - Accounting',
|
||||
'version': '2.0',
|
||||
'author': 'Odoo S.A., DVIT.ME',
|
||||
'category': 'Accounting/Localizations/Account Charts',
|
||||
'website': 'https://www.odoo.com/documentation/16.0/applications/finance/fiscal_localizations/saudi_arabia.html',
|
||||
'description': """
|
||||
Saudi Arabia Accounting Module
|
||||
===========================================================
|
||||
Saudi Arabia Accounting Basic Charts and Localization
|
||||
|
||||
Activates:
|
||||
|
||||
- Chart of Accounts
|
||||
- Taxes
|
||||
- Vat Filling Report
|
||||
- Withholding Tax Report
|
||||
- Fiscal Positions
|
||||
""",
|
||||
'depends': [
|
||||
'l10n_multilang',
|
||||
'l10n_gcc_invoice',
|
||||
],
|
||||
'data': [
|
||||
'data/account_data.xml',
|
||||
'data/account_chart_template_data.xml',
|
||||
'data/account.account.template.csv',
|
||||
'data/account_tax_group.xml',
|
||||
'data/l10n_sa_chart_data.xml',
|
||||
'data/account_tax_report_data.xml',
|
||||
'data/account_tax_template_data.xml',
|
||||
'data/account_fiscal_position_template_data.xml',
|
||||
'data/account_chart_template_configure_data.xml',
|
||||
'data/report_paperformat_data.xml',
|
||||
'views/view_move_form.xml',
|
||||
'views/report_invoice.xml',
|
||||
'views/report_templates_views.xml'
|
||||
],
|
||||
'demo': [
|
||||
'demo/demo_company.xml',
|
||||
],
|
||||
'post_init_hook': 'load_translations',
|
||||
'license': 'LGPL-3',
|
||||
}
|
||||
|
|
@ -0,0 +1,159 @@
|
|||
id,name,code,account_type,chart_template_id/id,reconcile
|
||||
sa_account_100101,Right of use Asset (IFRS 16),100101,asset_fixed,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_100102,Accumulated Depreciation right use asset (IFRS 16),100102,asset_fixed,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_100103,VAT Receivable,100103,asset_non_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_101005,Main Safe,101005,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_101006,Main Safe - Foreign Currency,101006,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_101007,Visa & Master Credit Cards,101007,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_101008,Gateway Credit Cards,101008,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_101009,Manual Visa & Master Cards,101009,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_101010,PayPal Account,101010,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_101060,VAT Paid to Customs,101060,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_102011,Accounts Receivable,102011,asset_receivable,l10n_sa.sa_chart_template_standard,True
|
||||
sa_account_102012,Accounts Receivable (PoS),102012,asset_receivable,l10n_sa.sa_chart_template_standard,True
|
||||
sa_account_102013,Post Dated Cheques Received,102013,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_102014,Other Receivable,102014,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_102015,Other Debtors,102015,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_103016,Shipment Insurance,103016,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_103017,Shipments Documentation Charges,103017,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_103018,Shipment Other Charges,103018,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_103019,Handling Difference in Inventory,103019,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_103020,Items Delivered to Customs on temprary Base,103020,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_104021,Prepaid Medical Insurance,104021,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_104022,Prepaid Life Insurance,104022,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_104023,Prepaid Office Rent,104023,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_104024,Prepaid Other Insurance,104024,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_104025,Prepaid License Fees,104025,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_104026,Prepaid Maintenance,104026,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_104027,Prepaid Site Hosting Fees,104027,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_104028,Prepaid Employees Housing,104028,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_104029,Prepaid Schooling Fees,104029,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_104030,Prepaid Consultancy Fees,104030,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_104031,Prepaid Legal Fees,104031,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_104032,Prepaid Sponsorship Fees,104032,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_104033,PrePaid Advertisement Expenses,104033,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_104034,Prepaid Bank Guarantee,104034,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_104035,Other Prepayments,104035,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_104036,Prepaid Finance charge for Loans,104036,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_104037,Deposit - Office Rent,104037,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_104038,Deposits - Customs,104038,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_104039,Deposit to Immigration (Visa),104039,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_104040,Deposit Others,104040,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_104041,VAT Input,104041,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_106001,Leasehold Improvement,106001,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_106002,Furniture and Equipment,106002,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_106003,Computer Hardware & Software,106003,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_106004,Motor Vehicles,106004,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_106005,Work In Progress,106005,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_106006,Amortisation on Leasehold Improvement,106006,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_106007,Acc.Deprn.of Furniture & Office Equipment,106007,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_106008,Acc. Deprn.Computer Hardware & Software,106008,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_106009,Acc. Depreciation of Motor Vehicles,106009,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_106010,Registration of Trademarks,106010,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_106011,Computer Card Renewal,106011,asset_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_201002,Payables,201002,liability_payable,l10n_sa.sa_chart_template_standard,True
|
||||
sa_account_201003,Credit Notes to Customers,201003,liability_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_201004,Accrued - Salaries,201004,liability_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_201005,Leave Tickets Provision,201005,liability_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_201006,Leave Days Provision,201006,liability_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_201007,Accrued - Commissions,201007,liability_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_201008,Accrued Salaries Increment,201008,liability_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_201009,Accrued-Staff Bonus,201009,liability_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_201010,Accrued Other Personnel Cost,201010,liability_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_201011,Accrued - Utilities,201011,liability_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_201012,Accrued - Telephone,201012,liability_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_201013,Accrued - Sponsorship,201013,liability_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_201014,Accrued - Audit Fees,201014,liability_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_201015,Accrued - Office Rent,201015,liability_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_201016,Accrued Others,201016,liability_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_201017,VAT Output,201017,liability_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_201018,Deferred income,201018,liability_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_201019,Zakat Provision,201019,liability_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_201020,Withholding Tax Payable,201020,liability_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_202001,End of Service Provision,202001,liability_non_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_202002,Reservations,202002,liability_non_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_202003,VAT Payable,202003,liability_non_current,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400001,Cost of Goods Sold in Trading,400001,expense_direct_cost,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400002,Cost Of Goods Sold I/C Sales,400002,expense_direct_cost,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400003,Basic Salary,400003,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400004,Housing Allowance,400004,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400005,Transportation Allowance,400005,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400006,Leave Ticket,400006,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400007,Leave Salary,400007,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400008,End Of Service Indemnity,400008,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400009,Medical Insurance,400009,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400010,Life Insurance,400010,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400011,Sales Commission,400011,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400012,Staff Other Allowances,400012,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400013,Uniform,400013,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400014,Visa Expenses,400014,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400015,Personnel Cost Others,400015,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400016,Office Rent,400016,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400017,Warehouse Rent,400017,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400018,Water & Electricity,400018,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400019,Other Utility Cahrges,400019,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400020,Telephone,400020,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400021,Courrier,400021,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400022,Web Site Hosting Fees,400022,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400023,Others - Communication,400023,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400024,Air tickets,400024,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400025,Hotel,400025,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400026,Meals,400026,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400027,Per Diem,400027,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400028,Others,400028,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400029,Audit Fees,400029,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400030,Sponsorship Fees,400030,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400031,Legal fees,400031,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400032,Trade License Fees,400032,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400033,Others - Professional Fees,400033,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400034,Other - Advertising Expenses,400034,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400035,Write Off Receivables & Payables,400035,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400036,Write Off Inventory,400036,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400037,Amortisation of Preoperating Expenses,400037,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400038,Cash Shortage,400038,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400039,Others - Provision & Write off,400039,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400040,Insurance,400040,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400041,Training,400041,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400042,Maintenance,400042,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400043,Security & Guard,400043,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400044,Cleaning,400044,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400045,Subscriptions,400045,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400046,Gifts & Donations,400046,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400047,Kitchen and Buffet Expenses,400047,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400048,Vehicle Expenses,400048,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400049,Convoyance Expenses,400049,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400050,Others - Office Various Expenses,400050,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400051,Other Bank Charges,400051,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400052,Loss On Fixed Assets Disposal,400052,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400053,Loss on Difference on Exchange,400053,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400054,Disposal of Business Branch,400054,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400055,Income Tax,400055,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400056,Previous Year Adjustments Account,400056,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400057,Other Non Operating Expenses,400057,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400058,Credit Card Charges,400058,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400059,Bank Finance & Loan Charges,400059,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400060,Air Miles Card Charges,400060,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400062,PayPal Charges,400062,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400063,Amortization on Leasehold Improvement,400063,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400064,Depreciation Of Furniture & Office Equipment,400064,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400065,Depreciation Of Computer Hard & Soft,400065,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400066,Depreciation Of Motor Vehicles,400066,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400067,Consultancy Fees,400067,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400068,Provision for Doubtful Debts,400068,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400069,Closing Account,400069,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400070,Depreciation on right of use asset (IFRS 16),400070,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400072,Zakat Expense,400072,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_400073,Withholding Tax Expense,400073,expense,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_500001,Sales Account,500001,income,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_500002,Sales of I/C,500002,income,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_500003,Management Consultancy Fees,500003,income,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_500004,Sales from Other Region,500004,income,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_500005,Advertising Income,500005,income,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_500006,Branding Income,500006,income,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_500007,Space Rental Income,500007,income,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_500008,Service Income,500008,income,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_500009,Interest Revenue,500009,income,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_500010,Capital Gain,500010,income,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_500011,Gain On Difference Of Exchange,500011,income,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_500013,Other Income,500013,income,l10n_sa.sa_chart_template_standard,False
|
||||
sa_account_999999,Undistributed Profits/Losses,999999,equity_unaffected,l10n_sa.sa_chart_template_standard,False
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
<function model="account.chart.template" name="try_loading">
|
||||
<value eval="[ref('l10n_sa.sa_chart_template_standard')]"/>
|
||||
</function>
|
||||
</data>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="sa_chart_template_standard" model="account.chart.template">
|
||||
<field name="name">Saudi Arabia Chart of Accounts - Standard</field>
|
||||
<field name="bank_account_code_prefix">101</field>
|
||||
<field name="cash_account_code_prefix">105</field>
|
||||
<field name="transfer_account_code_prefix">100</field>
|
||||
<field name="code_digits">6</field>
|
||||
<field name="currency_id" ref="base.SAR"/>
|
||||
<field name="country_id" ref="base.sa"/>
|
||||
<field name="spoken_languages" eval="'en_US;ar_001;'"/>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<odoo>
|
||||
<data noupdate="1">
|
||||
<!-- set VAT label to show on invoice report -->
|
||||
<record id="base.sa" model="res.country">
|
||||
<field name="vat_label">VAT Number</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
<odoo>
|
||||
<data noupdate="1">
|
||||
<record id="l10n_sa_account_fiscal_position_ksa" model="account.fiscal.position.template">
|
||||
<field name="name">KSA</field>
|
||||
<field name="auto_apply" eval="True"/>
|
||||
<field name="sequence">16</field>
|
||||
<field name="country_id" ref="base.sa"/>
|
||||
<field name="chart_template_id" ref="sa_chart_template_standard"/>
|
||||
</record>
|
||||
<record id="l10n_sa_account_fiscal_position_gcc" model="account.fiscal.position.template">
|
||||
<field name="name">GCC</field>
|
||||
<field name="auto_apply" eval="True"/>
|
||||
<field name="sequence">16</field>
|
||||
<field name="country_group_id" ref="base.gulf_cooperation_council"/>
|
||||
<field name="chart_template_id" ref="sa_chart_template_standard"/>
|
||||
</record>
|
||||
<record id="l10n_sa_account_fiscal_position_non_gcc" model="account.fiscal.position.template">
|
||||
<field name="name">Non-GCC</field>
|
||||
<field name="sequence">16</field>
|
||||
<field name="chart_template_id" ref="sa_chart_template_standard"/>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data noupdate="0">
|
||||
<!-- Account Tax Group -->
|
||||
<record id="sa_tax_group_taxes_15" model="account.tax.group">
|
||||
<field name="name">VAT Taxes</field>
|
||||
<field name="property_tax_payable_account_id" ref="sa_account_202003"/>
|
||||
<field name="property_tax_receivable_account_id" ref="sa_account_100103"/>
|
||||
<field name="country_id" ref="base.sa"/>
|
||||
</record>
|
||||
<record id="sa_tax_group_taxes_other" model="account.tax.group">
|
||||
<field name="name">Other Taxes</field>
|
||||
<field name="country_id" ref="base.sa"/>
|
||||
</record>
|
||||
<record id="sa_tax_group_taxes_withholding" model="account.tax.group">
|
||||
<field name="name">Withholding Tax</field>
|
||||
<field name="country_id" ref="base.sa"/>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,624 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="tax_report_vat_filing" model="account.report">
|
||||
<field name="name">VAT Filing Report</field>
|
||||
<field name="root_report_id" ref="account.generic_tax_report"/>
|
||||
<field name="country_id" ref="base.sa"/>
|
||||
<field name="filter_fiscal_position" eval="True"/>
|
||||
<field name="availability_condition">country</field>
|
||||
<field name="column_ids">
|
||||
<record id="tax_report_vat_filing_balance" model="account.report.column">
|
||||
<field name="name">Balance</field>
|
||||
<field name="expression_label">balance</field>
|
||||
</record>
|
||||
</field>
|
||||
<field name="line_ids">
|
||||
<record id="tax_report_line_vat_all_sales_base" model="account.report.line">
|
||||
<field name="name">VAT on Sales and all other Outputs (Base)</field>
|
||||
<field name="aggregation_formula">SA_STD_SALE_B.balance + SA_SPCL_SALE_B.balance + SA_ZERO_SALE_B.balance + SA_EXP_SALE_B.balance + SA_EXM_SALE_B.balance</field>
|
||||
<field name="children_ids">
|
||||
<record id="tax_report_line_standard_rated_15_base" model="account.report.line">
|
||||
<field name="name">1. Standard Rated 15% (Base)</field>
|
||||
<field name="code">SA_STD_SALE_B</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_standard_rated_15_base_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">1. Standard Rates 15% (Base)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_special_sales_to_locals_base" model="account.report.line">
|
||||
<field name="name">2. Special Sales to Locals (Base)</field>
|
||||
<field name="code">SA_SPCL_SALE_B</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_special_sales_to_locals_base_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">2. Special Sales to Locals (Base)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_local_sales_subject_to_0_base" model="account.report.line">
|
||||
<field name="name">3. Local Sales Subject to 0% (Base)</field>
|
||||
<field name="code">SA_ZERO_SALE_B</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_local_sales_subject_to_0_base_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">3. Local Sales Subject to 0% (Base)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_export_sales_base" model="account.report.line">
|
||||
<field name="name">4. Export Sales (Base)</field>
|
||||
<field name="code">SA_EXP_SALE_B</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_export_sales_base_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">4. Export Sales (Base)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_exempt_sales_base" model="account.report.line">
|
||||
<field name="name">5. Exempt Sales (Base)</field>
|
||||
<field name="code">SA_EXM_SALE_B</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_exempt_sales_base_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">5. Exempt Sales (Base)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_net_sales_base" model="account.report.line">
|
||||
<field name="name">6. Net Sales (Base)</field>
|
||||
<field name="aggregation_formula">SA_STD_SALE_B.balance + SA_SPCL_SALE_B.balance + SA_ZERO_SALE_B.balance + SA_EXP_SALE_B.balance + SA_EXM_SALE_B.balance</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_vat_all_sales_tax" model="account.report.line">
|
||||
<field name="name">VAT on Sales and all other Outputs (Tax)</field>
|
||||
<field name="aggregation_formula">SA_STD_SALE_T.balance + SA_SPCL_SALE_T.balance + SA_ZERO_SALE_T.balance + SA_EXP_SALE_T.balance + SA_EXM_SALE_T.balance</field>
|
||||
<field name="children_ids">
|
||||
<record id="tax_report_line_standard_rated_15_tax" model="account.report.line">
|
||||
<field name="name">1. Standard Rated 15% (Tax)</field>
|
||||
<field name="code">SA_STD_SALE_T</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_standard_rated_15_tax_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">1. Standard Rates 15% (Tax)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_special_sales_to_locals_tax" model="account.report.line">
|
||||
<field name="name">2. Special Sales to Locals (Tax)</field>
|
||||
<field name="code">SA_SPCL_SALE_T</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_special_sales_to_locals_tax_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">2. Special Sales to Locals (Tax)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_local_sales_subject_to_0_tax" model="account.report.line">
|
||||
<field name="name">3. Local Sales Subject to 0% (Tax)</field>
|
||||
<field name="code">SA_ZERO_SALE_T</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_local_sales_subject_to_0_tax_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">3. Local Sales Subject to 0% (Tax)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_export_sales_tax" model="account.report.line">
|
||||
<field name="name">4. Export Sales (Tax)</field>
|
||||
<field name="code">SA_EXP_SALE_T</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_export_sales_tax_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">4. Export Sales (Tax)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_exempt_sales_tax" model="account.report.line">
|
||||
<field name="name">5. Exempt Sales (Tax)</field>
|
||||
<field name="code">SA_EXM_SALE_T</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_exempt_sales_tax_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">5. Exempt Sales (Tax)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_net_sales_tax" model="account.report.line">
|
||||
<field name="name">6. Net Sales (Tax)</field>
|
||||
<field name="aggregation_formula">SA_STD_SALE_T.balance + SA_SPCL_SALE_T.balance + SA_ZERO_SALE_T.balance + SA_EXP_SALE_T.balance + SA_EXM_SALE_T.balance</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_vat_all_expenses_base" model="account.report.line">
|
||||
<field name="name">VAT on Expenses and all other Inputs (Base)</field>
|
||||
<field name="aggregation_formula">SA_STD_PUR_B.balance + SA_CUST_PUR_B.balance + SA_RCM_PUR_B.balance + SA_ZER_PUR_B.balance + SA_EXM_PUR_B.balance</field>
|
||||
<field name="children_ids">
|
||||
<record id="tax_report_line_standard_rated_15_purchases_base" model="account.report.line">
|
||||
<field name="name">7. Standard rated 15% Purchases (Base)</field>
|
||||
<field name="code">SA_STD_PUR_B</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_standard_rated_15_purchases_base_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">7. Standard rated 15% Purchases (Base)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_taxable_imports_15_paid_to_customs_base" model="account.report.line">
|
||||
<field name="name">8. Taxable Imports 15% Paid to Customs (Base)</field>
|
||||
<field name="code">SA_CUST_PUR_B</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_taxable_imports_15_paid_to_customs_base_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">8. Taxable Imports 15% Paid to Customs (Base)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_imports_subject_tp_reverse_charge_mechanism_base" model="account.report.line">
|
||||
<field name="name">9. Imports subject to reverse charge mechanism (Base)</field>
|
||||
<field name="code">SA_RCM_PUR_B</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_imports_subject_tp_reverse_charge_mechanism_base_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">9. Imports subject to reverse charge mechanism (Base)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_zero_rated_purchases_base" model="account.report.line">
|
||||
<field name="name">10. Zero Rated Purchases (Base)</field>
|
||||
<field name="code">SA_ZER_PUR_B</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_zero_rated_purchases_base_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">10. Zero Rated Purchases (Base)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_exempt_purchases_base" model="account.report.line">
|
||||
<field name="name">11. Exempt Purchases (Base)</field>
|
||||
<field name="code">SA_EXM_PUR_B</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_exempt_purchases_base_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">11. Exempt Purchases (Base)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_net_purchases_base" model="account.report.line">
|
||||
<field name="name">12. Net Purchases (Base)</field>
|
||||
<field name="aggregation_formula">SA_STD_PUR_B.balance + SA_CUST_PUR_B.balance + SA_RCM_PUR_B.balance + SA_ZER_PUR_B.balance + SA_EXM_PUR_B.balance</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_vat_all_expenses_tax" model="account.report.line">
|
||||
<field name="name">VAT on Expenses and all other Inputs (Tax)</field>
|
||||
<field name="aggregation_formula">SA_STD_PUR_T.balance + SA_CUST_PUR_T.balance + SA_RCM_PUR_T.balance + SA_ZER_PUR_T.balance + SA_EXM_PUR_T.balance</field>
|
||||
<field name="children_ids">
|
||||
<record id="tax_report_line_standard_rated_15_purchases_tax" model="account.report.line">
|
||||
<field name="name">7. Standard rated 15% Purchases (Tax)</field>
|
||||
<field name="code">SA_STD_PUR_T</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_standard_rated_15_purchases_tax_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">7. Standard rated 15% Purchases (Tax)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_taxable_imports_15_paid_to_customs_tax" model="account.report.line">
|
||||
<field name="name">8. Taxable Imports 15% Paid to Customs (Tax)</field>
|
||||
<field name="code">SA_CUST_PUR_T</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_taxable_imports_15_paid_to_customs_tax_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">8. Taxable Imports 15% Paid to Customs (Tax)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_imports_subject_tp_reverse_charge_mechanism_tax" model="account.report.line">
|
||||
<field name="name">9. Imports subject to reverse charge mechanism (Tax)</field>
|
||||
<field name="code">SA_RCM_PUR_T</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_imports_subject_tp_reverse_charge_mechanism_tax_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">9. Imports subject to reverse charge mechanism (Tax)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_zero_rated_purchases_tax" model="account.report.line">
|
||||
<field name="name">10. Zero Rated Purchases (Tax)</field>
|
||||
<field name="code">SA_ZER_PUR_T</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_zero_rated_purchases_tax_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">10. Zero Rated Purchases (Tax)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_exempt_purchases_tax" model="account.report.line">
|
||||
<field name="name">11. Exempt Purchases (Tax)</field>
|
||||
<field name="code">SA_EXM_PUR_T</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_exempt_purchases_tax_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">11. Exempt Purchases (Tax)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_net_purchases_tax" model="account.report.line">
|
||||
<field name="name">12. Net Purchases (Tax)</field>
|
||||
<field name="aggregation_formula">SA_STD_PUR_T.balance + SA_CUST_PUR_T.balance + SA_RCM_PUR_T.balance + SA_ZER_PUR_T.balance + SA_EXM_PUR_T.balance</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_net_vat_due" model="account.report.line">
|
||||
<field name="name">Net VAT Due</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_net_vat_due_formula" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">external</field>
|
||||
<field name="formula">sum</field>
|
||||
<field name="subformula">editable;rounding=2</field>
|
||||
</record>
|
||||
</field>
|
||||
<field name="children_ids">
|
||||
<record id="tax_report_line_total_value_of_due_tax_for_the_period" model="account.report.line">
|
||||
<field name="name">Total value of due tax for the period</field>
|
||||
<field name="aggregation_formula">SA_STD_SALE_T.balance + SA_SPCL_SALE_T.balance + SA_ZERO_SALE_T.balance + SA_EXP_SALE_T.balance + SA_EXM_SALE_T.balance</field>
|
||||
</record>
|
||||
<record id="tax_report_line_total_value_of_recoverable_tax_for_the_period" model="account.report.line">
|
||||
<field name="name">Total value of recoverable tax for the period</field>
|
||||
<field name="aggregation_formula">SA_STD_PUR_T.balance + SA_CUST_PUR_T.balance + SA_RCM_PUR_T.balance + SA_ZER_PUR_T.balance + SA_EXM_PUR_T.balance</field>
|
||||
</record>
|
||||
<record id="tax_report_line_net_vat_due_or_reclaimed_for_the_period" model="account.report.line">
|
||||
<field name="name">Net VAT due (or reclaimed) for the period</field>
|
||||
<field name="aggregation_formula">SA_STD_SALE_T.balance + SA_SPCL_SALE_T.balance + SA_ZERO_SALE_T.balance + SA_EXP_SALE_T.balance + SA_EXM_SALE_T.balance - (SA_STD_PUR_T.balance + SA_CUST_PUR_T.balance + SA_RCM_PUR_T.balance + SA_ZER_PUR_T.balance + SA_EXM_PUR_T.balance)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_withholding_tax" model="account.report">
|
||||
<field name="name">Withholding Tax Report</field>
|
||||
<field name="root_report_id" ref="account.generic_tax_report"/>
|
||||
<field name="country_id" ref="base.sa"/>
|
||||
<field name="filter_fiscal_position" eval="True"/>
|
||||
<field name="availability_condition">country</field>
|
||||
<field name="column_ids">
|
||||
<record id="tax_report_withholding_tax_balance" model="account.report.column">
|
||||
<field name="name">Balance</field>
|
||||
<field name="expression_label">balance</field>
|
||||
</record>
|
||||
</field>
|
||||
<field name="line_ids">
|
||||
<record id="tax_report_line_withholding_tax_on_purchased_services_base" model="account.report.line">
|
||||
<field name="name">Withholding Tax on Purchased Services (Base)</field>
|
||||
<field name="aggregation_formula">SA_RENTB.balance + SA_AIRB.balance + SA_SEAB.balance + SA_TELEB.balance + SA_DIVB.balance + SA_CONB.balance + SA_ROLB.balance + SA_INSB.balance + SA_ROYB.balance + SA_MAIB.balance + SA_BRAB.balance + SA_OTHB.balance + SA_MAGB.balance</field>
|
||||
<field name="children_ids">
|
||||
<record id="tax_report_line_withholding_tax_5_rental_base" model="account.report.line">
|
||||
<field name="name">Withholding Tax 5% (Rental) (Base)</field>
|
||||
<field name="code">SA_RENTB</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_withholding_tax_5_rental_base_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Withholding Tax 5% (Rental) (Base)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_withholding_tax_5_tickets_or_air_freight_base" model="account.report.line">
|
||||
<field name="name">Withholding Tax 5% (Tickets or Air Freight) (Base)</field>
|
||||
<field name="code">SA_AIRB</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_withholding_tax_5_tickets_or_air_freight_base_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Withholding Tax 5% (Tickets or Air Freight) (Base)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_withholding_tax_5_tickets_or_sea_freight_base" model="account.report.line">
|
||||
<field name="name">Withholding Tax 5% (Tickets or Sea Freight)(Base)</field>
|
||||
<field name="code">SA_SEAB</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_withholding_tax_5_tickets_or_sea_freight_base_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Withholding Tax 5% (Tickets or Sea Freight)(Base)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_withholding_tax_5_international_telecommunication_base" model="account.report.line">
|
||||
<field name="name">Withholding Tax 5% (International Telecommunication)(Base)</field>
|
||||
<field name="code">SA_TELEB</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_withholding_tax_5_international_telecommunication_base_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Withholding Tax 5% (International Telecommunication)(Base)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_withholding_tax_5_distributed_profits_base" model="account.report.line">
|
||||
<field name="name">Withholding Tax 5% (Distributed Profits) (Base)</field>
|
||||
<field name="code">SA_DIVB</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_withholding_tax_5_distributed_profits_base_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Withholding Tax 5% (Distributed Profits) (Base)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_withholding_tax_5_consulting_and_technical_base" model="account.report.line">
|
||||
<field name="name">Withholding Tax 5% (Consulting and Technical) (Base)</field>
|
||||
<field name="code">SA_CONB</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_withholding_tax_5_consulting_and_technical_base_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Withholding Tax 5% (Consulting and Technical) (Base)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_withholding_tax_5_return_from_loans_base" model="account.report.line">
|
||||
<field name="name">Withholding Tax 5% (Return from Loans) (Base)</field>
|
||||
<field name="code">SA_ROLB</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_withholding_tax_5_return_from_loans_base_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Withholding Tax 5% (Return from Loans) (Base)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_withholding_tax_5_insurance_and_reinsurance_base" model="account.report.line">
|
||||
<field name="name">Withholding Tax 5% (Insurance & Reinsurance) (Base)</field>
|
||||
<field name="code">SA_INSB</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_withholding_tax_5_insurance_and_reinsurance_base_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Withholding Tax 5% (Insurance & Reinsurance) (Base)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_withholding_tax_15_royalties_base" model="account.report.line">
|
||||
<field name="name">Withholding Tax 15% (Royalties)(Base)</field>
|
||||
<field name="code">SA_ROYB</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_withholding_tax_15_royalties_base_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Withholding Tax 15% (Royalties)(Base)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_withholding_tax_15_paid_services_from_main_branch_base" model="account.report.line">
|
||||
<field name="name">Withholding Tax 15% (Paid Services from Main Branch)(Base)</field>
|
||||
<field name="code">SA_MAIB</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_withholding_tax_15_paid_services_from_main_branch_base_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Withholding Tax 15% (Paid Services from Main Branch)(Base)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_withholding_tax_15_paid_services_from_another_branch_base" model="account.report.line">
|
||||
<field name="name">Withholding Tax 15% (Paid Services from another branch)(Base)</field>
|
||||
<field name="code">SA_BRAB</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_withholding_tax_15_paid_services_from_another_branch_base_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Withholding Tax 15% (Paid Services from another branch)(Base)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_withholding_tax_15_others_base" model="account.report.line">
|
||||
<field name="name">Withholding Tax 15% (Others)(Base)</field>
|
||||
<field name="code">SA_OTHB</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_withholding_tax_15_others_base_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Withholding Tax 15% (Others)(Base)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_withholding_tax_20_managerial_base" model="account.report.line">
|
||||
<field name="name">Withholding Tax 20% (Managerial)(Base)</field>
|
||||
<field name="code">SA_MAGB</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_withholding_tax_20_managerial_base_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Withholding Tax 20% (Managerial)(Base)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_withholding_tax_total_base" model="account.report.line">
|
||||
<field name="name">Withholding Tax Total (Base)</field>
|
||||
<field name="aggregation_formula">SA_RENTB.balance+SA_AIRB.balance+SA_SEAB.balance+SA_TELEB.balance+SA_DIVB.balance+SA_CONB.balance+SA_ROLB.balance+SA_INSB.balance+SA_ROYB.balance+SA_MAIB.balance+SA_BRAB.balance+SA_OTHB.balance+SA_MAGB.balance</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_withholding_tax_on_purchased_services_tax" model="account.report.line">
|
||||
<field name="name">Withholding Tax on Purchased Services (Tax)</field>
|
||||
<field name="aggregation_formula">SA_RENTT.balance + SA_AIRT.balance + SA_SEAT.balance + SA_TELET.balance + SA_DIVT.balance + SA_CONT.balance + SA_ROLT.balance + SA_INST.balance + SA_ROYT.balance + SA_MAIT.balance + SA_BRAT.balance + SA_OTHT.balance + SA_MAGT.balance</field>
|
||||
<field name="children_ids">
|
||||
<record id="tax_report_line_withholding_tax_5_rental_tax" model="account.report.line">
|
||||
<field name="name">Withholding Tax 5% (Rental) (Tax)</field>
|
||||
<field name="code">SA_RENTT</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_withholding_tax_5_rental_tax_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Withholding Tax 5% (Rental) (Tax)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_withholding_tax_5_tickets_or_air_freight_tax" model="account.report.line">
|
||||
<field name="name">Withholding Tax 5% (Tickets or Air Freight) (Tax)</field>
|
||||
<field name="code">SA_AIRT</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_withholding_tax_5_tickets_or_air_freight_tax_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Withholding Tax 5% (Tickets or Air Freight) (Tax)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_withholding_tax_5_tickets_or_sea_freight_tax" model="account.report.line">
|
||||
<field name="name">Withholding Tax 5% (Tickets or Sea Freight)(Tax)</field>
|
||||
<field name="code">SA_SEAT</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_withholding_tax_5_tickets_or_sea_freight_tax_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Withholding Tax 5% (Tickets or Sea Freight)(Tax)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_withholding_tax_5_international_telecommunication_tax" model="account.report.line">
|
||||
<field name="name">Withholding Tax 5% (International Telecommunication)(Tax)</field>
|
||||
<field name="code">SA_TELET</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_withholding_tax_5_international_telecommunication_tax_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Withholding Tax 5% (International Telecommunication)(Tax)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_withholding_tax_5_distributed_profits_tax" model="account.report.line">
|
||||
<field name="name">Withholding Tax 5% (Distributed Profits) (Tax)</field>
|
||||
<field name="code">SA_DIVT</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_withholding_tax_5_distributed_profits_tax_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Withholding Tax 5% (Distributed Profits) (Tax)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_withholding_tax_5_consulting_and_technical_tax" model="account.report.line">
|
||||
<field name="name">Withholding Tax 5% (Consulting and Technical) (Tax)</field>
|
||||
<field name="code">SA_CONT</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_withholding_tax_5_consulting_and_technical_tax_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Withholding Tax 5% (Consulting and Technical) (Tax)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_withholding_tax_5_return_from_loans_tax" model="account.report.line">
|
||||
<field name="name">Withholding Tax 5% (Return from Loans) (Tax)</field>
|
||||
<field name="code">SA_ROLT</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_withholding_tax_5_return_from_loans_tax_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Withholding Tax 5% (Return from Loans) (Tax)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_withholding_tax_5_insurance_and_reinsurance_tax" model="account.report.line">
|
||||
<field name="name">Withholding Tax 5% (Insurance & Reinsurance) (Tax)</field>
|
||||
<field name="code">SA_INST</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_withholding_tax_5_insurance_and_reinsurance_tax_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Withholding Tax 5% (Insurance & Reinsurance) (Tax)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_withholding_tax_15_royalties_tax" model="account.report.line">
|
||||
<field name="name">Withholding Tax 15% (Royalties)(Tax)</field>
|
||||
<field name="code">SA_ROYT</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_withholding_tax_15_royalties_tax_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Withholding Tax 15% (Royalties)(Tax)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_withholding_tax_15_paid_services_from_main_branch_tax" model="account.report.line">
|
||||
<field name="name">Withholding Tax 15% (Paid Services from Main Branch)(Tax)</field>
|
||||
<field name="code">SA_MAIT</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_withholding_tax_15_paid_services_from_main_branch_tax_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Withholding Tax 15% (Paid Services from Main Branch)(Tax)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_withholding_tax_15_paid_services_from_another_branch_tax" model="account.report.line">
|
||||
<field name="name">Withholding Tax 15% (Paid Services from another branch)(Tax)</field>
|
||||
<field name="code">SA_BRAT</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_withholding_tax_15_paid_services_from_another_branch_tax_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Withholding Tax 15% (Paid Services from another branch)(Tax)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_withholding_tax_15_others_tax" model="account.report.line">
|
||||
<field name="name">Withholding Tax 15% (Others)(Tax)</field>
|
||||
<field name="code">SA_OTHT</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_withholding_tax_15_others_tax_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Withholding Tax 15% (Others)(Tax)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_withholding_tax_20_managerial_tax" model="account.report.line">
|
||||
<field name="name">Withholding Tax 20% (Managerial)(Tax)</field>
|
||||
<field name="code">SA_MAGT</field>
|
||||
<field name="expression_ids">
|
||||
<record id="tax_report_line_withholding_tax_20_managerial_tax_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Withholding Tax 20% (Managerial)(Tax)</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tax_report_line_withholding_tax_total_tax" model="account.report.line">
|
||||
<field name="name">Withholding Tax Total (Tax)</field>
|
||||
<field name="aggregation_formula">SA_RENTT.balance+SA_AIRT.balance+SA_SEAT.balance+SA_TELET.balance+SA_DIVT.balance+SA_CONT.balance+SA_ROLT.balance+SA_INST.balance+SA_ROYT.balance+SA_MAIT.balance+SA_BRAT.balance+SA_OTHT.balance+SA_MAGT.balance</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,833 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="sa_sales_tax_15" model="account.tax.template">
|
||||
<field name="name">Sales Tax 15%</field>
|
||||
<field name="type_tax_use">sale</field>
|
||||
<field name="amount">15</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="description">Sales Tax 15%</field>
|
||||
<field name="tax_group_id" ref="sa_tax_group_taxes_15"/>
|
||||
<field name="chart_template_id" ref="sa_chart_template_standard"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_standard_rated_15_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('sa_account_201017'),
|
||||
'plus_report_expression_ids': [ref('tax_report_line_standard_rated_15_tax_tag')],
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('tax_report_line_standard_rated_15_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('sa_account_201017'),
|
||||
'minus_report_expression_ids': [ref('tax_report_line_standard_rated_15_tax_tag')],
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
<record id="sa_local_sales_tax_0" model="account.tax.template">
|
||||
<field name="name">Local Sales 0%</field>
|
||||
<field name="type_tax_use">sale</field>
|
||||
<field name="amount">0</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="description">Local Sales 0%</field>
|
||||
<field name="tax_group_id" ref="sa_tax_group_taxes_other"/>
|
||||
<field name="chart_template_id" ref="sa_chart_template_standard"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_local_sales_subject_to_0_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_local_sales_subject_to_0_tax_tag')],
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('tax_report_line_local_sales_subject_to_0_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'minus_report_expression_ids': [ref('tax_report_line_local_sales_subject_to_0_tax_tag')],
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
<record id="sa_export_sales_tax_0" model="account.tax.template">
|
||||
<field name="name">Export Sales 0%</field>
|
||||
<field name="type_tax_use">sale</field>
|
||||
<field name="amount">0</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="description">Export Sales 0%</field>
|
||||
<field name="tax_group_id" ref="sa_tax_group_taxes_other"/>
|
||||
<field name="chart_template_id" ref="sa_chart_template_standard"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_export_sales_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_export_sales_tax_tag')],
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('tax_report_line_export_sales_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'minus_report_expression_ids': [ref('tax_report_line_export_sales_tax_tag')],
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
<record id="sa_exempt_sales_tax_0" model="account.tax.template">
|
||||
<field name="name">Exempt Sales Tax 0%</field>
|
||||
<field name="type_tax_use">sale</field>
|
||||
<field name="amount">0</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="description">Exempt Sales Tax 0%</field>
|
||||
<field name="tax_group_id" ref="sa_tax_group_taxes_other"/>
|
||||
<field name="chart_template_id" ref="sa_chart_template_standard"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_exempt_sales_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_exempt_sales_tax_tag')],
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('tax_report_line_exempt_sales_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'minus_report_expression_ids': [ref('tax_report_line_exempt_sales_tax_tag')],
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
<record id="sa_purchase_tax_15" model="account.tax.template">
|
||||
<field name="name">Purchase Tax 15%</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="amount">15</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="description">Purchase Tax 15%</field>
|
||||
<field name="tax_group_id" ref="sa_tax_group_taxes_15"/>
|
||||
<field name="chart_template_id" ref="sa_chart_template_standard"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_standard_rated_15_purchases_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('sa_account_104041'),
|
||||
'plus_report_expression_ids': [ref('tax_report_line_standard_rated_15_purchases_tax_tag')],
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('tax_report_line_standard_rated_15_purchases_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('sa_account_104041'),
|
||||
'minus_report_expression_ids': [ref('tax_report_line_standard_rated_15_purchases_tax_tag')],
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
<record id="sa_rcp_tax_15" model="account.tax.template">
|
||||
<field name="name">Reverse charge provision Tax 15%</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="amount">15</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="tax_scope">service</field>
|
||||
<field name="description">Reverse charge provision Tax 15%</field>
|
||||
<field name="tax_group_id" ref="sa_tax_group_taxes_15"/>
|
||||
<field name="chart_template_id" ref="sa_chart_template_standard"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_imports_subject_tp_reverse_charge_mechanism_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('sa_account_104041'),
|
||||
'plus_report_expression_ids': [ref('tax_report_line_imports_subject_tp_reverse_charge_mechanism_tax_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': -100,
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('sa_account_201017'),
|
||||
'plus_report_expression_ids': [ref('tax_report_line_imports_subject_tp_reverse_charge_mechanism_tax_tag')],
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('tax_report_line_imports_subject_tp_reverse_charge_mechanism_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('sa_account_104041'),
|
||||
'minus_report_expression_ids': [ref('tax_report_line_imports_subject_tp_reverse_charge_mechanism_tax_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': -100,
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('sa_account_201017'),
|
||||
'minus_report_expression_ids': [ref('tax_report_line_imports_subject_tp_reverse_charge_mechanism_tax_tag')],
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
<record id="sa_import_tax_paid_15_paid_to_customs" model="account.tax.template">
|
||||
<field name="name">Import tax 15% Paid to customs</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="amount">15</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="description">Import tax 15% Paid to customs</field>
|
||||
<field name="tax_group_id" ref="sa_tax_group_taxes_other"/>
|
||||
<field name="chart_template_id" ref="sa_chart_template_standard"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_taxable_imports_15_paid_to_customs_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('sa_account_101060'),
|
||||
'plus_report_expression_ids': [ref('tax_report_line_taxable_imports_15_paid_to_customs_tax_tag')],
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('tax_report_line_taxable_imports_15_paid_to_customs_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('sa_account_101060'),
|
||||
'minus_report_expression_ids': [ref('tax_report_line_taxable_imports_15_paid_to_customs_tax_tag')],
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
<record id="sa_purchases_tax_0" model="account.tax.template">
|
||||
<field name="name">Purchases 0%</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="amount">0</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="description">Purchases 0%</field>
|
||||
<field name="tax_group_id" ref="sa_tax_group_taxes_other"/>
|
||||
<field name="chart_template_id" ref="sa_chart_template_standard"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_zero_rated_purchases_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_zero_rated_purchases_tax_tag')],
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('tax_report_line_zero_rated_purchases_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'minus_report_expression_ids': [ref('tax_report_line_zero_rated_purchases_tax_tag')],
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
<record id="sa_exempt_purchases_tax" model="account.tax.template">
|
||||
<field name="name">Exempt Purchases</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="amount">0</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="description">Exempt Purchases</field>
|
||||
<field name="tax_group_id" ref="sa_tax_group_taxes_other"/>
|
||||
<field name="chart_template_id" ref="sa_chart_template_standard"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_exempt_purchases_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_exempt_purchases_tax_tag')],
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('tax_report_line_exempt_purchases_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'minus_report_expression_ids': [ref('tax_report_line_exempt_purchases_tax_tag')],
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
<record id="sa_withholding_tax_5_rental" model="account.tax.template">
|
||||
<field name="name">Withholding Tax 5% (Rental)</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="amount">5</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="tax_scope">service</field>
|
||||
<field name="description">Withholding Tax 5%</field>
|
||||
<field name="tax_group_id" ref="sa_tax_group_taxes_withholding"/>
|
||||
<field name="chart_template_id" ref="sa_chart_template_standard"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_rental_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'account_id': ref('sa_account_400073'),
|
||||
'repartition_type': 'tax',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_rental_tax_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': -100,
|
||||
'account_id': ref('sa_account_201020'),
|
||||
'repartition_type': 'tax',
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_rental_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('sa_account_400073'),
|
||||
'minus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_rental_tax_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': -100,
|
||||
'account_id': ref('sa_account_201020'),
|
||||
'repartition_type': 'tax',
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
<record id="sa_withholding_tax_5_tickets_or_air_freight" model="account.tax.template">
|
||||
<field name="name">Withholding Tax 5% (Tickets or Air Freight)</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="amount">5</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="tax_scope">service</field>
|
||||
<field name="description">Withholding Tax 5%</field>
|
||||
<field name="tax_group_id" ref="sa_tax_group_taxes_withholding"/>
|
||||
<field name="chart_template_id" ref="sa_chart_template_standard"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_tickets_or_air_freight_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'account_id': ref('sa_account_400073'),
|
||||
'repartition_type': 'tax',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_tickets_or_air_freight_tax_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': -100,
|
||||
'account_id': ref('sa_account_201020'),
|
||||
'repartition_type': 'tax',
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_tickets_or_air_freight_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('sa_account_400073'),
|
||||
'minus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_tickets_or_air_freight_tax_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': -100,
|
||||
'account_id': ref('sa_account_201020'),
|
||||
'repartition_type': 'tax',
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
<record id="sa_withholding_tax_5_tickets_or_sea_freight" model="account.tax.template">
|
||||
<field name="name">Withholding Tax 5% (Tickets or Sea Freight)</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="amount">5</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="tax_scope">service</field>
|
||||
<field name="description">Withholding Tax 5%</field>
|
||||
<field name="tax_group_id" ref="sa_tax_group_taxes_withholding"/>
|
||||
<field name="chart_template_id" ref="sa_chart_template_standard"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_tickets_or_sea_freight_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'account_id': ref('sa_account_400073'),
|
||||
'repartition_type': 'tax',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_tickets_or_sea_freight_tax_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': -100,
|
||||
'account_id': ref('sa_account_201020'),
|
||||
'repartition_type': 'tax',
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_tickets_or_sea_freight_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('sa_account_400073'),
|
||||
'minus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_tickets_or_sea_freight_tax_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': -100,
|
||||
'account_id': ref('sa_account_201020'),
|
||||
'repartition_type': 'tax',
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
<record id="sa_withholding_tax_5_international_telecommunication" model="account.tax.template">
|
||||
<field name="name">Withholding Tax 5% (International Telecommunication)</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="amount">5</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="tax_scope">service</field>
|
||||
<field name="description">Withholding Tax 5%</field>
|
||||
<field name="tax_group_id" ref="sa_tax_group_taxes_withholding"/>
|
||||
<field name="chart_template_id" ref="sa_chart_template_standard"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_international_telecommunication_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'account_id': ref('sa_account_400073'),
|
||||
'repartition_type': 'tax',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_international_telecommunication_tax_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': -100,
|
||||
'account_id': ref('sa_account_201020'),
|
||||
'repartition_type': 'tax',
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_international_telecommunication_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('sa_account_400073'),
|
||||
'minus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_international_telecommunication_tax_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': -100,
|
||||
'account_id': ref('sa_account_201020'),
|
||||
'repartition_type': 'tax',
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
<record id="sa_withholding_tax_5_distributed_profits" model="account.tax.template">
|
||||
<field name="name">Withholding Tax 5% (Distributed Profits)</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="amount">5</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="tax_scope">service</field>
|
||||
<field name="description">Withholding Tax 5%</field>
|
||||
<field name="tax_group_id" ref="sa_tax_group_taxes_withholding"/>
|
||||
<field name="chart_template_id" ref="sa_chart_template_standard"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_distributed_profits_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'account_id': ref('sa_account_400073'),
|
||||
'repartition_type': 'tax',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_distributed_profits_tax_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': -100,
|
||||
'account_id': ref('sa_account_201020'),
|
||||
'repartition_type': 'tax',
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_distributed_profits_tax_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('sa_account_400073'),
|
||||
'minus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_distributed_profits_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': -100,
|
||||
'account_id': ref('sa_account_201020'),
|
||||
'repartition_type': 'tax',
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
<record id="sa_withholding_tax_5_consulting_and_technical" model="account.tax.template">
|
||||
<field name="name">Withholding Tax 5% (Consulting and Technical)</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="amount">5</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="tax_scope">service</field>
|
||||
<field name="description">Withholding Tax 5%</field>
|
||||
<field name="tax_group_id" ref="sa_tax_group_taxes_withholding"/>
|
||||
<field name="chart_template_id" ref="sa_chart_template_standard"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_consulting_and_technical_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'account_id': ref('sa_account_400073'),
|
||||
'repartition_type': 'tax',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_consulting_and_technical_tax_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': -100,
|
||||
'account_id': ref('sa_account_201020'),
|
||||
'repartition_type': 'tax',
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_consulting_and_technical_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('sa_account_400073'),
|
||||
'minus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_consulting_and_technical_tax_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': -100,
|
||||
'account_id': ref('sa_account_201020'),
|
||||
'repartition_type': 'tax',
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
<record id="sa_withholding_tax_5_return_from_loans" model="account.tax.template">
|
||||
<field name="name">Withholding Tax 5% (Return from Loans)</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="amount">5</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="tax_scope">service</field>
|
||||
<field name="description">Withholding Tax 5%</field>
|
||||
<field name="tax_group_id" ref="sa_tax_group_taxes_withholding"/>
|
||||
<field name="chart_template_id" ref="sa_chart_template_standard"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_return_from_loans_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'account_id': ref('sa_account_400073'),
|
||||
'repartition_type': 'tax',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_return_from_loans_tax_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': -100,
|
||||
'account_id': ref('sa_account_201020'),
|
||||
'repartition_type': 'tax',
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_return_from_loans_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('sa_account_400073'),
|
||||
'minus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_return_from_loans_tax_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': -100,
|
||||
'account_id': ref('sa_account_201020'),
|
||||
'repartition_type': 'tax',
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
<record id="sa_withholding_tax_5_insurance_amd_reinsurance" model="account.tax.template">
|
||||
<field name="name">Withholding Tax 5% (Insurance & Reinsurance)</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="amount">5</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="tax_scope">service</field>
|
||||
<field name="description">Withholding Tax 5%</field>
|
||||
<field name="tax_group_id" ref="sa_tax_group_taxes_withholding"/>
|
||||
<field name="chart_template_id" ref="sa_chart_template_standard"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_insurance_and_reinsurance_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'account_id': ref('sa_account_400073'),
|
||||
'repartition_type': 'tax',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_insurance_and_reinsurance_tax_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': -100,
|
||||
'account_id': ref('sa_account_201020'),
|
||||
'repartition_type': 'tax',
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_insurance_and_reinsurance_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('sa_account_400073'),
|
||||
'minus_report_expression_ids': [ref('tax_report_line_withholding_tax_5_insurance_and_reinsurance_tax_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': -100,
|
||||
'account_id': ref('sa_account_201020'),
|
||||
'repartition_type': 'tax',
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
<record id="sa_withholding_tax_15_royalties" model="account.tax.template">
|
||||
<field name="name">Withholding Tax 15% (Royalties)</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="amount">15</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="tax_scope">service</field>
|
||||
<field name="description">Withholding Tax 15%</field>
|
||||
<field name="tax_group_id" ref="sa_tax_group_taxes_withholding"/>
|
||||
<field name="chart_template_id" ref="sa_chart_template_standard"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_withholding_tax_15_royalties_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'account_id': ref('sa_account_400073'),
|
||||
'repartition_type': 'tax',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_withholding_tax_15_royalties_tax_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': -100,
|
||||
'account_id': ref('sa_account_201020'),
|
||||
'repartition_type': 'tax',
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('tax_report_line_withholding_tax_15_royalties_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('sa_account_400073'),
|
||||
'minus_report_expression_ids': [ref('tax_report_line_withholding_tax_15_royalties_tax_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': -100,
|
||||
'account_id': ref('sa_account_201020'),
|
||||
'repartition_type': 'tax',
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
<record id="sa_withholding_tax_15_paid_services_from_main_branch" model="account.tax.template">
|
||||
<field name="name">Withholding Tax 15% (Paid Services from Main Branch)</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="amount">15</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="tax_scope">service</field>
|
||||
<field name="description">Withholding Tax 15%</field>
|
||||
<field name="tax_group_id" ref="sa_tax_group_taxes_withholding"/>
|
||||
<field name="chart_template_id" ref="sa_chart_template_standard"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_withholding_tax_15_paid_services_from_main_branch_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'account_id': ref('sa_account_400073'),
|
||||
'repartition_type': 'tax',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_withholding_tax_15_paid_services_from_main_branch_tax_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': -100,
|
||||
'account_id': ref('sa_account_201020'),
|
||||
'repartition_type': 'tax',
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('tax_report_line_withholding_tax_15_paid_services_from_main_branch_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('sa_account_400073'),
|
||||
'minus_report_expression_ids': [ref('tax_report_line_withholding_tax_15_paid_services_from_main_branch_tax_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': -100,
|
||||
'account_id': ref('sa_account_201020'),
|
||||
'repartition_type': 'tax',
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
<record id="sa_withholding_tax_15_paid_services_from_another_branch" model="account.tax.template">
|
||||
<field name="name">Withholding Tax 15% (Paid Services from another branch)</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="amount">15</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="tax_scope">service</field>
|
||||
<field name="description">Withholding Tax 15%</field>
|
||||
<field name="tax_group_id" ref="sa_tax_group_taxes_withholding"/>
|
||||
<field name="chart_template_id" ref="sa_chart_template_standard"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_withholding_tax_15_paid_services_from_another_branch_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'account_id': ref('sa_account_400073'),
|
||||
'repartition_type': 'tax',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_withholding_tax_15_paid_services_from_another_branch_tax_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': -100,
|
||||
'account_id': ref('sa_account_201020'),
|
||||
'repartition_type': 'tax',
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('tax_report_line_withholding_tax_15_paid_services_from_another_branch_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('sa_account_400073'),
|
||||
'minus_report_expression_ids': [ref('tax_report_line_withholding_tax_15_paid_services_from_another_branch_tax_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': -100,
|
||||
'account_id': ref('sa_account_201020'),
|
||||
'repartition_type': 'tax',
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
<record id="sa_withholding_tax_15_others" model="account.tax.template">
|
||||
<field name="name">Withholding Tax 15% (Others)</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="amount">15</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="tax_scope">service</field>
|
||||
<field name="description">Withholding Tax 15%</field>
|
||||
<field name="tax_group_id" ref="sa_tax_group_taxes_withholding"/>
|
||||
<field name="chart_template_id" ref="sa_chart_template_standard"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_withholding_tax_15_others_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'account_id': ref('sa_account_400073'),
|
||||
'repartition_type': 'tax',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_withholding_tax_15_others_tax_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': -100,
|
||||
'account_id': ref('sa_account_201020'),
|
||||
'repartition_type': 'tax',
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('tax_report_line_withholding_tax_15_others_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('sa_account_400073'),
|
||||
'minus_report_expression_ids': [ref('tax_report_line_withholding_tax_15_others_tax_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': -100,
|
||||
'account_id': ref('sa_account_201020'),
|
||||
'repartition_type': 'tax',
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
<record id="sa_withholding_tax_20_managerial" model="account.tax.template">
|
||||
<field name="name">Withholding Tax 20% (Managerial)</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="amount">20</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="tax_scope">service</field>
|
||||
<field name="description">Withholding Tax 20%</field>
|
||||
<field name="tax_group_id" ref="sa_tax_group_taxes_withholding"/>
|
||||
<field name="chart_template_id" ref="sa_chart_template_standard"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_withholding_tax_20_managerial_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'account_id': ref('sa_account_400073'),
|
||||
'repartition_type': 'tax',
|
||||
'plus_report_expression_ids': [ref('tax_report_line_withholding_tax_20_managerial_tax_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': -100,
|
||||
'account_id': ref('sa_account_201020'),
|
||||
'repartition_type': 'tax',
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('tax_report_line_withholding_tax_20_managerial_base_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('sa_account_400073'),
|
||||
'minus_report_expression_ids': [ref('tax_report_line_withholding_tax_20_managerial_tax_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': -100,
|
||||
'account_id': ref('sa_account_201020'),
|
||||
'repartition_type': 'tax',
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<!-- Chart Template -->
|
||||
<record id="sa_chart_template_standard" model="account.chart.template">
|
||||
<field name="property_account_receivable_id" ref="sa_account_102011"/>
|
||||
<field name="property_account_payable_id" ref="sa_account_201002"/>
|
||||
<field name="property_account_expense_categ_id" ref="sa_account_400001"/>
|
||||
<field name="property_account_income_categ_id" ref="sa_account_500001"/>
|
||||
<field name="income_currency_exchange_account_id" ref="sa_account_500011"/>
|
||||
<field name="expense_currency_exchange_account_id" ref="sa_account_400053"/>
|
||||
<field name="default_pos_receivable_account_id" ref="sa_account_102012" />
|
||||
<field name="property_tax_payable_account_id" ref="sa_account_202003"/>
|
||||
<field name="property_tax_receivable_account_id" ref="sa_account_100103"/>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
<record id="paperformat_l10n_sa_a4" model="report.paperformat">
|
||||
<field name="name">Saudi Arabia A4</field>
|
||||
<field name="orientation">Portrait</field>
|
||||
<field name="margin_bottom">32</field>
|
||||
<field name="header_spacing">45</field>
|
||||
<field name="margin_top">50</field>
|
||||
</record>
|
||||
</data>
|
||||
<data>
|
||||
<function model="res.company" name="write">
|
||||
<value model="res.company" search="[
|
||||
('partner_id.country_id', '=', ref('base.sa'))]"/>
|
||||
<value eval="{'paperformat_id': ref('l10n_sa.paperformat_l10n_sa_a4')}"/>
|
||||
</function>
|
||||
</data>
|
||||
</odoo>
|
||||
36
odoo-bringout-oca-ocb-l10n_sa/l10n_sa/demo/demo_company.xml
Normal file
36
odoo-bringout-oca-ocb-l10n_sa/l10n_sa/demo/demo_company.xml
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="partner_demo_company_sa" model="res.partner">
|
||||
<field name="name">SA Company</field>
|
||||
<field name="vat"></field>
|
||||
<field name="street">Al Amir Mohammed Bin Abdul Aziz Street</field>
|
||||
<field name="city">المدينة المنورة</field>
|
||||
<field name="country_id" ref="base.sa"/>
|
||||
|
||||
<field name="zip">42317</field>
|
||||
<field name="phone">+966 51 234 5678</field>
|
||||
<field name="email">info@company.saexample.com</field>
|
||||
<field name="website">www.saexample.com</field>
|
||||
</record>
|
||||
|
||||
<record id="demo_company_sa" model="res.company">
|
||||
<field name="name">SA Company</field>
|
||||
<field name="vat">310175397400003</field>
|
||||
<field name="partner_id" ref="partner_demo_company_sa"/>
|
||||
<field name="paperformat_id" ref="l10n_sa.paperformat_l10n_sa_a4"></field>
|
||||
</record>
|
||||
|
||||
<function model="res.company" name="_onchange_country_id">
|
||||
<value eval="[ref('demo_company_sa')]"/>
|
||||
</function>
|
||||
|
||||
<function model="res.users" name="write">
|
||||
<value eval="[ref('base.user_root'), ref('base.user_admin'), ref('base.user_demo')]"/>
|
||||
<value eval="{'company_ids': [(4, ref('l10n_sa.demo_company_sa'))]}"/>
|
||||
</function>
|
||||
|
||||
<function model="account.chart.template" name="try_loading">
|
||||
<value eval="[ref('l10n_sa.sa_chart_template_standard')]"/>
|
||||
<value model="res.company" eval="obj().env.ref('l10n_sa.demo_company_sa')"/>
|
||||
</function>
|
||||
</odoo>
|
||||
1287
odoo-bringout-oca-ocb-l10n_sa/l10n_sa/i18n_extra/ar.po
Normal file
1287
odoo-bringout-oca-ocb-l10n_sa/l10n_sa/i18n_extra/ar.po
Normal file
File diff suppressed because it is too large
Load diff
1282
odoo-bringout-oca-ocb-l10n_sa/l10n_sa/i18n_extra/l10n_sa.pot
Normal file
1282
odoo-bringout-oca-ocb-l10n_sa/l10n_sa/i18n_extra/l10n_sa.pot
Normal file
File diff suppressed because it is too large
Load diff
4
odoo-bringout-oca-ocb-l10n_sa/l10n_sa/models/__init__.py
Normal file
4
odoo-bringout-oca-ocb-l10n_sa/l10n_sa/models/__init__.py
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# -*- encoding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
from . import account_chart_template
|
||||
from . import account_move
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
# -*- encoding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
from odoo import models
|
||||
|
||||
|
||||
class AccountChartTemplate(models.Model):
|
||||
_inherit = 'account.chart.template'
|
||||
|
||||
def _prepare_all_journals(self, acc_template_ref, company, journals_dict=None):
|
||||
""" If Saudi Arabia chart, we add 3 new journals Tax Adjustments, IFRS 16 and Zakat"""
|
||||
if self == self.env.ref('l10n_sa.sa_chart_template_standard'):
|
||||
if not journals_dict:
|
||||
journals_dict = []
|
||||
journals_dict.extend(
|
||||
[{'name': 'Tax Adjustments', 'company_id': company.id, 'code': 'TA', 'type': 'general',
|
||||
'favorite': True, 'sequence': 1},
|
||||
{'name': 'IFRS 16 Right of Use Asset', 'company_id': company.id, 'code': 'IFRS', 'type': 'general',
|
||||
'favorite': True, 'sequence': 10},
|
||||
{'name': 'Zakat', 'company_id': company.id, 'code': 'ZAKAT', 'type': 'general', 'favorite': True,
|
||||
'sequence': 10}])
|
||||
return super()._prepare_all_journals(acc_template_ref, company, journals_dict=journals_dict)
|
||||
|
||||
def _load_template(self, company, code_digits=None, account_ref=None, taxes_ref=None):
|
||||
account_ref, taxes_ref = super(AccountChartTemplate, self)._load_template(company=company,
|
||||
code_digits=code_digits,
|
||||
account_ref=account_ref,
|
||||
taxes_ref=taxes_ref)
|
||||
if self == self.env.ref('l10n_sa.sa_chart_template_standard'):
|
||||
ifrs_journal_id = self.env['account.journal'].search([('company_id', '=', company.id), ('code', '=', 'IFRS')], limit=1)
|
||||
if ifrs_journal_id:
|
||||
ifrs_account_ids = [self.env.ref('l10n_sa.sa_account_100101').id,
|
||||
self.env.ref('l10n_sa.sa_account_100102').id,
|
||||
self.env.ref('l10n_sa.sa_account_400070').id]
|
||||
ifrs_accounts = self.env['account.account'].browse([account_ref.get(id) for id in ifrs_account_ids])
|
||||
for account in ifrs_accounts:
|
||||
account.allowed_journal_ids = [(4, ifrs_journal_id.id, 0)]
|
||||
zakat_journal_id = self.env['account.journal'].search([('company_id', '=', company.id), ('code', '=', 'ZAKAT')], limit=1)
|
||||
if zakat_journal_id:
|
||||
zakat_account_ids = [self.env.ref('l10n_sa.sa_account_201019').id,
|
||||
self.env.ref('l10n_sa.sa_account_400072').id]
|
||||
zakat_accounts = self.env['account.account'].browse([account_ref.get(id) for id in zakat_account_ids])
|
||||
for account in zakat_accounts:
|
||||
account.allowed_journal_ids = [(4, zakat_journal_id.id, 0)]
|
||||
return account_ref, taxes_ref
|
||||
86
odoo-bringout-oca-ocb-l10n_sa/l10n_sa/models/account_move.py
Normal file
86
odoo-bringout-oca-ocb-l10n_sa/l10n_sa/models/account_move.py
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
import base64
|
||||
|
||||
from odoo import _, api, fields, models
|
||||
from odoo.exceptions import UserError
|
||||
from odoo.tools import float_repr, format_datetime
|
||||
|
||||
|
||||
class AccountMove(models.Model):
|
||||
_inherit = 'account.move'
|
||||
|
||||
l10n_sa_delivery_date = fields.Date(string='Supply Date',
|
||||
default=fields.Date.context_today,
|
||||
copy=False,
|
||||
readonly=True,
|
||||
states={'draft': [('readonly', False)]},
|
||||
help="""Date when the supply of the goods and services is performed.
|
||||
You can set this date to when you want ZATCA to recognize the VAT Due Liability as ZATCA will consider the earlier of this date and the Issue Date.
|
||||
In case of multiple deliveries, you should take the date of the latest one.""")
|
||||
l10n_sa_show_delivery_date = fields.Boolean(compute='_compute_show_delivery_date')
|
||||
l10n_sa_qr_code_str = fields.Char(string='Zatka QR Code', compute='_compute_qr_code_str')
|
||||
l10n_sa_confirmation_datetime = fields.Datetime(string='Confirmation Date',
|
||||
readonly=True,
|
||||
copy=False,
|
||||
help="""Date when the invoice is confirmed and posted.
|
||||
In other words, it is the date on which the invoice is generated as final document (after securing all internal approvals).""")
|
||||
|
||||
@api.depends('country_code', 'move_type')
|
||||
def _compute_show_delivery_date(self):
|
||||
for move in self:
|
||||
move.l10n_sa_show_delivery_date = move.country_code == 'SA' and move.move_type in ('out_invoice', 'out_refund')
|
||||
|
||||
@api.depends('amount_total_signed', 'amount_tax_signed', 'l10n_sa_confirmation_datetime', 'company_id', 'company_id.vat')
|
||||
def _compute_qr_code_str(self):
|
||||
""" Generate the qr code for Saudi e-invoicing. Specs are available at the following link at page 23
|
||||
https://zatca.gov.sa/ar/E-Invoicing/SystemsDevelopers/Documents/20210528_ZATCA_Electronic_Invoice_Security_Features_Implementation_Standards_vShared.pdf
|
||||
"""
|
||||
def get_qr_encoding(tag, field):
|
||||
company_name_byte_array = field.encode()
|
||||
company_name_tag_encoding = tag.to_bytes(length=1, byteorder='big')
|
||||
company_name_length_encoding = len(company_name_byte_array).to_bytes(length=1, byteorder='big')
|
||||
return company_name_tag_encoding + company_name_length_encoding + company_name_byte_array
|
||||
|
||||
for record in self:
|
||||
qr_code_str = ''
|
||||
if record.l10n_sa_confirmation_datetime and record.company_id.vat:
|
||||
seller_name_enc = get_qr_encoding(1, record.company_id.display_name)
|
||||
company_vat_enc = get_qr_encoding(2, record.company_id.vat)
|
||||
time_sa = fields.Datetime.context_timestamp(self.with_context(tz='Asia/Riyadh'), record.l10n_sa_confirmation_datetime)
|
||||
timestamp_enc = get_qr_encoding(3, time_sa.isoformat())
|
||||
totals = record._get_l10n_sa_totals()
|
||||
invoice_total_enc = get_qr_encoding(4, float_repr(abs(totals['total_amount']), 2))
|
||||
total_vat_enc = get_qr_encoding(5, float_repr(abs(totals['total_tax']), 2))
|
||||
|
||||
str_to_encode = seller_name_enc + company_vat_enc + timestamp_enc + invoice_total_enc + total_vat_enc
|
||||
qr_code_str = base64.b64encode(str_to_encode).decode()
|
||||
record.l10n_sa_qr_code_str = qr_code_str
|
||||
|
||||
def _post(self, soft=True):
|
||||
res = super()._post(soft)
|
||||
for record in self:
|
||||
if record.country_code == 'SA' and record.move_type in ('out_invoice', 'out_refund'):
|
||||
if not record.l10n_sa_show_delivery_date:
|
||||
raise UserError(_('Delivery Date cannot be empty'))
|
||||
if not record.l10n_sa_confirmation_datetime:
|
||||
record.l10n_sa_confirmation_datetime = fields.Datetime.now()
|
||||
return res
|
||||
|
||||
def get_l10n_sa_confirmation_datetime_sa_tz(self):
|
||||
self.ensure_one()
|
||||
return format_datetime(self.env, self.l10n_sa_confirmation_datetime, tz='Asia/Riyadh', dt_format='Y-MM-dd\nHH:mm:ss')
|
||||
|
||||
def _l10n_sa_reset_confirmation_datetime(self):
|
||||
self.filtered(lambda m: m.country_code == 'SA').l10n_sa_confirmation_datetime = False
|
||||
|
||||
def button_draft(self):
|
||||
self._l10n_sa_reset_confirmation_datetime()
|
||||
super().button_draft()
|
||||
|
||||
def _get_l10n_sa_totals(self):
|
||||
self.ensure_one()
|
||||
return {
|
||||
'total_amount': self.amount_total_signed,
|
||||
'total_tax': self.amount_tax_signed,
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.1 KiB |
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 110 KiB |
120
odoo-bringout-oca-ocb-l10n_sa/l10n_sa/views/report_invoice.xml
Normal file
120
odoo-bringout-oca-ocb-l10n_sa/l10n_sa/views/report_invoice.xml
Normal file
|
|
@ -0,0 +1,120 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<template id="arabic_english_invoice" inherit_id="l10n_gcc_invoice.arabic_english_invoice">
|
||||
<xpath expr="//div[@name='due_date']" position="after">
|
||||
<div class="row" t-if="o.l10n_sa_delivery_date" name="delivery_date">
|
||||
<div class="col-6"></div>
|
||||
<div class="col-2">
|
||||
<strong style="white-space:nowrap">Supply Date:
|
||||
</strong>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<span t-out="o.l10n_sa_delivery_date.strftime('%Y-%m-%d')"/>
|
||||
</div>
|
||||
<div class="col-2 text-end">
|
||||
<strong style="white-space:nowrap">:
|
||||
تاريخ التوريد
|
||||
</strong>
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
<xpath expr="//t[@t-set='address']" position="after">
|
||||
<t t-set="information_block">
|
||||
<div class="row">
|
||||
<p class="col-6 me-3">
|
||||
<img t-if="o.l10n_sa_qr_code_str"
|
||||
style="display:block;"
|
||||
t-att-src="'/report/barcode/?barcode_type=%s&value=%s&width=%s&height=%s'%('QR', quote_plus(o.l10n_sa_qr_code_str), 200, 200)"/>
|
||||
</p>
|
||||
<div class="col-6" t-if="o.partner_shipping_id and (o.partner_shipping_id != o.partner_id)" groups="account.group_delivery_invoice_address" name="shipping_address_block">
|
||||
<strong>Shipping Address:</strong>
|
||||
<div t-field="o.partner_shipping_id" t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}'/>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</xpath>
|
||||
<xpath expr="//th[@name='th_total']//span[2]" position="attributes">
|
||||
<attribute name="class">d-none</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//th[@name='th_total']//span[2]" position="after">
|
||||
<span>
|
||||
Subtotal<br/>(inclusive of VAT)
|
||||
</span>
|
||||
</xpath>
|
||||
<xpath expr="//th[@name='th_total']//span" position="attributes">
|
||||
<attribute name="class">d-none</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//th[@name='th_total']//span" position="after">
|
||||
<span>
|
||||
المجموع شامل ضريبة القيمة المضافة
|
||||
</span>
|
||||
</xpath>
|
||||
<xpath expr="//th[@name='th_subtotal']//span[2]" position="attributes">
|
||||
<attribute name="class">d-none</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//th[@name='th_subtotal']//span[2]" position="after">
|
||||
<span>
|
||||
Subtotal<br/>(exclusive of VAT)
|
||||
</span>
|
||||
</xpath>
|
||||
<xpath expr="//th[@name='th_subtotal']//span" position="attributes">
|
||||
<attribute name="class">d-none</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//th[@name='th_subtotal']//span" position="after">
|
||||
<span>
|
||||
المجموع الفرعي بدون الضريبة
|
||||
</span>
|
||||
</xpath>
|
||||
<xpath expr="//th[@name='th_taxes']//span" position="attributes">
|
||||
<attribute name="class">d-none</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//th[@name='th_taxes']//span" position="after">
|
||||
<span>
|
||||
نسبة الضريبة
|
||||
</span>
|
||||
</xpath>
|
||||
<xpath expr="//tr" position="attributes">
|
||||
<attribute name="style">font-size: 14px;</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//span[@t-field='line.l10n_gcc_invoice_tax_amount']" position="attributes">
|
||||
<attribute name="t-options">{"widget": "monetary", "display_currency": o.currency_id}</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//span[@t-field='line.price_unit']" position="attributes">
|
||||
<attribute name="t-options">{"widget": "monetary", "display_currency": o.currency_id}</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//div[hasclass('clearfix')]//strong" position="attributes">
|
||||
<attribute name="class">d-none</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//div[hasclass('clearfix')]//strong" position="after">
|
||||
<strong>
|
||||
Invoice Taxable Amount
|
||||
/<br/>
|
||||
المبلغ الخاضع للضريبة غير شامل ضريبة القيمة المضافة
|
||||
</strong>
|
||||
</xpath>
|
||||
<xpath expr="//tr[hasclass('o_total')]//strong" position="attributes">
|
||||
<attribute name="class">d-none</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//tr[hasclass('o_total')]//strong" position="after">
|
||||
<strong>
|
||||
Invoice Total (inclusive of VAT)
|
||||
/
|
||||
إجمالي قيمة الفاتورة شامل ضريبة القيمة المضافة
|
||||
</strong>
|
||||
</xpath>
|
||||
<xpath expr="//span[@t-field='o.invoice_date']" position="attributes">
|
||||
<attribute name="t-field"></attribute>
|
||||
<attribute name="t-out">o.invoice_date.strftime('%Y-%m-%d')</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//span[@t-field='o.invoice_date_due']" position="attributes">
|
||||
<attribute name="t-field"></attribute>
|
||||
<attribute name="t-out">o.invoice_date_due.strftime('%Y-%m-%d')</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//div[hasclass('clearfix')]" position="attributes">
|
||||
<attribute name="class">clearfix pt-2 pb-2</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//div[hasclass('page')]">
|
||||
<t t-set="additional_footer_text" t-value="o.get_l10n_sa_confirmation_datetime_sa_tz()"/> <!-- This is to show the issue date on the footer of all layouts. -->
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<template id="l10n_sa_additional_footer">
|
||||
<div t-if="report_type == 'pdf' and additional_footer_text" class="text-muted">
|
||||
<span t-out="additional_footer_text"/>
|
||||
</div>
|
||||
</template>
|
||||
<template id="l10n_sa_external_layout_striped" inherit_id="web.external_layout_striped">
|
||||
<div class="text-center" position="inside">
|
||||
<t t-call="l10n_sa.l10n_sa_additional_footer"/>
|
||||
</div>
|
||||
</template>
|
||||
<template id="l10n_sa_external_layout_boxed" inherit_id="web.external_layout_boxed">
|
||||
<div class="text-center" position="inside">
|
||||
<t t-call="l10n_sa.l10n_sa_additional_footer"/>
|
||||
</div>
|
||||
</template>
|
||||
<template id="l10n_sa_external_layout_bold" inherit_id="web.external_layout_bold">
|
||||
<xpath expr="//div[hasclass('col-4')]" position="inside">
|
||||
<t t-call="l10n_sa.l10n_sa_additional_footer"/>
|
||||
</xpath>
|
||||
</template>
|
||||
<template id="l10n_sa_external_layout_standard" inherit_id="web.external_layout_standard">
|
||||
<div class="text-center" position="inside">
|
||||
<t t-call="l10n_sa.l10n_sa_additional_footer"/>
|
||||
</div>
|
||||
</template>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<odoo>
|
||||
<data>
|
||||
<record id="view_move_form" model="ir.ui.view">
|
||||
<field name="name">account.move.deliver_date</field>
|
||||
<field name="model">account.move</field>
|
||||
<field name="inherit_id" ref="account.view_move_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="invoice_date" position="after">
|
||||
<field name="l10n_sa_show_delivery_date" invisible="1"/>
|
||||
<field name="l10n_sa_delivery_date" attrs="{'invisible': [('l10n_sa_show_delivery_date', '=', False)], 'required': [('l10n_sa_show_delivery_date', '=', True)]}"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
43
odoo-bringout-oca-ocb-l10n_sa/pyproject.toml
Normal file
43
odoo-bringout-oca-ocb-l10n_sa/pyproject.toml
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
[project]
|
||||
name = "odoo-bringout-oca-ocb-l10n_sa"
|
||||
version = "16.0.0"
|
||||
description = "Saudi Arabia - Accounting - Odoo addon"
|
||||
authors = [
|
||||
{ name = "Ernad Husremovic", email = "hernad@bring.out.ba" }
|
||||
]
|
||||
dependencies = [
|
||||
"odoo-bringout-oca-ocb-l10n_multilang>=16.0.0",
|
||||
"odoo-bringout-oca-ocb-l10n_gcc_invoice>=16.0.0",
|
||||
"requests>=2.25.1"
|
||||
]
|
||||
readme = "README.md"
|
||||
requires-python = ">= 3.11"
|
||||
classifiers = [
|
||||
"Development Status :: 5 - Production/Stable",
|
||||
"Intended Audience :: Developers",
|
||||
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Topic :: Office/Business",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
homepage = "https://github.com/bringout/0"
|
||||
repository = "https://github.com/bringout/0"
|
||||
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[tool.hatch.metadata]
|
||||
allow-direct-references = true
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["l10n_sa"]
|
||||
|
||||
[tool.rye]
|
||||
managed = true
|
||||
dev-dependencies = [
|
||||
"pytest>=8.4.1",
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue