first commit

This commit is contained in:
root
2026-03-14 09:42:12 +00:00
commit 0adbd20c2c
10991 changed files with 1646955 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.

View File

@@ -0,0 +1,360 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from collections import defaultdict
from itertools import groupby
from sql import Literal, Null
from sql.operators import Equal
from trytond.i18n import gettext
from trytond.model import (
Exclude, ModelSQL, ModelView, Workflow, dualmethod, fields)
from trytond.pool import Pool, PoolMeta
from trytond.pyson import Eval
from trytond.tools import sortable_values
from trytond.transaction import Transaction
from .exceptions import ClosePeriodWarning
def _tax_group(tax):
while tax.parent:
tax = tax.parent
return tax.group
class FiscalYear(metaclass=PoolMeta):
__name__ = 'account.fiscalyear'
tax_group_on_cash_basis = fields.Many2Many(
'account.tax.group.cash', 'fiscalyear', 'tax_group',
"Tax Group On Cash Basis",
help="The tax group reported on cash basis for this fiscal year.")
class Period(metaclass=PoolMeta):
__name__ = 'account.period'
tax_group_on_cash_basis = fields.Many2Many(
'account.tax.group.cash', 'period', 'tax_group',
"Tax Group On Cash Basis",
help="The tax group reported on cash basis for this period.")
def is_on_cash_basis(self, tax):
if not tax:
return False
group = _tax_group(tax)
return (group in self.tax_group_on_cash_basis
or group in self.fiscalyear.tax_group_on_cash_basis)
@classmethod
@ModelView.button
@Workflow.transition('closed')
def close(cls, periods):
pool = Pool()
MoveLine = pool.get('account.move.line')
Warning = pool.get('res.user.warning')
super().close(periods)
for period in periods:
if (period.tax_group_on_cash_basis
or period.fiscalyear.tax_group_on_cash_basis):
move_lines = MoveLine.search([
('move.period', '=', period.id),
('reconciliation', '=', None),
('invoice_payment', '=', None),
['OR', [
('account.type.receivable', '=', True),
('credit', '>', 0),
], [
('account.type.payable', '=', True),
('debit', '<', 0),
],
],
])
if move_lines:
warning_name = Warning.format(
'period_close_line_payment', move_lines)
if Warning.check(warning_name):
raise ClosePeriodWarning(warning_name,
gettext('account_tax_cash'
'.msg_close_period_line_payment',
period=period.rec_name))
class TaxGroupCash(ModelSQL):
__name__ = 'account.tax.group.cash'
fiscalyear = fields.Many2One(
'account.fiscalyear', "Fiscal Year", ondelete='CASCADE')
period = fields.Many2One(
'account.period', "Period", ondelete='CASCADE')
party = fields.Many2One(
'party.party', "Party", ondelete='CASCADE')
tax_group = fields.Many2One(
'account.tax.group', "Tax Group", ondelete='CASCADE', required=True)
class Tax(metaclass=PoolMeta):
__name__ = 'account.tax'
@classmethod
def _amount_where(cls, tax_line, move_line, move):
context = Transaction().context
periods = context.get('periods', [])
where = super()._amount_where(tax_line, move_line, move)
return ((where
& (tax_line.on_cash_basis == Literal(False))
| (tax_line.on_cash_basis == Null))
| ((tax_line.period.in_(periods) if periods else Literal(False))
& (tax_line.on_cash_basis == Literal(True))))
@classmethod
def _amount_domain(cls):
context = Transaction().context
periods = context.get('periods', [])
domain = super()._amount_domain()
return ['OR',
[domain,
('on_cash_basis', '=', False),
],
[('period', 'in', periods),
('on_cash_basis', '=', True),
]]
class TaxLine(metaclass=PoolMeta):
__name__ = 'account.tax.line'
on_cash_basis = fields.Boolean("On Cash Basis")
period = fields.Many2One('account.period', "Period",
domain=[
('company', '=', Eval('company', -1)),
],
states={
'invisible': ~Eval('on_cash_basis', False),
})
@classmethod
def __setup__(cls):
super().__setup__()
t = cls.__table__()
cls._sql_constraints = [
('tax_type_move_line_cash_basis_no_period',
Exclude(
t,
(t.tax, Equal),
(t.type, Equal),
(t.move_line, Equal),
where=(t.on_cash_basis == Literal(True))
& (t.period == Null)),
'account_tax_cash.'
'msg_tax_type_move_line_cash_basis_no_period_unique'),
]
@classmethod
def default_on_cash_basis(cls):
return False
@property
def period_checked(self):
period = super().period_checked
if self.on_cash_basis:
period = self.period
return period
@classmethod
def group_cash_basis_key(cls, line):
return (
('tax', line.tax),
('type', line.type),
('move_line', line.move_line),
('on_cash_basis', line.on_cash_basis),
)
@classmethod
def update_cash_basis(cls, lines, ratio, period):
if not lines:
return
to_save = []
lines = cls.browse(sorted(
lines, key=sortable_values(cls.group_cash_basis_key)))
for key, lines in groupby(lines, key=cls.group_cash_basis_key):
key = dict(key)
if not key['on_cash_basis']:
continue
lines = list(lines)
company = lines[0].company
line_no_periods = [l for l in lines if not l.period]
if line_no_periods:
line_no_period, = line_no_periods
else:
line_no_period = None
total = sum(l.amount for l in lines)
amount = total * ratio - sum(l.amount for l in lines if l.period)
amount = company.currency.round(amount)
if amount:
if line_no_period and line_no_period.amount == amount:
line_no_period.period = period
else:
line = cls(**key, amount=amount)
if line_no_period:
line_no_period.amount -= line.amount
line.period = period
if line.amount:
to_save.append(line)
if line_no_period:
to_save.append(line_no_period)
cls.save(to_save)
class Move(metaclass=PoolMeta):
__name__ = 'account.move'
@dualmethod
@ModelView.button
def post(cls, moves):
pool = Pool()
TaxLine = pool.get('account.tax.line')
super().post(moves)
tax_lines = []
for move in moves:
period = move.period
for line in move.lines:
for tax_line in line.tax_lines:
if (not tax_line.on_cash_basis
and period.is_on_cash_basis(tax_line.tax)):
tax_lines.append(tax_line)
TaxLine.write(tax_lines, {
'on_cash_basis': True,
})
class Invoice(metaclass=PoolMeta):
__name__ = 'account.invoice'
tax_group_on_cash_basis = fields.Many2Many(
'account.invoice.tax.group.cash', 'invoice', 'tax_group',
"Tax Group On Cash Basis",
states={
'invisible': Eval('type') != 'in',
},
help="The tax group reported on cash basis for this invoice.")
@fields.depends('party', 'type', 'tax_group_on_cash_basis')
def on_change_party(self):
super().on_change_party()
if self.type == 'in' and self.party:
self.tax_group_on_cash_basis = (
self.party.supplier_tax_group_on_cash_basis)
else:
self.tax_group_on_cash_basis = []
def get_move(self):
move = super().get_move()
if self.tax_group_on_cash_basis:
for line in move.lines:
for tax_line in getattr(line, 'tax_lines', []):
tax = tax_line.tax
if tax and _tax_group(tax) in self.tax_group_on_cash_basis:
tax_line.on_cash_basis = True
return move
@property
def cash_paid_ratio(self):
amount = sum(l.debit - l.credit for l in self.lines_to_pay)
if self.state == 'paid':
ratio = 1
elif self.state == 'cancelled':
ratio = 0
else:
payment_amount = sum(
l.debit - l.credit for l in self.payment_lines
if not l.reconciliation)
payment_amount -= sum(
l.debit - l.credit for l in self.lines_to_pay
if l.reconciliation)
if amount:
ratio = abs(payment_amount / amount)
else:
ratio = 0
assert 0 <= ratio <= 1
return ratio
@classmethod
def on_modification(cls, mode, invoices, field_names=None):
super().on_modification(mode, invoices, field_names=field_names)
if mode == 'write' and 'payment_lines' in field_names:
cls._update_tax_cash_basis(invoices)
@classmethod
def process(cls, invoices):
super().process(invoices)
cls._update_tax_cash_basis(invoices)
@classmethod
@ModelView.button
@Workflow.transition('cancelled')
def cancel(cls, invoices):
super().cancel(invoices)
cls._update_tax_cash_basis(invoices)
@classmethod
def _update_tax_cash_basis(cls, invoices):
pool = Pool()
TaxLine = pool.get('account.tax.line')
Date = pool.get('ir.date')
Period = pool.get('account.period')
# Call update_cash_basis grouped per period and ratio only because
# group_cash_basis_key already group per move_line.
to_update = defaultdict(list)
periods = {}
for invoice in invoices:
if not invoice.move:
continue
if invoice.company not in periods:
with Transaction().set_context(company=invoice.company.id):
date = Transaction().context.get(
'payment_date', Date.today())
periods[invoice.company] = Period.find(
invoice.company, date=date)
period = periods[invoice.company]
ratio = invoice.cash_paid_ratio
for line in invoice.move.lines:
to_update[(period, ratio)].extend(line.tax_lines)
for (period, ratio), tax_lines in to_update.items():
TaxLine.update_cash_basis(tax_lines, ratio, period)
class InvoiceTax(metaclass=PoolMeta):
__name__ = 'account.invoice.tax'
@property
def on_cash_basis(self):
pool = Pool()
Period = pool.get('account.period')
if self.invoice and self.tax:
if self.tax.group in self.invoice.tax_group_on_cash_basis:
return True
if self.invoice.move:
period = self.invoice.move.period
else:
accounting_date = (
self.invoice.accounting_date or self.invoice.invoice_date)
period = Period.find(
self.invoice.company, date=accounting_date)
return period.is_on_cash_basis(self.tax)
class InvoiceTaxGroupCash(ModelSQL):
__name__ = 'account.invoice.tax.group.cash'
invoice = fields.Many2One(
'account.invoice', "Invoice", ondelete='CASCADE',
domain=[
('type', '=', 'in'),
])
tax_group = fields.Many2One(
'account.tax.group', "Tax Group", ondelete='CASCADE', required=True)

View File

@@ -0,0 +1,30 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.ui.view" id="fiscalyear_view_form">
<field name="model">account.fiscalyear</field>
<field name="inherit" ref="account.fiscalyear_view_form"/>
<field name="name">fiscalyear_form</field>
</record>
<record model="ir.ui.view" id="period_view_form">
<field name="model">account.period</field>
<field name="inherit" ref="account.period_view_form"/>
<field name="name">period_form</field>
</record>
<record model="ir.ui.view" id="tax_line_view_form">
<field name="model">account.tax.line</field>
<field name="inherit" ref="account.tax_line_view_form"/>
<field name="name">tax_line_form</field>
</record>
<record model="ir.ui.view" id="invoice_view_form">
<field name="model">account.invoice</field>
<field name="inherit" ref="account_invoice.invoice_view_form"/>
<field name="name">invoice_form</field>
</record>
</data>
</tryton>

View File

@@ -0,0 +1,8 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.exceptions import UserWarning
class ClosePeriodWarning(UserWarning):
pass

View File

@@ -0,0 +1,91 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:account.fiscalyear,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice.tax.group.cash,invoice:"
msgid "Invoice"
msgstr ""
msgctxt "field:account.invoice.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.period,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.tax.group.cash,fiscalyear:"
msgid "Fiscal Year"
msgstr ""
msgctxt "field:account.tax.group.cash,party:"
msgid "Party"
msgstr ""
msgctxt "field:account.tax.group.cash,period:"
msgid "Period"
msgstr ""
msgctxt "field:account.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.tax.line,on_cash_basis:"
msgid "On Cash Basis"
msgstr ""
msgctxt "field:account.tax.line,period:"
msgid "Period"
msgstr ""
msgctxt "field:party.party,supplier_tax_group_on_cash_basis:"
msgid "Supplier Tax Group On Cash Basis"
msgstr ""
msgctxt "help:account.fiscalyear,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this fiscal year."
msgstr ""
msgctxt "help:account.invoice,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this invoice."
msgstr ""
msgctxt "help:account.period,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this period."
msgstr ""
msgctxt "help:party.party,supplier_tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this supplier."
msgstr ""
msgctxt "model:account.invoice.tax.group.cash,string:"
msgid "Account Invoice Tax Group Cash"
msgstr ""
msgctxt "model:account.tax.group.cash,string:"
msgid "Account Tax Group Cash"
msgstr ""
#, python-format
msgctxt "model:ir.message,text:msg_close_period_line_payment"
msgid ""
"To close period \"%(period)s\" you must link all payable/receivable lines to"
" invoices."
msgstr ""
msgctxt ""
"model:ir.message,text:msg_tax_type_move_line_cash_basis_no_period_unique"
msgid "Only one tax line on cash basis can be without period per move line."
msgstr ""
msgctxt "view:account.fiscalyear:"
msgid "Taxes"
msgstr ""

View File

@@ -0,0 +1,101 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:account.fiscalyear,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr "Grups d'impostos amb criteri de caixa"
msgctxt "field:account.invoice,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr "Grups d'impostos amb criteri de caixa"
msgctxt "field:account.invoice.tax.group.cash,invoice:"
msgid "Invoice"
msgstr "Factura"
msgctxt "field:account.invoice.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr "Grup d'impost"
msgctxt "field:account.period,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr "Grups d'impostos amb criteri de caixa"
msgctxt "field:account.tax.group.cash,fiscalyear:"
msgid "Fiscal Year"
msgstr "Exercici fiscal"
msgctxt "field:account.tax.group.cash,party:"
msgid "Party"
msgstr "Tercer"
msgctxt "field:account.tax.group.cash,period:"
msgid "Period"
msgstr "Període"
msgctxt "field:account.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr "Grup d'impost"
msgctxt "field:account.tax.line,on_cash_basis:"
msgid "On Cash Basis"
msgstr "Criteri de caixa"
msgctxt "field:account.tax.line,period:"
msgid "Period"
msgstr "Període"
msgctxt "field:party.party,supplier_tax_group_on_cash_basis:"
msgid "Supplier Tax Group On Cash Basis"
msgstr "Grups d'impostos del proveïdor amb criteri de caixa"
msgctxt "help:account.fiscalyear,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this fiscal year."
msgstr ""
"Els grups d'impost que es reporten amb criteri de caixa per aquest exercici "
"fiscal."
msgctxt "help:account.invoice,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this invoice."
msgstr ""
"Els grups d'impost que es reporten amb criteri de caixa per aquesta factura."
msgctxt "help:account.period,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this period."
msgstr ""
"Els grups d'impost que es reporten amb criteri de caixa per aquest període."
msgctxt "help:party.party,supplier_tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this supplier."
msgstr ""
"Els grups d'impost que es reporten amb criteri de caixa per aquest "
"proveïdor."
msgctxt "model:account.invoice.tax.group.cash,string:"
msgid "Account Invoice Tax Group Cash"
msgstr "Grup d'imposts de factura amb criteri de caixa"
msgctxt "model:account.tax.group.cash,string:"
msgid "Account Tax Group Cash"
msgstr "Grups d'impostos amb criteri de caixa"
#, python-format
msgctxt "model:ir.message,text:msg_close_period_line_payment"
msgid ""
"To close period \"%(period)s\" you must link all payable/receivable lines to"
" invoices."
msgstr ""
"Per tancar el període \"%(period)s\" heu de vincular totes els apunts a "
"cobrar/pagar amb alguna factura."
msgctxt ""
"model:ir.message,text:msg_tax_type_move_line_cash_basis_no_period_unique"
msgid "Only one tax line on cash basis can be without period per move line."
msgstr ""
"Només una línia d'impostos amb criteri de caixa pot estar sense període per "
"línia de moviment."
msgctxt "view:account.fiscalyear:"
msgid "Taxes"
msgstr "Impostos"

View File

@@ -0,0 +1,91 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:account.fiscalyear,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice.tax.group.cash,invoice:"
msgid "Invoice"
msgstr ""
msgctxt "field:account.invoice.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.period,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.tax.group.cash,fiscalyear:"
msgid "Fiscal Year"
msgstr ""
msgctxt "field:account.tax.group.cash,party:"
msgid "Party"
msgstr ""
msgctxt "field:account.tax.group.cash,period:"
msgid "Period"
msgstr ""
msgctxt "field:account.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.tax.line,on_cash_basis:"
msgid "On Cash Basis"
msgstr ""
msgctxt "field:account.tax.line,period:"
msgid "Period"
msgstr ""
msgctxt "field:party.party,supplier_tax_group_on_cash_basis:"
msgid "Supplier Tax Group On Cash Basis"
msgstr ""
msgctxt "help:account.fiscalyear,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this fiscal year."
msgstr ""
msgctxt "help:account.invoice,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this invoice."
msgstr ""
msgctxt "help:account.period,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this period."
msgstr ""
msgctxt "help:party.party,supplier_tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this supplier."
msgstr ""
msgctxt "model:account.invoice.tax.group.cash,string:"
msgid "Account Invoice Tax Group Cash"
msgstr ""
msgctxt "model:account.tax.group.cash,string:"
msgid "Account Tax Group Cash"
msgstr ""
#, python-format
msgctxt "model:ir.message,text:msg_close_period_line_payment"
msgid ""
"To close period \"%(period)s\" you must link all payable/receivable lines to"
" invoices."
msgstr ""
msgctxt ""
"model:ir.message,text:msg_tax_type_move_line_cash_basis_no_period_unique"
msgid "Only one tax line on cash basis can be without period per move line."
msgstr ""
msgctxt "view:account.fiscalyear:"
msgid "Taxes"
msgstr ""

View File

@@ -0,0 +1,96 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:account.fiscalyear,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr "Steuergruppe Istversteuerung"
msgctxt "field:account.invoice,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr "Steuergruppe Istversteuerung"
msgctxt "field:account.invoice.tax.group.cash,invoice:"
msgid "Invoice"
msgstr "Rechnung"
msgctxt "field:account.invoice.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr "Steuergruppe"
msgctxt "field:account.period,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr "Steuergruppe Istversteuerung"
msgctxt "field:account.tax.group.cash,fiscalyear:"
msgid "Fiscal Year"
msgstr "Geschäftsjahr"
msgctxt "field:account.tax.group.cash,party:"
msgid "Party"
msgstr "Partei"
msgctxt "field:account.tax.group.cash,period:"
msgid "Period"
msgstr "Buchungszeitraum"
msgctxt "field:account.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr "Steuergruppe"
msgctxt "field:account.tax.line,on_cash_basis:"
msgid "On Cash Basis"
msgstr "Istversteuerung"
msgctxt "field:account.tax.line,period:"
msgid "Period"
msgstr "Buchungszeitraum"
msgctxt "field:party.party,supplier_tax_group_on_cash_basis:"
msgid "Supplier Tax Group On Cash Basis"
msgstr "Steuergruppe Lieferant Istversteuerung"
msgctxt "help:account.fiscalyear,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this fiscal year."
msgstr "Die Steuergruppe bei Istversteuerung für dieses Geschäftsjahr."
msgctxt "help:account.invoice,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this invoice."
msgstr "Die Steuergruppe bei Istversteuerung für diese Rechnung."
msgctxt "help:account.period,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this period."
msgstr "Die Steuergruppe bei Istversteuerung für diesen Buchungszeitraum."
msgctxt "help:party.party,supplier_tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this supplier."
msgstr "Die Steuergruppe bei Istversteuerung für diesen Lieferanten."
msgctxt "model:account.invoice.tax.group.cash,string:"
msgid "Account Invoice Tax Group Cash"
msgstr "Buchhaltung Rechnung Steuergruppe Ist-Versteuerung"
msgctxt "model:account.tax.group.cash,string:"
msgid "Account Tax Group Cash"
msgstr "Buchhaltung Steuergruppe Istversteuerung"
#, python-format
msgctxt "model:ir.message,text:msg_close_period_line_payment"
msgid ""
"To close period \"%(period)s\" you must link all payable/receivable lines to"
" invoices."
msgstr ""
"Damit der Buchungszeitraum \"%(period)s\" geschlossen werden kann, müssen "
"alle Buchungszeilen für Forderungen/Verbindlichkeiten mit Rechnungen "
"verknüpft sein."
msgctxt ""
"model:ir.message,text:msg_tax_type_move_line_cash_basis_no_period_unique"
msgid "Only one tax line on cash basis can be without period per move line."
msgstr ""
"Bei Ist-Versteuerung darf es pro Buchungszeile nur eine Steuerangabe ohne "
"Buchungszeitraum geben."
msgctxt "view:account.fiscalyear:"
msgid "Taxes"
msgstr "Steuern"

View File

@@ -0,0 +1,101 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:account.fiscalyear,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr "Grupos de impuesto con criterio de caja"
msgctxt "field:account.invoice,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr "Grupos de impuesto con criterio de caja"
msgctxt "field:account.invoice.tax.group.cash,invoice:"
msgid "Invoice"
msgstr "Factura"
msgctxt "field:account.invoice.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr "Grupo de impuesto"
msgctxt "field:account.period,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr "Grupos de impuesto con criterio de caja"
msgctxt "field:account.tax.group.cash,fiscalyear:"
msgid "Fiscal Year"
msgstr "Ejercicio fiscal"
msgctxt "field:account.tax.group.cash,party:"
msgid "Party"
msgstr "Tercero"
msgctxt "field:account.tax.group.cash,period:"
msgid "Period"
msgstr "Periodo"
msgctxt "field:account.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr "Grupo de impuesto"
msgctxt "field:account.tax.line,on_cash_basis:"
msgid "On Cash Basis"
msgstr "Criterio de caja"
msgctxt "field:account.tax.line,period:"
msgid "Period"
msgstr "Periodo"
msgctxt "field:party.party,supplier_tax_group_on_cash_basis:"
msgid "Supplier Tax Group On Cash Basis"
msgstr "Grupos de impuesto del proveedor con criterio de caja"
msgctxt "help:account.fiscalyear,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this fiscal year."
msgstr ""
"Los grupos de impuesto que se reportan con criterio de caja en este "
"ejercicio fiscal."
msgctxt "help:account.invoice,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this invoice."
msgstr ""
"Los grupos de impuesto que se reportan con criterio de caja de esta factura."
msgctxt "help:account.period,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this period."
msgstr ""
"Los grupos de impuesto que se reportan con criterio de caja de este periodo."
msgctxt "help:party.party,supplier_tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this supplier."
msgstr ""
"Los grupos de impuesto que se reportan con criterio de caja para este "
"proveedor."
msgctxt "model:account.invoice.tax.group.cash,string:"
msgid "Account Invoice Tax Group Cash"
msgstr "Grupos de impuesto de factura con criterio de caja"
msgctxt "model:account.tax.group.cash,string:"
msgid "Account Tax Group Cash"
msgstr "Grupos de impuesto con criterio de caja"
#, python-format
msgctxt "model:ir.message,text:msg_close_period_line_payment"
msgid ""
"To close period \"%(period)s\" you must link all payable/receivable lines to"
" invoices."
msgstr ""
"Para cerrar el periodo \"%(period)s\" debe relacionar todas las lineas a "
"pagar/cobrar con sus facturas."
msgctxt ""
"model:ir.message,text:msg_tax_type_move_line_cash_basis_no_period_unique"
msgid "Only one tax line on cash basis can be without period per move line."
msgstr ""
"Sólo una línea de impuesto de criterio de caja puede existir sin período por"
" línea de movimiento."
msgctxt "view:account.fiscalyear:"
msgid "Taxes"
msgstr "Impuestos"

View File

@@ -0,0 +1,91 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:account.fiscalyear,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice.tax.group.cash,invoice:"
msgid "Invoice"
msgstr ""
msgctxt "field:account.invoice.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.period,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.tax.group.cash,fiscalyear:"
msgid "Fiscal Year"
msgstr ""
msgctxt "field:account.tax.group.cash,party:"
msgid "Party"
msgstr ""
msgctxt "field:account.tax.group.cash,period:"
msgid "Period"
msgstr ""
msgctxt "field:account.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.tax.line,on_cash_basis:"
msgid "On Cash Basis"
msgstr ""
msgctxt "field:account.tax.line,period:"
msgid "Period"
msgstr ""
msgctxt "field:party.party,supplier_tax_group_on_cash_basis:"
msgid "Supplier Tax Group On Cash Basis"
msgstr ""
msgctxt "help:account.fiscalyear,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this fiscal year."
msgstr ""
msgctxt "help:account.invoice,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this invoice."
msgstr ""
msgctxt "help:account.period,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this period."
msgstr ""
msgctxt "help:party.party,supplier_tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this supplier."
msgstr ""
msgctxt "model:account.invoice.tax.group.cash,string:"
msgid "Account Invoice Tax Group Cash"
msgstr ""
msgctxt "model:account.tax.group.cash,string:"
msgid "Account Tax Group Cash"
msgstr ""
#, python-format
msgctxt "model:ir.message,text:msg_close_period_line_payment"
msgid ""
"To close period \"%(period)s\" you must link all payable/receivable lines to"
" invoices."
msgstr ""
msgctxt ""
"model:ir.message,text:msg_tax_type_move_line_cash_basis_no_period_unique"
msgid "Only one tax line on cash basis can be without period per move line."
msgstr ""
msgctxt "view:account.fiscalyear:"
msgid "Taxes"
msgstr ""

View File

@@ -0,0 +1,92 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:account.fiscalyear,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr "Sularaha baasil maksugrupp"
msgctxt "field:account.invoice,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr "Sularaha baasil maksugrupp"
msgctxt "field:account.invoice.tax.group.cash,invoice:"
msgid "Invoice"
msgstr "Arve"
msgctxt "field:account.invoice.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr "Maksugrupp"
msgctxt "field:account.period,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr "Sularaha baasil maksugrupp"
msgctxt "field:account.tax.group.cash,fiscalyear:"
msgid "Fiscal Year"
msgstr "Majandusaasta"
msgctxt "field:account.tax.group.cash,party:"
msgid "Party"
msgstr "Osapool"
msgctxt "field:account.tax.group.cash,period:"
msgid "Period"
msgstr "Periood"
msgctxt "field:account.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr "Maksugrupp"
msgctxt "field:account.tax.line,on_cash_basis:"
msgid "On Cash Basis"
msgstr "Sularaha baasil"
msgctxt "field:account.tax.line,period:"
msgid "Period"
msgstr "Periood"
msgctxt "field:party.party,supplier_tax_group_on_cash_basis:"
msgid "Supplier Tax Group On Cash Basis"
msgstr "Hankija sularaha baasil maksugrupp"
msgctxt "help:account.fiscalyear,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this fiscal year."
msgstr "Majandusaasta kohta aruandes esitatud sularaha baasil maksugrupp"
msgctxt "help:account.invoice,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this invoice."
msgstr "Aruandes esitatud sularaha baasil maksugrupp selle arve kohta"
msgctxt "help:account.period,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this period."
msgstr "Aruandes esitatud sularaha baasil maksugrupp selle perioodi kohta"
msgctxt "help:party.party,supplier_tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this supplier."
msgstr "Aruandes esitatud sularaha baasil maksugrupp selle hankija kohta"
msgctxt "model:account.invoice.tax.group.cash,string:"
msgid "Account Invoice Tax Group Cash"
msgstr ""
#, fuzzy
msgctxt "model:account.tax.group.cash,string:"
msgid "Account Tax Group Cash"
msgstr "Sularaha baasil maksugrupp"
#, python-format
msgctxt "model:ir.message,text:msg_close_period_line_payment"
msgid ""
"To close period \"%(period)s\" you must link all payable/receivable lines to"
" invoices."
msgstr ""
msgctxt ""
"model:ir.message,text:msg_tax_type_move_line_cash_basis_no_period_unique"
msgid "Only one tax line on cash basis can be without period per move line."
msgstr ""
msgctxt "view:account.fiscalyear:"
msgid "Taxes"
msgstr "Maksud"

View File

@@ -0,0 +1,94 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:account.fiscalyear,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr "گروه مالیات براساس نقدی"
msgctxt "field:account.invoice,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr "گروه مالیات براساس نقدی"
msgctxt "field:account.invoice.tax.group.cash,invoice:"
msgid "Invoice"
msgstr "صورت حساب"
msgctxt "field:account.invoice.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr "گروه مالیات"
msgctxt "field:account.period,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr "گروه مالیات براساس نقدی"
msgctxt "field:account.tax.group.cash,fiscalyear:"
msgid "Fiscal Year"
msgstr "سال مالی"
msgctxt "field:account.tax.group.cash,party:"
msgid "Party"
msgstr "نهاد/سازمان"
msgctxt "field:account.tax.group.cash,period:"
msgid "Period"
msgstr "دوره زمانی"
msgctxt "field:account.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr "گروه مالیات"
msgctxt "field:account.tax.line,on_cash_basis:"
msgid "On Cash Basis"
msgstr "بر مبنای نقدی"
msgctxt "field:account.tax.line,period:"
msgid "Period"
msgstr "دوره زمانی"
msgctxt "field:party.party,supplier_tax_group_on_cash_basis:"
msgid "Supplier Tax Group On Cash Basis"
msgstr "گروه مالیات تأمین کننده براساس نقدی"
msgctxt "help:account.fiscalyear,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this fiscal year."
msgstr "گروه مالیاتی بر اساس پول نقد، گزارش شده برای این سال مالی."
msgctxt "help:account.invoice,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this invoice."
msgstr "گروه مالیاتی بر اساس پول نقد، گزارش شده برای این صورتحساب."
msgctxt "help:account.period,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this period."
msgstr "گروه مالیاتی بر اساس پول نقد، گزارش شده برای این دوره زمانی."
msgctxt "help:party.party,supplier_tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this supplier."
msgstr "گروه مالیاتی بر اساس پول نقد، گزارش شده برای این تأمین کننده."
msgctxt "model:account.invoice.tax.group.cash,string:"
msgid "Account Invoice Tax Group Cash"
msgstr ""
#, fuzzy
msgctxt "model:account.tax.group.cash,string:"
msgid "Account Tax Group Cash"
msgstr "گروه مالیات براساس نقدی"
#, python-format
msgctxt "model:ir.message,text:msg_close_period_line_payment"
msgid ""
"To close period \"%(period)s\" you must link all payable/receivable lines to"
" invoices."
msgstr ""
"برای بستن دوره : \"%(period)s\" شما باید تمام سطرهای قابل پرداخت/دریافت را "
"به صورتحساب ها پیوند دهید."
msgctxt ""
"model:ir.message,text:msg_tax_type_move_line_cash_basis_no_period_unique"
msgid "Only one tax line on cash basis can be without period per move line."
msgstr ""
msgctxt "view:account.fiscalyear:"
msgid "Taxes"
msgstr "مالیات ها"

View File

@@ -0,0 +1,91 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:account.fiscalyear,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice.tax.group.cash,invoice:"
msgid "Invoice"
msgstr ""
msgctxt "field:account.invoice.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.period,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.tax.group.cash,fiscalyear:"
msgid "Fiscal Year"
msgstr ""
msgctxt "field:account.tax.group.cash,party:"
msgid "Party"
msgstr ""
msgctxt "field:account.tax.group.cash,period:"
msgid "Period"
msgstr ""
msgctxt "field:account.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.tax.line,on_cash_basis:"
msgid "On Cash Basis"
msgstr ""
msgctxt "field:account.tax.line,period:"
msgid "Period"
msgstr ""
msgctxt "field:party.party,supplier_tax_group_on_cash_basis:"
msgid "Supplier Tax Group On Cash Basis"
msgstr ""
msgctxt "help:account.fiscalyear,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this fiscal year."
msgstr ""
msgctxt "help:account.invoice,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this invoice."
msgstr ""
msgctxt "help:account.period,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this period."
msgstr ""
msgctxt "help:party.party,supplier_tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this supplier."
msgstr ""
msgctxt "model:account.invoice.tax.group.cash,string:"
msgid "Account Invoice Tax Group Cash"
msgstr ""
msgctxt "model:account.tax.group.cash,string:"
msgid "Account Tax Group Cash"
msgstr ""
#, python-format
msgctxt "model:ir.message,text:msg_close_period_line_payment"
msgid ""
"To close period \"%(period)s\" you must link all payable/receivable lines to"
" invoices."
msgstr ""
msgctxt ""
"model:ir.message,text:msg_tax_type_move_line_cash_basis_no_period_unique"
msgid "Only one tax line on cash basis can be without period per move line."
msgstr ""
msgctxt "view:account.fiscalyear:"
msgid "Taxes"
msgstr ""

View File

@@ -0,0 +1,95 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:account.fiscalyear,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr "Groupe de taxe au comptant"
msgctxt "field:account.invoice,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr "Groupe de taxe au comptant"
msgctxt "field:account.invoice.tax.group.cash,invoice:"
msgid "Invoice"
msgstr "Facture"
msgctxt "field:account.invoice.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr "Groupe de taxe"
msgctxt "field:account.period,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr "Groupe de taxe au comptant"
msgctxt "field:account.tax.group.cash,fiscalyear:"
msgid "Fiscal Year"
msgstr "Année fiscale"
msgctxt "field:account.tax.group.cash,party:"
msgid "Party"
msgstr "Tiers"
msgctxt "field:account.tax.group.cash,period:"
msgid "Period"
msgstr "Période"
msgctxt "field:account.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr "Groupe de taxe"
msgctxt "field:account.tax.line,on_cash_basis:"
msgid "On Cash Basis"
msgstr "Au comptant"
msgctxt "field:account.tax.line,period:"
msgid "Period"
msgstr "Période"
msgctxt "field:party.party,supplier_tax_group_on_cash_basis:"
msgid "Supplier Tax Group On Cash Basis"
msgstr "Groupe de taxe fournisseur au comptant"
msgctxt "help:account.fiscalyear,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this fiscal year."
msgstr "Le groupe de taxe rapporté au comptant pour cette année fiscale."
msgctxt "help:account.invoice,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this invoice."
msgstr "Le groupe de taxe rapporté au comptant pour cette facture."
msgctxt "help:account.period,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this period."
msgstr "Le groupe de taxe rapporté au comptant pour cette période."
msgctxt "help:party.party,supplier_tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this supplier."
msgstr "Le groupe de taxe rapporté au comptant pour ce fournisseur."
msgctxt "model:account.invoice.tax.group.cash,string:"
msgid "Account Invoice Tax Group Cash"
msgstr "Groupe de taxe au comptant de facture comptable"
msgctxt "model:account.tax.group.cash,string:"
msgid "Account Tax Group Cash"
msgstr "Groupe de taxe au comptant comptable"
#, python-format
msgctxt "model:ir.message,text:msg_close_period_line_payment"
msgid ""
"To close period \"%(period)s\" you must link all payable/receivable lines to"
" invoices."
msgstr ""
"Pour clôture la période « %(period)s » vous devez lier toutes les lignes à "
"payer / à recevoir aux factures."
msgctxt ""
"model:ir.message,text:msg_tax_type_move_line_cash_basis_no_period_unique"
msgid "Only one tax line on cash basis can be without period per move line."
msgstr ""
"Une seule ligne de taxe au comptant peut être sans période par ligne de "
"mouvement.."
msgctxt "view:account.fiscalyear:"
msgid "Taxes"
msgstr "Taxes"

View File

@@ -0,0 +1,91 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:account.fiscalyear,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice.tax.group.cash,invoice:"
msgid "Invoice"
msgstr ""
msgctxt "field:account.invoice.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.period,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.tax.group.cash,fiscalyear:"
msgid "Fiscal Year"
msgstr ""
msgctxt "field:account.tax.group.cash,party:"
msgid "Party"
msgstr ""
msgctxt "field:account.tax.group.cash,period:"
msgid "Period"
msgstr ""
msgctxt "field:account.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.tax.line,on_cash_basis:"
msgid "On Cash Basis"
msgstr ""
msgctxt "field:account.tax.line,period:"
msgid "Period"
msgstr ""
msgctxt "field:party.party,supplier_tax_group_on_cash_basis:"
msgid "Supplier Tax Group On Cash Basis"
msgstr ""
msgctxt "help:account.fiscalyear,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this fiscal year."
msgstr ""
msgctxt "help:account.invoice,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this invoice."
msgstr ""
msgctxt "help:account.period,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this period."
msgstr ""
msgctxt "help:party.party,supplier_tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this supplier."
msgstr ""
msgctxt "model:account.invoice.tax.group.cash,string:"
msgid "Account Invoice Tax Group Cash"
msgstr ""
msgctxt "model:account.tax.group.cash,string:"
msgid "Account Tax Group Cash"
msgstr ""
#, python-format
msgctxt "model:ir.message,text:msg_close_period_line_payment"
msgid ""
"To close period \"%(period)s\" you must link all payable/receivable lines to"
" invoices."
msgstr ""
msgctxt ""
"model:ir.message,text:msg_tax_type_move_line_cash_basis_no_period_unique"
msgid "Only one tax line on cash basis can be without period per move line."
msgstr ""
msgctxt "view:account.fiscalyear:"
msgid "Taxes"
msgstr ""

View File

@@ -0,0 +1,91 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:account.fiscalyear,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice.tax.group.cash,invoice:"
msgid "Invoice"
msgstr "Faktur"
msgctxt "field:account.invoice.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.period,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.tax.group.cash,fiscalyear:"
msgid "Fiscal Year"
msgstr "Tahun Fiskal"
msgctxt "field:account.tax.group.cash,party:"
msgid "Party"
msgstr "Pihak"
msgctxt "field:account.tax.group.cash,period:"
msgid "Period"
msgstr "Periode"
msgctxt "field:account.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.tax.line,on_cash_basis:"
msgid "On Cash Basis"
msgstr ""
msgctxt "field:account.tax.line,period:"
msgid "Period"
msgstr "Periode"
msgctxt "field:party.party,supplier_tax_group_on_cash_basis:"
msgid "Supplier Tax Group On Cash Basis"
msgstr ""
msgctxt "help:account.fiscalyear,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this fiscal year."
msgstr ""
msgctxt "help:account.invoice,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this invoice."
msgstr ""
msgctxt "help:account.period,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this period."
msgstr ""
msgctxt "help:party.party,supplier_tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this supplier."
msgstr ""
msgctxt "model:account.invoice.tax.group.cash,string:"
msgid "Account Invoice Tax Group Cash"
msgstr ""
msgctxt "model:account.tax.group.cash,string:"
msgid "Account Tax Group Cash"
msgstr ""
#, python-format
msgctxt "model:ir.message,text:msg_close_period_line_payment"
msgid ""
"To close period \"%(period)s\" you must link all payable/receivable lines to"
" invoices."
msgstr ""
msgctxt ""
"model:ir.message,text:msg_tax_type_move_line_cash_basis_no_period_unique"
msgid "Only one tax line on cash basis can be without period per move line."
msgstr ""
msgctxt "view:account.fiscalyear:"
msgid "Taxes"
msgstr ""

View File

@@ -0,0 +1,93 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:account.fiscalyear,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice.tax.group.cash,invoice:"
msgid "Invoice"
msgstr "Fattura"
#, fuzzy
msgctxt "field:account.invoice.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr "Gruppo imposta"
msgctxt "field:account.period,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.tax.group.cash,fiscalyear:"
msgid "Fiscal Year"
msgstr "Esercizio"
msgctxt "field:account.tax.group.cash,party:"
msgid "Party"
msgstr "Controparte"
msgctxt "field:account.tax.group.cash,period:"
msgid "Period"
msgstr "Periodo"
#, fuzzy
msgctxt "field:account.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr "Gruppo imposta"
msgctxt "field:account.tax.line,on_cash_basis:"
msgid "On Cash Basis"
msgstr ""
msgctxt "field:account.tax.line,period:"
msgid "Period"
msgstr "Periodo"
msgctxt "field:party.party,supplier_tax_group_on_cash_basis:"
msgid "Supplier Tax Group On Cash Basis"
msgstr ""
msgctxt "help:account.fiscalyear,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this fiscal year."
msgstr ""
msgctxt "help:account.invoice,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this invoice."
msgstr ""
msgctxt "help:account.period,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this period."
msgstr ""
msgctxt "help:party.party,supplier_tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this supplier."
msgstr ""
msgctxt "model:account.invoice.tax.group.cash,string:"
msgid "Account Invoice Tax Group Cash"
msgstr ""
msgctxt "model:account.tax.group.cash,string:"
msgid "Account Tax Group Cash"
msgstr ""
#, python-format
msgctxt "model:ir.message,text:msg_close_period_line_payment"
msgid ""
"To close period \"%(period)s\" you must link all payable/receivable lines to"
" invoices."
msgstr ""
msgctxt ""
"model:ir.message,text:msg_tax_type_move_line_cash_basis_no_period_unique"
msgid "Only one tax line on cash basis can be without period per move line."
msgstr ""
msgctxt "view:account.fiscalyear:"
msgid "Taxes"
msgstr "Imposte"

View File

@@ -0,0 +1,91 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:account.fiscalyear,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice.tax.group.cash,invoice:"
msgid "Invoice"
msgstr ""
msgctxt "field:account.invoice.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.period,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.tax.group.cash,fiscalyear:"
msgid "Fiscal Year"
msgstr ""
msgctxt "field:account.tax.group.cash,party:"
msgid "Party"
msgstr ""
msgctxt "field:account.tax.group.cash,period:"
msgid "Period"
msgstr ""
msgctxt "field:account.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.tax.line,on_cash_basis:"
msgid "On Cash Basis"
msgstr ""
msgctxt "field:account.tax.line,period:"
msgid "Period"
msgstr ""
msgctxt "field:party.party,supplier_tax_group_on_cash_basis:"
msgid "Supplier Tax Group On Cash Basis"
msgstr ""
msgctxt "help:account.fiscalyear,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this fiscal year."
msgstr ""
msgctxt "help:account.invoice,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this invoice."
msgstr ""
msgctxt "help:account.period,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this period."
msgstr ""
msgctxt "help:party.party,supplier_tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this supplier."
msgstr ""
msgctxt "model:account.invoice.tax.group.cash,string:"
msgid "Account Invoice Tax Group Cash"
msgstr ""
msgctxt "model:account.tax.group.cash,string:"
msgid "Account Tax Group Cash"
msgstr ""
#, python-format
msgctxt "model:ir.message,text:msg_close_period_line_payment"
msgid ""
"To close period \"%(period)s\" you must link all payable/receivable lines to"
" invoices."
msgstr ""
msgctxt ""
"model:ir.message,text:msg_tax_type_move_line_cash_basis_no_period_unique"
msgid "Only one tax line on cash basis can be without period per move line."
msgstr ""
msgctxt "view:account.fiscalyear:"
msgid "Taxes"
msgstr ""

View File

@@ -0,0 +1,91 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:account.fiscalyear,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice.tax.group.cash,invoice:"
msgid "Invoice"
msgstr "Sąskaita faktūra"
msgctxt "field:account.invoice.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.period,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.tax.group.cash,fiscalyear:"
msgid "Fiscal Year"
msgstr ""
msgctxt "field:account.tax.group.cash,party:"
msgid "Party"
msgstr "Kontrahentas"
msgctxt "field:account.tax.group.cash,period:"
msgid "Period"
msgstr ""
msgctxt "field:account.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.tax.line,on_cash_basis:"
msgid "On Cash Basis"
msgstr ""
msgctxt "field:account.tax.line,period:"
msgid "Period"
msgstr ""
msgctxt "field:party.party,supplier_tax_group_on_cash_basis:"
msgid "Supplier Tax Group On Cash Basis"
msgstr ""
msgctxt "help:account.fiscalyear,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this fiscal year."
msgstr ""
msgctxt "help:account.invoice,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this invoice."
msgstr ""
msgctxt "help:account.period,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this period."
msgstr ""
msgctxt "help:party.party,supplier_tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this supplier."
msgstr ""
msgctxt "model:account.invoice.tax.group.cash,string:"
msgid "Account Invoice Tax Group Cash"
msgstr ""
msgctxt "model:account.tax.group.cash,string:"
msgid "Account Tax Group Cash"
msgstr ""
#, python-format
msgctxt "model:ir.message,text:msg_close_period_line_payment"
msgid ""
"To close period \"%(period)s\" you must link all payable/receivable lines to"
" invoices."
msgstr ""
msgctxt ""
"model:ir.message,text:msg_tax_type_move_line_cash_basis_no_period_unique"
msgid "Only one tax line on cash basis can be without period per move line."
msgstr ""
msgctxt "view:account.fiscalyear:"
msgid "Taxes"
msgstr ""

View File

@@ -0,0 +1,95 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:account.fiscalyear,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr "Belastinggroep op kasbasis"
msgctxt "field:account.invoice,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr "Belastinggroep op kasbasis"
msgctxt "field:account.invoice.tax.group.cash,invoice:"
msgid "Invoice"
msgstr "Factuur"
msgctxt "field:account.invoice.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr "Belastinggroep"
msgctxt "field:account.period,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr "Belastinggroep op kasbasis"
msgctxt "field:account.tax.group.cash,fiscalyear:"
msgid "Fiscal Year"
msgstr "Boekjaar"
msgctxt "field:account.tax.group.cash,party:"
msgid "Party"
msgstr "Relatie"
msgctxt "field:account.tax.group.cash,period:"
msgid "Period"
msgstr "Periode"
msgctxt "field:account.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr "Belastinggroep"
msgctxt "field:account.tax.line,on_cash_basis:"
msgid "On Cash Basis"
msgstr "Op kasbasis"
msgctxt "field:account.tax.line,period:"
msgid "Period"
msgstr "Periode"
msgctxt "field:party.party,supplier_tax_group_on_cash_basis:"
msgid "Supplier Tax Group On Cash Basis"
msgstr "Belastinggroep leveranciers op kasbasis"
msgctxt "help:account.fiscalyear,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this fiscal year."
msgstr "Aangegeven belastinggroep in de cash voor dit boekjaar."
msgctxt "help:account.invoice,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this invoice."
msgstr "Aangegeven belastinggroep in de cash voor deze factuur."
msgctxt "help:account.period,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this period."
msgstr "Aangegeven belastinggroep in de cash voor deze periode."
msgctxt "help:party.party,supplier_tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this supplier."
msgstr "Aangegeven belastinggroep in de cash voor deze leverancier."
msgctxt "model:account.invoice.tax.group.cash,string:"
msgid "Account Invoice Tax Group Cash"
msgstr "Grootboek factuur belasting groep kas"
msgctxt "model:account.tax.group.cash,string:"
msgid "Account Tax Group Cash"
msgstr "Grootboek belasting groep kas"
#, python-format
msgctxt "model:ir.message,text:msg_close_period_line_payment"
msgid ""
"To close period \"%(period)s\" you must link all payable/receivable lines to"
" invoices."
msgstr ""
"Om periode \"%(period)s\" te sluiten, moet u alle te betalen / te ontvangen "
"regels aan facturen koppelen."
msgctxt ""
"model:ir.message,text:msg_tax_type_move_line_cash_basis_no_period_unique"
msgid "Only one tax line on cash basis can be without period per move line."
msgstr ""
"Alleen één belasting regel op kas basis kan zonder periode per boekingsregel"
" zijn."
msgctxt "view:account.fiscalyear:"
msgid "Taxes"
msgstr "Belastingen"

View File

@@ -0,0 +1,91 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:account.fiscalyear,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice.tax.group.cash,invoice:"
msgid "Invoice"
msgstr ""
msgctxt "field:account.invoice.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.period,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.tax.group.cash,fiscalyear:"
msgid "Fiscal Year"
msgstr ""
msgctxt "field:account.tax.group.cash,party:"
msgid "Party"
msgstr ""
msgctxt "field:account.tax.group.cash,period:"
msgid "Period"
msgstr ""
msgctxt "field:account.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.tax.line,on_cash_basis:"
msgid "On Cash Basis"
msgstr ""
msgctxt "field:account.tax.line,period:"
msgid "Period"
msgstr ""
msgctxt "field:party.party,supplier_tax_group_on_cash_basis:"
msgid "Supplier Tax Group On Cash Basis"
msgstr ""
msgctxt "help:account.fiscalyear,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this fiscal year."
msgstr ""
msgctxt "help:account.invoice,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this invoice."
msgstr ""
msgctxt "help:account.period,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this period."
msgstr ""
msgctxt "help:party.party,supplier_tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this supplier."
msgstr ""
msgctxt "model:account.invoice.tax.group.cash,string:"
msgid "Account Invoice Tax Group Cash"
msgstr ""
msgctxt "model:account.tax.group.cash,string:"
msgid "Account Tax Group Cash"
msgstr ""
#, python-format
msgctxt "model:ir.message,text:msg_close_period_line_payment"
msgid ""
"To close period \"%(period)s\" you must link all payable/receivable lines to"
" invoices."
msgstr ""
msgctxt ""
"model:ir.message,text:msg_tax_type_move_line_cash_basis_no_period_unique"
msgid "Only one tax line on cash basis can be without period per move line."
msgstr ""
msgctxt "view:account.fiscalyear:"
msgid "Taxes"
msgstr "Podatki"

View File

@@ -0,0 +1,91 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:account.fiscalyear,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice.tax.group.cash,invoice:"
msgid "Invoice"
msgstr ""
msgctxt "field:account.invoice.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.period,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.tax.group.cash,fiscalyear:"
msgid "Fiscal Year"
msgstr ""
msgctxt "field:account.tax.group.cash,party:"
msgid "Party"
msgstr ""
msgctxt "field:account.tax.group.cash,period:"
msgid "Period"
msgstr ""
msgctxt "field:account.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.tax.line,on_cash_basis:"
msgid "On Cash Basis"
msgstr ""
msgctxt "field:account.tax.line,period:"
msgid "Period"
msgstr ""
msgctxt "field:party.party,supplier_tax_group_on_cash_basis:"
msgid "Supplier Tax Group On Cash Basis"
msgstr ""
msgctxt "help:account.fiscalyear,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this fiscal year."
msgstr ""
msgctxt "help:account.invoice,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this invoice."
msgstr ""
msgctxt "help:account.period,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this period."
msgstr ""
msgctxt "help:party.party,supplier_tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this supplier."
msgstr ""
msgctxt "model:account.invoice.tax.group.cash,string:"
msgid "Account Invoice Tax Group Cash"
msgstr ""
msgctxt "model:account.tax.group.cash,string:"
msgid "Account Tax Group Cash"
msgstr ""
#, python-format
msgctxt "model:ir.message,text:msg_close_period_line_payment"
msgid ""
"To close period \"%(period)s\" you must link all payable/receivable lines to"
" invoices."
msgstr ""
msgctxt ""
"model:ir.message,text:msg_tax_type_move_line_cash_basis_no_period_unique"
msgid "Only one tax line on cash basis can be without period per move line."
msgstr ""
msgctxt "view:account.fiscalyear:"
msgid "Taxes"
msgstr ""

View File

@@ -0,0 +1,98 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
#, fuzzy
msgctxt "field:account.fiscalyear,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr "Grup fiscal pe bază de numerar"
#, fuzzy
msgctxt "field:account.invoice,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr "Grup fiscal pe bază de numerar"
msgctxt "field:account.invoice.tax.group.cash,invoice:"
msgid "Invoice"
msgstr "Factură"
#, fuzzy
msgctxt "field:account.invoice.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr "Grup Fiscal"
#, fuzzy
msgctxt "field:account.period,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr "Grup fiscal pe bază de numerar"
msgctxt "field:account.tax.group.cash,fiscalyear:"
msgid "Fiscal Year"
msgstr "An Fiscal"
msgctxt "field:account.tax.group.cash,party:"
msgid "Party"
msgstr "Parte"
msgctxt "field:account.tax.group.cash,period:"
msgid "Period"
msgstr "Perioadă"
#, fuzzy
msgctxt "field:account.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr "Grup Fiscal"
msgctxt "field:account.tax.line,on_cash_basis:"
msgid "On Cash Basis"
msgstr "Pe bază de numerar"
msgctxt "field:account.tax.line,period:"
msgid "Period"
msgstr "Perioadă"
#, fuzzy
msgctxt "field:party.party,supplier_tax_group_on_cash_basis:"
msgid "Supplier Tax Group On Cash Basis"
msgstr "Grup de impozitare a furnizorilor pe bază de numerar"
msgctxt "help:account.fiscalyear,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this fiscal year."
msgstr ""
msgctxt "help:account.invoice,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this invoice."
msgstr ""
msgctxt "help:account.period,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this period."
msgstr ""
msgctxt "help:party.party,supplier_tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this supplier."
msgstr ""
msgctxt "model:account.invoice.tax.group.cash,string:"
msgid "Account Invoice Tax Group Cash"
msgstr ""
#, fuzzy
msgctxt "model:account.tax.group.cash,string:"
msgid "Account Tax Group Cash"
msgstr "Grup fiscal pe bază de numerar"
#, python-format
msgctxt "model:ir.message,text:msg_close_period_line_payment"
msgid ""
"To close period \"%(period)s\" you must link all payable/receivable lines to"
" invoices."
msgstr ""
msgctxt ""
"model:ir.message,text:msg_tax_type_move_line_cash_basis_no_period_unique"
msgid "Only one tax line on cash basis can be without period per move line."
msgstr ""
msgctxt "view:account.fiscalyear:"
msgid "Taxes"
msgstr ""

View File

@@ -0,0 +1,91 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:account.fiscalyear,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice.tax.group.cash,invoice:"
msgid "Invoice"
msgstr ""
msgctxt "field:account.invoice.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.period,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.tax.group.cash,fiscalyear:"
msgid "Fiscal Year"
msgstr ""
msgctxt "field:account.tax.group.cash,party:"
msgid "Party"
msgstr ""
msgctxt "field:account.tax.group.cash,period:"
msgid "Period"
msgstr ""
msgctxt "field:account.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.tax.line,on_cash_basis:"
msgid "On Cash Basis"
msgstr ""
msgctxt "field:account.tax.line,period:"
msgid "Period"
msgstr ""
msgctxt "field:party.party,supplier_tax_group_on_cash_basis:"
msgid "Supplier Tax Group On Cash Basis"
msgstr ""
msgctxt "help:account.fiscalyear,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this fiscal year."
msgstr ""
msgctxt "help:account.invoice,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this invoice."
msgstr ""
msgctxt "help:account.period,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this period."
msgstr ""
msgctxt "help:party.party,supplier_tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this supplier."
msgstr ""
msgctxt "model:account.invoice.tax.group.cash,string:"
msgid "Account Invoice Tax Group Cash"
msgstr ""
msgctxt "model:account.tax.group.cash,string:"
msgid "Account Tax Group Cash"
msgstr ""
#, python-format
msgctxt "model:ir.message,text:msg_close_period_line_payment"
msgid ""
"To close period \"%(period)s\" you must link all payable/receivable lines to"
" invoices."
msgstr ""
msgctxt ""
"model:ir.message,text:msg_tax_type_move_line_cash_basis_no_period_unique"
msgid "Only one tax line on cash basis can be without period per move line."
msgstr ""
msgctxt "view:account.fiscalyear:"
msgid "Taxes"
msgstr ""

View File

@@ -0,0 +1,91 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:account.fiscalyear,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice.tax.group.cash,invoice:"
msgid "Invoice"
msgstr ""
msgctxt "field:account.invoice.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.period,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.tax.group.cash,fiscalyear:"
msgid "Fiscal Year"
msgstr ""
msgctxt "field:account.tax.group.cash,party:"
msgid "Party"
msgstr ""
msgctxt "field:account.tax.group.cash,period:"
msgid "Period"
msgstr ""
msgctxt "field:account.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.tax.line,on_cash_basis:"
msgid "On Cash Basis"
msgstr ""
msgctxt "field:account.tax.line,period:"
msgid "Period"
msgstr ""
msgctxt "field:party.party,supplier_tax_group_on_cash_basis:"
msgid "Supplier Tax Group On Cash Basis"
msgstr ""
msgctxt "help:account.fiscalyear,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this fiscal year."
msgstr ""
msgctxt "help:account.invoice,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this invoice."
msgstr ""
msgctxt "help:account.period,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this period."
msgstr ""
msgctxt "help:party.party,supplier_tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this supplier."
msgstr ""
msgctxt "model:account.invoice.tax.group.cash,string:"
msgid "Account Invoice Tax Group Cash"
msgstr ""
msgctxt "model:account.tax.group.cash,string:"
msgid "Account Tax Group Cash"
msgstr ""
#, python-format
msgctxt "model:ir.message,text:msg_close_period_line_payment"
msgid ""
"To close period \"%(period)s\" you must link all payable/receivable lines to"
" invoices."
msgstr ""
msgctxt ""
"model:ir.message,text:msg_tax_type_move_line_cash_basis_no_period_unique"
msgid "Only one tax line on cash basis can be without period per move line."
msgstr ""
msgctxt "view:account.fiscalyear:"
msgid "Taxes"
msgstr ""

View File

@@ -0,0 +1,91 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:account.fiscalyear,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice.tax.group.cash,invoice:"
msgid "Invoice"
msgstr ""
msgctxt "field:account.invoice.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.period,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.tax.group.cash,fiscalyear:"
msgid "Fiscal Year"
msgstr ""
msgctxt "field:account.tax.group.cash,party:"
msgid "Party"
msgstr ""
msgctxt "field:account.tax.group.cash,period:"
msgid "Period"
msgstr ""
msgctxt "field:account.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.tax.line,on_cash_basis:"
msgid "On Cash Basis"
msgstr ""
msgctxt "field:account.tax.line,period:"
msgid "Period"
msgstr ""
msgctxt "field:party.party,supplier_tax_group_on_cash_basis:"
msgid "Supplier Tax Group On Cash Basis"
msgstr ""
msgctxt "help:account.fiscalyear,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this fiscal year."
msgstr ""
msgctxt "help:account.invoice,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this invoice."
msgstr ""
msgctxt "help:account.period,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this period."
msgstr ""
msgctxt "help:party.party,supplier_tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this supplier."
msgstr ""
msgctxt "model:account.invoice.tax.group.cash,string:"
msgid "Account Invoice Tax Group Cash"
msgstr ""
msgctxt "model:account.tax.group.cash,string:"
msgid "Account Tax Group Cash"
msgstr ""
#, python-format
msgctxt "model:ir.message,text:msg_close_period_line_payment"
msgid ""
"To close period \"%(period)s\" you must link all payable/receivable lines to"
" invoices."
msgstr ""
msgctxt ""
"model:ir.message,text:msg_tax_type_move_line_cash_basis_no_period_unique"
msgid "Only one tax line on cash basis can be without period per move line."
msgstr ""
msgctxt "view:account.fiscalyear:"
msgid "Taxes"
msgstr ""

View File

@@ -0,0 +1,91 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:account.fiscalyear,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice.tax.group.cash,invoice:"
msgid "Invoice"
msgstr ""
msgctxt "field:account.invoice.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.period,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.tax.group.cash,fiscalyear:"
msgid "Fiscal Year"
msgstr ""
msgctxt "field:account.tax.group.cash,party:"
msgid "Party"
msgstr ""
msgctxt "field:account.tax.group.cash,period:"
msgid "Period"
msgstr ""
msgctxt "field:account.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.tax.line,on_cash_basis:"
msgid "On Cash Basis"
msgstr ""
msgctxt "field:account.tax.line,period:"
msgid "Period"
msgstr ""
msgctxt "field:party.party,supplier_tax_group_on_cash_basis:"
msgid "Supplier Tax Group On Cash Basis"
msgstr ""
msgctxt "help:account.fiscalyear,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this fiscal year."
msgstr ""
msgctxt "help:account.invoice,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this invoice."
msgstr ""
msgctxt "help:account.period,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this period."
msgstr ""
msgctxt "help:party.party,supplier_tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this supplier."
msgstr ""
msgctxt "model:account.invoice.tax.group.cash,string:"
msgid "Account Invoice Tax Group Cash"
msgstr ""
msgctxt "model:account.tax.group.cash,string:"
msgid "Account Tax Group Cash"
msgstr ""
#, python-format
msgctxt "model:ir.message,text:msg_close_period_line_payment"
msgid ""
"To close period \"%(period)s\" you must link all payable/receivable lines to"
" invoices."
msgstr ""
msgctxt ""
"model:ir.message,text:msg_tax_type_move_line_cash_basis_no_period_unique"
msgid "Only one tax line on cash basis can be without period per move line."
msgstr ""
msgctxt "view:account.fiscalyear:"
msgid "Taxes"
msgstr ""

View File

@@ -0,0 +1,91 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:account.fiscalyear,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.invoice.tax.group.cash,invoice:"
msgid "Invoice"
msgstr ""
msgctxt "field:account.invoice.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.period,tax_group_on_cash_basis:"
msgid "Tax Group On Cash Basis"
msgstr ""
msgctxt "field:account.tax.group.cash,fiscalyear:"
msgid "Fiscal Year"
msgstr ""
msgctxt "field:account.tax.group.cash,party:"
msgid "Party"
msgstr ""
msgctxt "field:account.tax.group.cash,period:"
msgid "Period"
msgstr ""
msgctxt "field:account.tax.group.cash,tax_group:"
msgid "Tax Group"
msgstr ""
msgctxt "field:account.tax.line,on_cash_basis:"
msgid "On Cash Basis"
msgstr ""
msgctxt "field:account.tax.line,period:"
msgid "Period"
msgstr ""
msgctxt "field:party.party,supplier_tax_group_on_cash_basis:"
msgid "Supplier Tax Group On Cash Basis"
msgstr ""
msgctxt "help:account.fiscalyear,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this fiscal year."
msgstr ""
msgctxt "help:account.invoice,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this invoice."
msgstr ""
msgctxt "help:account.period,tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this period."
msgstr ""
msgctxt "help:party.party,supplier_tax_group_on_cash_basis:"
msgid "The tax group reported on cash basis for this supplier."
msgstr ""
msgctxt "model:account.invoice.tax.group.cash,string:"
msgid "Account Invoice Tax Group Cash"
msgstr ""
msgctxt "model:account.tax.group.cash,string:"
msgid "Account Tax Group Cash"
msgstr ""
#, python-format
msgctxt "model:ir.message,text:msg_close_period_line_payment"
msgid ""
"To close period \"%(period)s\" you must link all payable/receivable lines to"
" invoices."
msgstr ""
msgctxt ""
"model:ir.message,text:msg_tax_type_move_line_cash_basis_no_period_unique"
msgid "Only one tax line on cash basis can be without period per move line."
msgstr ""
msgctxt "view:account.fiscalyear:"
msgid "Taxes"
msgstr ""

View File

@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data grouped="1">
<record model="ir.message" id="msg_close_period_line_payment">
<field name="text">To close period "%(period)s" you must link all payable/receivable lines to invoices.</field>
</record>
<record model="ir.message" id="msg_tax_type_move_line_cash_basis_no_period_unique">
<field name="text">Only one tax line on cash basis can be without period per move line.</field>
</record>
</data>
</tryton>

View File

@@ -0,0 +1,26 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.model import fields
from trytond.pool import PoolMeta
from trytond.transaction import Transaction
class Party(metaclass=PoolMeta):
__name__ = 'party.party'
supplier_tax_group_on_cash_basis = fields.Many2Many(
'account.tax.group.cash', 'party', 'tax_group',
"Supplier Tax Group On Cash Basis",
help="The tax group reported on cash basis for this supplier.")
@classmethod
def copy(cls, parties, default=None):
default = default.copy() if default else {}
if Transaction().check_access:
default.setdefault(
'supplier_tax_group_on_cash_basis',
cls.default_get(
['supplier_tax_group_on_cash_basis'],
with_rec_name=False).get(
'supplier_tax_group_on_cash_basis'))
return super().copy(parties, default=default)

View File

@@ -0,0 +1,26 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.ui.view" id="party_view_form">
<field name="model">party.party</field>
<field name="inherit" ref="party.party_view_form"/>
<field name="name">party_form</field>
</record>
<record model="ir.model.field.access" id="access_party_supplier_tax_group_on_cash_basis">
<field name="model">party.party</field>
<field name="field">supplier_tax_group_on_cash_basis</field>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
</record>
<record model="ir.model.field.access" id="access_party_supplier_tax_group_on_cash_basis_account">
<field name="model">party.party</field>
<field name="field">supplier_tax_group_on_cash_basis</field>
<field name="group" ref="account.group_account"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
</record>
</data>
</tryton>

View File

@@ -0,0 +1,2 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.

View File

@@ -0,0 +1,150 @@
=========================
Account Tax Cash Scenario
=========================
Imports::
>>> from decimal import Decimal
>>> from proteus import Model, Wizard
>>> from trytond.modules.account.tests.tools import (
... create_chart, create_fiscalyear, create_tax, create_tax_code, get_accounts)
>>> from trytond.modules.account_invoice.tests.tools import (
... set_fiscalyear_invoice_sequences)
>>> from trytond.modules.company.tests.tools import create_company
>>> from trytond.tests.tools import activate_modules
Activate modules::
>>> config = activate_modules('account_tax_cash', create_company, create_chart)
Create fiscal year::
>>> fiscalyear = set_fiscalyear_invoice_sequences(
... create_fiscalyear())
>>> fiscalyear.click('create_period')
>>> period = fiscalyear.periods[0]
Get accounts::
>>> accounts = get_accounts()
>>> receivable = accounts['receivable']
>>> revenue = accounts['revenue']
>>> expense = accounts['expense']
>>> account_tax = accounts['tax']
>>> account_cash = accounts['cash']
Set Cash journal::
>>> Journal = Model.get('account.journal')
>>> PaymentMethod = Model.get('account.invoice.payment.method')
>>> journal_cash, = Journal.find([('type', '=', 'cash')])
>>> payment_method = PaymentMethod()
>>> payment_method.name = 'Cash'
>>> payment_method.journal = journal_cash
>>> payment_method.credit_account = account_cash
>>> payment_method.debit_account = account_cash
>>> payment_method.save()
Create taxes::
>>> Tax = Model.get('account.tax')
>>> TaxGroup = Model.get('account.tax.group')
>>> TaxCode = Model.get('account.tax.code')
>>> group_cash_basis = TaxGroup(name="Cash Basis", code="CASH")
>>> group_cash_basis.save()
>>> tax_cash_basis = create_tax(Decimal('.10'))
>>> tax_cash_basis.group = group_cash_basis
>>> tax_cash_basis.save()
>>> code_base_cash_basis = create_tax_code(tax_cash_basis, 'base', 'invoice')
>>> code_base_cash_basis.save()
>>> code_tax_cash_basis = create_tax_code(tax_cash_basis, 'tax', 'invoice')
>>> code_tax_cash_basis.save()
>>> fiscalyear.tax_group_on_cash_basis.append(TaxGroup(group_cash_basis.id))
>>> fiscalyear.save()
>>> group_no_cash_basis = TaxGroup(name="No Cash Basis", code="NOCASH")
>>> group_no_cash_basis.save()
>>> tax_no_cash_basis = create_tax(Decimal('.05'))
>>> tax_no_cash_basis.group = group_no_cash_basis
>>> tax_no_cash_basis.save()
>>> code_base_no_cash_basis = create_tax_code(tax_no_cash_basis, 'base', 'invoice')
>>> code_base_no_cash_basis.save()
>>> code_tax_no_cash_basis = create_tax_code(tax_no_cash_basis, 'tax', 'invoice')
>>> code_tax_no_cash_basis.save()
Create party::
>>> Party = Model.get('party.party')
>>> party = Party(name='Party')
>>> party.save()
Create invoice::
>>> Invoice = Model.get('account.invoice')
>>> invoice = Invoice()
>>> invoice.party = party
>>> invoice.invoice_date = period.start_date
>>> line = invoice.lines.new()
>>> line.quantity = 1
>>> line.unit_price = Decimal('100')
>>> line.account = revenue
>>> line.taxes.extend([Tax(tax_cash_basis.id), Tax(tax_no_cash_basis.id)])
>>> invoice.click('post')
>>> invoice.total_amount
Decimal('115.00')
>>> invoice.move.state
'posted'
Check tax lines::
>>> TaxLine = Model.get('account.tax.line')
>>> lines = TaxLine.find([])
>>> len(lines)
4
>>> any(l.on_cash_basis for l in lines if l.tax == tax_no_cash_basis)
False
>>> all(l.on_cash_basis for l in lines if l.tax == tax_cash_basis)
True
Check tax codes::
>>> with config.set_context(periods=[period.id]):
... TaxCode(code_base_cash_basis.id).amount
... TaxCode(code_tax_cash_basis.id).amount
Decimal('0.00')
Decimal('0.00')
>>> with config.set_context(periods=[period.id]):
... TaxCode(code_base_no_cash_basis.id).amount
... TaxCode(code_tax_no_cash_basis.id).amount
Decimal('100.00')
Decimal('5.00')
Pay partially the invoice::
>>> pay = Wizard('account.invoice.pay', [invoice],
... context={'payment_date': period.start_date})
>>> pay.form.amount = Decimal('60')
>>> pay.form.payment_method = payment_method
>>> pay.form.date = period.start_date
>>> pay.execute('choice')
>>> pay.form.type = 'partial'
>>> pay.execute('pay')
Check tax codes::
>>> with config.set_context(periods=[period.id]):
... TaxCode(code_base_cash_basis.id).amount
... TaxCode(code_tax_cash_basis.id).amount
Decimal('52.17')
Decimal('5.22')
>>> with config.set_context(periods=[period.id]):
... TaxCode(code_base_no_cash_basis.id).amount
... TaxCode(code_tax_no_cash_basis.id).amount
Decimal('100.00')
Decimal('5.00')

View File

@@ -0,0 +1,110 @@
===============================
Account Tax Cash Closing Period
===============================
Imports::
>>> from decimal import Decimal
>>> from proteus import Model, Wizard
>>> from trytond.modules.account.tests.tools import (
... create_chart, create_fiscalyear, get_accounts)
>>> from trytond.modules.account_invoice.tests.tools import (
... set_fiscalyear_invoice_sequences)
>>> from trytond.modules.company.tests.tools import create_company
>>> from trytond.tests.tools import activate_modules
Activate modules::
>>> config = activate_modules('account_tax_cash', create_company, create_chart)
Create fiscal year::
>>> fiscalyear = set_fiscalyear_invoice_sequences(
... create_fiscalyear())
>>> fiscalyear.click('create_period')
>>> period = fiscalyear.periods[0]
Get accounts::
>>> accounts = get_accounts()
>>> receivable = accounts['receivable']
>>> revenue = accounts['revenue']
>>> expense = accounts['expense']
>>> account_cash = accounts['cash']
Set tax cash basis::
>>> Tax = Model.get('account.tax')
>>> TaxGroup = Model.get('account.tax.group')
>>> TaxCode = Model.get('account.tax.code')
>>> group_cash_basis = TaxGroup(name="Cash Basis", code="CASH")
>>> group_cash_basis.save()
>>> fiscalyear.tax_group_on_cash_basis.append(TaxGroup(group_cash_basis.id))
>>> fiscalyear.save()
Create party::
>>> Party = Model.get('party.party')
>>> party = Party(name='Party')
>>> party.save()
Create revenue::
>>> Move = Model.get('account.move')
>>> Journal = Model.get('account.journal')
>>> journal_revenue, = Journal.find([('type', '=', 'revenue')])
>>> move = Move()
>>> move.period = period
>>> move.date = period.start_date
>>> move.journal = journal_revenue
>>> line = move.lines.new()
>>> line.account = revenue
>>> line.credit = Decimal('10')
>>> line = move.lines.new()
>>> line.account = receivable
>>> line.party = party
>>> line.debit = Decimal('10')
>>> move.click('post')
Can close the period::
>>> period.click('close')
>>> period.click('reopen')
Receive cash::
>>> journal_cash, = Journal.find([('type', '=', 'cash')])
>>> move = Move()
>>> move.period = period
>>> move.date = period.start_date
>>> move.journal = journal_cash
>>> line = move.lines.new()
>>> line.account = account_cash
>>> line.debit = Decimal('10')
>>> line = move.lines.new()
>>> line.account = receivable
>>> line.party = party
>>> line.credit = Decimal('10')
>>> move.click('post')
Can not close the period::
>>> period.click('close')
Traceback (most recent call last):
...
ClosePeriodWarning: ...
Reconcile lines::
>>> Line = Model.get('account.move.line')
>>> lines = Line.find([('account', '=', receivable.id)])
>>> reconcile_lines = Wizard('account.move.reconcile_lines', lines)
>>> reconcile_lines.state
'end'
Can close the period::
>>> period.click('close')

View File

@@ -0,0 +1,138 @@
=======================================
Account Tax Cash Reconsilition Scenario
=======================================
Imports::
>>> from decimal import Decimal
>>> from proteus import Model, Wizard
>>> from trytond.modules.account.tests.tools import (
... create_chart, create_fiscalyear, create_tax, create_tax_code, get_accounts)
>>> from trytond.modules.account_invoice.tests.tools import (
... set_fiscalyear_invoice_sequences)
>>> from trytond.modules.company.tests.tools import create_company
>>> from trytond.tests.tools import activate_modules
Activate modules::
>>> config = activate_modules('account_tax_cash', create_company, create_chart)
Create fiscal year::
>>> fiscalyear = set_fiscalyear_invoice_sequences(
... create_fiscalyear())
>>> fiscalyear.click('create_period')
>>> period = fiscalyear.periods[0]
Get accounts::
>>> accounts = get_accounts()
>>> receivable = accounts['receivable']
>>> revenue = accounts['revenue']
>>> expense = accounts['expense']
>>> account_tax = accounts['tax']
>>> account_cash = accounts['cash']
Create taxes::
>>> Tax = Model.get('account.tax')
>>> TaxGroup = Model.get('account.tax.group')
>>> TaxCode = Model.get('account.tax.code')
>>> group_cash_basis = TaxGroup(name="Cash Basis", code="CASH")
>>> group_cash_basis.save()
>>> tax_cash_basis = create_tax(Decimal('.10'))
>>> tax_cash_basis.group = group_cash_basis
>>> tax_cash_basis.save()
>>> code_base_cash_basis = create_tax_code(tax_cash_basis, 'base', 'invoice')
>>> code_base_cash_basis.save()
>>> code_tax_cash_basis = create_tax_code(tax_cash_basis, 'tax', 'invoice')
>>> code_tax_cash_basis.save()
>>> fiscalyear.tax_group_on_cash_basis.append(TaxGroup(group_cash_basis.id))
>>> fiscalyear.save()
Create payment term::
>>> PaymentTerm = Model.get('account.invoice.payment_term')
>>> payment_term = PaymentTerm(name="2x")
>>> line = payment_term.lines.new(type='percent', ratio=Decimal('0.5'))
>>> line = payment_term.lines.new(type='remainder')
>>> payment_term.save()
Create party::
>>> Party = Model.get('party.party')
>>> party = Party(name='Party')
>>> party.save()
Create invoice::
>>> Invoice = Model.get('account.invoice')
>>> invoice = Invoice()
>>> invoice.party = party
>>> invoice.payment_term = payment_term
>>> line = invoice.lines.new()
>>> line.quantity = 1
>>> line.unit_price = Decimal('100')
>>> line.account = revenue
>>> line.taxes.extend([Tax(tax_cash_basis.id)])
>>> invoice.click('post')
>>> invoice.total_amount
Decimal('110.00')
>>> invoice.move.state
'posted'
Check tax lines::
>>> TaxLine = Model.get('account.tax.line')
>>> lines = TaxLine.find([])
>>> len(lines)
2
>>> all(l.on_cash_basis for l in lines if l.tax == tax_cash_basis)
True
Check tax codes::
>>> with config.set_context(periods=[period.id]):
... TaxCode(code_base_cash_basis.id).amount
... TaxCode(code_tax_cash_basis.id).amount
Decimal('0.00')
Decimal('0.00')
Pay 1 term of the invoice::
>>> Journal = Model.get('account.journal')
>>> Move = Model.get('account.move')
>>> journal_cash, = Journal.find([('type', '=', 'cash')])
>>> move = Move()
>>> move.date = period.start_date
>>> move.journal = journal_cash
>>> line = move.lines.new()
>>> line.account = revenue
>>> line.debit = Decimal('55')
>>> line = move.lines.new()
>>> line.account = receivable
>>> line.party = party
>>> line.credit = Decimal('55')
>>> move.save()
>>> payment_line, = [l for l in move.lines if l.account == receivable]
>>> term1 = [l for l in invoice.move.lines if l.account == receivable][0]
>>> reconcile_lines = Wizard('account.move.reconcile_lines',
... [payment_line, term1],
... context={'payment_date': period.start_date})
>>> reconcile_lines.state
'end'
Check tax codes::
>>> with config.set_context(periods=[period.id]):
... TaxCode(code_base_cash_basis.id).amount
... TaxCode(code_tax_cash_basis.id).amount
Decimal('50.00')
Decimal('5.00')

View File

@@ -0,0 +1,83 @@
==================================
Account Tax Cash Supplier Scenario
==================================
Imports::
>>> from decimal import Decimal
>>> from proteus import Model
>>> from trytond.modules.account.tests.tools import (
... create_chart, create_fiscalyear, create_tax, get_accounts)
>>> from trytond.modules.account_invoice.tests.tools import (
... set_fiscalyear_invoice_sequences)
>>> from trytond.modules.company.tests.tools import create_company
>>> from trytond.tests.tools import activate_modules
Activate modules::
>>> config = activate_modules('account_tax_cash', create_company, create_chart)
Create fiscal year::
>>> fiscalyear = set_fiscalyear_invoice_sequences(
... create_fiscalyear())
>>> fiscalyear.click('create_period')
>>> period = fiscalyear.periods[0]
Get accounts::
>>> accounts = get_accounts()
>>> receivable = accounts['receivable']
>>> revenue = accounts['revenue']
>>> expense = accounts['expense']
>>> account_tax = accounts['tax']
>>> account_cash = accounts['cash']
Create tax::
>>> Tax = Model.get('account.tax')
>>> TaxGroup = Model.get('account.tax.group')
>>> TaxCode = Model.get('account.tax.code')
>>> tax_group = TaxGroup(name="Supplier", code="SUP")
>>> tax_group.save()
>>> tax = create_tax(Decimal('.10'))
>>> tax.group = tax_group
>>> tax.save()
Create party::
>>> Party = Model.get('party.party')
>>> party = Party(name='Party')
>>> party.supplier_tax_group_on_cash_basis.append(TaxGroup(tax_group.id))
>>> party.save()
Create invoice::
>>> Invoice = Model.get('account.invoice')
>>> invoice = Invoice()
>>> invoice.type = 'in'
>>> invoice.party = party
>>> len(invoice.tax_group_on_cash_basis)
1
>>> invoice.invoice_date = period.start_date
>>> line = invoice.lines.new()
>>> line.quantity = 1
>>> line.unit_price = Decimal('100')
>>> line.account = expense
>>> line.taxes.extend([Tax(tax.id)])
>>> invoice.click('post')
>>> invoice.total_amount
Decimal('110.00')
>>> invoice.move.state
'posted'
Check tax lines::
>>> TaxLine = Model.get('account.tax.line')
>>> lines = TaxLine.find([])
>>> len(lines)
2
>>> all(l.on_cash_basis for l in lines)
True

View File

@@ -0,0 +1,12 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.tests.test_tryton import ModuleTestCase
class AccountTaxCashTestCase(ModuleTestCase):
'Test Account Tax Cash module'
module = 'account_tax_cash'
del ModuleTestCase

View File

@@ -0,0 +1,8 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.tests.test_tryton import load_doc_tests
def load_tests(*args, **kwargs):
return load_doc_tests(__name__, __file__, *args, **kwargs)

View File

@@ -0,0 +1,24 @@
[tryton]
version=7.8.0
depends:
account
account_invoice
ir
party
xml:
account.xml
party.xml
message.xml
[register]
model:
account.FiscalYear
account.Period
party.Party
account.TaxGroupCash
account.Tax
account.TaxLine
account.Move
account.Invoice
account.InvoiceTax
account.InvoiceTaxGroupCash

View File

@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="/form/notebook/page[@id='periods']" position="after">
<page string="Taxes" id="taxes">
<field name="tax_group_on_cash_basis" colspan="4"/>
</page>
</xpath>
</data>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="//page[@id='info']/separator[@name='comment']" position="before">
<field name="tax_group_on_cash_basis" colspan="4"/>
</xpath>
</data>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="/form/notebook/page[@id='accounting']/field[@name='supplier_tax_rule']" position="after">
<label id="empty" colspan="2"/>
<field name="supplier_tax_group_on_cash_basis" colspan="2"/>
</xpath>
</data>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="/form/field[@name='move_sequence']" position="after">
<field name="tax_group_on_cash_basis" colspan="4"/>
</xpath>
</data>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="/form/field[@name='amount']" position="after">
<newline/>
<label name="on_cash_basis"/>
<field name="on_cash_basis"/>
<label name="period"/>
<field name="period"/>
</xpath>
</data>