-
-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] l10n_br_account_withholding: handling of partner_id assignment
- Loading branch information
Showing
10 changed files
with
198 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
from . import account_move | ||
from . import l10n_br_fiscal_tax_group | ||
from . import account_move_line | ||
from . import res_partner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Copyright 2024 - TODAY, Kaynnan Lemes <[email protected]> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class ResPartner(models.Model): | ||
|
||
_inherit = "res.partner" | ||
|
||
# TODO: Add WH fields for State and Country | ||
wh_cityhall = fields.Boolean(string="Is City Hall?") | ||
|
||
_sql_constraints = [ | ||
( | ||
"unique_wh_cityhall", | ||
"UNIQUE(city_id, wh_cityhall)", | ||
"Only one partner with the same City Hall can exist in the same city.", | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,11 @@ | |
|
||
/* | ||
:Author: David Goodger ([email protected]) | ||
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ | ||
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ | ||
:Copyright: This stylesheet has been placed in the public domain. | ||
|
||
Default cascading style sheet for the HTML output of Docutils. | ||
Despite the name, some widely supported CSS2 features are used. | ||
|
||
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to | ||
customize this style sheet. | ||
|
@@ -274,7 +275,7 @@ | |
margin-left: 2em ; | ||
margin-right: 2em } | ||
|
||
pre.code .ln { color: grey; } /* line numbers */ | ||
pre.code .ln { color: gray; } /* line numbers */ | ||
pre.code, code { background-color: #eeeeee } | ||
pre.code .comment, code .comment { color: #5C6576 } | ||
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } | ||
|
@@ -300,7 +301,7 @@ | |
span.pre { | ||
white-space: pre } | ||
|
||
span.problematic { | ||
span.problematic, pre.problematic { | ||
color: red } | ||
|
||
span.section-subtitle { | ||
|
@@ -452,6 +453,8 @@ <h1><a class="toc-backref" href="#toc-entry-3">Configuration</a></h1> | |
Defina um fornecedor e o diário para a geração da fatura do imposto | ||
se necessário. Se um diário não for especificado, o módulo usará o | ||
diário da fatura de compra original.</li> | ||
<li><strong>Definir uma Prefeitura para o ISSQN:</strong> Crie ou edite um parceiro, | ||
vá até a aba “Fiscal” e marque a opção “É Prefeitura”.</li> | ||
</ol> | ||
</div> | ||
<div class="section" id="usage"> | ||
|
@@ -463,6 +466,11 @@ <h1><a class="toc-backref" href="#toc-entry-4">Usage</a></h1> | |
aplique o imposto retido nas linhas necessárias.</li> | ||
<li><strong>Confirmação da Fatura:</strong> Ao confirmar a fatura de compra, o módulo | ||
gera automaticamente as faturas de retenção de impostos.</li> | ||
<li><strong>Definir uma Prefeitura para o ISSQN:</strong> Ao incluir um imposto de | ||
retenção e informar a cidade correspondente para o ISSQN, o módulo | ||
busca automaticamente o parceiro marcado como Prefeitura para essa | ||
cidade. Caso não o encontre, ele retorna o parceiro padrão definido | ||
no Grupo de Impostos.</li> | ||
</ol> | ||
</div> | ||
<div class="section" id="bug-tracker"> | ||
|
@@ -498,7 +506,9 @@ <h2><a class="toc-backref" href="#toc-entry-8">Contributors</a></h2> | |
<div class="section" id="maintainers"> | ||
<h2><a class="toc-backref" href="#toc-entry-9">Maintainers</a></h2> | ||
<p>This module is maintained by the OCA.</p> | ||
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> | ||
<a class="reference external image-reference" href="https://odoo-community.org"> | ||
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /> | ||
</a> | ||
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose | ||
mission is to support the collaborative development of Odoo features and | ||
promote its widespread use.</p> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright 2024 - TODAY, Kaynnan Lemes <[email protected]> | ||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> | ||
<odoo> | ||
|
||
<record model="ir.ui.view" id="partner_form_view"> | ||
<field | ||
name="name" | ||
>l10n_br_fiscal.partner.form (in l10n_br_account_withholding)</field> | ||
<field name="model">res.partner</field> | ||
<field name="inherit_id" ref="l10n_br_base.l10n_br_base_partner_form" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//group[@name='other_infos']" position="inside"> | ||
<field name="wh_cityhall" /> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
</odoo> |