mirror of
https://github.com/bringout/oca-ocb-l10n_asia-pacific.git
synced 2026-04-26 22:02:06 +02:00
Initial commit: L10N_Asia Pacific packages
This commit is contained in:
commit
54c86b612c
828 changed files with 58224 additions and 0 deletions
56
odoo-bringout-oca-ocb-l10n_sg/README.md
Normal file
56
odoo-bringout-oca-ocb-l10n_sg/README.md
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
# Singapore - Accounting
|
||||
|
||||
|
||||
Singapore accounting chart and localization.
|
||||
=======================================================
|
||||
|
||||
This module add, for accounting:
|
||||
- The Chart of Accounts of Singapore
|
||||
- Field UEN (Unique Entity Number) on company and partner
|
||||
- Field PermitNo and PermitNoDate on invoice
|
||||
|
||||
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
pip install odoo-bringout-oca-ocb-l10n_sg
|
||||
```
|
||||
|
||||
## Dependencies
|
||||
|
||||
This addon depends on:
|
||||
- base
|
||||
- account
|
||||
|
||||
## Manifest Information
|
||||
|
||||
- **Name**: Singapore - Accounting
|
||||
- **Version**: 2.2
|
||||
- **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_sg`.
|
||||
|
||||
## 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_sg/doc/ARCHITECTURE.md
Normal file
32
odoo-bringout-oca-ocb-l10n_sg/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_sg Module - l10n_sg
|
||||
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_sg/doc/CONFIGURATION.md
Normal file
3
odoo-bringout-oca-ocb-l10n_sg/doc/CONFIGURATION.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Configuration
|
||||
|
||||
Refer to Odoo settings for l10n_sg. Configure related models, access rights, and options as needed.
|
||||
3
odoo-bringout-oca-ocb-l10n_sg/doc/CONTROLLERS.md
Normal file
3
odoo-bringout-oca-ocb-l10n_sg/doc/CONTROLLERS.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Controllers
|
||||
|
||||
This module does not define custom HTTP controllers.
|
||||
6
odoo-bringout-oca-ocb-l10n_sg/doc/DEPENDENCIES.md
Normal file
6
odoo-bringout-oca-ocb-l10n_sg/doc/DEPENDENCIES.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# Dependencies
|
||||
|
||||
This addon depends on:
|
||||
|
||||
- base
|
||||
- [account](../../odoo-bringout-oca-ocb-account)
|
||||
4
odoo-bringout-oca-ocb-l10n_sg/doc/FAQ.md
Normal file
4
odoo-bringout-oca-ocb-l10n_sg/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_sg or install in UI.
|
||||
7
odoo-bringout-oca-ocb-l10n_sg/doc/INSTALL.md
Normal file
7
odoo-bringout-oca-ocb-l10n_sg/doc/INSTALL.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# Install
|
||||
|
||||
```bash
|
||||
pip install odoo-bringout-oca-ocb-l10n_sg"
|
||||
# or
|
||||
uv pip install odoo-bringout-oca-ocb-l10n_sg"
|
||||
```
|
||||
17
odoo-bringout-oca-ocb-l10n_sg/doc/MODELS.md
Normal file
17
odoo-bringout-oca-ocb-l10n_sg/doc/MODELS.md
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# Models
|
||||
|
||||
Detected core models and extensions in l10n_sg.
|
||||
|
||||
```mermaid
|
||||
classDiagram
|
||||
class res_company
|
||||
class res_partner
|
||||
class account_chart_template
|
||||
class account_move
|
||||
class res_company
|
||||
class res_partner
|
||||
```
|
||||
|
||||
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_sg/doc/OVERVIEW.md
Normal file
6
odoo-bringout-oca-ocb-l10n_sg/doc/OVERVIEW.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# Overview
|
||||
|
||||
Packaged Odoo addon: l10n_sg. Provides features documented in upstream Odoo 16 under this addon.
|
||||
|
||||
- Source: OCA/OCB 16.0, addon l10n_sg
|
||||
- License: LGPL-3
|
||||
3
odoo-bringout-oca-ocb-l10n_sg/doc/REPORTS.md
Normal file
3
odoo-bringout-oca-ocb-l10n_sg/doc/REPORTS.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Reports
|
||||
|
||||
This module does not define custom reports.
|
||||
8
odoo-bringout-oca-ocb-l10n_sg/doc/SECURITY.md
Normal file
8
odoo-bringout-oca-ocb-l10n_sg/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_sg/doc/TROUBLESHOOTING.md
Normal file
5
odoo-bringout-oca-ocb-l10n_sg/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_sg/doc/USAGE.md
Normal file
7
odoo-bringout-oca-ocb-l10n_sg/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_sg
|
||||
```
|
||||
3
odoo-bringout-oca-ocb-l10n_sg/doc/WIZARDS.md
Normal file
3
odoo-bringout-oca-ocb-l10n_sg/doc/WIZARDS.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Wizards
|
||||
|
||||
This module does not include UI wizards.
|
||||
9
odoo-bringout-oca-ocb-l10n_sg/l10n_sg/__init__.py
Normal file
9
odoo-bringout-oca-ocb-l10n_sg/l10n_sg/__init__.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
# Copyright (C) 2014 Tech Receptives (<http://techreceptives.com>).
|
||||
from . import models
|
||||
|
||||
def _preserve_tag_on_taxes(cr, registry):
|
||||
from odoo.addons.account.models.chart_template import preserve_existing_tags_on_taxes
|
||||
preserve_existing_tags_on_taxes(cr, registry, 'l10n_sg')
|
||||
38
odoo-bringout-oca-ocb-l10n_sg/l10n_sg/__manifest__.py
Normal file
38
odoo-bringout-oca-ocb-l10n_sg/l10n_sg/__manifest__.py
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
# Copyright (C) 2014 Tech Receptives (<http://techreceptives.com>)
|
||||
|
||||
{
|
||||
'name': 'Singapore - Accounting',
|
||||
'author': 'Tech Receptives',
|
||||
'version': '2.2',
|
||||
'category': 'Accounting/Localizations/Account Charts',
|
||||
'description': """
|
||||
Singapore accounting chart and localization.
|
||||
=======================================================
|
||||
|
||||
This module add, for accounting:
|
||||
- The Chart of Accounts of Singapore
|
||||
- Field UEN (Unique Entity Number) on company and partner
|
||||
- Field PermitNo and PermitNoDate on invoice
|
||||
|
||||
""",
|
||||
'depends': ['base', 'account'],
|
||||
'data': [
|
||||
'data/l10n_sg_chart_data.xml',
|
||||
'data/account_tax_group_data.xml',
|
||||
'data/account_tax_report_data.xml',
|
||||
'data/account_tax_data.xml',
|
||||
'data/account_tax_template_data_2024.xml',
|
||||
'data/account_chart_template_data.xml',
|
||||
'views/account_invoice_view.xml',
|
||||
'views/res_company_view.xml',
|
||||
'views/res_partner_view.xml',
|
||||
],
|
||||
'demo': [
|
||||
'demo/demo_company.xml',
|
||||
],
|
||||
'post_init_hook': '_preserve_tag_on_taxes',
|
||||
'license': 'LGPL-3',
|
||||
}
|
||||
|
|
@ -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_sg.sg_chart_template')]"/>
|
||||
</function>
|
||||
</data>
|
||||
</odoo>
|
||||
1135
odoo-bringout-oca-ocb-l10n_sg/l10n_sg/data/account_tax_data.xml
Normal file
1135
odoo-bringout-oca-ocb-l10n_sg/l10n_sg/data/account_tax_data.xml
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
<record id="tax_group_0" model="account.tax.group">
|
||||
<field name="name">TAX 0%</field>
|
||||
<field name="country_id" ref="base.sg"/>
|
||||
</record>
|
||||
<record id="tax_group_8" model="account.tax.group">
|
||||
<field name="name">TAX 8%</field>
|
||||
<field name="country_id" ref="base.sg"/>
|
||||
</record>
|
||||
<record id="tax_group_7" model="account.tax.group">
|
||||
<field name="name">TAX 7%</field>
|
||||
<field name="country_id" ref="base.sg"/>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,145 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="tax_report" model="account.report">
|
||||
<field name="name">Singapore Tax Report</field>
|
||||
<field name="root_report_id" ref="account.generic_tax_report"/>
|
||||
<field name="country_id" ref="base.sg"/>
|
||||
<field name="filter_fiscal_position" eval="True"/>
|
||||
<field name="availability_condition">country</field>
|
||||
<field name="column_ids">
|
||||
<record id="tax_report_balance" model="account.report.column">
|
||||
<field name="name">Balance</field>
|
||||
<field name="expression_label">balance</field>
|
||||
</record>
|
||||
</field>
|
||||
<field name="line_ids">
|
||||
<record id="account_tax_report_line_supplies" model="account.report.line">
|
||||
<field name="name">Supplies</field>
|
||||
<field name="aggregation_formula">BOX1.balance + BOX2.balance + BOX3.balance</field>
|
||||
<field name="children_ids">
|
||||
<record id="account_tax_report_line_std_rated_supplies" model="account.report.line">
|
||||
<field name="name">Box 1 - Total value of standard-rated supplies</field>
|
||||
<field name="code">BOX1</field>
|
||||
<field name="expression_ids">
|
||||
<record id="account_tax_report_line_std_rated_supplies_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Box 1</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="account_tax_report_line_zero_rated_supplies" model="account.report.line">
|
||||
<field name="name">Box 2 - Total value of zero-rated supplies</field>
|
||||
<field name="code">BOX2</field>
|
||||
<field name="expression_ids">
|
||||
<record id="account_tax_report_line_zero_rated_supplies_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Box 2</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="account_tax_report_line_exempt_supplies" model="account.report.line">
|
||||
<field name="name">Box 3 - Total value of exempt supplies</field>
|
||||
<field name="code">BOX3</field>
|
||||
<field name="expression_ids">
|
||||
<record id="account_tax_report_line_exempt_supplies_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Box 3</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="account_tax_report_line_total_supplies" model="account.report.line">
|
||||
<field name="name">Box 4 - Total value of (1) + (2) + (3)</field>
|
||||
<field name="aggregation_formula">BOX1.balance + BOX2.balance + BOX3.balance</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="account_tax_report_line_purchases" model="account.report.line">
|
||||
<field name="name">Purchases</field>
|
||||
<field name="aggregation_formula">BOX_5.balance</field>
|
||||
<field name="children_ids">
|
||||
<record id="account_tax_report_line_total_taxable_purchases" model="account.report.line">
|
||||
<field name="name">Box 5 - Total value of taxable purchases</field>
|
||||
<field name="code">BOX_5</field>
|
||||
<field name="expression_ids">
|
||||
<record id="account_tax_report_line_total_taxable_purchases_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Box 5</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="account_tax_report_line_taxes" model="account.report.line">
|
||||
<field name="name">Taxes</field>
|
||||
<field name="aggregation_formula">BOX6.balance + BOX7.balance</field>
|
||||
<field name="children_ids">
|
||||
<record id="account_tax_report_line_output_tax_due" model="account.report.line">
|
||||
<field name="name">Box 6 - Output tax due</field>
|
||||
<field name="code">BOX6</field>
|
||||
<field name="expression_ids">
|
||||
<record id="account_tax_report_line_output_tax_due_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Box 6</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="account_tax_report_line_inp_tax_refund_claim" model="account.report.line">
|
||||
<field name="name">Box 7 - Less : Input tax and refunds claimed</field>
|
||||
<field name="code">BOX7</field>
|
||||
<field name="expression_ids">
|
||||
<record id="account_tax_report_line_inp_tax_refund_claim_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Box 7</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="account_tax_report_line_total_gst_paid_iras" model="account.report.line">
|
||||
<field name="name">Box 8 - Equals : Net GST to be paid to IRAS</field>
|
||||
<field name="aggregation_formula">BOX6.balance - BOX7.balance</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="account_tax_report_line_applicable" model="account.report.line">
|
||||
<field name="name">Applicable to Taxable Persons under Major Exported Scheme / Approved 3rd Party Logistics Company / Other Approved Schemes Only</field>
|
||||
<field name="aggregation_formula">BOX_9.balance</field>
|
||||
<field name="children_ids">
|
||||
<record id="account_tax_report_line_applicable_goods_imported_value" model="account.report.line">
|
||||
<field name="name">Box 9 - Total value of goods imported under this scheme</field>
|
||||
<field name="code">BOX_9</field>
|
||||
<field name="expression_ids">
|
||||
<record id="account_tax_report_line_applicable_goods_imported_value_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Box 9</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="account_tax_report_line_revenues" model="account.report.line">
|
||||
<field name="name">Revenue</field>
|
||||
<field name="aggregation_formula">BOX_13.balance</field>
|
||||
<field name="children_ids">
|
||||
<record id="account_tax_report_line_revenues_accounting_period" model="account.report.line">
|
||||
<field name="name">Box 13 - Revenue for the accounting period</field>
|
||||
<field name="code">BOX_13</field>
|
||||
<field name="expression_ids">
|
||||
<record id="account_tax_report_line_revenues_accounting_period_formula" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">aggregation</field>
|
||||
<field name="formula">OPINC.balance</field>
|
||||
<field name="subformula">cross_report</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,412 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
<record id="tax_group_9" model="account.tax.group">
|
||||
<field name="name">TAX 9%</field>
|
||||
</record>
|
||||
</data>
|
||||
|
||||
<record id="sg_sale_tax_ds_9" model="account.tax.template">
|
||||
<field name="name">Sales Tax 9% DS</field>
|
||||
<field name="description">9% DS</field>
|
||||
<field name="price_include" eval="0"/>
|
||||
<field name="amount">9</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="type_tax_use">sale</field>
|
||||
<field name="chart_template_id" ref="sg_chart_template"/>
|
||||
<field name="tax_group_id" ref="tax_group_9"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('account_tax_report_line_std_rated_supplies_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('account_account_792'),
|
||||
'plus_report_expression_ids': [ref('account_tax_report_line_output_tax_due_tag')],
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('account_tax_report_line_std_rated_supplies_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('account_account_792'),
|
||||
'minus_report_expression_ids': [ref('account_tax_report_line_output_tax_due_tag')],
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
|
||||
<record id="sg_sale_tax_sr_9" model="account.tax.template">
|
||||
<field name="name">Sales Tax 9% SR</field>
|
||||
<field name="description">9% SR</field>
|
||||
<field name="price_include" eval="0"/>
|
||||
<field name="amount">9</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="type_tax_use">sale</field>
|
||||
<field name="chart_template_id" ref="sg_chart_template"/>
|
||||
<field name="tax_group_id" ref="tax_group_9"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('account_tax_report_line_std_rated_supplies_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('account_account_796'),
|
||||
'plus_report_expression_ids': [ref('account_tax_report_line_output_tax_due_tag')],
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('account_tax_report_line_std_rated_supplies_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('account_account_796'),
|
||||
'minus_report_expression_ids': [ref('account_tax_report_line_output_tax_due_tag')],
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
|
||||
<record id="sg_sale_tax_srca_c_9" model="account.tax.template">
|
||||
<field name="name">Sales Tax 9% SRCA-C</field>
|
||||
<field name="description">9% SRCA-C</field>
|
||||
<field name="price_include" eval="0"/>
|
||||
<field name="amount">9</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="type_tax_use">sale</field>
|
||||
<field name="chart_template_id" ref="sg_chart_template"/>
|
||||
<field name="tax_group_id" ref="tax_group_9"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('account_tax_report_line_std_rated_supplies_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('account_account_798'),
|
||||
'plus_report_expression_ids': [ref('account_tax_report_line_output_tax_due_tag')],
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('account_tax_report_line_std_rated_supplies_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('account_account_798'),
|
||||
'minus_report_expression_ids': [ref('account_tax_report_line_output_tax_due_tag')],
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
|
||||
<record id="sg_purchase_tax_txn33_9" model="account.tax.template">
|
||||
<field name="name">Purchase Tax 9% TX-N33</field>
|
||||
<field name="description">9% TX-N33</field>
|
||||
<field name="price_include" eval="0"/>
|
||||
<field name="amount">9</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="chart_template_id" ref="sg_chart_template"/>
|
||||
<field name="tax_group_id" ref="tax_group_9"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('account_tax_report_line_total_taxable_purchases_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('account_account_738'),
|
||||
'plus_report_expression_ids': [ref('account_tax_report_line_inp_tax_refund_claim_tag')],
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('account_tax_report_line_total_taxable_purchases_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('account_account_738'),
|
||||
'minus_report_expression_ids': [ref('account_tax_report_line_inp_tax_refund_claim_tag')],
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
|
||||
<record id="sg_purchase_tax_txe33_9" model="account.tax.template">
|
||||
<field name="name">Purchase Tax 9% TX-E33</field>
|
||||
<field name="description">9% TX-E33</field>
|
||||
<field name="price_include" eval="0"/>
|
||||
<field name="amount">9</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="chart_template_id" ref="sg_chart_template"/>
|
||||
<field name="tax_group_id" ref="tax_group_9"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('account_tax_report_line_total_taxable_purchases_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('account_account_739'),
|
||||
'plus_report_expression_ids': [ref('account_tax_report_line_inp_tax_refund_claim_tag')],
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('account_tax_report_line_total_taxable_purchases_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('account_account_739'),
|
||||
'minus_report_expression_ids': [ref('account_tax_report_line_inp_tax_refund_claim_tag')],
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
|
||||
<record id="sg_purchase_tax_bl_9" model="account.tax.template">
|
||||
<field name="name">Purchase Tax 9% BL</field>
|
||||
<field name="description">9% BL</field>
|
||||
<field name="price_include" eval="0"/>
|
||||
<field name="amount">9</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="chart_template_id" ref="sg_chart_template"/>
|
||||
<field name="tax_group_id" ref="tax_group_9"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'base',
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('account_account_740'),
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'base',
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('account_account_740'),
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
|
||||
<record id="sg_purchase_tax_im_9" model="account.tax.template">
|
||||
<field name="name">Purchase Tax 9% IM</field>
|
||||
<field name="description">9% IM</field>
|
||||
<field name="price_include" eval="0"/>
|
||||
<field name="amount">9</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="chart_template_id" ref="sg_chart_template"/>
|
||||
<field name="tax_group_id" ref="tax_group_9"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('account_tax_report_line_total_taxable_purchases_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('account_account_741'),
|
||||
'plus_report_expression_ids': [ref('account_tax_report_line_inp_tax_refund_claim_tag')],
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('account_tax_report_line_total_taxable_purchases_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('account_account_741'),
|
||||
'minus_report_expression_ids': [ref('account_tax_report_line_inp_tax_refund_claim_tag')],
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
|
||||
<record id="sg_purchase_tax_txre_9" model="account.tax.template">
|
||||
<field name="name">Purchase Tax 9% TX-RE</field>
|
||||
<field name="description">9% TX-RE</field>
|
||||
<field name="price_include" eval="0"/>
|
||||
<field name="amount">9</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="chart_template_id" ref="sg_chart_template"/>
|
||||
<field name="tax_group_id" ref="tax_group_9"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('account_tax_report_line_total_taxable_purchases_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('account_account_742'),
|
||||
'plus_report_expression_ids': [ref('account_tax_report_line_inp_tax_refund_claim_tag')],
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('account_tax_report_line_total_taxable_purchases_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('account_account_742'),
|
||||
'minus_report_expression_ids': [ref('account_tax_report_line_inp_tax_refund_claim_tag')],
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
|
||||
<record id="sg_purchase_tax_igds_9" model="account.tax.template">
|
||||
<field name="name">Purchase Tax 9% IGDS</field>
|
||||
<field name="description">9% IGDS</field>
|
||||
<field name="price_include" eval="0"/>
|
||||
<field name="amount">9</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="chart_template_id" ref="sg_chart_template"/>
|
||||
<field name="tax_group_id" ref="tax_group_9"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('account_tax_report_line_total_taxable_purchases_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('account_account_743'),
|
||||
'plus_report_expression_ids': [ref('account_tax_report_line_inp_tax_refund_claim_tag')],
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('account_tax_report_line_total_taxable_purchases_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('account_account_743'),
|
||||
'minus_report_expression_ids': [ref('account_tax_report_line_inp_tax_refund_claim_tag')],
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
|
||||
<record id="sg_purchase_tax_tx8_9" model="account.tax.template">
|
||||
<field name="name">Purchase Tax 9% TX9</field>
|
||||
<field name="description">9% TX9</field>
|
||||
<field name="price_include" eval="0"/>
|
||||
<field name="amount">9</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="chart_template_id" ref="sg_chart_template"/>
|
||||
<field name="tax_group_id" ref="tax_group_9"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('account_tax_report_line_total_taxable_purchases_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('account_account_749'),
|
||||
'plus_report_expression_ids': [ref('account_tax_report_line_inp_tax_refund_claim_tag')],
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('account_tax_report_line_total_taxable_purchases_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('account_account_749'),
|
||||
'minus_report_expression_ids': [ref('account_tax_report_line_inp_tax_refund_claim_tag')],
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
|
||||
<record id="sg_purchase_tax_txca_9" model="account.tax.template">
|
||||
<field name="name">Purchase Tax 9% TXCA</field>
|
||||
<field name="description">9% TXCA</field>
|
||||
<field name="price_include" eval="0"/>
|
||||
<field name="amount">9</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="chart_template_id" ref="sg_chart_template"/>
|
||||
<field name="tax_group_id" ref="tax_group_9"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('account_tax_report_line_total_taxable_purchases_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('account_account_750'),
|
||||
'plus_report_expression_ids': [ref('account_tax_report_line_inp_tax_refund_claim_tag')],
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('account_tax_report_line_total_taxable_purchases_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('account_account_750'),
|
||||
'minus_report_expression_ids': [ref('account_tax_report_line_inp_tax_refund_claim_tag')],
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
1188
odoo-bringout-oca-ocb-l10n_sg/l10n_sg/data/l10n_sg_chart_data.xml
Normal file
1188
odoo-bringout-oca-ocb-l10n_sg/l10n_sg/data/l10n_sg_chart_data.xml
Normal file
File diff suppressed because it is too large
Load diff
34
odoo-bringout-oca-ocb-l10n_sg/l10n_sg/demo/demo_company.xml
Normal file
34
odoo-bringout-oca-ocb-l10n_sg/l10n_sg/demo/demo_company.xml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="partner_demo_company_sg" model="res.partner">
|
||||
<field name="name">SG Company</field>
|
||||
<field name="vat">197401143C</field>
|
||||
<field name="l10n_sg_unique_entity_number">201131415A</field>
|
||||
<field name="street">Tyersall Avenue</field>
|
||||
<field name="city">Central Singapore</field>
|
||||
<field name="country_id" ref="base.sg"/>
|
||||
<field name="zip">248048</field>
|
||||
<field name="phone">+65 9123 4567</field>
|
||||
<field name="email">info@company.sg.example.com</field>
|
||||
<field name="website">www.sg.example.com</field>
|
||||
</record>
|
||||
|
||||
<record id="demo_company_sg" model="res.company">
|
||||
<field name="name">SG Company</field>
|
||||
<field name="partner_id" ref="partner_demo_company_sg"/>
|
||||
</record>
|
||||
|
||||
<function model="res.company" name="_onchange_country_id">
|
||||
<value eval="[ref('demo_company_sg')]"/>
|
||||
</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_sg.demo_company_sg'))]}"/>
|
||||
</function>
|
||||
|
||||
<function model="account.chart.template" name="try_loading">
|
||||
<value eval="[ref('l10n_sg.sg_chart_template')]"/>
|
||||
<value model="res.company" eval="obj().env.ref('l10n_sg.demo_company_sg')"/>
|
||||
</function>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
from odoo.addons.account.models.chart_template import update_taxes_from_templates
|
||||
|
||||
|
||||
def migrate(cr, version):
|
||||
update_taxes_from_templates(cr, 'l10n_sg.sg_chart_template')
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
from odoo.addons.account.models.chart_template import update_taxes_from_templates
|
||||
|
||||
|
||||
def migrate(cr, version):
|
||||
update_taxes_from_templates(cr, 'l10n_sg.sg_chart_template')
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
from openerp.modules.registry import RegistryManager
|
||||
|
||||
def migrate(cr, version):
|
||||
registry = RegistryManager.get(cr.dbname)
|
||||
from openerp.addons.account.models.chart_template import migrate_set_tags_and_taxes_updatable
|
||||
migrate_set_tags_and_taxes_updatable(cr, registry, 'l10n_sg')
|
||||
9
odoo-bringout-oca-ocb-l10n_sg/l10n_sg/models/__init__.py
Normal file
9
odoo-bringout-oca-ocb-l10n_sg/l10n_sg/models/__init__.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
# Copyright (C) 2014 Tech Receptives (<http://techreceptives.com>).
|
||||
|
||||
from . import account_move
|
||||
from . import chart_template
|
||||
from . import res_company
|
||||
from . import res_partner
|
||||
11
odoo-bringout-oca-ocb-l10n_sg/l10n_sg/models/account_move.py
Normal file
11
odoo-bringout-oca-ocb-l10n_sg/l10n_sg/models/account_move.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class AccountMove(models.Model):
|
||||
_inherit = 'account.move'
|
||||
|
||||
l10n_sg_permit_number = fields.Char(string="Permit No.")
|
||||
|
||||
l10n_sg_permit_number_date = fields.Date(string="Date of permit number")
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
# 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 _load(self, company):
|
||||
res = super()._load(company)
|
||||
if company.chart_template_id == self.env.ref('l10n_sg.sg_chart_template'):
|
||||
company.write({
|
||||
'account_sale_tax_id': self.env.ref(f'l10n_sg.{company.id}_sg_sale_tax_sr_9').id,
|
||||
'account_purchase_tax_id': self.env.ref(f'l10n_sg.{company.id}_sg_purchase_tax_tx8_9').id,
|
||||
})
|
||||
return res
|
||||
18
odoo-bringout-oca-ocb-l10n_sg/l10n_sg/models/res_company.py
Normal file
18
odoo-bringout-oca-ocb-l10n_sg/l10n_sg/models/res_company.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
class ResCompany(models.Model):
|
||||
_name = 'res.company'
|
||||
_description = 'Companies'
|
||||
_inherit = 'res.company'
|
||||
|
||||
l10n_sg_unique_entity_number = fields.Char(string='UEN', related="partner_id.l10n_sg_unique_entity_number", readonly=False)
|
||||
|
||||
def _get_view(self, view_id=None, view_type='form', **options):
|
||||
arch, view = super()._get_view(view_id, view_type, **options)
|
||||
company_vat_label = self.env.company.country_id.vat_label
|
||||
if company_vat_label:
|
||||
for node in arch.iterfind(".//field[@name='vat']"):
|
||||
node.set("string", company_vat_label)
|
||||
return arch, view
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
class ResPartner(models.Model):
|
||||
_name = 'res.partner'
|
||||
_inherit = 'res.partner'
|
||||
|
||||
l10n_sg_unique_entity_number = fields.Char(string='UEN')
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 90 KiB |
|
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="view_invoice_form_l10n_sg" model="ir.ui.view">
|
||||
<field name="name">l10n_sg.invoice.form</field>
|
||||
<field name="model">account.move</field>
|
||||
<field name="inherit_id" ref="account.view_move_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='fiscal_position_id']" position="after">
|
||||
<field name="l10n_sg_permit_number"/>
|
||||
<field name="l10n_sg_permit_number_date"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="view_company_form_l10n_sg" model="ir.ui.view">
|
||||
<field name="name">l10n_sg.company.form</field>
|
||||
<field name="model">res.company</field>
|
||||
<field name="inherit_id" ref="base.view_company_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='email']" position="after">
|
||||
<field name="l10n_sg_unique_entity_number" attrs="{'invisible': [('country_code', '!=', 'SG')]}"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="view_partner_form_l10n_sg" model="ir.ui.view">
|
||||
<field name="name">l10n_sg.partner.form</field>
|
||||
<field name="model">res.partner</field>
|
||||
<field name="inherit_id" ref="base.view_partner_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='vat']" position="before">
|
||||
<field name="l10n_sg_unique_entity_number"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
43
odoo-bringout-oca-ocb-l10n_sg/pyproject.toml
Normal file
43
odoo-bringout-oca-ocb-l10n_sg/pyproject.toml
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
[project]
|
||||
name = "odoo-bringout-oca-ocb-l10n_sg"
|
||||
version = "16.0.0"
|
||||
description = "Singapore - Accounting - Odoo addon"
|
||||
authors = [
|
||||
{ name = "Ernad Husremovic", email = "hernad@bring.out.ba" }
|
||||
]
|
||||
dependencies = [
|
||||
"odoo-bringout-oca-ocb-base>=16.0.0",
|
||||
"odoo-bringout-oca-ocb-account>=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_sg"]
|
||||
|
||||
[tool.rye]
|
||||
managed = true
|
||||
dev-dependencies = [
|
||||
"pytest>=8.4.1",
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue