-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
l10n_ar_account_tax_settlement_mendoza last changes
- Loading branch information
1 parent
327b599
commit fd73b64
Showing
21 changed files
with
84 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from . import models | ||
from . import wizards |
3 changes: 2 additions & 1 deletion
3
l10n_ar_txt_mendoza/__manifest__.py → ...nt_tax_settlement_mendoza/__manifest__.py
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
File renamed without changes.
9 changes: 3 additions & 6 deletions
9
..._ar_txt_mendoza/models/account_journal.py → ...tlement_mendoza/models/account_journal.py
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
2 changes: 1 addition & 1 deletion
2
l10n_ar_txt_mendoza/models/account_move.py → ...settlement_mendoza/models/account_move.py
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,4 +1,4 @@ | ||
from odoo import models, fields, api | ||
from odoo import models, fields | ||
|
||
|
||
class AccountMove(models.Model): | ||
|
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
13 changes: 13 additions & 0 deletions
13
l10n_ar_account_tax_settlement_mendoza/models/account_tax.py
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,13 @@ | ||
from odoo import models | ||
|
||
|
||
class AccountTax(models.Model): | ||
_inherit = "account.tax" | ||
|
||
def get_partner_alicuot(self, partner, date, line=None): | ||
""" La alícuota para el archivo txt de mendoza que se genera desde el método iibb_aplicado_sircar_files_values | ||
no se obtiene del partner sino que se obtiene del payment, y el código de régimen se obtiene del impuesto pero | ||
extendemos el método get_partner_alicuot original para usarlo como puente, agregamos 'line' como parámentro. """ | ||
if line and line.payment_id and line.payment_id.alicuota_mendoza and line.payment_id.tax_withholding_id.codigo_regimen: | ||
return self.env['res.partner.arba_alicuot'].new({'alicuota_retencion': line.payment_id.alicuota_mendoza * 100, 'partner_id': partner, 'regimen_retencion': line.payment_id.tax_withholding_id.codigo_regimen}) | ||
return super().get_partner_alicuot(partner, date, line=line) |
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
4 changes: 2 additions & 2 deletions
4
..._txt_mendoza/views/account_move_views.xml → ...ment_mendoza/views/account_move_views.xml
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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,5 @@ | ||
############################################################################## | ||
# For copyright and license notices, see __manifest__.py file in module root | ||
# directory | ||
############################################################################## | ||
from . import res_config_settings |
12 changes: 12 additions & 0 deletions
12
l10n_ar_account_tax_settlement_mendoza/wizards/res_config_settings.py
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,12 @@ | ||
from odoo import models, fields | ||
|
||
class ResConfigSettings(models.TransientModel): | ||
_inherit = 'res.config.settings' | ||
|
||
riesgo_fiscal_csv_file = fields.Binary( | ||
related='company_id.riesgo_fiscal_csv_file', | ||
readonly=False, | ||
) | ||
riesgo_fiscal_csv_file_last_update = fields.Datetime( | ||
related='company_id.riesgo_fiscal_csv_file_last_update', | ||
) |
33 changes: 33 additions & 0 deletions
33
l10n_ar_account_tax_settlement_mendoza/wizards/res_config_settings_views.xml
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,33 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
|
||
<record model="ir.ui.view" id="res_config_settings_view_form"> | ||
<field name="name">res.config.settings.view.form.inherit.l10n_ar_afip_ws</field> | ||
<field name="model">res.config.settings</field> | ||
<field name="inherit_id" ref="l10n_ar.res_config_settings_view_form"/> | ||
<field name="arch" type="xml"> | ||
<div id="argentina_localization" position="inside"> | ||
<div class="col-xs-12 col-md-6 o_setting_box"> | ||
<div class="o_setting_left_pane"/> | ||
<div class="o_setting_right_pane"> | ||
<label for="riesgo_fiscal_csv_file" string="Riesgo Fiscal"/> | ||
<span class="fa fa-lg fa-building-o" title="Values set here are company-specific." groups="base.group_multi_company"/> | ||
<div class="text-muted"> | ||
Agregar archivo csv de Riesgo Fiscal: | ||
</div> | ||
<div class="content-group"> | ||
<div class="row"> | ||
<field name="riesgo_fiscal_csv_file"/> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<label for="riesgo_fiscal_csv_file_last_update" string="Última Modificación"/> | ||
<field name="riesgo_fiscal_csv_file_last_update" class="o_inline"/> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</field> | ||
</record> | ||
|
||
</odoo> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.