19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:16 +01:00
parent 89c6e82fe7
commit 1b82c20a58
572 changed files with 43570 additions and 53303 deletions

View file

@ -1,8 +1,6 @@
# United States - Accounting
# United States - Localizations
United States - Chart of accounts.
==================================
## Installation
@ -13,37 +11,14 @@ pip install odoo-bringout-oca-ocb-l10n_us
## Dependencies
This addon depends on:
- l10n_generic_coa
## Manifest Information
- **Name**: United States - Accounting
- **Version**: 1.1
- **Category**: Accounting/Localizations/Account Charts
- **License**: LGPL-3
- **Installable**: False
- base
## Source
Based on [OCA/OCB](https://github.com/OCA/OCB) branch 16.0, addon `l10n_us`.
- Repository: https://github.com/OCA/OCB
- Branch: 19.0
- Path: addons/l10n_us
## 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
This package preserves the original LGPL-3 license.

View file

@ -2,17 +2,22 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'United States - Accounting',
'name': 'United States - Localizations',
'website': 'https://www.odoo.com/documentation/latest/applications/finance/fiscal_localizations.html',
'icon': '/account/static/description/l10n.png',
'countries': ['us'],
'version': '1.1',
'category': 'Accounting/Localizations/Account Charts',
'description': """
United States - Chart of accounts.
==================================
""",
'depends': ['l10n_generic_coa'],
'depends': ['base'],
'data': [
'data/res_company_data.xml',
'views/res_partner_bank_views.xml'
],
'demo': [
'demo/demo_company.xml',
],
'author': 'Odoo S.A.',
'license': 'LGPL-3',
}

View file

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="partner_demo_company_us" model="res.partner">
<field name="name">My US Company</field>
<field name="is_company" eval="True"/>
<field name="street">1034 Wildwood Street</field>
<field name="city">Millersburg</field>
<field name="zip">44654</field>
<field name="country_id" ref="base.us"/>
<field name="state_id" ref="base.state_us_30"/>
<field name="phone">+1 555-555-5556</field>
</record>
<record id="demo_company_us" model="res.company">
<field name="name">My US Company</field>
<field name="partner_id" ref="partner_demo_company_us"/>
<field name="paperformat_id" ref="base.paperformat_us"/>
</record>
<record id="demo_bank_us" model="res.partner.bank">
<field name="acc_number">BKIGRWRR</field>
<field name="partner_id" ref="partner_demo_company_us"/>
<field name="company_id" ref="demo_company_us"/>
</record>
<function model="res.company" name="_onchange_country_id">
<value eval="[ref('demo_company_us')]"/>
</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_us.demo_company_us'))]}"/>
</function>
</odoo>

View file

@ -0,0 +1,158 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_us
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 19.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-12-30 19:09+0000\n"
"PO-Revision-Date: 2025-12-30 19:09+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: l10n_us
#: model_terms:ir.ui.view,arch_db:l10n_us.view_partner_bank_form_inherit_l10n_us
msgid "ABA/Routing"
msgstr ""
#. module: l10n_us
#. odoo-python
#: code:addons/l10n_us/models/res_partner_bank.py:0
msgid "ABA/Routing should only contain numbers (maximum 9 digits)."
msgstr ""
#. module: l10n_us
#: model_terms:res.company,invoice_terms_html:l10n_us.demo_company_us
msgid ""
"All our contractual relations will be governed exclusively by United States "
"law."
msgstr ""
#. module: l10n_us
#: model:ir.model.fields,field_description:l10n_us.field_res_partner_bank__l10n_us_bank_account_type
msgid "Bank Account Type"
msgstr ""
#. module: l10n_us
#: model:ir.model,name:l10n_us.model_res_partner_bank
msgid "Bank Accounts"
msgstr ""
#. module: l10n_us
#: model_terms:res.company,invoice_terms_html:l10n_us.demo_company_us
msgid ""
"Below text serves as a suggestion and doesnt engage Odoo S.A. "
"responsibility."
msgstr ""
#. module: l10n_us
#: model_terms:res.company,invoice_terms_html:l10n_us.demo_company_us
msgid ""
"Certain countries apply withholding at source on the amount of invoices, in "
"accordance with their internal legislation. Any withholding at source will "
"be paid by the client to the tax authorities. Under no circumstances can My "
"US Company become involved in costs related to a country's legislation. The "
"amount of the invoice will therefore be due to My US Company in its entirety"
" and does not include any costs relating to the legislation of the country "
"in which the client is located."
msgstr ""
#. module: l10n_us
#: model:ir.model.fields.selection,name:l10n_us.selection__res_partner_bank__l10n_us_bank_account_type__checking
msgid "Checking"
msgstr ""
#. module: l10n_us
#: model:ir.model.fields,field_description:l10n_us.field_res_partner_bank__display_name
msgid "Display Name"
msgstr ""
#. module: l10n_us
#: model:ir.model.fields,field_description:l10n_us.field_res_partner_bank__id
msgid "ID"
msgstr ""
#. module: l10n_us
#: model_terms:res.company,invoice_terms_html:l10n_us.demo_company_us
msgid ""
"If a payment is still outstanding more than sixty (60) days after the due "
"payment date, My US Company reserves the right to call on the services of a "
"debt recovery company. All legal expenses will be payable by the client."
msgstr ""
#. module: l10n_us
#: model_terms:res.company,invoice_terms_html:l10n_us.demo_company_us
msgid ""
"In order for it to be admissible, My US Company must be notified of any "
"claim by means of a letter sent by recorded delivery to its registered "
"office within 8 days of the delivery of the goods or the provision of the "
"services."
msgstr ""
#. module: l10n_us
#: model_terms:res.company,invoice_terms_html:l10n_us.demo_company_us
msgid ""
"My US Company undertakes to do its best to supply performant services in due"
" time in accordance with the agreed timeframes. However, none of its "
"obligations can be considered as being an obligation to achieve results. My "
"US Company cannot under any circumstances, be required by the client to "
"appear as a third party in the context of any claim for damages filed "
"against the client by an end consumer."
msgstr ""
#. module: l10n_us
#: model_terms:res.company,invoice_terms_html:l10n_us.demo_company_us
msgid ""
"Our invoices are payable within 21 working days, unless another payment "
"timeframe is indicated on either the invoice or the order. In the event of "
"non-payment by the due date, My US Company reserves the right to request a "
"fixed interest payment amounting to 10% of the sum remaining due. My US "
"Company will be authorized to suspend any provision of services without "
"prior warning in the event of late payment."
msgstr ""
#. module: l10n_us
#: model_terms:res.company,invoice_terms_html:l10n_us.demo_company_us
msgid "STANDARD TERMS AND CONDITIONS OF SALE"
msgstr ""
#. module: l10n_us
#: model:ir.model.fields.selection,name:l10n_us.selection__res_partner_bank__l10n_us_bank_account_type__savings
msgid "Savings"
msgstr ""
#. module: l10n_us
#: model:ir.model.fields,field_description:l10n_us.field_res_partner_bank__show_aba_routing
msgid "Show Aba Routing"
msgstr ""
#. module: l10n_us
#: model_terms:res.company,sign_terms:l10n_us.demo_company_us
#: model_terms:res.company,sign_terms_html:l10n_us.demo_company_us
msgid "Terms &amp; Conditions"
msgstr ""
#. module: l10n_us
#: model_terms:res.company,invoice_terms_html:l10n_us.demo_company_us
msgid ""
"The client explicitly waives its own standard terms and conditions, even if "
"these were drawn up after these standard terms and conditions of sale. In "
"order to be valid, any derogation must be expressly agreed to in advance in "
"writing."
msgstr ""
#. module: l10n_us
#: model_terms:res.company,invoice_terms_html:l10n_us.demo_company_us
msgid "You should update this document to reflect your T&amp;C."
msgstr ""
#. module: l10n_us
#: model_terms:res.company,sign_terms:l10n_us.demo_company_us
#: model_terms:res.company,sign_terms_html:l10n_us.demo_company_us
msgid "Your conditions..."
msgstr ""

View file

@ -0,0 +1,158 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_us
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 19.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-12-30 19:09+0000\n"
"PO-Revision-Date: 2025-12-30 19:09+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: l10n_us
#: model_terms:ir.ui.view,arch_db:l10n_us.view_partner_bank_form_inherit_l10n_us
msgid "ABA/Routing"
msgstr ""
#. module: l10n_us
#. odoo-python
#: code:addons/l10n_us/models/res_partner_bank.py:0
msgid "ABA/Routing should only contain numbers (maximum 9 digits)."
msgstr ""
#. module: l10n_us
#: model_terms:res.company,invoice_terms_html:l10n_us.demo_company_us
msgid ""
"All our contractual relations will be governed exclusively by United States "
"law."
msgstr ""
#. module: l10n_us
#: model:ir.model.fields,field_description:l10n_us.field_res_partner_bank__l10n_us_bank_account_type
msgid "Bank Account Type"
msgstr ""
#. module: l10n_us
#: model:ir.model,name:l10n_us.model_res_partner_bank
msgid "Bank Accounts"
msgstr ""
#. module: l10n_us
#: model_terms:res.company,invoice_terms_html:l10n_us.demo_company_us
msgid ""
"Below text serves as a suggestion and doesnt engage Odoo S.A. "
"responsibility."
msgstr ""
#. module: l10n_us
#: model_terms:res.company,invoice_terms_html:l10n_us.demo_company_us
msgid ""
"Certain countries apply withholding at source on the amount of invoices, in "
"accordance with their internal legislation. Any withholding at source will "
"be paid by the client to the tax authorities. Under no circumstances can My "
"US Company become involved in costs related to a country's legislation. The "
"amount of the invoice will therefore be due to My US Company in its entirety"
" and does not include any costs relating to the legislation of the country "
"in which the client is located."
msgstr ""
#. module: l10n_us
#: model:ir.model.fields.selection,name:l10n_us.selection__res_partner_bank__l10n_us_bank_account_type__checking
msgid "Checking"
msgstr ""
#. module: l10n_us
#: model:ir.model.fields,field_description:l10n_us.field_res_partner_bank__display_name
msgid "Display Name"
msgstr ""
#. module: l10n_us
#: model:ir.model.fields,field_description:l10n_us.field_res_partner_bank__id
msgid "ID"
msgstr ""
#. module: l10n_us
#: model_terms:res.company,invoice_terms_html:l10n_us.demo_company_us
msgid ""
"If a payment is still outstanding more than sixty (60) days after the due "
"payment date, My US Company reserves the right to call on the services of a "
"debt recovery company. All legal expenses will be payable by the client."
msgstr ""
#. module: l10n_us
#: model_terms:res.company,invoice_terms_html:l10n_us.demo_company_us
msgid ""
"In order for it to be admissible, My US Company must be notified of any "
"claim by means of a letter sent by recorded delivery to its registered "
"office within 8 days of the delivery of the goods or the provision of the "
"services."
msgstr ""
#. module: l10n_us
#: model_terms:res.company,invoice_terms_html:l10n_us.demo_company_us
msgid ""
"My US Company undertakes to do its best to supply performant services in due"
" time in accordance with the agreed timeframes. However, none of its "
"obligations can be considered as being an obligation to achieve results. My "
"US Company cannot under any circumstances, be required by the client to "
"appear as a third party in the context of any claim for damages filed "
"against the client by an end consumer."
msgstr ""
#. module: l10n_us
#: model_terms:res.company,invoice_terms_html:l10n_us.demo_company_us
msgid ""
"Our invoices are payable within 21 working days, unless another payment "
"timeframe is indicated on either the invoice or the order. In the event of "
"non-payment by the due date, My US Company reserves the right to request a "
"fixed interest payment amounting to 10% of the sum remaining due. My US "
"Company will be authorized to suspend any provision of services without "
"prior warning in the event of late payment."
msgstr ""
#. module: l10n_us
#: model_terms:res.company,invoice_terms_html:l10n_us.demo_company_us
msgid "STANDARD TERMS AND CONDITIONS OF SALE"
msgstr ""
#. module: l10n_us
#: model:ir.model.fields.selection,name:l10n_us.selection__res_partner_bank__l10n_us_bank_account_type__savings
msgid "Savings"
msgstr ""
#. module: l10n_us
#: model:ir.model.fields,field_description:l10n_us.field_res_partner_bank__show_aba_routing
msgid "Show Aba Routing"
msgstr ""
#. module: l10n_us
#: model_terms:res.company,sign_terms:l10n_us.demo_company_us
#: model_terms:res.company,sign_terms_html:l10n_us.demo_company_us
msgid "Terms &amp; Conditions"
msgstr ""
#. module: l10n_us
#: model_terms:res.company,invoice_terms_html:l10n_us.demo_company_us
msgid ""
"The client explicitly waives its own standard terms and conditions, even if "
"these were drawn up after these standard terms and conditions of sale. In "
"order to be valid, any derogation must be expressly agreed to in advance in "
"writing."
msgstr ""
#. module: l10n_us
#: model_terms:res.company,invoice_terms_html:l10n_us.demo_company_us
msgid "You should update this document to reflect your T&amp;C."
msgstr ""
#. module: l10n_us
#: model_terms:res.company,sign_terms:l10n_us.demo_company_us
#: model_terms:res.company,sign_terms_html:l10n_us.demo_company_us
msgid "Your conditions..."
msgstr ""

View file

@ -2,17 +2,34 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import re
from odoo import fields, models, api, _
from odoo import api, fields, models, _
from odoo.exceptions import ValidationError
class ResPartnerBank(models.Model):
_inherit = 'res.partner.bank'
aba_routing = fields.Char(string="ABA/Routing", help="American Bankers Association Routing Number")
show_aba_routing = fields.Boolean(compute="_compute_show_aba_routing")
l10n_us_bank_account_type = fields.Selection(
selection=[
('checking', 'Checking'),
('savings', 'Savings'),
],
string='Bank Account Type',
default='checking',
required=True
)
@api.constrains('aba_routing')
def _check_aba_routing(self):
@api.depends('country_code', 'acc_type')
def _compute_show_aba_routing(self):
for bank in self:
if bank.aba_routing and not re.match(r'^\d{1,9}$', bank.aba_routing):
raise ValidationError(_('ABA/Routing should only contains numbers (maximum 9 digits).'))
if bank.country_code == 'US' and bank.acc_type != 'iban':
bank.show_aba_routing = True
else:
bank.show_aba_routing = False
@api.constrains('clearing_number')
def _check_clearing_number_us(self):
for bank in self:
if bank.country_code == 'US' and bank.clearing_number and not re.match(r'^\d{1,9}$', bank.clearing_number):
raise ValidationError(_('ABA/Routing should only contain numbers (maximum 9 digits).'))

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 30 KiB

View file

@ -5,8 +5,15 @@
<field name="model">res.partner.bank</field>
<field name="inherit_id" ref="base.view_partner_bank_form"/>
<field name="arch" type="xml">
<field name="bank_id" position="after">
<field name="aba_routing" attrs='{"invisible": [("acc_type", "=", "iban")]}'/>
<xpath expr="//field[@name='clearing_number']" position="attributes">
<attribute name="nolabel">1</attribute>
</xpath>
<field name="clearing_number" position="before">
<label for="clearing_number" invisible="show_aba_routing"/>
<label for="clearing_number" string="ABA/Routing" invisible="not show_aba_routing"/>
</field>
<field name="currency_id" position="after">
<field name="l10n_us_bank_account_type" invisible="country_code != 'US'"/>
</field>
</field>
</record>

View file

@ -1,12 +1,14 @@
[project]
name = "odoo-bringout-oca-ocb-l10n_us"
version = "16.0.0"
description = "United States - Accounting - Odoo addon"
description = "United States - Localizations -
Odoo addon
"
authors = [
{ name = "Ernad Husremovic", email = "hernad@bring.out.ba" }
]
dependencies = [
"odoo-bringout-oca-ocb-l10n_generic_coa>=16.0.0",
"odoo-bringout-oca-ocb-base>=19.0.0",
"requests>=2.25.1"
]
readme = "README.md"
@ -16,7 +18,7 @@ classifiers = [
"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.11",
"Programming Language :: Python :: 3.12",
"Topic :: Office/Business",
]