mirror of
https://github.com/bringout/oca-ocb-l10n_europe.git
synced 2026-04-27 17:42:05 +02:00
19.0 vanilla
This commit is contained in:
parent
ff721d030e
commit
7721452493
1826 changed files with 124775 additions and 274114 deletions
21
odoo-bringout-oca-ocb-l10n_pt/l10n_pt/models/account_tax.py
Normal file
21
odoo-bringout-oca-ocb-l10n_pt/l10n_pt/models/account_tax.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
from odoo import api, models
|
||||
|
||||
|
||||
class AccountTax(models.Model):
|
||||
_inherit = 'account.tax'
|
||||
|
||||
@api.model
|
||||
def _round_tax_details_tax_amounts(self, base_lines, company, mode='mixed'):
|
||||
# EXTENDS 'account'
|
||||
country_code = company.account_fiscal_country_id.code
|
||||
if country_code == 'PT':
|
||||
mode = 'included'
|
||||
super()._round_tax_details_tax_amounts(base_lines, company, mode=mode)
|
||||
|
||||
@api.model
|
||||
def _round_tax_details_base_lines(self, base_lines, company, mode='mixed'):
|
||||
# EXTENDS 'account'
|
||||
country_code = company.account_fiscal_country_id.code
|
||||
if country_code == 'PT':
|
||||
mode = 'included'
|
||||
super()._round_tax_details_base_lines(base_lines, company, mode=mode)
|
||||
Loading…
Add table
Add a link
Reference in a new issue