Merge new root

This commit is contained in:
Cédric Krier
2022-12-16 21:36:59 +01:00
11253 changed files with 1851931 additions and 0 deletions
+8131
View File
File diff suppressed because it is too large Load Diff
+78
View File
@@ -0,0 +1,78 @@
clone:
hg:
image: plugins/hg
environment:
- HG_SHARE_POOL=/root/.cache/hg
volumes:
- cache:/root/.cache
pipeline:
tox:
image: ${IMAGE}
environment:
- CFLAGS=-O0
- DB_CACHE=/cache
- TOX_TESTENV_PASSENV=CFLAGS DB_CACHE CI_BUILD_NUMBER CI_JOB_NUMBER CI_JOB_ID
- POSTGRESQL_URI=postgresql://postgres@postgresql:5432/
commands:
- echo "[extensions]" >> /root/.hgrc
- echo "hgext.share =" >> /root/.hgrc
- echo "[share]" >> /root/.hgrc
- echo "pool = /root/.cache/hg" >> /root/.hgrc
- pip install tox
- tox -e "${TOXENV}-${DATABASE}"
volumes:
- cache:/root/.cache
check_dist:
image: ${IMAGE}
commands:
- pip install twine
- python setup.py sdist
- twine check dist/*
volumes:
- cache:/root/.cache
check_doc:
image: ${IMAGE}
commands:
- pip install sphinx
- python -m sphinx -T -E -W -n -b html doc _build/html
- python -m sphinx -T -E -W -n -b linkcheck doc _build
volumes:
- cache:/root/.cache
services:
postgresql:
image: postgres
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
command: "-c fsync=off -c synchronous_commit=off -c full_page_writes=off"
when:
matrix:
DATABASE: postgresql
matrix:
include:
- IMAGE: python:3.7
TOXENV: py37
DATABASE: sqlite
- IMAGE: python:3.7
TOXENV: py37
DATABASE: postgresql
- IMAGE: python:3.8
TOXENV: py38
DATABASE: sqlite
- IMAGE: python:3.8
TOXENV: py38
DATABASE: postgresql
- IMAGE: python:3.9
TOXENV: py39
DATABASE: sqlite
- IMAGE: python:3.9
TOXENV: py39
DATABASE: postgresql
- IMAGE: python:3.10
TOXENV: py310
DATABASE: sqlite
- IMAGE: python:3.10
TOXENV: py310
DATABASE: postgresql
+2
View File
@@ -0,0 +1,2 @@
[flake8]
ignore=E123,E124,E126,E128,E741,W503
+3
View File
@@ -0,0 +1,3 @@
[settings]
multi_line_output=4
known_first_party=trytond
+269
View File
@@ -0,0 +1,269 @@
* Display general ledger information on account form
Version 6.6.0 - 2022-10-31
--------------------------
* Bug fixes (see mercurial logs for details)
* Add wizard to delegate move lines to another party
* Support date range context for account type amount
* Use context model for chart of accounts and taxes
Version 6.4.0 - 2022-05-02
--------------------------
* Bug fixes (see mercurial logs for details)
* Prevent creating fiscal year before closed one
* Add automatic reconciliation of suggestions
* Prevent to change the type of journal with posted moves
* Mute reconciled payable/receivable lines
* Add delegated amount on move lines
* Enforce same type for children account as their parent
* Show debit / credit columns in ledgers when they contain lines
* Count number of lines in Account and General Ledger
* Handle errors in move template expression
* Rename split lines into reschedule lines
* Add optional credit type on account
* Always require a date to compute taxes
* Add support for Python 3.10
* Remove support for Python 3.6
Version 6.2.0 - 2021-11-01
--------------------------
* Bug fixes (see mercurial logs for details)
* Add origin record name property on move line
* Add group to edit accounting of parties
* Rename lock buttons into lock\_
* Add split lines wizard
* Validate that all inactive accounts have no balance when closing periods
Version 6.0.0 - 2021-05-03
--------------------------
* Bug fixes (see mercurial logs for details)
* Add check to mark types as debt
* Add relate from party to general ledger accounts
* Accumulate start balance on general ledger line
* Print general journal from moves
* Add reconciliation sequence to configuration
* Add report for income statement and balance sheet
* Allow filtering general ledger by journal
* Add journal context to Move.query_get
* Add reconciliation to general ledger line
* Make move's journal read-only once numbered
* Add more term units to aged balance
Version 5.8.0 - 2020-11-02
--------------------------
* Bug fixes (see mercurial logs for details)
* Remove support for Python 3.5
* Allow defining the tax date on taxable lines
* Add General Ledger per account and party
* Add start/end date to tax rule line
* Test for lines to reconcile before showing the next account
Version 5.6.0 - 2020-05-04
--------------------------
* Bug fixes (see mercurial logs for details)
* Order account by its code and name
* Add optional debit type on account
* Show the move resulting from the GroupLines wizard
* Allow periods to end on any day of the month
* Use a wizard to select parameters when creating periods
* Modularize code in GroupLines wizard
Version 5.4.0 - 2019-11-04
--------------------------
* Bug fixes (see mercurial logs for details)
* Add default customer and supplier tax rule
* Update sequence name in renew fiscal year
* Make tax required on tax line
* Use today as default date when inside the period
Version 5.2.0 - 2019-05-06
--------------------------
* Bug fixes (see mercurial logs for details)
* Add group lines wizard
* Manage delegate reconciliation
* Remove starting wildcard when searching on codes and numbers
* Remove display balance
* Merge account kind and account type
* Add origin on move line
* Base journal cash report on account kind receivable and payable
Version 5.0.0 - 2018-10-01
--------------------------
* Bug fixes (see mercurial logs for details)
* Set party required on account payable and receivable of party
* Add writeoff method
* Remove default account from journal
* Add replacement account
* Add period on account and tax code
* Add template override mechanism to tax rules and tax rule lines
* Remove support for Python 2.7
* Remove journal type
Version 4.8.0 - 2018-04-23
--------------------------
* Bug fixes (see mercurial logs for details)
* Use tax code line for tax reporting
* Use custom clause for Tax Code sum
* Add check to modify Tax Lines
* Check receivable/payable to erase party
* Open general ledger accounts from Income Statement relate
* Add warning when creating a second chart of account
* Manage chart update per record
* Allow to reconcile many group of lines with Line.reconcile
Version 4.6.0 - 2017-10-30
--------------------------
* Bug fixes (see mercurial logs for details)
* Allow to keep original taxes when applying a tax rule
* Add legal notice on taxes
* Ease creation of new fiscalyear
* Drop required on party payable and receivable accounts
* Make tax description translatable
* Add searcher on General Ledger
* Add from and to date to General Ledger and Income Statement
* Add move filtering on date range
* Simplify default values for move line
Version 4.4.0 - 2017-05-01
--------------------------
* Bug fixes (see mercurial logs for details)
* Add definitive lock of period and fiscal year
Version 4.2.0 - 2016-11-28
--------------------------
* Bug fixes (see mercurial logs for details)
* Add test wizard for taxes
* Remove journal view
* Add amount second currency on Account
* Enforce second currency on Account
* Remove code from Fiscalyear and Period
* Remove journal option for updating posted moves
* Replace Journal-Period name by function field
* Manage readonly state on Move Line
* Add comparison amount on Balance Sheet and Income Statement
Version 4.0.0 - 2016-05-02
--------------------------
* Bug fixes (see mercurial logs for details)
* Move tax Rounding configuration from account_invoice
* Get the tax type from the base sign:
The tax signs for credit note must be inverted manually.
* New reports design: General Ledger, Trial Balance and Aged Balance
* Add Python3 support
* Merge Third Party Balance into Aged Balance
* Add date to Aged Balance
* Add date on Reconciliation
Version 3.8.0 - 2015-11-02
--------------------------
* Bug fixes (see mercurial logs for details)
* Make Chart of Account not translatable
* Add Journal Cash reporting
Version 3.6.0 - 2015-04-20
--------------------------
* Bug fixes (see mercurial logs for details)
* Add support for PyPy
* Add move template
* Improve payable/receivable lines
* Enforce same sign between amount_second_currency and debit - credit
* Allow tax modifying the unit price
* Add reverse_compute on Tax
* Add fix_party script
* Allow to display only the balance in the General Ledger
* Add TaxableMixin
* Allow to set a description to cancel move
Version 3.4.0 - 2014-10-20
--------------------------
* Bug fixes (see mercurial logs for details)
* Add option on Account for party required
* Add wizard to reconcile all accounts
* Add cancel to Account Move
Version 3.2.0 - 2014-04-21
--------------------------
* Bug fixes (see mercurial logs for details)
* Add start/end date to tax
* Use account of write-off journal as default
* Add write-off journal type
* Add description on write-off move
Version 3.0.0 - 2013-10-21
--------------------------
* Bug fixes (see mercurial logs for details)
* Add balance non-deferral wizard
* Display write-off amount in reconciliation
* Enforce same company for a chart of account
* Change tax percentage into rate
* Autoreconcile posted move with just one line of zero
* Remove centralised counterpart option and functionality
Version 2.8.0 - 2013-04-22
--------------------------
* Bug fixes (see mercurial logs for details)
* Make period's post_move_sequence optional and use fiscal year's one if empty
* Add sale, purchase or other kind on Tax Rule and Tax Group
Version 2.6.0 - 2012-10-22
--------------------------
* Bug fixes (see mercurial logs for details)
* Rename:
- Move.name into number
- Move.reference into post_number
- MoveLine.reference into description
* Remove name and active on move line
* Add origin field on Move
* Compute the aged balance over all fiscalyears and reverse dates order
* Add cumulate option for Debit/Credit on Account
* Allow to open accounts from balance sheet
* Add start/end balance to Trial balance
Version 2.4.0 - 2012-04-23
--------------------------
* Bug fixes (see mercurial logs for details)
* Add new account type stock
Version 2.2.0 - 2011-10-24
--------------------------
* Bug fixes (see mercurial logs for details)
* Add test creation of minimal chart of accounts
Version 2.0.0 - 2011-04-27
--------------------------
* Bug fixes (see mercurial logs for details)
Version 1.8.0 - 2010-11-01
--------------------------
* Bug fixes (see mercurial logs for details)
Version 1.6.0 - 2010-05-11
--------------------------
* Bug fixes (see mercurial logs for details)
* Add description field on account.tax.code.template and account.tax.code
* Add tax field on account.tax.line
* Remove unique constraint on tax group code column
* Add default search value on account move
* Remove egenix-mx-base and replace it by python-dateutil
* Improve General Ledger to compute lines for each accounts at once
Version 1.4.0 - 2009-10-19
--------------------------
* Bug fixes (see mercurial logs for details)
* Add origin_tax field on account.tax.rule
* Change get_receivable_payable on party.party to work with a list of name
* Remove blocked field on account.move.line
* Fix digits of amount on tax and tax line
Version 1.2.0 - 2009-04-20
--------------------------
* Bug fixes (see mercurial logs for details)
* Add tax rule to replace vat and supplier_vat on party
Previous vat configuration will be lost
* Allow to update chart of account from template
* Change sequence on Journal into Property for multi-company
* Allow egg installation
Version 1.0.0 - 2008-11-17
--------------------------
* Initial release
+17
View File
@@ -0,0 +1,17 @@
Copyright (C) 2008-2022 Cédric Krier.
Copyright (C) 2008-2013 Bertrand Chenal.
Copyright (C) 2008-2022 B2CK SPRL.
Copyright (C) 2004-2008 Tiny SPRL.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
+674
View File
@@ -0,0 +1,674 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
+6
View File
@@ -0,0 +1,6 @@
include CHANGELOG
include COPYRIGHT
include LICENSE
include README.rst
include icons/LICENSE
graft doc
+1
View File
@@ -0,0 +1 @@
doc/index.rst
+122
View File
@@ -0,0 +1,122 @@
# 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.pool import Pool
from . import (
account, company, configuration, fiscalyear, journal, move, move_template,
party, period, tax)
from .move import MoveLineMixin
__all__ = ['register', 'MoveLineMixin']
def register():
Pool.register(
fiscalyear.FiscalYear,
fiscalyear.BalanceNonDeferralStart,
company.Company,
account.TypeTemplate,
account.Type,
account.AccountTemplate,
account.AccountTemplateTaxTemplate,
account.Account,
account.AccountParty,
account.AccountDeferral,
account.AccountTax,
account.AccountContext,
account.GeneralLedgerAccount,
account.GeneralLedgerAccountContext,
account.GeneralLedgerAccountParty,
account.GeneralLedgerLine,
account.GeneralLedgerLineContext,
account.BalanceSheetContext,
account.BalanceSheetComparisionContext,
account.IncomeStatementContext,
account.CreateChartStart,
account.CreateChartAccount,
account.CreateChartProperties,
account.UpdateChartStart,
account.UpdateChartSucceed,
account.AgedBalanceContext,
account.AgedBalance,
configuration.Configuration,
configuration.ConfigurationDefaultAccount,
configuration.DefaultTaxRule,
configuration.Sequence,
period.Period,
journal.Journal,
journal.JournalSequence,
journal.JournalCashContext,
journal.JournalPeriod,
move.Move,
move.Reconciliation,
configuration.ConfigurationTaxRounding,
move.Line,
move.WriteOff,
move.OpenJournalAsk,
move.ReconcileLinesWriteOff,
move.ReconcileStart,
move.ReconcileShow,
move.CancelMovesDefault,
move.GroupLinesStart,
move.RescheduleLinesStart,
move.RescheduleLinesPreview,
move.RescheduleLinesTerm,
move.DelegateLinesStart,
tax.TaxGroup,
tax.TaxCodeTemplate,
tax.TaxCode,
tax.TaxCodeLineTemplate,
tax.TaxCodeLine,
tax.TaxCodeContext,
tax.TaxTemplate,
tax.Tax,
tax.TaxLine,
tax.TaxRuleTemplate,
tax.TaxRule,
tax.TaxRuleLineTemplate,
tax.TaxRuleLine,
tax.TestTaxView,
tax.TestTaxViewResult,
move_template.MoveTemplate,
move_template.MoveTemplateKeyword,
move_template.MoveLineTemplate,
move_template.TaxLineTemplate,
move_template.CreateMoveTemplate,
move_template.CreateMoveKeywords,
party.Party,
party.PartyAccount,
fiscalyear.CreatePeriodsStart,
fiscalyear.RenewFiscalYearStart,
module='account', type_='model')
Pool.register(
account.OpenType,
fiscalyear.BalanceNonDeferral,
account.CreateChart,
account.UpdateChart,
account.OpenGeneralLedgerAccountParty,
move.OpenJournal,
move.OpenAccount,
move.ReconcileLines,
move.UnreconcileLines,
move.Reconcile,
move.CancelMoves,
move.GroupLines,
move.RescheduleLines,
move.DelegateLines,
move_template.CreateMove,
tax.OpenTaxCode,
tax.TestTax,
party.PartyReplace,
party.PartyErase,
fiscalyear.CreatePeriods,
fiscalyear.RenewFiscalYear,
module='account', type_='wizard')
Pool.register(
account.AccountTypeStatement,
account.GeneralLedger,
account.TrialBalance,
account.AgedBalanceReport,
move.GeneralJournal,
module='account', type_='report')
File diff suppressed because it is too large Load Diff
+956
View File
@@ -0,0 +1,956 @@
<?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="res.group" id="group_account">
<field name="name">Account</field>
</record>
<record model="res.group" id="group_account_party">
<field name="name">Accounting Party</field>
<field name="parent" ref="group_account"/>
</record>
<record model="res.group" id="group_account_admin">
<field name="name">Account Administration</field>
<field name="parent" ref="group_account"/>
</record>
<record model="res.user-res.group" id="user_admin_group_account">
<field name="user" ref="res.user_admin"/>
<field name="group" ref="group_account"/>
</record>
<record model="res.user-res.group" id="user_admin_group_account_party">
<field name="user" ref="res.user_admin"/>
<field name="group" ref="group_account_party"/>
</record>
<record model="res.user-res.group" id="user_admin_group_account_admin">
<field name="user" ref="res.user_admin"/>
<field name="group" ref="group_account_admin"/>
</record>
<record model="ir.ui.icon" id="account_icon">
<field name="name">tryton-account</field>
<field name="path">icons/tryton-account.svg</field>
</record>
<record model="ir.ui.icon" id="account_open_icon">
<field name="name">tryton-account-open</field>
<field name="path">icons/tryton-account-open.svg</field>
</record>
<record model="ir.ui.icon" id="account_close_icon">
<field name="name">tryton-account-close</field>
<field name="path">icons/tryton-account-close.svg</field>
</record>
<record model="ir.ui.icon" id="account_block_icon">
<field name="name">tryton-account-block</field>
<field name="path">icons/tryton-account-block.svg</field>
</record>
<menuitem
name="Financial"
id="menu_account"
sequence="60"
icon="tryton-account"/>
<record model="ir.ui.menu-res.group" id="menu_account_group_account">
<field name="menu" ref="menu_account"/>
<field name="group" ref="group_account"/>
</record>
<record model="ir.ui.menu-res.group" id="menu_account_group_account_admin">
<field name="menu" ref="menu_account"/>
<field name="group" ref="group_account_admin"/>
</record>
<menuitem
name="Configuration"
parent="menu_account"
sequence="0"
id="menu_account_configuration"
icon="tryton-settings"/>
<record model="ir.ui.menu-res.group"
id="menu_account_configuration_group_account_admin">
<field name="menu" ref="menu_account_configuration"/>
<field name="group" ref="group_account_admin"/>
</record>
<menuitem
name="Templates"
parent="menu_account_configuration"
sequence="10"
id="menu_templates"/>
<menuitem
name="General Account"
parent="menu_account_configuration"
sequence="20"
id="menu_general_account_configuration"/>
<menuitem
name="Entries"
parent="menu_account"
sequence="30"
id="menu_entries"/>
<menuitem
name="Processing"
parent="menu_account"
sequence="50"
id="menu_processing"/>
<menuitem
name="Reporting"
parent="menu_account"
sequence="100"
id="menu_reporting"/>
<record model="ir.ui.view" id="account_type_template_view_form">
<field name="model">account.account.type.template</field>
<field name="type">form</field>
<field name="name">account_type_template_form</field>
</record>
<record model="ir.ui.view" id="account_type_template_view_list">
<field name="model">account.account.type.template</field>
<field name="type">tree</field>
<field name="priority" eval="10"/>
<field name="name">account_type_template_list</field>
</record>
<record model="ir.ui.view" id="account_type_template_view_tree">
<field name="model">account.account.type.template</field>
<field name="type">tree</field>
<field name="priority" eval="20"/>
<field name="field_childs">childs</field>
<field name="name">account_type_template_tree</field>
</record>
<record model="ir.action.act_window" id="act_account_type_template_tree">
<field name="name">Account Types</field>
<field name="res_model">account.account.type.template</field>
<field name="domain" eval="[('parent', '=', None)]" pyson="1"/>
</record>
<record model="ir.action.act_window.view"
id="act_account_type_template_tree_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="account_type_template_view_tree"/>
<field name="act_window" ref="act_account_type_template_tree"/>
</record>
<record model="ir.action.act_window.view"
id="act_account_type_template_tree_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="account_type_template_view_form"/>
<field name="act_window" ref="act_account_type_template_tree"/>
</record>
<menuitem
parent="menu_templates"
action="act_account_type_template_tree"
sequence="10"
id="menu_account_type_template_tree"/>
<record model="ir.ui.view" id="account_type_view_form">
<field name="model">account.account.type</field>
<field name="type">form</field>
<field name="name">account_type_form</field>
</record>
<record model="ir.ui.view" id="account_type_view_tree">
<field name="model">account.account.type</field>
<field name="type">tree</field>
<field name="priority" eval="20"/>
<field name="field_childs">childs</field>
<field name="name">account_type_tree</field>
</record>
<record model="ir.ui.view" id="account_type_view_list">
<field name="model">account.account.type</field>
<field name="type">tree</field>
<field name="priority" eval="10"/>
<field name="name">account_type_list</field>
</record>
<record model="ir.action.act_window" id="act_account_type_tree">
<field name="name">Account Types</field>
<field name="res_model">account.account.type</field>
<field name="domain" eval="[('parent', '=', None)]" pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_account_type_tree_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="account_type_view_tree"/>
<field name="act_window" ref="act_account_type_tree"/>
</record>
<record model="ir.action.act_window.view" id="act_account_type_tree_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="account_type_view_form"/>
<field name="act_window" ref="act_account_type_tree"/>
</record>
<menuitem
parent="menu_general_account_configuration"
action="act_account_type_tree"
sequence="10"
id="menu_account_type_tree"/>
<record model="ir.action.act_window" id="act_account_type_list">
<field name="name">Account Types</field>
<field name="res_model">account.account.type</field>
</record>
<record model="ir.action.act_window.view" id="act_account_type_list_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="account_type_view_list"/>
<field name="act_window" ref="act_account_type_list"/>
</record>
<record model="ir.action.act_window.view" id="act_account_type_list_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="account_type_view_form"/>
<field name="act_window" ref="act_account_type_list"/>
</record>
<menuitem
parent="menu_account_type_tree"
action="act_account_type_list"
sequence="10"
id="menu_account_type_list"/>
<record model="ir.model.access" id="access_account_type">
<field name="model" search="[('model', '=', 'account.account.type')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_account_type_account_admin">
<field name="model" search="[('model', '=', 'account.account.type')]"/>
<field name="group" ref="group_account_admin"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.model.field.access" id="access_account_type_amount">
<field name="field" search="[('model.model', '=', 'account.account.type'), ('name', '=', 'amount')]"/>
<field name="perm_read" eval="False"/>
</record>
<record model="ir.model.field.access" id="access_account_type_amount_account">
<field name="field" search="[('model.model', '=', 'account.account.type'), ('name', '=', 'amount')]"/>
<field name="group" ref="group_account"/>
<field name="perm_read" eval="True"/>
</record>
<record model="ir.model.field.access" id="access_account_type_amount_cmp">
<field name="field" search="[('model.model', '=', 'account.account.type'), ('name', '=', 'amount_cmp')]"/>
<field name="perm_read" eval="False"/>
</record>
<record model="ir.model.field.access" id="access_account_type_amount_cmp_account">
<field name="field" search="[('model.model', '=', 'account.account.type'), ('name', '=', 'amount_cmp')]"/>
<field name="group" ref="group_account"/>
<field name="perm_read" eval="True"/>
</record>
<record model="ir.rule.group" id="rule_group_account_type_companies">
<field name="name">User in companies</field>
<field name="model"
search="[('model', '=', 'account.account.type')]"/>
<field name="global_p" eval="True"/>
</record>
<record model="ir.rule" id="rule_account_type_companies">
<field name="domain"
eval="[('company', 'in', Eval('companies', []))]"
pyson="1"/>
<field name="rule_group" ref="rule_group_account_type_companies"/>
</record>
<record model="ir.action.report" id="report_account_type_statement">
<field name="name">Statement</field>
<field name="records">listed</field>
<field name="model">account.account.type</field>
<field name="report_name">account.account.type.statement</field>
<field name="report">account/type_statement.fodt</field>
</record>
<record model="ir.action.keyword" id="report_account_type_statement_keyword">
<field name="keyword">form_print</field>
<field name="model">account.account.type,-1</field>
<field name="action" ref="report_account_type_statement"/>
</record>
<record model="ir.action-res.group" id="report_account_type_statement_group_account">
<field name="action" ref="report_account_type_statement"/>
<field name="group" ref="group_account"/>
</record>
<record model="ir.ui.view" id="account_template_view_form">
<field name="model">account.account.template</field>
<field name="type">form</field>
<field name="name">account_template_form</field>
</record>
<record model="ir.ui.view" id="account_template_view_list">
<field name="model">account.account.template</field>
<field name="type">tree</field>
<field name="priority" eval="10"/>
<field name="name">account_template_list</field>
</record>
<record model="ir.ui.view" id="account_template_view_tree">
<field name="model">account.account.template</field>
<field name="type">tree</field>
<field name="priority" eval="20"/>
<field name="field_childs">childs</field>
<field name="name">account_template_tree</field>
</record>
<record model="ir.action.act_window" id="act_account_template_tree">
<field name="name">Accounts</field>
<field name="res_model">account.account.template</field>
<field name="domain" eval="[('parent', '=', None)]" pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_account_template_tree_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="account_template_view_tree"/>
<field name="act_window" ref="act_account_template_tree"/>
</record>
<record model="ir.action.act_window.view" id="act_account_template_tree_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="account_template_view_form"/>
<field name="act_window" ref="act_account_template_tree"/>
</record>
<menuitem
parent="menu_templates"
action="act_account_template_tree"
sequence="20"
id="menu_account_template_tree"/>
<record model="ir.model.access" id="access_account_template">
<field name="model" search="[('model', '=', 'account.account.template')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.ui.view" id="account_deferral_view_form">
<field name="model">account.account.deferral</field>
<field name="type">form</field>
<field name="name">account_deferral_form</field>
</record>
<record model="ir.ui.view" id="account_deferral_view_tree">
<field name="model">account.account.deferral</field>
<field name="type">tree</field>
<field name="name">account_deferral_tree</field>
</record>
<record model="ir.ui.view" id="create_chart_start_view_form">
<field name="model">account.create_chart.start</field>
<field name="type">form</field>
<field name="name">create_chart_start_form</field>
</record>
<record model="ir.ui.view" id="create_chart_account_view_form">
<field name="model">account.create_chart.account</field>
<field name="type">form</field>
<field name="name">create_chart_account_form</field>
</record>
<record model="ir.ui.view" id="create_chart_properties_view_form">
<field name="model">account.create_chart.properties</field>
<field name="type">form</field>
<field name="name">create_chart_properties_form</field>
</record>
<record model="ir.action.wizard" id="wizard_create_chart">
<field name="name">Create Chart of Accounts from Template</field>
<field name="wiz_name">account.create_chart</field>
</record>
<menuitem
parent="menu_templates"
action="wizard_create_chart"
sequence="90"
id="menu_create_chart"/>
<record model="ir.module.config_wizard.item"
id="config_wizard_item_chart_account">
<field name="action" ref="wizard_create_chart"/>
</record>
<record model="ir.ui.view" id="update_chart_start_view_form">
<field name="model">account.update_chart.start</field>
<field name="type">form</field>
<field name="name">update_chart_start_form</field>
</record>
<record model="ir.ui.view" id="update_chart_succeed_view_form">
<field name="model">account.update_chart.succeed</field>
<field name="type">form</field>
<field name="name">update_chart_succeed_form</field>
</record>
<record model="ir.action.wizard" id="wizard_update_chart">
<field name="name">Update Chart of Accounts from Template</field>
<field name="wiz_name">account.update_chart</field>
</record>
<menuitem
parent="menu_templates"
action="wizard_update_chart"
sequence="90"
id="menu_update_chart"/>
<record model="ir.ui.view" id="account_view_form">
<field name="model">account.account</field>
<field name="type">form</field>
<field name="name">account_form</field>
</record>
<record model="ir.ui.view" id="account_view_tree">
<field name="model">account.account</field>
<field name="type">tree</field>
<field name="priority" eval="20"/>
<field name="field_childs">childs</field>
<field name="name">account_tree</field>
</record>
<record model="ir.ui.view" id="account_view_list">
<field name="model">account.account</field>
<field name="type">tree</field>
<field name="priority" eval="10"/>
<field name="name">account_list</field>
</record>
<record model="ir.action.act_window" id="act_account_tree">
<field name="name">Accounts</field>
<field name="res_model">account.account</field>
<field name="domain" eval="[('parent', '=', None)]" pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_account_tree_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="account_view_tree"/>
<field name="act_window" ref="act_account_tree"/>
</record>
<record model="ir.action.act_window.view" id="act_account_tree_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="account_view_form"/>
<field name="act_window" ref="act_account_tree"/>
</record>
<menuitem
parent="menu_general_account_configuration"
action="act_account_tree"
sequence="20"
id="menu_account_tree"/>
<record model="ir.action.act_window" id="act_account_list">
<field name="name">Accounts</field>
<field name="res_model">account.account</field>
</record>
<record model="ir.action.act_window.view" id="act_account_list_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="account_view_list"/>
<field name="act_window" ref="act_account_list"/>
</record>
<record model="ir.action.act_window.view" id="act_account_list_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="account_view_form"/>
<field name="act_window" ref="act_account_list"/>
</record>
<menuitem
parent="menu_account_tree"
action="act_account_list"
sequence="10"
id="menu_account_list"/>
<record model="ir.ui.view" id="account_view_list_balance_sheet">
<field name="model">account.account</field>
<field name="type">tree</field>
<field name="priority" eval="20"/>
<field name="name">account_list_balance_sheet</field>
</record>
<record model="ir.action.act_window" id="act_account_balance_sheet">
<field name="name">Accounts</field>
<field name="res_model">account.account</field>
<field name="context_model">account.balance_sheet.context</field>
<field name="context_domain"
eval="[('company', '=', Eval('company', -1))]"
pyson="1"/>
<field name="domain"
eval="[['OR', ('type', 'child_of', Eval('active_id'), 'parent'), ('debit_type', 'child_of', Eval('active_id'), 'parent')], ('type', '!=', None), ('closed', '!=', True)]"
pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_account_list2_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="account_view_list_balance_sheet"/>
<field name="act_window" ref="act_account_balance_sheet"/>
</record>
<record model="ir.action.wizard" id="act_open_type">
<field name="name">Open Type</field>
<field name="wiz_name">account.account.open_type</field>
<field name="model">account.account.type</field>
</record>
<record model="ir.action.keyword" id="act_open_type_keyword">
<field name="keyword">tree_open</field>
<field name="model">account.account.type,-1</field>
<field name="action" ref="act_open_type"/>
</record>
<record model="ir.ui.view" id="account_view_tree_chart">
<field name="model">account.account</field>
<field name="type">tree</field>
<field name="field_childs">childs</field>
<field name="priority" eval="20"/>
<field name="name">account_tree_chart</field>
</record>
<record model="ir.action.act_window" id="act_account_tree_chart">
<field name="name">Chart of Accounts</field>
<field name="res_model">account.account</field>
<field name="context_model">account.account.context</field>
<field name="domain"
eval="[('parent', '=', None), ('context_company', '=', True)]"
pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_account_tree_chart_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="account_view_tree_chart"/>
<field name="act_window" ref="act_account_tree_chart"/>
</record>
<menuitem
parent="menu_reporting"
action="act_account_tree_chart"
sequence="30"
id="menu_account_tree_chart"/>
<record model="ir.model.access" id="access_account">
<field name="model" search="[('model', '=', 'account.account')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_account_account_admin">
<field name="model" search="[('model', '=', 'account.account')]"/>
<field name="group" ref="group_account_admin"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.model.field.access" id="access_account_balance">
<field name="field" search="[('model.model', '=', 'account.account'), ('name', '=', 'balance')]"/>
<field name="perm_read" eval="False"/>
</record>
<record model="ir.model.field.access" id="access_account_balance_account">
<field name="field" search="[('model.model', '=', 'account.account'), ('name', '=', 'balance')]"/>
<field name="group" ref="group_account"/>
<field name="perm_read" eval="True"/>
</record>
<record model="ir.model.field.access" id="access_account_credit">
<field name="field" search="[('model.model', '=', 'account.account'), ('name', '=', 'credit')]"/>
<field name="perm_read" eval="False"/>
</record>
<record model="ir.model.field.access" id="access_account_credit_account">
<field name="field" search="[('model.model', '=', 'account.account'), ('name', '=', 'credit')]"/>
<field name="group" ref="group_account"/>
<field name="perm_read" eval="True"/>
</record>
<record model="ir.model.field.access" id="access_account_debit">
<field name="field" search="[('model.model', '=', 'account.account'), ('name', '=', 'debit')]"/>
<field name="perm_read" eval="False"/>
</record>
<record model="ir.model.field.access" id="access_account_debit_account">
<field name="field" search="[('model.model', '=', 'account.account'), ('name', '=', 'debit')]"/>
<field name="group" ref="group_account"/>
<field name="perm_read" eval="True"/>
</record>
<record model="ir.model.field.access" id="access_account_amount_second_currency">
<field name="field" search="[('model.model', '=', 'account.account'), ('name', '=', 'amount_second_currency')]"/>
<field name="perm_read" eval="False"/>
</record>
<record model="ir.model.field.access" id="access_account_amount_second_currency_account">
<field name="field" search="[('model.model', '=', 'account.account'), ('name', '=', 'amount_second_currency')]"/>
<field name="group" ref="group_account"/>
<field name="perm_read" eval="True"/>
</record>
<record model="ir.rule.group" id="rule_group_account_companies">
<field name="name">User in companies</field>
<field name="model" search="[('model', '=', 'account.account')]"/>
<field name="global_p" eval="True"/>
</record>
<record model="ir.rule" id="rule_account_companies">
<field name="domain"
eval="[('company', 'in', Eval('companies', []))]"
pyson="1"/>
<field name="rule_group" ref="rule_group_account_companies"/>
</record>
<record model="ir.ui.view" id="account_context_view_form">
<field name="model">account.account.context</field>
<field name="type">form</field>
<field name="name">account_context_form</field>
</record>
<record model="ir.action.report" id="report_general_ledger">
<field name="name">General Ledger</field>
<field name="records">listed</field>
<field name="model">account.general_ledger.account</field>
<field name="report_name">account.general_ledger</field>
<field name="report">account/general_ledger.fodt</field>
</record>
<record model="ir.action.keyword" id="report_general_ledger_keyword">
<field name="keyword">form_print</field>
<field name="model">account.general_ledger.account,-1</field>
<field name="action" ref="report_general_ledger"/>
</record>
<record model="ir.action.report" id="report_trial_balance">
<field name="name">Trial Balance</field>
<field name="records">listed</field>
<field name="model">account.general_ledger.account</field>
<field name="report_name">account.trial_balance</field>
<field name="report">account/trial_balance.fodt</field>
</record>
<record model="ir.action.keyword" id="report_trial_balance_keyword">
<field name="keyword">form_print</field>
<field name="model">account.general_ledger.account,-1</field>
<field name="action" ref="report_trial_balance"/>
</record>
<record model="ir.ui.view" id="general_ledger_account_view_list">
<field name="model">account.general_ledger.account</field>
<field name="type">tree</field>
<field name="name">general_ledger_account_list</field>
</record>
<record model="ir.action.act_window" id="act_general_ledger_account_form">
<field name="name">General Ledger - Accounts</field>
<field name="res_model">account.general_ledger.account</field>
<field name="context_model">account.general_ledger.account.context</field>
<field name="search_value" eval="[('line_count', '!=', 0)]" pyson="1"/>
</record>
<record model="ir.action.act_window.view"
id="act_general_ledger_account_form_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="general_ledger_account_view_list"/>
<field name="act_window" ref="act_general_ledger_account_form"/>
</record>
<menuitem
name="General Ledger"
parent="menu_reporting"
action="act_general_ledger_account_form"
sequence="10"
id="menu_general_ledger"/>
<record model="ir.action.act_window" id="act_account_general_ledger">
<field name="name">Accounts</field>
<field name="res_model">account.general_ledger.account</field>
<field name="context_model">account.general_ledger.account.context</field>
<field
name="context_domain"
eval="[('company', '=', Eval('company', -1))]"
pyson="1"/>
<field
name="domain"
eval="['OR', ('type', 'child_of', Eval('active_id'), 'parent'), ('debit_type', 'child_of', Eval('active_id'), 'parent')]"
pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_account_general_ledger_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="general_ledger_account_view_list"/>
<field name="act_window" ref="act_account_general_ledger"/>
</record>
<record model="ir.model.access" id="access_general_ledger_account">
<field name="model" search="[('model', '=', 'account.general_ledger.account')]"/>
<field name="perm_read" eval="False"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_general_ledger_account_account">
<field name="model" search="[('model', '=', 'account.general_ledger.account')]"/>
<field name="group" ref="group_account"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.rule.group" id="rule_group_general_ledger_account_companies">
<field name="name">User in companies</field>
<field name="model"
search="[('model', '=', 'account.general_ledger.account')]"/>
<field name="global_p" eval="True"/>
</record>
<record model="ir.rule" id="rule_general_ledger_account_companies">
<field name="domain"
eval="[('company', 'in', Eval('companies', []))]"
pyson="1"/>
<field name="rule_group" ref="rule_group_general_ledger_account_companies"/>
</record>
<record model="ir.ui.view" id="general_ledger_account_party_view_list">
<field name="model">account.general_ledger.account.party</field>
<field name="inherit" ref="general_ledger_account_view_list"/>
<field name="name">general_ledger_account_party_list</field>
</record>
<record model="ir.action.act_window" id="act_general_ledger_account_party_form">
<field name="name">General Ledger - Account Parties</field>
<field name="res_model">account.general_ledger.account.party</field>
<field name="context_model">account.general_ledger.account.context</field>
<field
name="domain"
eval="[If(Eval('active_ids', []) == [Eval('active_id')], ('account', '=', Eval('active_id')), ('account', 'in', Eval('active_ids')))]"
pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_general_ledger_account_party_form_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="general_ledger_account_party_view_list"/>
<field name="act_window" ref="act_general_ledger_account_party_form"/>
</record>
<record model="ir.action.keyword" id="act_general_ledger_account_party_form_keyword1">
<field name="keyword">tree_open</field>
<field name="model">account.general_ledger.account,-1</field>
<field name="action" ref="act_general_ledger_account_party_form"/>
</record>
<record model="ir.action.keyword" id="act_general_ledger_account_party_form_keyword_account">
<field name="keyword">form_relate</field>
<field name="model">account.account,-1</field>
<field name="action" ref="act_general_ledger_account_party_form"/>
</record>
<record model="ir.action.wizard" id="act_general_ledger_account_party_open">
<field name="name">Open General Ledger Account Parties</field>
<field name="wiz_name">account.general_ledger.account.party.open</field>
</record>
<record model="ir.action.keyword" id="act_general_ledger_account_party_open_keyword1">
<field name="keyword">tree_open</field>
<field name="model">account.general_ledger.account.party,-1</field>
<field name="action" ref="act_general_ledger_account_party_open"/>
</record>
<record model="ir.action.act_window" id="act_general_ledger_account_party_form_party">
<field name="name">Accounts</field>
<field name="res_model">account.general_ledger.account.party</field>
<field name="context_model">account.general_ledger.account.context</field>
<field name="domain" eval="[('party', 'in', Eval('active_ids'))]" pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_general_ledger_account_party_form_party_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="general_ledger_account_party_view_list"/>
<field name="act_window" ref="act_general_ledger_account_party_form_party"/>
</record>
<record model="ir.action.keyword" id="act_general_ledger_account_party_form_party_relate_keyword1">
<field name="keyword">form_relate</field>
<field name="model">party.party,-1</field>
<field name="action" ref="act_general_ledger_account_party_form_party"/>
</record>
<record model="ir.model.access" id="access_general_ledger_account_party">
<field name="model" search="[('model', '=', 'account.general_ledger.account.party')]"/>
<field name="perm_read" eval="False"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_general_ledger_account_account_party">
<field name="model" search="[('model', '=', 'account.general_ledger.account.party')]"/>
<field name="group" ref="group_account"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.rule.group" id="rule_group_general_ledger_account_party_companies">
<field name="name">User in companies</field>
<field name="model" search="[('model', '=', 'account.general_ledger.account.party')]"/>
<field name="global_p" eval="True"/>
</record>
<record model="ir.rule" id="rule_general_ledger_account_party_companies">
<field
name="domain"
eval="[('company', 'in', Eval('companies', []))]"
pyson="1"/>
<field name="rule_group" ref="rule_group_general_ledger_account_party_companies"/>
</record>
<record model="ir.ui.view" id="general_ledger_line_view_list">
<field name="model">account.general_ledger.line</field>
<field name="type">tree</field>
<field name="name">general_ledger_line_list</field>
</record>
<record model="ir.action.act_window" id="act_general_ledger_line_form">
<field name="name">General Ledger - Lines</field>
<field name="res_model">account.general_ledger.line</field>
<field name="context_model">account.general_ledger.line.context</field>
<field name="domain" eval="[('account', 'in', Eval('active_ids', []))]"
pyson="1"/>
</record>
<record model="ir.action.act_window.view"
id="act_general_ledger_line_form_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="general_ledger_line_view_list"/>
<field name="act_window" ref="act_general_ledger_line_form"/>
</record>
<record model="ir.action.keyword" id="act_general_ledger_line_form_keyword">
<field name="keyword">tree_open</field>
<field name="model">account.general_ledger.account,-1</field>
<field name="action" ref="act_general_ledger_line_form"/>
</record>
<record model="ir.action.keyword" id="act_general_ledger_line_form_keyword_account">
<field name="keyword">form_relate</field>
<field name="model">account.account,-1</field>
<field name="action" ref="act_general_ledger_line_form"/>
</record>
<record model="ir.rule.group" id="rule_group_general_ledger_line_companies">
<field name="name">User in companies</field>
<field name="model"
search="[('model', '=', 'account.general_ledger.line')]"/>
<field name="global_p" eval="True"/>
</record>
<record model="ir.rule" id="rule_general_ledger_line_companies">
<field name="domain"
eval="[('company', 'in', Eval('companies', []))]"
pyson="1"/>
<field name="rule_group" ref="rule_group_general_ledger_line_companies"/>
</record>
<record model="ir.ui.view" id="general_ledger_account_context_view_form">
<field name="model">account.general_ledger.account.context</field>
<field name="type">form</field>
<field name="name">general_ledger_account_context_form</field>
</record>
<record model="ir.ui.view" id="general_ledger_line_context_view_form">
<field name="model">account.general_ledger.line.context</field>
<field name="inherit" ref="general_ledger_account_context_view_form"/>
<field name="name">general_ledger_line_context_form</field>
</record>
<record model="ir.ui.view" id="account_balance_sheet_view_tree">
<field name="model">account.account.type</field>
<field name="type">tree</field>
<field name="field_childs">childs</field>
<field name="name">account_balance_sheet_tree</field>
</record>
<record model="ir.action.act_window" id="act_account_balance_sheet_tree">
<field name="name">Balance Sheet</field>
<field name="res_model">account.account.type</field>
<field name="context_model">account.balance_sheet.comparison.context</field>
<field name="context_domain"
eval="[('company', '=', Eval('company', -1))]"
pyson="1"/>
<field name="domain"
eval="[('statement', '=', 'balance'), ['OR', ('parent', '=', None), ('parent.statement', '!=', 'balance'), ('parent.statement', '=', None)]]"
pyson="1"/>
<field name="context" eval="{'cumulate': True}" pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_balance_sheet_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="account_balance_sheet_view_tree"/>
<field name="act_window" ref="act_account_balance_sheet_tree"/>
</record>
<menuitem
parent="menu_reporting"
action="act_account_balance_sheet_tree"
sequence="20"
id="menu_open_balance_sheet"/>
<record model="ir.ui.view" id="balance_sheet_context_view_form">
<field name="model">account.balance_sheet.context</field>
<field name="type">form</field>
<field name="name">balance_sheet_context_form</field>
</record>
<record model="ir.ui.view" id="balance_sheet_comparison_context_view_form">
<field name="model">account.balance_sheet.comparison.context</field>
<field name="inherit" ref="balance_sheet_context_view_form"/>
<field name="name">balance_sheet_context_comparison_form</field>
</record>
<record model="ir.ui.view" id="account_income_statement_view_tree">
<field name="model">account.account.type</field>
<field name="type">tree</field>
<field name="field_childs">childs</field>
<field name="name">account_income_statement_tree</field>
</record>
<record model="ir.action.act_window" id="act_account_income_statement_tree">
<field name="name">Income Statement</field>
<field name="res_model">account.account.type</field>
<field name="context_model">account.income_statement.context</field>
<field name="context_domain"
eval="[('company', '=', Eval('company', -1))]"
pyson="1"/>
<field name="domain"
eval="[('statement', '=', 'income'), ['OR', ('parent', '=', None), ('parent.statement', '!=', 'income'), ('parent.statement', '=', None)]]"
pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_income_statement_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="account_income_statement_view_tree"/>
<field name="act_window" ref="act_account_income_statement_tree"/>
</record>
<menuitem
parent="menu_reporting"
action="act_account_income_statement_tree"
sequence="20"
id="menu_open_income_statement"/>
<record model="ir.ui.view" id="income_statement_context_view_form">
<field name="model">account.income_statement.context</field>
<field name="type">form</field>
<field name="name">income_statement_context_form</field>
</record>
<record model="ir.ui.view" id="aged_balance_view_list">
<field name="model">account.aged_balance</field>
<field name="type">tree</field>
<field name="name">aged_balance_list</field>
</record>
<record model="ir.action.act_window" id="act_aged_balance_list">
<field name="name">Aged Balance</field>
<field name="res_model">account.aged_balance</field>
<field name="context_model">account.aged_balance.context</field>
</record>
<record model="ir.action.act_window.view" id="act_aged_balance_list_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="aged_balance_view_list"/>
<field name="act_window" ref="act_aged_balance_list"/>
</record>
<menuitem
parent="menu_reporting"
action="act_aged_balance_list"
sequence="50"
id="menu_aged_balance"/>
<record model="ir.model.access" id="access_aged_balance">
<field name="model" search="[('model', '=', 'account.aged_balance')]"/>
<field name="perm_read" eval="False"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_aged_balance_account">
<field name="model" search="[('model', '=', 'account.aged_balance')]"/>
<field name="group" ref="group_account"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.rule.group" id="rule_group_aged_balance_companies">
<field name="name">User in companies</field>
<field name="model" search="[('model', '=', 'account.aged_balance')]"/>
<field name="global_p" eval="True"/>
</record>
<record model="ir.rule" id="rule_aged_balance_companies">
<field name="domain"
eval="[('company', 'in', Eval('companies', []))]"
pyson="1"/>
<field name="rule_group" ref="rule_group_aged_balance_companies"/>
</record>
<record model="ir.ui.view" id="aged_balance_context_view_form">
<field name="model">account.aged_balance.context</field>
<field name="type">form</field>
<field name="name">aged_balance_context_form</field>
</record>
<record model="ir.action.report" id="report_aged_balance">
<field name="name">Aged Balance</field>
<field name="model">account.aged_balance</field>
<field name="report_name">account.aged_balance</field>
<field name="report">account/aged_balance.fodt</field>
</record>
<record model="ir.action.keyword" id="report_aged_balance_keyword">
<field name="keyword">form_print</field>
<field name="model">account.aged_balance,-1</field>
<field name="action" ref="report_aged_balance"/>
</record>
</data>
</tryton>
+579
View File
@@ -0,0 +1,579 @@
<?xml version="1.0" encoding="UTF-8"?>
<office:document xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rpt="http://openoffice.org/2005/report" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:css3t="http://www.w3.org/TR/css3-text/" office:version="1.2" office:mimetype="application/vnd.oasis.opendocument.text">
<office:meta><meta:generator>LibreOffice/5.2.7.2$Linux_X86_64 LibreOffice_project/20m0$Build-2</meta:generator><meta:creation-date>2008-08-27T16:35:46</meta:creation-date><dc:date>2008-08-27T16:52:26</dc:date><meta:editing-cycles>1</meta:editing-cycles><meta:editing-duration>PT0S</meta:editing-duration><meta:document-statistic meta:character-count="1242" meta:image-count="0" meta:non-whitespace-character-count="1183" meta:object-count="0" meta:page-count="1" meta:paragraph-count="27" meta:table-count="3" meta:word-count="86"/><meta:user-defined meta:name="Info 1"/><meta:user-defined meta:name="Info 2"/><meta:user-defined meta:name="Info 3"/><meta:user-defined meta:name="Info 4"/></office:meta>
<office:settings>
<config:config-item-set config:name="ooo:view-settings">
<config:config-item config:name="ViewAreaTop" config:type="long">0</config:config-item>
<config:config-item config:name="ViewAreaLeft" config:type="long">0</config:config-item>
<config:config-item config:name="ViewAreaWidth" config:type="long">43760</config:config-item>
<config:config-item config:name="ViewAreaHeight" config:type="long">21691</config:config-item>
<config:config-item config:name="ShowRedlineChanges" config:type="boolean">true</config:config-item>
<config:config-item config:name="InBrowseMode" config:type="boolean">false</config:config-item>
<config:config-item-map-indexed config:name="Views">
<config:config-item-map-entry>
<config:config-item config:name="ViewId" config:type="string">view2</config:config-item>
<config:config-item config:name="ViewLeft" config:type="long">8162</config:config-item>
<config:config-item config:name="ViewTop" config:type="long">5443</config:config-item>
<config:config-item config:name="VisibleLeft" config:type="long">0</config:config-item>
<config:config-item config:name="VisibleTop" config:type="long">0</config:config-item>
<config:config-item config:name="VisibleRight" config:type="long">43759</config:config-item>
<config:config-item config:name="VisibleBottom" config:type="long">21689</config:config-item>
<config:config-item config:name="ZoomType" config:type="short">0</config:config-item>
<config:config-item config:name="ViewLayoutColumns" config:type="short">0</config:config-item>
<config:config-item config:name="ViewLayoutBookMode" config:type="boolean">false</config:config-item>
<config:config-item config:name="ZoomFactor" config:type="short">100</config:config-item>
<config:config-item config:name="IsSelectedFrame" config:type="boolean">false</config:config-item>
</config:config-item-map-entry>
</config:config-item-map-indexed>
</config:config-item-set>
<config:config-item-set config:name="ooo:configuration-settings">
<config:config-item config:name="PrintProspect" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrintLeftPages" config:type="boolean">true</config:config-item>
<config:config-item config:name="PrintPageBackground" config:type="boolean">true</config:config-item>
<config:config-item config:name="PrintControls" config:type="boolean">true</config:config-item>
<config:config-item config:name="PrintAnnotationMode" config:type="short">0</config:config-item>
<config:config-item config:name="PrintGraphics" config:type="boolean">true</config:config-item>
<config:config-item config:name="PrintRightPages" config:type="boolean">true</config:config-item>
<config:config-item config:name="PrintFaxName" config:type="string"/>
<config:config-item config:name="PrintPaperFromSetup" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrintTextPlaceholder" config:type="boolean">false</config:config-item>
<config:config-item config:name="ApplyParagraphMarkFormatToNumbering" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrintReversed" config:type="boolean">false</config:config-item>
<config:config-item config:name="TabOverMargin" config:type="boolean">false</config:config-item>
<config:config-item config:name="EmbedFonts" config:type="boolean">false</config:config-item>
<config:config-item config:name="SurroundTextWrapSmall" config:type="boolean">false</config:config-item>
<config:config-item config:name="BackgroundParaOverDrawings" config:type="boolean">false</config:config-item>
<config:config-item config:name="ClippedPictures" config:type="boolean">false</config:config-item>
<config:config-item config:name="FloattableNomargins" config:type="boolean">false</config:config-item>
<config:config-item config:name="UnbreakableNumberings" config:type="boolean">false</config:config-item>
<config:config-item config:name="EmbedSystemFonts" config:type="boolean">false</config:config-item>
<config:config-item config:name="TabOverflow" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrintTables" config:type="boolean">true</config:config-item>
<config:config-item config:name="PrintSingleJobs" config:type="boolean">false</config:config-item>
<config:config-item config:name="SmallCapsPercentage66" config:type="boolean">true</config:config-item>
<config:config-item config:name="CollapseEmptyCellPara" config:type="boolean">true</config:config-item>
<config:config-item config:name="TreatSingleColumnBreakAsPageBreak" config:type="boolean">false</config:config-item>
<config:config-item config:name="MathBaselineAlignment" config:type="boolean">false</config:config-item>
<config:config-item config:name="AddFrameOffsets" config:type="boolean">false</config:config-item>
<config:config-item config:name="IsLabelDocument" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrinterName" config:type="string"/>
<config:config-item config:name="OutlineLevelYieldsNumbering" config:type="boolean">false</config:config-item>
<config:config-item config:name="IgnoreFirstLineIndentInNumbering" config:type="boolean">false</config:config-item>
<config:config-item config:name="UpdateFromTemplate" config:type="boolean">true</config:config-item>
<config:config-item config:name="PrintBlackFonts" config:type="boolean">false</config:config-item>
<config:config-item config:name="TableRowKeep" config:type="boolean">false</config:config-item>
<config:config-item config:name="EmbeddedDatabaseName" config:type="string"/>
<config:config-item config:name="IgnoreTabsAndBlanksForLineCalculation" config:type="boolean">false</config:config-item>
<config:config-item config:name="UseOldPrinterMetrics" config:type="boolean">false</config:config-item>
<config:config-item config:name="InvertBorderSpacing" config:type="boolean">false</config:config-item>
<config:config-item config:name="SaveGlobalDocumentLinks" config:type="boolean">false</config:config-item>
<config:config-item config:name="TabsRelativeToIndent" config:type="boolean">true</config:config-item>
<config:config-item config:name="Rsid" config:type="int">2183537</config:config-item>
<config:config-item config:name="PrintProspectRTL" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrintEmptyPages" config:type="boolean">true</config:config-item>
<config:config-item config:name="ApplyUserData" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrintHiddenText" config:type="boolean">false</config:config-item>
<config:config-item config:name="AddParaTableSpacingAtStart" config:type="boolean">true</config:config-item>
<config:config-item config:name="FieldAutoUpdate" config:type="boolean">true</config:config-item>
<config:config-item config:name="UseOldNumbering" config:type="boolean">false</config:config-item>
<config:config-item config:name="AddParaTableSpacing" config:type="boolean">true</config:config-item>
<config:config-item config:name="CharacterCompressionType" config:type="short">0</config:config-item>
<config:config-item config:name="SaveVersionOnClose" config:type="boolean">false</config:config-item>
<config:config-item config:name="ChartAutoUpdate" config:type="boolean">true</config:config-item>
<config:config-item config:name="PrinterIndependentLayout" config:type="string">high-resolution</config:config-item>
<config:config-item config:name="IsKernAsianPunctuation" config:type="boolean">false</config:config-item>
<config:config-item config:name="UseFormerObjectPositioning" config:type="boolean">false</config:config-item>
<config:config-item config:name="AddVerticalFrameOffsets" config:type="boolean">false</config:config-item>
<config:config-item config:name="SubtractFlysAnchoredAtFlys" config:type="boolean">true</config:config-item>
<config:config-item config:name="AddParaSpacingToTableCells" config:type="boolean">true</config:config-item>
<config:config-item config:name="AddExternalLeading" config:type="boolean">true</config:config-item>
<config:config-item config:name="CurrentDatabaseDataSource" config:type="string"/>
<config:config-item config:name="AllowPrintJobCancel" config:type="boolean">true</config:config-item>
<config:config-item config:name="ProtectForm" config:type="boolean">false</config:config-item>
<config:config-item config:name="UseFormerLineSpacing" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrintDrawings" config:type="boolean">true</config:config-item>
<config:config-item config:name="UseFormerTextWrapping" config:type="boolean">false</config:config-item>
<config:config-item config:name="UnxForceZeroExtLeading" config:type="boolean">false</config:config-item>
<config:config-item config:name="TabAtLeftIndentForParagraphsInList" config:type="boolean">false</config:config-item>
<config:config-item config:name="RedlineProtectionKey" config:type="base64Binary"/>
<config:config-item config:name="PropLineSpacingShrinksFirstLine" config:type="boolean">false</config:config-item>
<config:config-item config:name="ConsiderTextWrapOnObjPos" config:type="boolean">false</config:config-item>
<config:config-item config:name="RsidRoot" config:type="int">765130</config:config-item>
<config:config-item config:name="StylesNoDefault" config:type="boolean">false</config:config-item>
<config:config-item config:name="LinkUpdateMode" config:type="short">1</config:config-item>
<config:config-item config:name="AlignTabStopPosition" config:type="boolean">true</config:config-item>
<config:config-item config:name="DoNotJustifyLinesWithManualBreak" config:type="boolean">false</config:config-item>
<config:config-item config:name="DoNotResetParaAttrsForNumFont" config:type="boolean">false</config:config-item>
<config:config-item config:name="CurrentDatabaseCommandType" config:type="int">0</config:config-item>
<config:config-item config:name="LoadReadonly" config:type="boolean">false</config:config-item>
<config:config-item config:name="DoNotCaptureDrawObjsOnPage" config:type="boolean">false</config:config-item>
<config:config-item config:name="CurrentDatabaseCommand" config:type="string"/>
<config:config-item config:name="PrinterSetup" config:type="base64Binary"/>
<config:config-item config:name="ClipAsCharacterAnchoredWriterFlyFrames" config:type="boolean">false</config:config-item>
</config:config-item-set>
</office:settings>
<office:scripts>
<office:script script:language="ooo:Basic">
<ooo:libraries xmlns:ooo="http://openoffice.org/2004/office" xmlns:xlink="http://www.w3.org/1999/xlink"/>
</office:script>
</office:scripts>
<office:font-face-decls>
<style:font-face style:name="StarSymbol" svg:font-family="StarSymbol"/>
<style:font-face style:name="Liberation Serif1" svg:font-family="&apos;Liberation Serif&apos;" style:font-adornments="Bold" style:font-family-generic="roman" style:font-pitch="variable"/>
<style:font-face style:name="Liberation Serif" svg:font-family="&apos;Liberation Serif&apos;" style:font-adornments="Regular" style:font-family-generic="roman" style:font-pitch="variable"/>
<style:font-face style:name="Thorndale AMT" svg:font-family="&apos;Thorndale AMT&apos;" style:font-family-generic="roman" style:font-pitch="variable"/>
<style:font-face style:name="Liberation Sans" svg:font-family="&apos;Liberation Sans&apos;" style:font-adornments="Regular" style:font-family-generic="swiss" style:font-pitch="variable"/>
<style:font-face style:name="Andale Sans UI" svg:font-family="&apos;Andale Sans UI&apos;" style:font-family-generic="system" style:font-pitch="variable"/>
<style:font-face style:name="DejaVu Sans" svg:font-family="&apos;DejaVu Sans&apos;" style:font-family-generic="system" style:font-pitch="variable"/>
</office:font-face-decls>
<office:styles>
<style:default-style style:family="graphic">
<style:graphic-properties svg:stroke-color="#000000" draw:fill-color="#99ccff" fo:wrap-option="no-wrap" draw:shadow-offset-x="0.1181in" draw:shadow-offset-y="0.1181in" draw:start-line-spacing-horizontal="0.1114in" draw:start-line-spacing-vertical="0.1114in" draw:end-line-spacing-horizontal="0.1114in" draw:end-line-spacing-vertical="0.1114in" style:flow-with-text="false"/>
<style:paragraph-properties style:text-autospace="ideograph-alpha" style:line-break="strict" style:writing-mode="lr-tb" style:font-independent-line-spacing="false">
<style:tab-stops/>
</style:paragraph-properties>
<style:text-properties style:use-window-font-color="true" style:font-name="Thorndale AMT" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Andale Sans UI" style:font-size-asian="10.5pt" style:language-asian="zxx" style:country-asian="none" style:font-name-complex="Andale Sans UI" style:font-size-complex="12pt" style:language-complex="zxx" style:country-complex="none"/>
</style:default-style>
<style:default-style style:family="paragraph">
<style:paragraph-properties fo:hyphenation-ladder-count="no-limit" style:text-autospace="ideograph-alpha" style:punctuation-wrap="hanging" style:line-break="strict" style:tab-stop-distance="0.4925in" style:writing-mode="lr-tb"/>
<style:text-properties style:use-window-font-color="true" style:font-name="Thorndale AMT" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Andale Sans UI" style:font-size-asian="10.5pt" style:language-asian="zxx" style:country-asian="none" style:font-name-complex="Andale Sans UI" style:font-size-complex="12pt" style:language-complex="zxx" style:country-complex="none" fo:hyphenate="false" fo:hyphenation-remain-char-count="2" fo:hyphenation-push-char-count="2"/>
</style:default-style>
<style:default-style style:family="table">
<style:table-properties table:border-model="collapsing"/>
</style:default-style>
<style:default-style style:family="table-row">
<style:table-row-properties fo:keep-together="auto"/>
</style:default-style>
<style:style style:name="Standard" style:family="paragraph" style:class="text">
<style:text-properties style:font-name="Liberation Sans" fo:font-family="&apos;Liberation Sans&apos;" style:font-style-name="Regular" style:font-family-generic="swiss" style:font-pitch="variable" style:font-size-asian="10.5pt"/>
</style:style>
<style:style style:name="Heading" style:family="paragraph" style:parent-style-name="Standard" style:next-style-name="Text_20_body" style:class="text">
<style:paragraph-properties fo:margin-top="0.1665in" fo:margin-bottom="0.0835in" loext:contextual-spacing="false" fo:keep-with-next="always"/>
<style:text-properties style:font-name="Liberation Serif" fo:font-family="&apos;Liberation Serif&apos;" style:font-style-name="Regular" style:font-family-generic="roman" style:font-pitch="variable" fo:font-size="16pt" style:font-name-asian="DejaVu Sans" style:font-family-asian="&apos;DejaVu Sans&apos;" style:font-family-generic-asian="system" style:font-pitch-asian="variable" style:font-size-asian="14pt" style:font-name-complex="DejaVu Sans" style:font-family-complex="&apos;DejaVu Sans&apos;" style:font-family-generic-complex="system" style:font-pitch-complex="variable" style:font-size-complex="14pt"/>
</style:style>
<style:style style:name="Text_20_body" style:display-name="Text body" style:family="paragraph" style:parent-style-name="Standard" style:class="text">
<style:paragraph-properties fo:margin-top="0in" fo:margin-bottom="0.0835in" loext:contextual-spacing="false"/>
<style:text-properties style:font-name="Liberation Sans" fo:font-family="&apos;Liberation Sans&apos;" style:font-style-name="Regular" style:font-family-generic="swiss" style:font-pitch="variable" style:font-size-asian="10.5pt"/>
</style:style>
<style:style style:name="List" style:family="paragraph" style:parent-style-name="Text_20_body" style:class="list">
<style:text-properties style:font-size-asian="12pt"/>
</style:style>
<style:style style:name="Caption" style:family="paragraph" style:parent-style-name="Standard" style:class="extra">
<style:paragraph-properties fo:margin-top="0.0835in" fo:margin-bottom="0.0835in" loext:contextual-spacing="false" text:number-lines="false" text:line-number="0"/>
<style:text-properties fo:font-size="12pt" fo:font-style="italic" style:font-size-asian="12pt" style:font-style-asian="italic" style:font-size-complex="12pt" style:font-style-complex="italic"/>
</style:style>
<style:style style:name="Index" style:family="paragraph" style:parent-style-name="Standard" style:class="index">
<style:paragraph-properties text:number-lines="false" text:line-number="0"/>
<style:text-properties style:font-size-asian="12pt"/>
</style:style>
<style:style style:name="Heading_20_1" style:display-name="Heading 1" style:family="paragraph" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:default-outline-level="1" style:class="text">
<style:text-properties fo:font-size="16pt" fo:font-weight="bold" style:font-size-asian="115%" style:font-weight-asian="bold" style:font-size-complex="115%" style:font-weight-complex="bold"/>
</style:style>
<style:style style:name="Table_20_Contents" style:display-name="Table Contents" style:family="paragraph" style:parent-style-name="Standard" style:class="extra">
<style:paragraph-properties text:number-lines="false" text:line-number="0"/>
<style:text-properties style:font-size-asian="10.5pt"/>
</style:style>
<style:style style:name="Table_20_Heading" style:display-name="Table Heading" style:family="paragraph" style:parent-style-name="Table_20_Contents" style:class="extra" style:master-page-name="">
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false" style:page-number="auto" text:number-lines="false" text:line-number="0"/>
<style:text-properties style:font-name="Liberation Serif1" fo:font-family="&apos;Liberation Serif&apos;" style:font-style-name="Bold" style:font-family-generic="roman" style:font-pitch="variable" fo:font-weight="bold" style:font-size-asian="10.5pt" style:font-weight-asian="bold" style:font-weight-complex="bold"/>
</style:style>
<style:style style:name="Header" style:family="paragraph" style:parent-style-name="Standard" style:class="extra">
<style:paragraph-properties text:number-lines="false" text:line-number="0">
<style:tab-stops>
<style:tab-stop style:position="3.4626in" style:type="center"/>
<style:tab-stop style:position="6.9252in" style:type="right"/>
</style:tab-stops>
</style:paragraph-properties>
<style:text-properties fo:font-size="9pt" style:font-size-asian="10.5pt"/>
</style:style>
<style:style style:name="Heading_20_2" style:display-name="Heading 2" style:family="paragraph" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:class="text">
<style:text-properties fo:font-size="14pt" fo:font-style="italic" fo:font-weight="bold" style:font-size-asian="14pt" style:font-style-asian="italic" style:font-weight-asian="bold" style:font-size-complex="14pt" style:font-style-complex="italic" style:font-weight-complex="bold"/>
</style:style>
<style:style style:name="Footer" style:family="paragraph" style:parent-style-name="Standard" style:class="extra">
<style:paragraph-properties text:number-lines="false" text:line-number="0">
<style:tab-stops>
<style:tab-stop style:position="3.4626in" style:type="center"/>
<style:tab-stop style:position="6.9252in" style:type="right"/>
</style:tab-stops>
</style:paragraph-properties>
<style:text-properties fo:font-size="9pt" style:font-size-asian="10.5pt"/>
</style:style>
<style:style style:name="Heading_20_3" style:display-name="Heading 3" style:family="paragraph" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:class="text">
<style:text-properties fo:font-size="14pt" fo:font-weight="bold" style:font-size-asian="14pt" style:font-weight-asian="bold" style:font-size-complex="14pt" style:font-weight-complex="bold"/>
</style:style>
<style:style style:name="Text_20_body_20_indent" style:display-name="Text body indent" style:family="paragraph" style:parent-style-name="Text_20_body" style:class="text">
<style:paragraph-properties fo:margin-left="0.1965in" fo:margin-right="0in" fo:margin-top="0in" fo:margin-bottom="0in" loext:contextual-spacing="false" fo:text-indent="0in" style:auto-text-indent="false"/>
</style:style>
<style:style style:name="Text" style:family="paragraph" style:parent-style-name="Caption" style:class="extra"/>
<style:style style:name="Quotations" style:family="paragraph" style:parent-style-name="Standard" style:class="html">
<style:paragraph-properties fo:margin-left="0.3937in" fo:margin-right="0.3937in" fo:margin-top="0in" fo:margin-bottom="0.1965in" loext:contextual-spacing="false" fo:text-indent="0in" style:auto-text-indent="false"/>
</style:style>
<style:style style:name="Title" style:family="paragraph" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:class="chapter">
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false"/>
<style:text-properties fo:font-size="28pt" fo:font-weight="bold" style:font-size-asian="28pt" style:font-weight-asian="bold" style:font-size-complex="28pt" style:font-weight-complex="bold"/>
</style:style>
<style:style style:name="Subtitle" style:family="paragraph" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:class="chapter">
<style:paragraph-properties fo:margin-top="0.0417in" fo:margin-bottom="0.0835in" loext:contextual-spacing="false" fo:text-align="center" style:justify-single-word="false"/>
<style:text-properties fo:font-size="18pt" style:font-size-asian="18pt" style:font-size-complex="18pt"/>
</style:style>
<style:style style:name="Placeholder" style:family="text">
<style:text-properties fo:font-variant="small-caps" fo:color="#008080" style:text-underline-style="dotted" style:text-underline-width="auto" style:text-underline-color="font-color"/>
</style:style>
<style:style style:name="Bullet_20_Symbols" style:display-name="Bullet Symbols" style:family="text">
<style:text-properties style:font-name="StarSymbol" fo:font-family="StarSymbol" fo:font-size="9pt" style:font-name-asian="StarSymbol" style:font-family-asian="StarSymbol" style:font-size-asian="9pt" style:font-name-complex="StarSymbol" style:font-family-complex="StarSymbol" style:font-size-complex="9pt"/>
</style:style>
<text:outline-style style:name="Outline">
<text:outline-level-style text:level="1" style:num-format="">
<style:list-level-properties text:min-label-distance="0.15in"/>
</text:outline-level-style>
<text:outline-level-style text:level="2" style:num-format="">
<style:list-level-properties text:min-label-distance="0.15in"/>
</text:outline-level-style>
<text:outline-level-style text:level="3" style:num-format="">
<style:list-level-properties text:min-label-distance="0.15in"/>
</text:outline-level-style>
<text:outline-level-style text:level="4" style:num-format="">
<style:list-level-properties text:min-label-distance="0.15in"/>
</text:outline-level-style>
<text:outline-level-style text:level="5" style:num-format="">
<style:list-level-properties text:min-label-distance="0.15in"/>
</text:outline-level-style>
<text:outline-level-style text:level="6" style:num-format="">
<style:list-level-properties text:min-label-distance="0.15in"/>
</text:outline-level-style>
<text:outline-level-style text:level="7" style:num-format="">
<style:list-level-properties text:min-label-distance="0.15in"/>
</text:outline-level-style>
<text:outline-level-style text:level="8" style:num-format="">
<style:list-level-properties text:min-label-distance="0.15in"/>
</text:outline-level-style>
<text:outline-level-style text:level="9" style:num-format="">
<style:list-level-properties text:min-label-distance="0.15in"/>
</text:outline-level-style>
<text:outline-level-style text:level="10" style:num-format="">
<style:list-level-properties text:min-label-distance="0.15in"/>
</text:outline-level-style>
</text:outline-style>
<text:notes-configuration text:note-class="footnote" style:num-format="1" text:start-value="0" text:footnotes-position="page" text:start-numbering-at="document"/>
<text:notes-configuration text:note-class="endnote" style:num-format="i" text:start-value="0"/>
<text:linenumbering-configuration text:number-lines="false" text:offset="0.1965in" style:num-format="1" text:number-position="left" text:increment="5"/>
</office:styles>
<office:automatic-styles>
<style:style style:name="Table3" style:family="table">
<style:table-properties style:width="6.6924in" table:align="margins"/>
</style:style>
<style:style style:name="Table3.A" style:family="table-column">
<style:table-column-properties style:column-width="2.2306in" style:rel-column-width="21845*"/>
</style:style>
<style:style style:name="Table3.A1" style:family="table-cell">
<style:table-cell-properties fo:padding="0.0382in" fo:border="none"/>
</style:style>
<style:style style:name="Table2" style:family="table">
<style:table-properties style:width="6.6924in" table:align="margins"/>
</style:style>
<style:style style:name="Table2.A" style:family="table-column">
<style:table-column-properties style:column-width="3.3465in" style:rel-column-width="32768*"/>
</style:style>
<style:style style:name="Table2.B" style:family="table-column">
<style:table-column-properties style:column-width="3.3458in" style:rel-column-width="32767*"/>
</style:style>
<style:style style:name="Table2.A1" style:family="table-cell">
<style:table-cell-properties fo:padding="0.0382in" fo:border="none"/>
</style:style>
<style:style style:name="Table3" style:family="table">
<style:table-properties style:width="6.6924in" table:align="margins"/>
</style:style>
<style:style style:name="Table3.A" style:family="table-column">
<style:table-column-properties style:column-width="2.2306in" style:rel-column-width="21845*"/>
</style:style>
<style:style style:name="Table3.A1" style:family="table-cell">
<style:table-cell-properties fo:padding="0.0382in" fo:border="none"/>
</style:style>
<style:style style:name="Table2" style:family="table">
<style:table-properties style:width="6.6924in" table:align="margins"/>
</style:style>
<style:style style:name="Table2.A" style:family="table-column">
<style:table-column-properties style:column-width="3.3465in" style:rel-column-width="32768*"/>
</style:style>
<style:style style:name="Table2.B" style:family="table-column">
<style:table-column-properties style:column-width="3.3458in" style:rel-column-width="32767*"/>
</style:style>
<style:style style:name="Table2.A1" style:family="table-cell">
<style:table-cell-properties fo:padding="0.0382in" fo:border="none"/>
</style:style>
<style:style style:name="Table1" style:family="table">
<style:table-properties style:width="6.6896in" fo:margin-left="0in" fo:margin-right="0.0028in" table:align="margins"/>
</style:style>
<style:style style:name="Table1.A" style:family="table-column">
<style:table-column-properties style:column-width="1.7694in" style:rel-column-width="17334*"/>
</style:style>
<style:style style:name="Table1.B" style:family="table-column">
<style:table-column-properties style:column-width="0.984in" style:rel-column-width="9640*"/>
</style:style>
<style:style style:name="Table1.F" style:family="table-column">
<style:table-column-properties style:column-width="0.984in" style:rel-column-width="9641*"/>
</style:style>
<style:style style:name="Table1.A1" style:family="table-cell">
<style:table-cell-properties fo:background-color="#cccccc" fo:padding="0.0382in" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="0.05pt solid #000000" fo:border-bottom="0.05pt solid #000000">
<style:background-image/>
</style:table-cell-properties>
</style:style>
<style:style style:name="Table1.F1" style:family="table-cell">
<style:table-cell-properties fo:background-color="#cccccc" fo:padding="0.0382in" fo:border="0.05pt solid #000000">
<style:background-image/>
</style:table-cell-properties>
</style:style>
<style:style style:name="Table1.2" style:family="table-row">
<style:table-row-properties style:min-row-height="0.2313in"/>
</style:style>
<style:style style:name="Table1.A2" style:family="table-cell">
<style:table-cell-properties fo:padding="0.0382in" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="none" fo:border-bottom="0.05pt solid #000000"/>
</style:style>
<style:style style:name="Table1.F2" style:family="table-cell">
<style:table-cell-properties fo:padding="0.0382in" fo:border-left="0.05pt solid #000000" fo:border-right="0.05pt solid #000000" fo:border-top="none" fo:border-bottom="0.05pt solid #000000"/>
</style:style>
<style:style style:name="Table1.A3" style:family="table-cell">
<style:table-cell-properties fo:padding="0.0382in" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="none" fo:border-bottom="0.05pt solid #000000"/>
</style:style>
<style:style style:name="Table1.B3" style:family="table-cell">
<style:table-cell-properties fo:padding="0.0382in" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="none" fo:border-bottom="0.05pt solid #000000"/>
</style:style>
<style:style style:name="Table1.C3" style:family="table-cell">
<style:table-cell-properties fo:padding="0.0382in" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="none" fo:border-bottom="0.05pt solid #000000"/>
</style:style>
<style:style style:name="Table1.D3" style:family="table-cell">
<style:table-cell-properties fo:padding="0.0382in" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="none" fo:border-bottom="0.05pt solid #000000"/>
</style:style>
<style:style style:name="Table1.E3" style:family="table-cell">
<style:table-cell-properties fo:padding="0.0382in" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="none" fo:border-bottom="0.05pt solid #000000"/>
</style:style>
<style:style style:name="Table1.F3" style:family="table-cell">
<style:table-cell-properties fo:padding="0.0382in" fo:border-left="0.05pt solid #000000" fo:border-right="0.05pt solid #000000" fo:border-top="none" fo:border-bottom="0.05pt solid #000000"/>
</style:style>
<style:style style:name="Table1.A4" style:family="table-cell">
<style:table-cell-properties fo:padding="0.0382in" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="none" fo:border-bottom="0.05pt solid #000000"/>
</style:style>
<style:style style:name="Table1.F4" style:family="table-cell">
<style:table-cell-properties fo:padding="0.0382in" fo:border-left="0.05pt solid #000000" fo:border-right="0.05pt solid #000000" fo:border-top="none" fo:border-bottom="0.05pt solid #000000"/>
</style:style>
<style:style style:name="Table1.5" style:family="table-row">
<style:table-row-properties style:min-row-height="0.0528in"/>
</style:style>
<style:style style:name="Table1.A5" style:family="table-cell">
<style:table-cell-properties fo:background-color="#e6e6e6" fo:padding="0.0382in" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="0.05pt solid #000000" fo:border-bottom="0.05pt solid #000000">
<style:background-image/>
</style:table-cell-properties>
</style:style>
<style:style style:name="Table1.F5" style:family="table-cell">
<style:table-cell-properties fo:background-color="#e6e6e6" fo:padding="0.0382in" fo:border="0.05pt solid #000000">
<style:background-image/>
</style:table-cell-properties>
</style:style>
<style:style style:name="P1" style:family="paragraph" style:parent-style-name="Header">
<style:paragraph-properties fo:text-align="end" style:justify-single-word="false"/>
</style:style>
<style:style style:name="P2" style:family="paragraph" style:parent-style-name="Footer">
<style:paragraph-properties fo:text-align="end" style:justify-single-word="false"/>
</style:style>
<style:style style:name="P3" style:family="paragraph" style:parent-style-name="Table_20_Heading">
<style:text-properties fo:font-size="14pt" fo:language="en" fo:country="US" style:font-size-asian="12pt" style:font-style-asian="normal" style:font-weight-asian="bold" style:font-size-complex="12pt" style:font-style-complex="normal" style:font-weight-complex="bold"/>
</style:style>
<style:style style:name="P4" style:family="paragraph" style:parent-style-name="Table_20_Heading">
<style:paragraph-properties fo:text-align="end" style:justify-single-word="false"/>
<style:text-properties fo:font-size="14pt" style:font-size-asian="14pt" style:font-size-complex="14pt"/>
</style:style>
<style:style style:name="P5" style:family="paragraph" style:parent-style-name="Table_20_Heading">
<style:text-properties fo:font-size="14pt" fo:font-weight="normal" style:font-size-asian="14pt" style:font-weight-asian="normal" style:font-size-complex="14pt" style:font-weight-complex="normal"/>
</style:style>
<style:style style:name="P6" style:family="paragraph" style:parent-style-name="Table_20_Heading">
<style:text-properties fo:font-size="14pt" fo:font-weight="bold" style:font-size-asian="14pt" style:font-weight-asian="bold" style:font-size-complex="14pt" style:font-weight-complex="bold"/>
</style:style>
<style:style style:name="P7" style:family="paragraph" style:parent-style-name="Table_20_Contents">
<style:paragraph-properties fo:text-align="start" style:justify-single-word="false"/>
<style:text-properties fo:font-size="14pt" fo:language="en" fo:country="US" style:font-size-asian="12pt" style:font-style-asian="normal" style:font-weight-asian="bold" style:font-size-complex="12pt" style:font-style-complex="normal" style:font-weight-complex="bold"/>
</style:style>
<style:style style:name="P8" style:family="paragraph" style:parent-style-name="Table_20_Contents">
<style:paragraph-properties fo:text-align="end" style:justify-single-word="false"/>
<style:text-properties fo:font-size="14pt" fo:language="en" fo:country="US" officeooo:paragraph-rsid="0017ee93" style:font-size-asian="12pt" style:font-style-asian="normal" style:font-weight-asian="normal" style:font-size-complex="12pt" style:font-style-complex="normal" style:font-weight-complex="normal"/>
</style:style>
<style:style style:name="P9" style:family="paragraph" style:parent-style-name="Table_20_Contents">
<style:paragraph-properties fo:text-align="end" style:justify-single-word="false"/>
<style:text-properties fo:font-size="14pt" fo:language="en" fo:country="US" officeooo:paragraph-rsid="0020f549" style:font-size-asian="12pt" style:font-style-asian="normal" style:font-weight-asian="normal" style:font-size-complex="12pt" style:font-style-complex="normal" style:font-weight-complex="normal"/>
</style:style>
<style:style style:name="P10" style:family="paragraph" style:parent-style-name="Table_20_Contents">
<style:paragraph-properties fo:text-align="end" style:justify-single-word="false"/>
<style:text-properties fo:font-size="14pt" fo:language="en" fo:country="US" fo:font-weight="bold" officeooo:paragraph-rsid="0017ee93" style:font-size-asian="12pt" style:font-style-asian="normal" style:font-weight-asian="bold" style:font-size-complex="12pt" style:font-style-complex="normal" style:font-weight-complex="bold"/>
</style:style>
<style:style style:name="P11" style:family="paragraph" style:parent-style-name="Table_20_Contents">
<style:paragraph-properties fo:text-align="end" style:justify-single-word="false"/>
<style:text-properties fo:font-size="14pt" fo:language="en" fo:country="US" fo:font-weight="bold" officeooo:paragraph-rsid="0020f549" style:font-size-asian="12pt" style:font-style-asian="normal" style:font-weight-asian="bold" style:font-size-complex="12pt" style:font-style-complex="normal" style:font-weight-complex="bold"/>
</style:style>
<style:style style:name="P12" style:family="paragraph" style:parent-style-name="Text_20_body">
<style:paragraph-properties fo:text-align="start" style:justify-single-word="false"/>
<style:text-properties fo:font-size="14pt" fo:language="en" fo:country="US" style:text-underline-style="none" style:font-size-asian="14pt" style:font-size-complex="14pt"/>
</style:style>
<style:style style:name="P13" style:family="paragraph" style:parent-style-name="Text_20_body">
<style:text-properties officeooo:rsid="0017c172" officeooo:paragraph-rsid="0017c172"/>
</style:style>
<style:style style:name="P14" style:family="paragraph" style:parent-style-name="Heading_20_1">
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false"/>
</style:style>
<style:style style:name="T1" style:family="text">
<style:text-properties fo:font-size="14pt" fo:language="en" fo:country="US" officeooo:rsid="000e7ba0" style:font-size-asian="12pt" style:font-style-asian="normal" style:font-weight-asian="bold" style:font-size-complex="12pt" style:font-style-complex="normal" style:font-weight-complex="bold"/>
</style:style>
<style:style style:name="T2" style:family="text">
<style:text-properties officeooo:rsid="001a39a1"/>
</style:style>
<style:page-layout style:name="pm1">
<style:page-layout-properties fo:page-width="8.2673in" fo:page-height="11.6925in" style:num-format="1" style:print-orientation="portrait" fo:margin-top="0.7874in" fo:margin-bottom="0.7874in" fo:margin-left="0.7874in" fo:margin-right="0.7874in" style:writing-mode="lr-tb" style:footnote-max-height="0in">
<style:footnote-sep style:width="0.0071in" style:distance-before-sep="0.0398in" style:distance-after-sep="0.0398in" style:line-style="none" style:adjustment="left" style:rel-width="25%" style:color="#000000"/>
</style:page-layout-properties>
<style:header-style>
<style:header-footer-properties fo:min-height="0in" fo:margin-left="0in" fo:margin-right="0in" fo:margin-bottom="0.1965in"/>
</style:header-style>
<style:footer-style>
<style:header-footer-properties fo:min-height="0in" fo:margin-left="0in" fo:margin-right="0in" fo:margin-top="0.1965in"/>
</style:footer-style>
</style:page-layout>
</office:automatic-styles>
<office:master-styles>
<style:master-page style:name="Standard" style:page-layout-name="pm1">
<style:header>
<table:table table:name="Table3" table:style-name="Table3">
<table:table-column table:style-name="Table3.A" table:number-columns-repeated="3"/>
<table:table-row>
<table:table-cell table:style-name="Table3.A1" office:value-type="string">
<text:p text:style-name="Header">Company: <text:placeholder text:placeholder-type="text">&lt;company.rec_name&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Table3.A1" office:value-type="string">
<text:p text:style-name="Header">Aged Balance for <text:placeholder text:placeholder-type="text">&lt;type&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Table3.A1" office:value-type="string">
<text:p text:style-name="P1">Print Date: <text:placeholder text:placeholder-type="text">&lt;format_date(datetime.date.today(), user.language)&gt;</text:placeholder> at <text:placeholder text:placeholder-type="text">&lt;datetime.datetime.now().strftime(&apos;%H:%M:%S&apos;)&gt;</text:placeholder></text:p>
</table:table-cell>
</table:table-row>
</table:table>
</style:header>
<style:footer>
<table:table table:name="Table2" table:style-name="Table2">
<table:table-column table:style-name="Table2.A"/>
<table:table-column table:style-name="Table2.B"/>
<table:table-row>
<table:table-cell table:style-name="Table2.A1" office:value-type="string">
<text:p text:style-name="Footer">User: <text:placeholder text:placeholder-type="text">&lt;user.rec_name&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Table2.A1" office:value-type="string">
<text:p text:style-name="P2"><text:page-number text:select-page="current">1</text:page-number>/<text:page-count>1</text:page-count></text:p>
</table:table-cell>
</table:table-row>
</table:table>
</style:footer>
</style:master-page>
</office:master-styles>
<office:body>
<office:text>
<office:forms form:automatic-focus="false" form:apply-design-mode="false"/>
<text:sequence-decls>
<text:sequence-decl text:display-outline-level="0" text:name="Illustration"/>
<text:sequence-decl text:display-outline-level="0" text:name="Table"/>
<text:sequence-decl text:display-outline-level="0" text:name="Text"/>
<text:sequence-decl text:display-outline-level="0" text:name="Drawing"/>
</text:sequence-decls>
<text:h text:style-name="P14" text:outline-level="1">Aged Balance for <text:placeholder text:placeholder-type="text">&lt;type&gt;</text:placeholder></text:h>
<text:p text:style-name="P13">Date: <text:span text:style-name="T1"><text:placeholder text:placeholder-type="text">&lt;format_date(date, user.language)&gt;</text:placeholder></text:span></text:p>
<table:table table:name="Table1" table:style-name="Table1">
<table:table-column table:style-name="Table1.A"/>
<table:table-column table:style-name="Table1.B" table:number-columns-repeated="4"/>
<table:table-column table:style-name="Table1.F"/>
<table:table-header-rows>
<table:table-row>
<table:table-cell table:style-name="Table1.A1" office:value-type="string">
<text:p text:style-name="P3">Party</text:p>
</table:table-cell>
<table:table-cell table:style-name="Table1.A1" office:value-type="string">
<text:p text:style-name="P5"><text:placeholder text:placeholder-type="text">&lt;str(term0)&gt;</text:placeholder> <text:placeholder text:placeholder-type="text">&lt;unit&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Table1.A1" office:value-type="string">
<text:p text:style-name="P5"><text:placeholder text:placeholder-type="text">&lt;str(term1)&gt;</text:placeholder> <text:placeholder text:placeholder-type="text">&lt;unit&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Table1.A1" office:value-type="string">
<text:p text:style-name="P5"><text:placeholder text:placeholder-type="text">&lt;str(term2)&gt;</text:placeholder> <text:placeholder text:placeholder-type="text">&lt;unit&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Table1.A1" office:value-type="string">
<text:p text:style-name="P5"><text:placeholder text:placeholder-type="text">&lt;str(term3)&gt;</text:placeholder><text:span text:style-name="T2">+</text:span> <text:placeholder text:placeholder-type="text">&lt;unit&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Table1.F1" office:value-type="string">
<text:p text:style-name="P6">Balance</text:p>
</table:table-cell>
</table:table-row>
</table:table-header-rows>
<table:table-row table:style-name="Table1.2">
<table:table-cell table:style-name="Table1.A2" table:number-columns-spanned="5" office:value-type="string">
<text:p text:style-name="P7"><text:placeholder text:placeholder-type="text">&lt;for each=&quot;record in records&quot;&gt;</text:placeholder></text:p>
</table:table-cell>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:table-cell table:style-name="Table1.F2" office:value-type="string">
<text:p text:style-name="P7"/>
</table:table-cell>
</table:table-row>
<table:table-row table:style-name="Table1.2">
<table:table-cell table:style-name="Table1.A3" office:value-type="string">
<text:p text:style-name="P7"><text:placeholder text:placeholder-type="text">&lt;record.party.rec_name&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Table1.B3" office:value-type="string">
<text:p text:style-name="P8"><text:placeholder text:placeholder-type="text">&lt;format_currency(record.term0, user.language, currency=company.currency)or &apos;&apos;&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Table1.C3" office:value-type="string">
<text:p text:style-name="P8"><text:placeholder text:placeholder-type="text">&lt;format_currency(record.term1, user.language, currency=company.currency) or &apos;&apos;&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Table1.D3" office:value-type="string">
<text:p text:style-name="P9"><text:placeholder text:placeholder-type="text">&lt;format_currency(record.term2, user.language, currency=company.currency) or &apos;&apos;&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Table1.E3" office:value-type="string">
<text:p text:style-name="P9"><text:placeholder text:placeholder-type="text">&lt;format_currency(record.term3, user.language, currency=company.currency) or &apos;&apos;&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Table1.F3" office:value-type="string">
<text:p text:style-name="P9"><text:placeholder text:placeholder-type="text">&lt;format_currency(record.balance, user.language, currency=company.currency) or &apos;&apos;&gt;</text:placeholder></text:p>
</table:table-cell>
</table:table-row>
<table:table-row table:style-name="Table1.2">
<table:table-cell table:style-name="Table1.A4" table:number-columns-spanned="5" office:value-type="string">
<text:p text:style-name="P7"><text:placeholder text:placeholder-type="text">&lt;/for&gt;</text:placeholder></text:p>
</table:table-cell>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:table-cell table:style-name="Table1.F4" office:value-type="string">
<text:p text:style-name="P7"/>
</table:table-cell>
</table:table-row>
<table:table-row table:style-name="Table1.5">
<table:table-cell table:style-name="Table1.A5" office:value-type="string">
<text:p text:style-name="P4">Total</text:p>
</table:table-cell>
<table:table-cell table:style-name="Table1.A5" office:value-type="string">
<text:p text:style-name="P10"><text:placeholder text:placeholder-type="text">&lt;format_currency(sum(records, &apos;term0&apos;), user.language, currency=company.currency)&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Table1.A5" office:value-type="string">
<text:p text:style-name="P11"><text:placeholder text:placeholder-type="text">&lt;format_currency(sum(records, &apos;term1&apos;), user.language, currency=company.currency)&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Table1.A5" office:value-type="string">
<text:p text:style-name="P11"><text:placeholder text:placeholder-type="text">&lt;format_currency(sum(records, &apos;term2&apos;), user.language, currency=company.currency)&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Table1.A5" office:value-type="string">
<text:p text:style-name="P11"><text:placeholder text:placeholder-type="text">&lt;format_currency(sum(records, &apos;term3&apos;), user.language, currency=company.currency)&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Table1.F5" office:value-type="string">
<text:p text:style-name="P11"><text:placeholder text:placeholder-type="text">&lt;format_currency(sum(records, &apos;balance&apos;), user.language, currency=company.currency)&gt;</text:placeholder></text:p>
</table:table-cell>
</table:table-row>
</table:table>
<text:p text:style-name="P12"/>
</office:text>
</office:body>
</office:document>
+180
View File
@@ -0,0 +1,180 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import datetime
from sql import Literal
from sql.conditionals import Coalesce
from trytond.model import Model, fields
from trytond.pool import Pool
from trytond.pyson import Bool, Eval, If
from trytond.transaction import Transaction
class PeriodMixin(Model):
start_date = fields.Date(
"Start Date",
domain=[
If(Eval('start_date') & Eval('end_date'),
('start_date', '<=', Eval('end_date')),
()),
])
end_date = fields.Date(
"End Date",
domain=[
If(Eval('start_date') & Eval('end_date'),
('end_date', '>=', Eval('start_date')),
()),
])
@classmethod
def __setup__(cls):
super().__setup__()
if (hasattr(cls, 'parent')
and hasattr(cls, 'childs')
and hasattr(cls, 'company')):
cls.parent.domain = [
('company', '=', Eval('company', 0)),
['OR',
If(Bool(Eval('start_date')),
('start_date', '>=', Eval('start_date', None)),
()),
('start_date', '=', None),
],
['OR',
If(Bool(Eval('end_date')),
('end_date', '<=', Eval('end_date', None)),
()),
('end_date', '=', None),
],
]
cls.parent.depends.update({'company', 'start_date', 'end_date'})
cls.childs.domain = [
('company', '=', Eval('company', 0)),
If(Bool(Eval('start_date')),
('start_date', '>=', Eval('start_date', None)),
()),
If(Bool(Eval('end_date')),
('end_date', '<=', Eval('end_date', None)),
()),
]
cls.childs.depends.update({'company', 'start_date', 'end_date'})
class ActivePeriodMixin(PeriodMixin):
active = fields.Function(fields.Boolean("Active"), 'on_change_with_active')
@classmethod
def _active_dates(cls):
pool = Pool()
Date = pool.get('ir.date')
FiscalYear = pool.get('account.fiscalyear')
Period = pool.get('account.period')
context = Transaction().context
today = Date.today()
date = context.get('date')
from_date, to_date = context.get('from_date'), context.get('to_date')
period_ids = context.get('periods')
fiscalyear_id = context.get('fiscalyear')
if date:
fiscalyears = FiscalYear.search([
('start_date', '<=', date),
('end_date', '>=', date),
])
elif from_date or to_date:
domain = []
if from_date:
domain.append(('end_date', '>=', from_date))
if to_date:
domain.append(('start_date', '<=', to_date))
fiscalyears = FiscalYear.search(domain)
elif period_ids:
periods = Period.browse(period_ids)
fiscalyears = list(set(p.fiscalyear for p in periods))
elif fiscalyear_id:
fiscalyears = FiscalYear.browse([fiscalyear_id])
else:
fiscalyears = FiscalYear.search([
('start_date', '<=', today),
('end_date', '>=', today),
], limit=1)
if not fiscalyears:
return (from_date or date or today, to_date or date or today)
return (
min(f.start_date for f in fiscalyears),
max(f.end_date for f in fiscalyears))
@classmethod
def default_active(cls):
return True
@fields.depends('start_date', 'end_date')
def on_change_with_active(self, name=None):
from_date, to_date = self._active_dates()
start_date = self.start_date or datetime.date.min
end_date = self.end_date or datetime.date.max
return (start_date <= to_date <= end_date
or start_date <= from_date <= end_date
or (from_date <= start_date and end_date <= to_date))
@classmethod
def domain_active(cls, domain, tables):
table, _ = tables[None]
_, operator, value = domain
from_date, to_date = cls._active_dates()
start_date = Coalesce(table.start_date, datetime.date.min)
end_date = Coalesce(table.end_date, datetime.date.max)
expression = (((start_date <= to_date) & (end_date >= to_date))
| ((start_date <= from_date) & (end_date >= from_date))
| ((start_date >= from_date) & (end_date <= to_date)))
if operator in {'=', '!='}:
if (operator == '=') != value:
expression = ~expression
elif operator in {'in', 'not in'}:
if True in value and False not in value:
pass
elif False in value and True not in value:
expression = ~expression
else:
expression = Literal(True)
else:
expression = Literal(True)
return expression
class ContextCompanyMixin(Model):
context_company = fields.Function(fields.Boolean("Context Company"),
'get_context_company')
def get_context_company(self, name):
context = Transaction().context
return self.company.id == context.get('company')
@classmethod
def domain_context_company(cls, domain, tables):
context = Transaction().context
table, _ = tables[None]
_, operator, value = domain
expression = table.company == context.get('company')
if operator in {'=', '!='}:
if (operator == '=') != value:
expression = ~expression
elif operator in {'in', 'not in'}:
if True in value and False not in value:
pass
elif False in value and True not in value:
expression = ~expression
else:
expression = Literal(True)
else:
expression = Literal(True)
return expression
+30
View File
@@ -0,0 +1,30 @@
# 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.i18n import gettext
from trytond.model.exceptions import AccessError
from trytond.pool import Pool, PoolMeta
from trytond.transaction import Transaction
class Company(metaclass=PoolMeta):
__name__ = 'company.company'
@classmethod
def write(cls, *args):
pool = Pool()
Move = pool.get('account.move')
transaction = Transaction()
if (transaction.user
and transaction.context.get('_check_access')):
actions = iter(args)
for companies, values in zip(actions, actions):
if 'currency' in values:
moves = Move.search([
('company', 'in', [c.id for c in companies]),
],
limit=1, order=[])
if moves:
raise AccessError(gettext(
'account.msg_company_change_currency'))
super().write(*args)
+169
View File
@@ -0,0 +1,169 @@
# 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 ModelSingleton, ModelSQL, ModelView, fields
from trytond.modules.company.model import (
CompanyMultiValueMixin, CompanyValueMixin)
from trytond.pool import Pool
from trytond.pyson import Eval, Id
from trytond.transaction import Transaction
tax_roundings = [
('document', 'Per Document'),
('line', 'Per Line'),
]
class Configuration(
ModelSingleton, ModelSQL, ModelView, CompanyMultiValueMixin):
'Account Configuration'
__name__ = 'account.configuration'
default_account_receivable = fields.MultiValue(fields.Many2One(
'account.account', "Default Account Receivable",
domain=[
('closed', '!=', True),
('type.receivable', '=', True),
('party_required', '=', True),
('company', '=', Eval('context', {}).get('company', -1)),
]))
default_account_payable = fields.MultiValue(fields.Many2One(
'account.account', "Default Account Payable",
domain=[
('closed', '!=', True),
('type.payable', '=', True),
('party_required', '=', True),
('company', '=', Eval('context', {}).get('company', -1)),
]))
default_customer_tax_rule = fields.MultiValue(fields.Many2One(
'account.tax.rule', "Default Customer Tax Rule",
domain=[
('company', '=', Eval('context', {}).get('company', -1)),
('kind', 'in', ['sale', 'both']),
],
help="Default customer tax rule for new parties."))
default_supplier_tax_rule = fields.MultiValue(fields.Many2One(
'account.tax.rule', "Default Supplier Tax Rule",
domain=[
('company', '=', Eval('context', {}).get('company', -1)),
('kind', 'in', ['purchase', 'both']),
],
help="Default supplier tax rule for new parties."))
tax_rounding = fields.MultiValue(fields.Selection(
tax_roundings, "Tax Rounding"))
reconciliation_sequence = fields.MultiValue(fields.Many2One(
'ir.sequence', "Reconciliation Sequence", required=True,
domain=[
('company', 'in',
[Eval('context', {}).get('company', -1), None]),
('sequence_type', '=',
Id('account',
'sequence_type_account_move_reconciliation')),
]))
@classmethod
def multivalue_model(cls, field):
pool = Pool()
if field in {'default_account_receivable', 'default_account_payable'}:
return pool.get('account.configuration.default_account')
if field in {'default_customer_tax_rule', 'default_supplier_tax_rule'}:
return pool.get('account.configuration.default_tax_rule')
if field == 'reconciliation_sequence':
return pool.get('account.configuration.sequence')
return super(Configuration, cls).multivalue_model(field)
@classmethod
def default_tax_rounding(cls, **pattern):
return cls.multivalue_model('tax_rounding').default_tax_rounding()
@classmethod
def default_reconciliation_sequence(cls, **pattern):
return cls.multivalue_model(
'reconciliation_sequence').default_reconciliation_sequence()
class ConfigurationDefaultAccount(ModelSQL, CompanyValueMixin):
"Account Configuration Default Account"
__name__ = 'account.configuration.default_account'
default_account_receivable = fields.Many2One(
'account.account', "Default Account Receivable",
domain=[
('type.receivable', '=', True),
('party_required', '=', True),
('company', '=', Eval('company', -1)),
])
default_account_payable = fields.Many2One(
'account.account', "Default Account Payable",
domain=[
('type.payable', '=', True),
('party_required', '=', True),
('company', '=', Eval('company', -1)),
])
class DefaultTaxRule(ModelSQL, CompanyValueMixin):
"Account Configuration Default Tax Rule"
__name__ = 'account.configuration.default_tax_rule'
default_customer_tax_rule = fields.Many2One(
'account.tax.rule', "Default Customer Tax Rule",
domain=[
('company', '=', Eval('company', -1)),
('kind', 'in', ['sale', 'both']),
])
default_supplier_tax_rule = fields.Many2One(
'account.tax.rule', "Default Supplier Tax Rule",
domain=[
('company', '=', Eval('company', -1)),
('kind', 'in', ['purchase', 'both']),
])
class ConfigurationTaxRounding(ModelSQL, CompanyValueMixin):
'Account Configuration Tax Rounding'
__name__ = 'account.configuration.tax_rounding'
configuration = fields.Many2One('account.configuration', 'Configuration',
required=True, ondelete='CASCADE',
context={
'company': Eval('company', -1),
},
depends={'company'})
tax_rounding = fields.Selection(tax_roundings, 'Method', required=True)
@classmethod
def __register__(cls, module_name):
sql_table = cls.__table__()
cursor = Transaction().connection.cursor()
super(ConfigurationTaxRounding, cls).__register__(module_name)
table = cls.__table_handler__(module_name)
# Migration from 4.2: rename method into tax_rounding
if table.column_exist('method'):
cursor.execute(*sql_table.update(
[sql_table.tax_rounding], [sql_table.method]))
table.drop_column('method')
@classmethod
def default_tax_rounding(cls):
return 'document'
class Sequence(ModelSQL, CompanyValueMixin):
"Account Configuration Sequence"
__name__ = 'account.configuration.sequence'
reconciliation_sequence = fields.Many2One(
'ir.sequence', "Reconciliation Sequence", required=True,
domain=[
('company', 'in', [Eval('company', -1), None]),
('sequence_type', '=',
Id('account', 'sequence_type_account_move_reconciliation')),
])
@classmethod
def default_reconciliation_sequence(cls):
pool = Pool()
ModelData = pool.get('ir.model.data')
try:
return ModelData.get_id(
'account', 'sequence_account_move_reconciliation')
except KeyError:
return None
+48
View File
@@ -0,0 +1,48 @@
<?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="configuration_view_form">
<field name="model">account.configuration</field>
<field name="type">form</field>
<field name="name">configuration_form</field>
</record>
<record model="ir.action.act_window"
id="act_configuration_form">
<field name="name">Configuration</field>
<field name="res_model">account.configuration</field>
</record>
<record model="ir.action.act_window.view"
id="act_configuration_view1">
<field name="sequence" eval="1"/>
<field name="view" ref="configuration_view_form"/>
<field name="act_window" ref="act_configuration_form"/>
</record>
<menuitem
parent="menu_account_configuration"
action="act_configuration_form"
sequence="0"
id="menuitem_account_configuration"
icon="tryton-list"/>
<record model="ir.model.access" id="access_account_configuration">
<field name="model"
search="[('model', '=', 'account.configuration')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access"
id="access_account_configuration_account_admin">
<field name="model"
search="[('model', '=', 'account.configuration')]"/>
<field name="group" ref="group_account_admin"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
</data>
</tryton>
+61
View File
@@ -0,0 +1,61 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
modules_url = 'https://docs.tryton.org/projects/modules-{module}/en/{series}/'
trytond_url = 'https://docs.tryton.org/projects/server/en/{series}/'
def get_info():
import configparser
import os
import subprocess
import sys
module_dir = os.path.dirname(os.path.dirname(__file__))
config = configparser.ConfigParser()
config.read_file(open(os.path.join(module_dir, 'tryton.cfg')))
info = dict(config.items('tryton'))
result = subprocess.run(
[sys.executable, 'setup.py', '--name'],
stdout=subprocess.PIPE, check=True, cwd=module_dir)
info['name'] = result.stdout.decode('utf-8').strip()
result = subprocess.run(
[sys.executable, 'setup.py', '--version'],
stdout=subprocess.PIPE, check=True, cwd=module_dir)
version = result.stdout.decode('utf-8').strip()
if 'dev' in version:
info['series'] = 'latest'
else:
info['series'] = '.'.join(version.split('.', 2)[:2])
for key in {'depends', 'extras_depend'}:
info[key] = info.get(key, '').strip().splitlines()
info['modules'] = set(info['depends'] + info['extras_depend'])
info['modules'] -= {'ir', 'res'}
return info
info = get_info()
master_doc = 'index'
project = info['name']
release = version = info['series']
default_role = 'ref'
highlight_language = 'none'
extensions = [
'sphinx.ext.intersphinx',
]
intersphinx_mapping = {
'trytond': (trytond_url.format(series=version), None),
}
intersphinx_mapping.update({
m: (modules_url.format(
module=m.replace('_', '-'), series=version), None)
for m in info['modules']
})
del get_info, info, modules_url, trytond_url
+30
View File
@@ -0,0 +1,30 @@
*************
Configuration
*************
The *Account Module* uses values from settings in the ``[account]`` section
of the :doc:`configuration file <trytond:topics/configuration>`.
.. _config-account.reconciliation_chunk:
``reconciliation_chunk``
========================
The ``reconciliation_chunk`` defines the size of each block of sequential
`Account Move Lines <model-account.move.line>` that are searched for
`Reconciliation <model-account.move.reconciliation>` proposals.
Larger chunk sizes allow more lines to be considered together, and sometimes
better matches to be found.
.. warning::
The number of combinations of lines considered, and consequently the search
time, increases exponentially along with the chunk size.
So you should keep this setting to a relatively low value.
.. seealso::
The `Reconcile Accounts <wizard-account.reconcile>` wizard for details
of how this setting is used.
The default value is: ``10``
+189
View File
@@ -0,0 +1,189 @@
.. _model-account.account:
Account
=======
In Tryton the *Account* concept is used to represent the different accounts
that make up the `Company's <company:model-company.company>` chart of accounts.
These accounts are commonly organised into a structure, with each account
having a single parent and zero or more sub accounts.
The balance of an account is made up from all the credits and debits into
the account and its sub accounts.
These values are in the company's
`Currency <currency:model-currency.currency>`, but a second currency can be
used on accounts that record transactions that happen in a different currency.
Each account has an `Account Type <model-account.account.type>` which
defines some additional properties of the account.
A second type can be specified for accounts whose type depends on whether they
have a credit or debit balance.
Only accounts that are not closed can be used as a source or destination for
`Account Moves <model-account.move>`.
Tryton will only try and reconcile
`Account Move Lines <model-account.move.line>` in accounts that are correctly
marked when `Reconciling <wizard-account.reconcile>` accounts.
In Tryton a *deferral* account is any account that appears on a company's
balance sheet, or is not shown on any reports.
The amounts in these accounts are carried forward to subsequent
`Fiscal Years <model-account.fiscalyear>`, and are stored using the
`Account Deferral <model-account.account.deferral>` concept.
.. seealso::
A list of the accounts is available via the main menu item:
|Financial --> Configuration --> General Account --> Accounts|__
.. |Financial --> Configuration --> General Account --> Accounts| replace:: :menuselection:`Financial --> Configuration --> General Account --> Accounts`
__ https://demo.tryton.org/model/account.account
Accounts can be created from
`Account Templates <model-account.account.template>`.
.. _model-account.account.type:
Account Type
============
The *Account Type* concept defines the structure of the
`Company's <company:model-company.company>` accounting reports.
It defines whether the account type appears on the balance sheet or income
statement, and has a set of properties that indicate what any
`Accounts <model-account.account>` of this type can be used for.
When used as the balance sheet or income statement the amount shown for the
account type includes the amounts from all the accounts of that type and
includes the amounts from all of its children.
The amounts from accounts that also have a debit type are only ever included
in either the account's type, or its debit type, depending on whether the
accounts balance is in credit, or debit, respectively.
.. seealso::
The list of account types can be found by opening the main menu item:
|Financial --> Configuration --> General Account --> Account Types|__
.. |Financial --> Configuration --> General Account --> Account Types| replace:: :menuselection:`Financial --> Configuration --> General Account --> Account Types`
__ https://demo.tryton.org/model/account.account.type
Accounts Types can be created from
`Account Type Templates <model-account.account.type.template>`.
Reports
-------
.. _report-account.account.type.statement:
Statement
^^^^^^^^^
The *Statement* report is used to get a printed copy of the open parts
of the balance sheet and income statements.
.. _model-account.account.party:
Account Party
=============
The *Account Party* concept is used to show the balances, and credits and
debits, for each `Party <party:model-party.party>` in an
`Account <model-account.account>`.
.. _model-account.account.deferral:
Account Deferral
================
The *Account Deferral* concept stores, by `Account <model-account.account>`,
any amounts that need to be carried forward to the next
`Fiscal Year <model-account.fiscalyear>`.
The data that gets stored here is managed automatically when fiscal years
are closed or re-opened.
.. _model-account.general_ledger.account:
General Ledger Account
======================
The list of *General Ledger Accounts* gives a top level view of a
`Company's <company:model-company.company>` general ledger.
For the specified period of time, it provides a summary of the debits and
credits into the `Accounts <model-account.account>`, and the starting and
ending values for the debits, credits and account balances.
.. seealso::
The company's general ledger can be opened using the main menu item:
|Financial --> Reporting --> General Ledger|__
.. |Financial --> Reporting --> General Ledger| replace:: :menuselection:`Financial --> Reporting --> General Ledger`
__ https://demo.tryton.org/model/account.general_ledger.account;context_model=account.general_ledger.account.context
Reports
-------
.. _report-account.general_ledger:
General Ledger
^^^^^^^^^^^^^^
For each selected *General Ledger Account* the *General Ledger* report provides
a detailed list of all of the transactions that occurred during the specified
period of time.
These are summed up for each general ledger account, and the account balance
is also shown.
.. _report-account.trial_balance:
Trial Balance
^^^^^^^^^^^^^
The *Trial Balance* report allows a hard copy of the *General Ledger Account's*
summaries to be printed out.
It lists each selected general ledger account along with its start and end
balances and total debits and credits.
.. _model-account.general_ledger.account.party:
General Ledger Account Party
============================
The *General Ledger Account Party* concept provides the same information as the
`General Ledger Account <model-account.general_ledger.account>`, but grouped
by `Party <party:model-party.party>`.
It can be used to show the information that is normally found in a `Debtors
or Creditors Ledger`_.
.. _Debtors or Creditors Ledger: https://en.wikipedia.org/wiki/Ledger#Types_on_the_basis_of_purpose
.. _model-account.aged_balance:
Aged Balance
============
The *Aged Balance* shows a breakdown of how overdue payments are both to and
from customers and suppliers.
It allows the length of some terms to be set and then, for each
`Party <party:model-party.party>`, groups the payment amounts into the
appropriate term based on the maturity date from the payment's
`Account Move Line <model-account.move.line>`.
A payment amount appears in the first term it is equal to or more overdue than.
Reports
-------
.. _report-account.aged_balance:
Aged Balance
^^^^^^^^^^^^
The *Aged Balance* report lets the user get a hard copy of the selected terms
and aged balances.
@@ -0,0 +1,16 @@
.. _model-account.configuration:
Configuration
=============
The *Account Configuration* contains the settings used to configure the general
behaviour and default values for accounting related activities.
.. seealso::
Account configuration settings are found by opening the main menu item:
|Financial --> Configuration --> Configuration|__
.. |Financial --> Configuration --> Configuration| replace:: :menuselection:`Financial --> Configuration --> Configuration`
__ https://demo.tryton.org/model/account.configuration/1
@@ -0,0 +1,89 @@
.. _model-account.fiscalyear:
Fiscal Year
===========
In accounting the concept of a *Fiscal Year* is used when generating a
`Company's <company:model-company.company>` financial reports.
In Tryton it groups together a set of `Periods <model-account.period>`.
.. seealso::
Fiscal years can be found by opening the main menu item:
|Financial --> Configuration --> Fiscal Years --> Fiscal Years|__
.. |Financial --> Configuration --> Fiscal Years --> Fiscal Years| replace:: :menuselection:`Financial --> Configuration --> Fiscal Years --> Fiscal Years`
__ https://demo.tryton.org/model/account.fiscalyear
Wizards
-------
.. _wizard-account.fiscalyear.create_periods:
Create Periods
^^^^^^^^^^^^^^
For a *Fiscal Year*, the *Create Periods* wizard creates a set of monthly,
quarterly, or other fixed length periods.
The periods that are created cover the whole of the fiscal year, and do not
overlap.
.. _wizard-account.fiscalyear.renew:
Renew Fiscal Year
^^^^^^^^^^^^^^^^^
The *Renew Fiscal Year* wizard takes a previous *Fiscal Year* and lets the
user create a new fiscal year based on it.
When the wizard is started, by default, it is setup ready to create a new
fiscal year based on, and immediately following, the latest fiscal year.
.. seealso::
The renew fiscal year wizard can be started from the main menu item:
:menuselection:`Financial --> Configuration --> Fiscal Years --> Renew Fiscal Year`
.. _wizard-account.fiscalyear.balance_non_deferral:
Balance Non-Deferral
^^^^^^^^^^^^^^^^^^^^
At the fiscal year-end the *Balance Non-Deferral* wizard is used to
create `Account Moves <model-account.move>` that zero the balances of each
non-deferral `Account <model-account.account>` using a counterpart account.
.. seealso::
The balance non-deferral wizard is started using the main menu item:
:menuselection:`Financial --> Processing --> Balance Non-Deferral`
.. _model-account.period:
Period
======
An accounting *Period* represents a period of time between two dates.
It allows a `Company's <company:model-company.company>` accounts to be
processed, aggregated and analysed based on this fixed range of time.
Each period in Tryton belongs to a `Fiscal Year <model-account.fiscalyear>`.
There are two different types of period, standard periods, and
adjustment periods.
Standard periods from the same fiscal year cannot overlap, and by default
Tryton will only use Standard periods when creating new
`Account Moves <model-account.move>`.
Adjustment periods are typically used for things like the
accounting moves created when `Closing a fiscal year`, and these periods may
overlap other periods.
.. seealso::
Periods can be found by opening the main menu item:
|Financial --> Configuration --> Fiscal Years --> Fiscal Years --> Periods|__
.. |Financial --> Configuration --> Fiscal Years --> Fiscal Years --> Periods| replace:: :menuselection:`Financial --> Configuration --> Fiscal Years --> Fiscal Years --> Periods`
__ https://demo.tryton.org/model/account.period
+16
View File
@@ -0,0 +1,16 @@
******
Design
******
The *Account Module* introduces the following concepts:
.. toctree::
:maxdepth: 1
account
move
fiscal-year
journal
tax
template
configuration
+66
View File
@@ -0,0 +1,66 @@
.. _model-account.journal:
Journal
=======
A *Journal* represents a book of original entry from traditional manual
accounting.
In Tryton it allows `Account Moves <model-account.move>` of the same class
to be grouped together.
Every account move gets associated with a journal, and the journal defines
what sequence is then used to number the account move.
Among the journal's properties is a type.
This limits where the journal can be used.
.. seealso::
The journals can be found by opening the main menu item:
|Financial --> Configuration --> Journals --> Journals|__
.. |Financial --> Configuration --> Journals --> Journals| replace:: :menuselection:`Financial --> Configuration --> Journals --> Journals`
__ https://demo.tryton.org/model/account.journal
Wizards
-------
.. _wizard-account.move.open_journal:
Open Journal
^^^^^^^^^^^^
The *Open Journal* wizard opens an editable list which can be used to quickly
enter in journal entries for a specific journal and
`Period <model-account.period>`.
.. seealso::
The wizard can be started by using the main menu item:
:menuselection:`Financial --> Entries --> Open Journal`
.. _model-account.journal.period:
Journal Period
==============
For each `Company <company:model-company.company>`, a *Journal Period* links
together the concepts of a `Journal <model-account.journal>`, and an accounting
`Period <model-account.period>`.
Each journal period is created automatically when the first
`Account Move <model-account.move>` is created in the journal and period.
It provides a way of partially closing a period one journal at a time.
.. seealso::
The company's journal periods can be listed by opening the main menu item:
|Financial --> Reporting --> Journals - Periods|__
.. |Financial --> Reporting --> Journals - Periods| replace:: :menuselection:`Financial --> Reporting --> Journals - Periods`
__ https://demo.tryton.org/model/account.journal.period
The company's open journal periods can be found using the main menu item:
:menuselection:`Financial --> Entries --> Journals - Periods`
+198
View File
@@ -0,0 +1,198 @@
.. _model-account.move:
Account Move
============
The *Account Move* concept is used to record transactions in a
`Company's <company:model-company.company>` accounts.
In Tryton each account move is made up from several
`Account Move Lines <model-account.move.line>`.
These lines form the separate parts of the transaction as required by
`double-entry bookkeeping`_ principles.
Account moves are always tied to a specific accounting
`Period <model-account.period>`, and new account moves can only be created in
an open period.
All account moves are also entered into one of the
`Journals <model-account.journal>`.
An account move can be changed until it is posted.
Posting an account move permanently adds it to the company's accounts.
Only account moves whose line's debits and credits are balanced can be posted.
.. _`Double-entry bookkeeping`: https://en.wikipedia.org/wiki/Double-entry_bookkeeping
.. seealso::
Account moves can be found by opening the main menu item:
|Financial --> Entries --> Account Moves|__
.. |Financial --> Entries --> Account Moves| replace:: :menuselection:`Financial --> Entries --> Account Moves`
__ https://demo.tryton.org/model/account.move
Reports
-------
.. _report-account.move.general_journal:
General Journal
^^^^^^^^^^^^^^^
In Tryton the general journal lists all of the selected `Account Moves
<model-account.move>`.
It also includes details such as the accounts, debits and credits involved.
Wizards
-------
.. _wizard-account.move.cancel:
Cancel Moves
^^^^^^^^^^^^
The *Cancel Moves* wizard creates new account moves whose debits and credits
cancel out those from the original account moves.
If any of the `Account Move Lines <model-account.move.line>` that got cancelled
are in `Accounts <model-account.account>` that are marked as to be reconciled
then the original lines are `Reconciled <model-account.move.reconciliation>`
with those that cancel them out.
.. _model-account.move.line:
Account Move Line
=================
Each *Account Move Line* is used to represent a single debit, or credit, to
a specific `Account <model-account.account>`.
It is also used to record additional details about the transaction, such as:
* the amount in a second `Currency <currency:model-currency.currency>`,
* the `Party <party:model-party.party>` involved with the transaction,
* the date when the line matures and a payment for the (payable or receivable)
line should happen, and
* how the amount is split up for `Tax <model-account.tax.line>` purposes.
Account move lines can only exist as part of an
`Account Move <model-account.move>`.
A valid line is part of an account move that has balanced debits and credits.
Once the account move that a line belongs to has been posted the main
properties of the line can no longer be changed.
These facts help ensure the integrity of the
`Company's <company:model-company.company>` accounts and the accounting reports
generated by Tryton.
Wizards
-------
.. _wizard-account.move.line.group:
Group Lines
^^^^^^^^^^^
The *Group Lines* wizard allows payable and/or receivable *Account Move Lines*
to be grouped together and a single unique payable or receivable account move
line is created for the net amount of the grouped lines.
The maturity date used for the newly created account move line is the
earliest maturity date from the lines that were grouped together.
.. _wizard-account.move.line.reschedule:
Reschedule Lines
^^^^^^^^^^^^^^^^
The *Reschedule Lines* wizard allows to reschedule payable or receivable
*Account Move Lines* by creating an account move line for each new maturity
date.
.. _wizard-account.move.reconcile_lines:
Reconcile Lines
^^^^^^^^^^^^^^^
The *Reconcile Lines* wizard matches together *Account Move Lines* from
the same account that have credits and debits which are equal.
If the selected account move lines do not balance then the wizard will offer
to create a write-off account move for the difference, so the reconciliation
can be completed.
When the reconciliation is done the lines are linked together using a new
`Reconciliation <model-account.move.reconciliation>`.
.. _wizard-account.move.unreconcile_lines:
Unreconcile Lines
^^^^^^^^^^^^^^^^^
The *Unreconcile Lines* wizard undoes a reconciliation.
It does this by removing the
`Reconciliation <model-account.move.reconciliation>` that linked together
the *Account Move Lines*.
.. note::
Running this wizard will not reverse any other operations that may have
been triggered when the reconciliation was initially performed.
.. _model-account.move.reconciliation:
Reconciliation
==============
In Tryton a *Reconciliation* groups together some
`Account Move Lines <model-account.move.line>` whose total debits and credits
balance.
These account move lines must all have the same
`Account <model-account.account>` and `Party <model-party.party>` and must
not already be part of another *Reconciliation*.
Each *Reconciliation* stores information about the reconciliation and when it
happened.
Wizards
-------
.. _wizard-account.reconcile:
Reconcile Accounts
^^^^^^^^^^^^^^^^^^
The *Reconcile Accounts* wizard is used to find and reconcile groups of
`Account Move Lines <model-account.move.line>` that have matching total
debits and credits, in `Accounts <model-account.account>` that are marked
for reconciliation.
The wizard goes through each account and `Party <party:model-party.party>`
in turn, and attempts to find the best possible reconciliations from the
unreconciled account move lines that should be considered.
It does this by splitting up the account move lines into sequential
`chunks <config-account.reconciliation_chunk>`.
It then tries all possible combinations of the account move lines within each
chunk, in an attempt to find the best set of balanced lines.
.. seealso::
The reconcile accounts wizard can be started from the main menu item:
:menuselection:`Financial --> Processing --> Reconcile Accounts`
.. _model-account.move.reconcile.write_off:
Reconcile Write Off
===================
The *Reconcile Write Off* concept is used to configure which
`Journal <model-account.journal>` and debit or credit
`Accounts <model-account.account>` are used for write-offs generated when
`Reconciling Lines <wizard-account.move.reconcile_lines>`.
.. seealso::
A list of the available reconcile write off settings can be found by
opening the main menu item:
|Financial --> Configuration --> Journals --> WriteOff Methods|__
.. |Financial --> Configuration --> Journals --> WriteOff Methods| replace:: :menuselection:`Financial --> Configuration --> Journals --> WriteOff Methods`
__ https://demo.tryton.org/model/account.move.reconcile.write_off
+134
View File
@@ -0,0 +1,134 @@
.. _model-account.tax:
Tax
===
The *Tax* concept allows the taxes a `Company <company:model-company.company>`
uses to be represented in Tryton.
Taxes can be for a fixed amount, or a percentage of an item's price.
The tax can also be setup to be included as part of an item's price for any
later taxes that get applied, resulting in it being compounded by these later
taxes.
A date range can be used to restrict when a tax applies.
Applying a tax will also apply all of its children.
.. seealso::
The taxes can be found by opening the main menu item:
|Financial --> Configuration --> Taxes --> Taxes|__
.. |Financial --> Configuration --> Taxes --> Taxes| replace:: :menuselection:`Financial --> Configuration --> Taxes --> Taxes`
__ https://demo.tryton.org/model/account.tax
Taxes can be created from `Tax Templates <model-account.tax.template>`.
Wizards
-------
.. _wizard-account.tax.test:
Test Tax
^^^^^^^^
The *Test Tax* wizard allows a user to test how different taxes get applied.
It does this without altering any data on the system, and lets the user
instantly see the result of applying different taxes.
.. seealso::
The test tax wizard can be started using the main menu item:
:menuselection:`Financial --> Configuration --> Taxes --> Test Tax`
.. _model-account.tax.line:
Tax Line
========
The *Tax Line* concept is used to record how an
`Account Move Line <model-account.move.line>` is split up for tax purposes.
Each tax line represents a tax amount, or base amount, for a specific
*Account Move Line* and `Tax <model-account.tax>` combination.
.. _model-account.tax.group:
Tax Group
=========
The *Tax Group* concept is used to group together `Taxes <model-account.tax>`
of the same type.
These tax groups can then be used in `Tax Rules' <model-account.tax.rule>`
lines to change which taxes are applied to an item.
.. seealso::
The tax groups can be found using the main menu item:
|Financial --> Configuration --> Taxes --> Tax Groups|__
.. |Financial --> Configuration --> Taxes --> Tax Groups| replace:: :menuselection:`Financial --> Configuration --> Taxes --> Tax Groups`
__ https://demo.tryton.org/model/account.tax.group
.. _model-account.tax.rule:
Tax Rule
========
A *Tax Rule* allows taxes to be substituted for other taxes based on a set of
rules.
When the tax rule is applied the rule defined by its first matching line is
used.
The tax rule's lines contain a set of properties, such as the
`Tax <model-account.tax>`, its `Group <model-account.tax.group>`, or a date
range.
These are used to work out if the tax rule line matches the tax.
If the tax matches, then a substitution tax is added and the origin tax is
removed, unless the tax rule line indicates that the origin tax should also
be kept.
.. seealso::
The available tax rules can be found by opening the main menu item:
|Financial --> Configuration --> Taxes --> Tax Rules|__
.. |Financial --> Configuration --> Taxes --> Tax Rules| replace:: :menuselection:`Financial --> Configuration --> Taxes --> Tax Rules`
__ https://demo.tryton.org/model/account.tax.rule
Tax rules can be created from
`Tax Rule Templates <model-account.tax.rule.template>`.
.. _model-account.tax.code:
Tax Code
========
In Tryton *Tax Codes* are used to collect together tax amounts and base amounts
for tax reporting.
Each tax code is made up from lines, each of which collect together either the
tax or base amounts for a specific `Tax <model-account.tax>` and type of
transaction.
An operator then allows this value to be negated if required.
The tax codes can be placed into a structure with each having a parent and
some children.
The amounts shown by each tax code are based on the values from tax code's
lines, and the amounts provided by the tax code's children.
.. seealso::
The list of tax codes can be found using the main menu item:
|Financial --> Configuration --> Taxes --> Tax Codes --> Tax Codes|__
.. |Financial --> Configuration --> Taxes --> Tax Codes --> Tax Codes| replace:: :menuselection:`Financial --> Configuration --> Taxes --> Tax Codes --> Tax Codes`
__ https://demo.tryton.org/model/account.tax.code
Tax codes can be created from
`Tax Code Templates <model-account.tax.code.template>`.
+128
View File
@@ -0,0 +1,128 @@
.. _concept-account.template:
.. _model-account.account.template:
.. _model-account.account.type.template:
.. _model-account.tax.template:
.. _model-account.tax.code.template:
.. _model-account.tax.rule.template:
Templates
=========
The *Templates* are used to predefine a set of basic accounting structures
and rules.
The templates have the same properties as their non-template equivalents
except they are not linked to a `Company <company:model-company.company>`.
There are templates for:
* `Accounts <model-account.account>`,
* `Account Types <model-account.account.type>`,
* `Taxes <model-account.tax>`,
* `Tax Codes <model-account.tax.code>`, and
* `Tax Rules <model-account.tax.rule>`.
These templates are used together to form a complete accounting structure for
particular country and/or company type.
.. seealso::
The templates can be found using the following menu entries:
* |Financial --> Configuration --> Templates --> Account Types|__
* |Financial --> Configuration --> Templates --> Accounts|__
* |Financial --> Configuration --> Templates --> Tax Codes|__
* |Financial --> Configuration --> Templates --> Taxes|__
* |Financial --> Configuration --> Templates --> Tax Rules|__
.. |Financial --> Configuration --> Templates --> Account Types| replace:: :menuselection:`Financial --> Configuration --> Templates --> Account Types`
__ https://demo.tryton.org/model/account.account.type.template
.. |Financial --> Configuration --> Templates --> Accounts| replace:: :menuselection:`Financial --> Configuration --> Templates --> Accounts`
__ https://demo.tryton.org/model/account.account.template
.. |Financial --> Configuration --> Templates --> Tax Codes| replace:: :menuselection:`Financial --> Configuration --> Templates --> Tax Codes`
__ https://demo.tryton.org/model/account.tax.code.template
.. |Financial --> Configuration --> Templates --> Taxes| replace:: :menuselection:`Financial --> Configuration --> Templates --> Taxes`
__ https://demo.tryton.org/model/account.tax.template
.. |Financial --> Configuration --> Templates --> Tax Rules| replace:: :menuselection:`Financial --> Configuration --> Templates --> Tax Rules`
__ https://demo.tryton.org/model/account.tax.rule.template
Wizards
-------
.. _wizard-account.create_chart:
Create Chart
^^^^^^^^^^^^
The *Create Chart* wizard takes a set of templates and creates the
corresponding accounts structure for a single
`Company <company:model-company.company>`.
This includes structures like the chart of accounts, balance sheet and income
statement, and taxes and related tax management and reporting structures.
.. seealso::
The create chart wizard can be started from the main menu item:
:menuselection:`Financial --> Configuration --> Templates --> Create Chart of Account from Template`
.. _wizard-account.update_chart:
Update Chart
^^^^^^^^^^^^
The *Update Chart* wizard updates a `Company's <company:model-company.company>`
accounts structure with any changes that have been made to the underlying
templates.
.. seealso::
The update chart wizard can be started from the main menu item:
:menuselection:`Financial --> Configuration --> Templates --> Update Chart of Account from Template`
.. _model-account.move.template:
Account Move Template
=====================
An *Account Move Template* provides a predefined structure for an
`Account Move <model-account.move>`.
Each account move template can define a set of keywords.
Values for these keywords are requested from the user when the template is
used.
These values are then substituted for the keyword placeholders defined in the
account move template's fields.
The account move template's lines, and their tax lines, mirror the structure of
`Account Move Lines <model-account.move.line>` and
`Tax Lines <model-account.tax.line>` respectively.
However, in selected fields they also allow the use of expressions that can
contain the keyword placeholders.
.. seealso::
The account move templates can be found by using the main menu item:
|Financial --> Configuration --> Templates --> Account Move Template|__
.. |Financial --> Configuration --> Templates --> Account Move Template| replace:: :menuselection:`Financial --> Configuration --> Templates --> Account Move Template`
__ https://demo.tryton.org/model/account.move.template
Wizards
-------
.. _wizard-account.move.template.create:
Create Move
^^^^^^^^^^^
The *Create Move* wizard is used to create a new
`Account Move <model-account.move>` based on a selected
`Move Template <model-account.move.template>`.
.. seealso::
The create move wizard can be started from the main menu item:
:menuselection:`Financial --> Entries --> Create Move from Template`
+18
View File
@@ -0,0 +1,18 @@
##############
Account Module
##############
The *Account Module* defines the fundamentals needed for basic double entry
accounting.
It also includes templates for a basic chart of accounts, balance sheet and
income statement.
.. toctree::
:maxdepth: 2
setup
usage/index
configuration
design/index
reference
releases
+49
View File
@@ -0,0 +1,49 @@
*************
API Reference
*************
Periods
=======
.. class:: ActivePeriodMixin
This mixin_ makes it easy to create a :class:`~trytond:trytond.model.Model`
which is active between a start and end date.
The date range, `Periods <model-account.period>`, or
`Fiscal Years <model-account.fiscalyear>` that are set in the context are
used to determine if a particular record should be considered active, or
not.
.. class:: PeriodMixin
This mixin_ provides a start and end date to classes that inherit it.
It also limits any parent or child fields of the class to the same
`Company <company:model-company.company>` and to dates in the same period.
Taxation
========
.. class:: TaxableMixin
This is a mixin_ that helps create classes that need to calculate
`Taxes <model-account.tax>`, tax lines, and tax and base amounts from
a list of taxable lines.
.. _mixin: https://en.wikipedia.org/wiki/Mixin
*********************
Development Reference
*********************
The *Account Module* includes minimal charts of accounts for many languages.
The :abbr:`XML (eXtensible Markup Language)` files that contain the localised
charts of account are all generated from the same source XML file.
The :file:`localize.xsl` :abbr:`XSLT (XML Stylesheet Language Transform)` file
defines how the source XML file is transformed into a localised chart of
accounts.
To output a localised chart of accounts for language ``<lang>`` run:
.. code-block:: bash
xsltproc --stringparam lang <lang> localize.xsl minimal_chart.xml
+7
View File
@@ -0,0 +1,7 @@
.. _releases-index:
=============
Release notes
=============
.. include:: ../CHANGELOG
+64
View File
@@ -0,0 +1,64 @@
*****
Setup
*****
.. _Setting up the accounts structure:
Setting up the accounts structure
=================================
After you've activated the *Account Module* the module configuration will run
the `Create Chart <wizard-account.create_chart>` wizard and allow you to
create your `Company's <company:model-company.company>` accounts structure
from a template.
It is normally a good idea to do this at this point, if you can.
This will use the `Templates <concept-account.template>` from your selected
:guilabel:`Account Template` and create things like a Chart of
`Accounts <model-account.account>`,
the `Account Types <model-account.account.type>` used to generate the
balance sheet and income statements, and appropriate
`Taxes <model-account.tax>`, `Tax Codes <model-account.tax.code>`, and
`Tax Rules <model-account.tax.rule>` to go with them.
.. tip::
If skipped running the *Create Chart* wizard you can always run it later
from its main menu item.
.. _Creating a fiscal year:
Creating a fiscal year
======================
In order to be able to record any of your company's transactions in Tryton
you must first create a :ref:`Fiscal Year <model-account.fiscalyear>`.
This is because every account move happens during an accounting
:ref:`Period <model-account.period>`, and each period belongs to a fiscal
year.
You can create a new `Fiscal Year <model-account.fiscalyear>` from the
[:menuselection:`Financial --> Configuration --> Fiscal Years --> Fiscal Years`]
main menu item.
.. tip::
The start and end of a fiscal year may align with a calendar year
(1 January to 31 December) in which case it is common to use the year as
its name.
It is not essential that a fiscal year and calendar year align, in fact a
fiscal year may be longer or shorter than a calendar year, depending on
your country's legal requirements and financial reporting standards.
Once you have filled in the required information the
`Create Periods <wizard-account.fiscalyear.create_periods>` wizard allows you
to create a set of standard `Periods <model-account.period>`.
You should choose an appropriate period length for your
`Company <company:model-company.company>`, bearing in mind some reports are
generated based on periods, and periods allow you to build up your accounts in
smaller chunks.
.. tip::
Tryton also provides easy ways of `Creating additional fiscal years`.
+106
View File
@@ -0,0 +1,106 @@
.. _Closing a period:
Closing a period
================
To help you keep your accounts tidy, and help you avoid errors, Tryton lets you
close each of your `Company's <company:model-company.company>` accounting
`Periods <model-account.period>` as soon as they are finished.
Check everything is ready
-------------------------
Before you go ahead and close the period it is a good idea to check that
you have recorded all the transactions related to the period in Tryton.
This includes any `Account Moves <model-account.move>` that are needed for
things like prepayments, accruals or depreciation.
You may also want to check that things like bank balances reconcile, and
account moves have been posted.
.. tip::
If you are not ready to close the period, but want to restrict which
`Journals <model-account.journal>` are still open then you can partially
close a period.
In Tryton this is done by using the
[:menuselection:`Financial --> Processing --> Close Journals - Periods`]
main menu item.
Close the period
----------------
Once you are happy everything seems to be okay you use the
[:menuselection:`Financial --> Processing --> Close Periods`] main menu item
to close the period.
.. note::
Many companies will also have their own additional processes which need
to be run at period end.
These may include things like generating reports, and reporting taxes.
.. tip::
If you need to make changes to a closed period you can re-open it, unless
it has been locked.
To re-open a closed period use the
[:menuselection:`Financial --> Processing --> Close Periods`] menu item.
To find a closed period, you will need to clear the filter so that all the
periods are listed, not just the open ones.
.. _Closing a fiscal year:
Closing a fiscal year
=====================
There are several steps you need to follow in order to close a
`Fiscal Year <model-account.fiscalyear>` in Tryton.
Check everything is ready
-------------------------
To help you prepare to close the fiscal year you will often want to first
ensure all its `Periods <model-account.period>` are closed, by following your
normal procedures for `Closing a period`.
Now is also a good time to double check that you haven't forgotten anything,
and ensure that there are no obvious errors, or anomalies.
Reset non-deferral accounts
---------------------------
Next, you need to move the balances of all the non-deferral `Accounts
<model-account.account>` (also known as nominal or temporary accounts) to an
appropriate deferral account (also known as real or permanent account).
The best way to do this is to use the `Balance Non-Deferral
<wizard-account.fiscalyear.balance_non_deferral>` wizard.
.. tip::
When using the balance non-deferral wizard, you should create an adjustment
period for the year end closing entries.
It is best practice to use the last day of the fiscal year as both the
start and end date for this period.
.. tip::
The first time you use the balance non-deferral wizard, you may need to
create a special ``Situation`` `Journal <model-account.journal>` for
the year end closing entries.
Create other year end entries
-----------------------------
With the initial closing entries created you can now go ahead and create any
other moves that are required by the accounting processes of your country.
These will be moves for things like taxes on revenue, dividends, and so on.
When creating these you may want to use the adjustment period you used in
the last step.
Close the fiscal year
---------------------
Finally once all the year end and closing moves have been posted you can close
the fiscal year from the
[:menuselection:`Financial --> Processing --> Close Fiscal Year`] menu item.
+57
View File
@@ -0,0 +1,57 @@
.. _Creating additional fiscal years:
Creating additional fiscal years
================================
You will need a different `Fiscal Year <model-account.fiscalyear>` for each
year that you want to record accounting transactions.
You can create these in the same way as you
`created your initial fiscal year <Creating a fiscal year>`.
.. tip::
An alternative, and often simpler, way of creating a new fiscal year is to
use the `Renew Fiscal Year <wizard-account.fiscalyear.renew>` wizard.
.. _Creating journal entries:
Creating journal entries
========================
In Tryton `journal entries`_ are represented by
`Account Moves <model-account.move>`.
With the right modules activated Tryton will automatically create many of
the account moves for you.
However, there are times when you will need to manually move amounts from one
`Account <model-account.account>` to another.
You do this by using the items found under the
[:menuselection:`Financial --> Entries`] main menu item.
.. _journal entries: https://en.wikipedia.org/wiki/Journal_entry
One-off entries
---------------
For entries that are only needed once, for example to set an account's
initial opening balance, you can manually create an *Account Move*.
The [:menuselection:`Financial --> Entries --> Open Journal`] main menu item
provides another way of entering the details of an account move.
It provides a list of individual
`Account Move Lines <model-account.move.line>`, which can be added to as
required.
Reoccurring entries
-------------------
The best way to create accounting entries for things that are expected to
happen more than once is to use an
`Account Move Template <model-account.move.template>`.
You must first create the *Account Move Template* and set it up to ask for the
things that might change each time it is used.
You then run the
`Create Move from Template <wizard-account.move.template.create>` wizard to
create account moves based on a template of your choice.
+16
View File
@@ -0,0 +1,16 @@
*****
Usage
*****
Accounting configuration, data, and reports are found under the
[:menuselection:`Financial`] main menu item.
.. toctree::
:maxdepth: 1
create
view
report
process
close
structure
+21
View File
@@ -0,0 +1,21 @@
.. _Reconciling accounts:
Reconciling accounts
====================
In Tryton account reconciliation is a process that matches up debits and credit
in an `Account <model-account.account>` which balance out to zero.
This allows you to easily see, for example, which payments were for which
transactions, and which things still need to be paid for.
Any `Reconciliation <model-account.move.reconciliation>` that an
`Account Move Line <model-account.move.line>` is part of is shown by the
account move line's :guilabel:`Reconciliation` field.
The `Reconcile Accounts <wizard-account.reconcile>` wizard is used to manually
run this account reconciliation.
.. note::
Some other processes in Tryton will automatically reconcile account move
lines when appropriate.
+83
View File
@@ -0,0 +1,83 @@
.. _Using the general ledger:
Using the general ledger
========================
Opening the [:menuselection:`Financial --> Reporting --> General Ledger`]
main menu item shows a list of the
`General Ledger Accounts <model-account.general_ledger.account>`.
You select the `Fiscal Year <model-account.fiscalyear>` and optionally the
starting and ending `Periods <model-account.period>`, or dates, to see data
for a specific time period.
Each general ledger account can be opened to provide a breakdown of the items
in that account.
This breakdown can be done to a
`Party <model-account.general_ledger.account.party>` or
`Account Move Line <model-account.move.line>` level.
A `General Ledger <report-account.general_ledger>` report, and a
`Trial Balance <report-account.trial_balance>` can also be printed from here.
.. tip::
If you are only interested in accounts which have debits or credits you
can use the filter to get a list of these by entering::
Debit: !0 or Credit: !0
Note: You should replace ``Debit`` and ``Credit`` with the correct names
used in the language you are using Tryton in.
.. _Using the balance sheet:
Using the balance sheet
=======================
The [:menuselection:`Financial --> Reporting --> Balance Sheet`] shows the
`Company's <company:model-company.company>` assets and liabilities for the
chosen date.
You can use the :guilabel:`Comparison` checkbox to do a comparison of the
company's data for two different dates.
Opening a line from the balance sheet lists the
`Accounts <model-account.account>` that were included in the balance sheet's
line.
You can then open these accounts to get a list of the individual
`Account Move Lines <model-account.move.line>` that made up that account's
debits and credits.
.. _Using the income statement:
Using the income statement
==========================
The [:menuselection:`Financial --> Reporting --> Income Statement`] shows the
`Company's <company:model-company.company>` revenue and expenses for the
chosen period of time.
You can use the :guilabel:`Comparison` checkbox to do a comparison of the
company's data for two different periods of time.
Opening a line from the income statement lists the
`Accounts <model-account.account>` that were included in the income statement's
line.
You can then open these accounts to get a breakdown of the amount to a
`Party <model-account.general_ledger.account.party>` or
`Account Move Line <model-account.move.line>` level.
.. _Getting aged balances:
Getting aged balances
=====================
You can get an `Aged Balance <model-account.aged_balance>` for both suppliers
and customers.
You can change what unit of time is used for the terms, and length of each
term, to suit you needs.
You can also print a copy of the aged balances by using the
`Aged Balance <report-account.aged_balance>` report.
+36
View File
@@ -0,0 +1,36 @@
.. _Making changes to the accounts structure:
Making changes to the accounts structure
========================================
When you've created your `Company's <company:model-company.company>` accounts
structure from a template you can extend it without needing to do anything
special.
If you want to change any of the `Accounts <model-account.account>`,
`Account Types <model-account.account.type>`,
`Taxes <model-account.tax>`, `Tax Codes <model-account.tax.code>`, and
`Tax Rules <model-account.tax.rule>` that were created from the
`Template <concept-account.template>` then you need to use the
:guilabel:`Override Template` option on the items you want to change.
.. note::
Items where you have overridden the template will not be changed when you
are `Updating the accounts structure`.
.. _Updating the accounts structure:
Updating the accounts structure
===============================
If you created your `Company's <company:model-company.company>` accounts
structure from a template you will find that the template is occasionally
updated or improved to match any updated accounting requirements.
To bring these changes into your accounts structure you use the
`Update Chart <wizard-account.update_chart>` wizard.
.. note::
Any items where you have overridden the template will not be changed.
+58
View File
@@ -0,0 +1,58 @@
.. _Viewing journal entries:
Viewing journal entries
=======================
In Tryton there are plenty of different ways of getting information about
the `journal entries`_ that record your
`Company's <company:model-company.company>` accounting transactions.
Each journal entry is represented by an `Account Move <model-account.move>`.
These account moves, and the `Account Move Lines <model-account.move.line>`
that make them up, can be found by:
* Using the items in the [:menuselection:`Financial --> Entries`] main menu
item.
* `Viewing your chart of accounts data` and opening the accounts.
* `Using the general ledger` and opening the accounts.
* `Using the balance sheet` and opening the lines and then accounts.
* `Using the income statement` and opening the lines and then accounts.
.. tip::
Account moves that are created by, or relate to, other documents or items
on you Tryton system can also often be found from those documents or items.
.. _journal entries: https://en.wikipedia.org/wiki/Journal_entry
.. _Viewing your chart of accounts data:
Viewing your chart of accounts data
===================================
The [:menuselection:`Financial --> Reporting -> Chart of Accounts`] provides a
structured view of all the `Accounts <model-account.account>` that form your
`Company's <company:model-company.company>` accounts.
.. tip::
Each account can be opened to show the
`Account Move Lines <model-account.move.line>` that contributed to the
debits and credits shown for that account.
.. _Viewing your tax code data:
Viewing your tax code data
==========================
From [:menuselection:`Financial --> Reporting -> Chart of Tax Codes`] you are
able to see data about what `Taxes <model-account.tax>` have been applied and
what amounts these were based on.
The `Tax Codes <model-account.tax.code>` are normally structured so that you
can find the data that you need to do your tax reporting.
.. tip::
Each tax code can be opened to show the
`Tax Lines <model-account.tax.line>` that contribute to the tax code's
amount.
+105
View File
@@ -0,0 +1,105 @@
# 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 UserError, UserWarning
from trytond.model.exceptions import ValidationError
class PeriodNotFoundError(UserError):
pass
class PeriodValidationError(ValidationError):
pass
class ClosePeriodError(PeriodValidationError):
pass
class PeriodDatesError(PeriodValidationError):
pass
class PeriodSequenceError(PeriodValidationError):
pass
class FiscalYearNotFoundError(UserError):
pass
class FiscalYearValidationError(ValidationError):
pass
class FiscalYearDatesError(FiscalYearValidationError):
pass
class FiscalYearSequenceError(FiscalYearValidationError):
pass
class FiscalYearCloseError(UserError):
pass
class FiscalYearReOpenError(UserError):
pass
class AccountMissing(UserError):
pass
class AccountValidationError(ValidationError):
pass
class SecondCurrencyError(AccountValidationError):
pass
class ChartWarning(UserWarning):
pass
class PostError(UserError):
pass
class MoveDatesError(ValidationError):
pass
class MoveTemplateExpressionError(UserError):
pass
class CancelWarning(UserWarning):
pass
class ReconciliationError(ValidationError):
pass
class DeleteDelegatedWarning(UserWarning):
pass
class CancelDelegatedWarning(UserWarning):
pass
class GroupLineError(UserError):
pass
class RescheduleLineError(UserError):
pass
class DelegateLineError(UserError):
pass
+655
View File
@@ -0,0 +1,655 @@
# 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 dateutil.relativedelta import relativedelta
from trytond.i18n import gettext
from trytond.model import ModelSQL, ModelView, Workflow, fields
from trytond.model.exceptions import AccessError
from trytond.pool import Pool
from trytond.pyson import Eval, Id
from trytond.rpc import RPC
from trytond.transaction import Transaction
from trytond.wizard import (
Button, StateAction, StateTransition, StateView, Wizard)
from .exceptions import (
FiscalYearCloseError, FiscalYearDatesError, FiscalYearNotFoundError,
FiscalYearReOpenError, FiscalYearSequenceError)
STATES = {
'readonly': Eval('state') != 'open',
}
class FiscalYear(Workflow, ModelSQL, ModelView):
'Fiscal Year'
__name__ = 'account.fiscalyear'
name = fields.Char('Name', size=None, required=True)
start_date = fields.Date('Starting Date', required=True, states=STATES,
domain=[('start_date', '<=', Eval('end_date', None))])
end_date = fields.Date('Ending Date', required=True, states=STATES,
domain=[('end_date', '>=', Eval('start_date', None))])
periods = fields.One2Many('account.period', 'fiscalyear', 'Periods',
states=STATES,
domain=[
('company', '=', Eval('company')),
],
order=[('start_date', 'ASC'), ('id', 'ASC')])
state = fields.Selection([
('open', 'Open'),
('close', 'Close'),
('locked', 'Locked'),
], 'State', readonly=True, required=True, sort=False)
post_move_sequence = fields.Many2One(
'ir.sequence', "Post Move Sequence", required=True,
domain=[
('sequence_type', '=',
Id('account', 'sequence_type_account_move')),
('company', '=', Eval('company')),
])
company = fields.Many2One(
'company.company', "Company", required=True)
icon = fields.Function(fields.Char("Icon"), 'get_icon')
@classmethod
def __setup__(cls):
super(FiscalYear, cls).__setup__()
cls._order.insert(0, ('start_date', 'DESC'))
cls._transitions |= set((
('open', 'close'),
('close', 'locked'),
('close', 'open'),
))
cls._buttons.update({
'create_periods': {
'invisible': ((Eval('state') != 'open')
| Eval('periods', [0])),
'depends': ['state'],
},
'close': {
'invisible': Eval('state') != 'open',
'depends': ['state'],
},
'reopen': {
'invisible': Eval('state') != 'close',
'depends': ['state'],
},
'lock_': {
'invisible': Eval('state') != 'close',
'depends': ['state'],
},
})
cls.__rpc__.update({
'create_period': RPC(readonly=False, instantiate=0),
})
@staticmethod
def default_state():
return 'open'
@staticmethod
def default_company():
return Transaction().context.get('company')
def get_icon(self, name):
return {
'open': 'tryton-account-open',
'close': 'tryton-account-close',
'locked': 'tryton-account-block',
}.get(self.state)
@classmethod
def validate_fields(cls, fiscalyears, field_names):
super().validate_fields(fiscalyears, field_names)
cls.check_dates(fiscalyears, field_names)
cls.check_post_move_sequence(fiscalyears, field_names)
@classmethod
def check_dates(cls, fiscalyears, field_names=None):
if field_names and not (field_names & {
'start_date', 'end_date', 'state', 'company'}):
return
transaction = Transaction()
connection = transaction.connection
cls.lock()
cursor = connection.cursor()
table = cls.__table__()
for year in fiscalyears:
cursor.execute(*table.select(table.id,
where=(((table.start_date <= year.start_date)
& (table.end_date >= year.start_date))
| ((table.start_date <= year.end_date)
& (table.end_date >= year.end_date))
| ((table.start_date >= year.start_date)
& (table.end_date <= year.end_date)))
& (table.company == year.company.id)
& (table.id != year.id)))
second_id = cursor.fetchone()
if second_id:
second = cls(second_id[0])
raise FiscalYearDatesError(
gettext('account.msg_fiscalyear_overlap',
first=year.rec_name,
second=second.rec_name))
if year.state == 'open':
fiscalyears = cls.search([
('start_date', '>=', year.end_date),
('state', 'in', ['close', 'locked']),
('company', '=', year.company.id),
],
limit=1,
order=[('start_date', 'ASC')])
if fiscalyears:
fiscalyear, = fiscalyears
raise FiscalYearDatesError(
gettext('account.msg_open_fiscalyear_earlier',
open=year.rec_name,
close=fiscalyear.rec_name))
@classmethod
def check_post_move_sequence(cls, fiscalyears, field_names=None):
if field_names and 'post_move_sequence' not in field_names:
return
for fiscalyear in fiscalyears:
sequence = fiscalyear.post_move_sequence
years = cls.search([
('post_move_sequence', '=', sequence.id),
('id', '!=', fiscalyear.id),
], limit=1)
if years:
raise FiscalYearSequenceError(gettext(
'account.msg_fiscalyear_different_post_move_sequence',
first=fiscalyear.rec_name,
second=years[0].rec_name))
@classmethod
def write(cls, *args):
pool = Pool()
Move = pool.get('account.move')
actions = iter(args)
for fiscalyears, values in zip(actions, actions):
if values.get('post_move_sequence'):
for fiscalyear in fiscalyears:
if (fiscalyear.post_move_sequence
and fiscalyear.post_move_sequence.id
!= values['post_move_sequence']):
if Move.search([
('period.fiscalyear', '=', fiscalyear.id),
('state', '=', 'posted'),
]):
raise AccessError(
gettext('account.'
'msg_change_fiscalyear_post_move_sequence',
fiscalyear=fiscalyear.rec_name))
super(FiscalYear, cls).write(*args)
@classmethod
def delete(cls, fiscalyears):
Period = Pool().get('account.period')
Period.delete([p for f in fiscalyears for p in f.periods])
super(FiscalYear, cls).delete(fiscalyears)
@classmethod
def create_period(cls, fiscalyears, interval=1, end_day=31):
'''
Create periods for the fiscal years with month interval
'''
Period = Pool().get('account.period')
to_create = []
for fiscalyear in fiscalyears:
period_start_date = fiscalyear.start_date
while period_start_date < fiscalyear.end_date:
month_offset = 1 if period_start_date.day < end_day else 0
period_end_date = (period_start_date
+ relativedelta(months=interval - month_offset)
+ relativedelta(day=end_day))
if period_end_date > fiscalyear.end_date:
period_end_date = fiscalyear.end_date
name = period_start_date.strftime('%Y-%m')
if name != period_end_date.strftime('%Y-%m'):
name += ' - ' + period_end_date.strftime('%Y-%m')
to_create.append({
'name': name,
'start_date': period_start_date,
'end_date': period_end_date,
'fiscalyear': fiscalyear.id,
'type': 'standard',
})
period_start_date = period_end_date + relativedelta(days=1)
if to_create:
Period.create(to_create)
@classmethod
@ModelView.button_action('account.act_create_periods')
def create_periods(cls, fiscalyears):
pass
@classmethod
def find(cls, company_id, date=None, exception=True):
'''
Return the fiscal year for the company_id
at the date or the current date.
If exception is set the function will raise an exception
if any fiscal year is found.
'''
pool = Pool()
Lang = pool.get('ir.lang')
Date = pool.get('ir.date')
if not date:
with Transaction().set_context(company=company_id):
date = Date.today()
fiscalyears = cls.search([
('start_date', '<=', date),
('end_date', '>=', date),
('company', '=', company_id),
], order=[('start_date', 'DESC')], limit=1)
if not fiscalyears:
if exception:
lang = Lang.get()
raise FiscalYearNotFoundError(
gettext('account.msg_no_fiscalyear_date',
date=lang.strftime(date)))
else:
return None
return fiscalyears[0].id
def get_deferral(self, account):
'Computes deferrals for accounts'
pool = Pool()
Currency = pool.get('currency.currency')
Deferral = pool.get('account.account.deferral')
if not account.type:
return
if not account.deferral:
if not Currency.is_zero(self.company.currency, account.balance):
raise FiscalYearCloseError(
gettext('account'
'.msg_close_fiscalyear_account_balance_not_zero',
account=account.rec_name))
else:
deferral = Deferral()
deferral.account = account
deferral.fiscalyear = self
deferral.debit = account.debit
deferral.credit = account.credit
deferral.line_count = account.line_count
deferral.amount_second_currency = account.amount_second_currency
return deferral
@classmethod
@ModelView.button
@Workflow.transition('close')
def close(cls, fiscalyears):
'''
Close a fiscal year
'''
pool = Pool()
Period = pool.get('account.period')
Account = pool.get('account.account')
Deferral = pool.get('account.account.deferral')
# Prevent create new fiscal year or period
cls.lock()
Period.lock()
deferrals = []
for fiscalyear in fiscalyears:
if cls.search([
('end_date', '<=', fiscalyear.start_date),
('state', '=', 'open'),
('company', '=', fiscalyear.company.id),
]):
raise FiscalYearCloseError(
gettext('account.msg_close_fiscalyear_earlier',
fiscalyear=fiscalyear.rec_name))
periods = Period.search([
('fiscalyear', '=', fiscalyear.id),
])
Period.close(periods)
with Transaction().set_context(fiscalyear=fiscalyear.id,
date=None, cumulate=True, journal=None):
accounts = Account.search([
('company', '=', fiscalyear.company.id),
])
for account in accounts:
deferral = fiscalyear.get_deferral(account)
if deferral:
deferrals.append(deferral)
Deferral.save(deferrals)
@classmethod
@ModelView.button
@Workflow.transition('open')
def reopen(cls, fiscalyears):
'''
Re-open a fiscal year
'''
Deferral = Pool().get('account.account.deferral')
for fiscalyear in fiscalyears:
if cls.search([
('start_date', '>=', fiscalyear.end_date),
('state', '!=', 'open'),
('company', '=', fiscalyear.company.id),
]):
raise FiscalYearReOpenError(
gettext('account.msg_reopen_fiscalyear_later',
fiscalyear=fiscalyear.rec_name))
deferrals = Deferral.search([
('fiscalyear', '=', fiscalyear.id),
])
Deferral.delete(deferrals)
@classmethod
@ModelView.button
@Workflow.transition('locked')
def lock_(cls, fiscalyears):
pool = Pool()
Period = pool.get('account.period')
periods = Period.search([
('fiscalyear', 'in', [f.id for f in fiscalyears]),
])
Period.lock_(periods)
class BalanceNonDeferralStart(ModelView):
'Balance Non-Deferral'
__name__ = 'account.fiscalyear.balance_non_deferral.start'
fiscalyear = fields.Many2One('account.fiscalyear', 'Fiscal Year',
required=True, domain=[('state', '=', 'open')])
company = fields.Function(fields.Many2One('company.company', 'Company'),
'on_change_with_company')
journal = fields.Many2One('account.journal', 'Journal', required=True,
domain=[
('type', '=', 'situation'),
],
context={
'company': Eval('company', -1),
},
depends={'company'})
period = fields.Many2One('account.period', 'Period', required=True,
domain=[
('fiscalyear', '=', Eval('fiscalyear')),
('type', '=', 'adjustment'),
])
credit_account = fields.Many2One('account.account', 'Credit Account',
required=True,
domain=[
('type', '!=', None),
('closed', '!=', True),
('company', '=', Eval('company', -1)),
('deferral', '=', True),
])
debit_account = fields.Many2One('account.account', 'Debit Account',
required=True,
domain=[
('type', '!=', None),
('closed', '!=', True),
('company', '=', Eval('company', -1)),
('deferral', '=', True),
])
@fields.depends('fiscalyear')
def on_change_with_company(self, name=None):
if self.fiscalyear:
return self.fiscalyear.company.id
class BalanceNonDeferral(Wizard):
'Balance Non-Deferral'
__name__ = 'account.fiscalyear.balance_non_deferral'
start = StateView('account.fiscalyear.balance_non_deferral.start',
'account.fiscalyear_balance_non_deferral_start_view_form', [
Button('Cancel', 'end', 'tryton-cancel'),
Button('OK', 'balance', 'tryton-ok', default=True),
])
balance = StateAction('account.act_move_form')
def get_move_line(self, account):
pool = Pool()
Line = pool.get('account.move.line')
# Don't use account.balance because we need the non-commulated balance
balance = account.debit - account.credit
if account.company.currency.is_zero(balance):
return
line = Line()
line.account = account
if balance >= 0:
line.credit = abs(balance)
line.debit = 0
else:
line.credit = 0
line.debit = abs(balance)
return line
def get_counterpart_line(self, amount):
pool = Pool()
Line = pool.get('account.move.line')
if self.start.fiscalyear.company.currency.is_zero(amount):
return
line = Line()
if amount >= 0:
line.credit = abs(amount)
line.debit = 0
line.account = self.start.credit_account
else:
line.credit = 0
line.debit = abs(amount)
line.account = self.start.debit_account
return line
def create_move(self):
pool = Pool()
Account = pool.get('account.account')
Move = pool.get('account.move')
with Transaction().set_context(fiscalyear=self.start.fiscalyear.id,
date=None, cumulate=False):
accounts = Account.search([
('company', '=', self.start.fiscalyear.company.id),
('deferral', '=', False),
('type', '!=', None),
('closed', '!=', True),
])
lines = []
for account in accounts:
line = self.get_move_line(account)
if line:
lines.append(line)
if not lines:
return
amount = sum(l.debit - l.credit for l in lines)
counter_part_line = self.get_counterpart_line(amount)
if counter_part_line:
lines.append(counter_part_line)
move = Move()
move.period = self.start.period
move.journal = self.start.journal
move.date = self.start.period.start_date
move.origin = self.start.fiscalyear
move.lines = lines
move.save()
return move
def do_balance(self, action):
move = self.create_move()
if move:
action['views'].reverse()
return action, {'res_id': move.id if move else None}
class CreatePeriodsStart(ModelView):
"Create Periods Start"
__name__ = 'account.fiscalyear.create_periods.start'
frequency = fields.Selection([
('monthly', "Monthly"),
('quarterly', "Quarterly"),
('other', "Other"),
], "Frequency", sort=False, required=True)
interval = fields.Integer("Interval", required=True,
states={
'invisible': Eval('frequency') != 'other',
},
help="The length of each period, in months.")
end_day = fields.Integer("End Day", required=True,
help="The day of the month on which periods end.\n"
"Months with fewer days will end on the last day.")
@classmethod
def default_frequency(cls):
return 'monthly'
@classmethod
def default_end_day(cls):
return 31
@classmethod
def frequency_intervals(cls):
return {
'monthly': 1,
'quarterly': 3,
'other': None,
}
@fields.depends('frequency', 'interval')
def on_change_frequency(self):
if self.frequency:
self.interval = self.frequency_intervals()[self.frequency]
class CreatePeriods(Wizard):
"Create Periods"
__name__ = 'account.fiscalyear.create_periods'
start = StateView('account.fiscalyear.create_periods.start',
'account.fiscalyear_create_periods_start_view_form', [
Button("Cancel", 'end', 'tryton-cancel'),
Button("Create", 'create_periods', 'tryton-ok', default=True),
])
create_periods = StateTransition()
def transition_create_periods(self):
self.model.create_period(
[self.record], self.start.interval, self.start.end_day)
return 'end'
def month_delta(d1, d2):
month_offset = 1 if d1.day < d2.day else 0
return (d1.year - d2.year) * 12 + d1.month - d2.month - month_offset
class RenewFiscalYearStart(ModelView):
"Renew Fiscal Year Start"
__name__ = 'account.fiscalyear.renew.start'
name = fields.Char("Name", required=True)
company = fields.Many2One('company.company', "Company", required=True)
previous_fiscalyear = fields.Many2One(
'account.fiscalyear', "Previous Fiscalyear", required=True,
domain=[
('company', '=', Eval('company')),
],
help="Used as reference for fiscalyear configuration.")
start_date = fields.Date("Start Date", required=True)
end_date = fields.Date("End Date", required=True)
reset_sequences = fields.Boolean("Reset Sequences",
help="If checked, new sequences will be created.")
@classmethod
def default_company(cls):
return Transaction().context.get('company')
@classmethod
def default_previous_fiscalyear(cls):
pool = Pool()
FiscalYear = pool.get('account.fiscalyear')
fiscalyears = FiscalYear.search([
('company', '=', cls.default_company() or -1),
],
order=[('end_date', 'DESC')], limit=1)
if fiscalyears:
fiscalyear, = fiscalyears
return fiscalyear.id
@classmethod
def default_reset_sequences(cls):
return True
@fields.depends('previous_fiscalyear')
def on_change_previous_fiscalyear(self):
if self.previous_fiscalyear:
fiscalyear = self.previous_fiscalyear
months = month_delta(
fiscalyear.end_date, fiscalyear.start_date) + 1
self.start_date = fiscalyear.start_date + relativedelta(
months=months, day=fiscalyear.start_date.day)
self.end_date = fiscalyear.end_date + relativedelta(
months=months, day=fiscalyear.end_date.day)
self.name = fiscalyear.name.replace(
str(fiscalyear.end_date.year),
str(self.end_date.year)).replace(
str(fiscalyear.start_date.year),
str(self.start_date.year))
class RenewFiscalYear(Wizard):
"Renew Fiscal Year"
__name__ = 'account.fiscalyear.renew'
start = StateView('account.fiscalyear.renew.start',
'account.fiscalyear_renew_start_view_form', [
Button("Cancel", 'end', 'tryton-cancel'),
Button("Create", 'create_', 'tryton-ok', default=True),
])
create_ = StateAction('account.act_fiscalyear_form')
def fiscalyear_defaults(self):
pool = Pool()
Sequence = pool.get('ir.sequence')
defaults = {
'name': self.start.name,
'start_date': self.start.start_date,
'end_date': self.start.end_date,
'periods': [],
}
previous_sequence = self.start.previous_fiscalyear.post_move_sequence
sequence, = Sequence.copy([previous_sequence],
default={
'name': lambda data: data['name'].replace(
self.start.previous_fiscalyear.name,
self.start.name)
})
if self.start.reset_sequences:
sequence.number_next = 1
else:
sequence.number_next = previous_sequence.number_next
sequence.save()
defaults['post_move_sequence'] = sequence.id
return defaults
def create_fiscalyear(self):
pool = Pool()
FiscalYear = pool.get('account.fiscalyear')
fiscalyear, = FiscalYear.copy(
[self.start.previous_fiscalyear],
default=self.fiscalyear_defaults())
periods = [p for p in self.start.previous_fiscalyear.periods
if p.type == 'standard']
months = month_delta(fiscalyear.end_date, fiscalyear.start_date) + 1
interval = months / len(periods)
end_day = max(p.end_date.day
for p in self.start.previous_fiscalyear.periods
if p.type == 'standard')
if interval.is_integer():
FiscalYear.create_period([fiscalyear], interval, end_day)
return fiscalyear
def do_create_(self, action):
fiscalyear = self.create_fiscalyear()
action['views'].reverse()
return action, {'res_id': fiscalyear.id}
+170
View File
@@ -0,0 +1,170 @@
<?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>
<menuitem
name="Fiscal Years"
parent="menu_account_configuration"
sequence="30"
id="menu_fiscalyear_configuration"/>
<record model="ir.ui.view" id="fiscalyear_view_form">
<field name="model">account.fiscalyear</field>
<field name="type">form</field>
<field name="name">fiscalyear_form</field>
</record>
<record model="ir.ui.view" id="fiscalyear_view_tree">
<field name="model">account.fiscalyear</field>
<field name="type">tree</field>
<field name="name">fiscalyear_tree</field>
</record>
<record model="ir.ui.view" id="fiscalyear_view_list_close">
<field name="model">account.fiscalyear</field>
<field name="type">tree</field>
<field name="name">fiscalyear_list_close</field>
</record>
<record model="ir.action.act_window" id="act_fiscalyear_form">
<field name="name">Fiscal Years</field>
<field name="res_model">account.fiscalyear</field>
</record>
<record model="ir.action.act_window.view" id="act_fiscalyear_form_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="fiscalyear_view_tree"/>
<field name="act_window" ref="act_fiscalyear_form"/>
</record>
<record model="ir.action.act_window.view" id="act_fiscalyear_form_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="fiscalyear_view_form"/>
<field name="act_window" ref="act_fiscalyear_form"/>
</record>
<menuitem
parent="menu_fiscalyear_configuration"
action="act_fiscalyear_form"
sequence="10"
id="menu_fiscalyear_form"/>
<record model="ir.model.access" id="access_fiscalyear">
<field name="model" search="[('model', '=', 'account.fiscalyear')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_fiscalyear_account_admin">
<field name="model" search="[('model', '=', 'account.fiscalyear')]"/>
<field name="group" ref="group_account_admin"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.model.button" id="fiscalyear_create_periods_button">
<field name="name">create_periods</field>
<field name="string">Create Periods</field>
<field name="model"
search="[('model', '=', 'account.fiscalyear')]"/>
</record>
<record model="ir.model.button" id="fiscalyear_reopen_button">
<field name="name">reopen</field>
<field name="string">Re-Open</field>
<field name="model"
search="[('model', '=', 'account.fiscalyear')]"/>
</record>
<record model="ir.model.button" id="fiscalyear_close_button">
<field name="name">close</field>
<field name="string">Close</field>
<field name="model" search="[('model', '=', 'account.fiscalyear')]"/>
</record>
<record model="ir.model.button" id="fiscalyear_lock_button">
<field name="name">lock_</field>
<field name="string">Lock</field>
<field name="confirm">Are you sure you want to lock the fiscal year?</field>
<field name="model" search="[('model', '=', 'account.fiscalyear')]"/>
</record>
<record model="ir.rule.group" id="rule_group_fiscalyear_companies">
<field name="name">User in companies</field>
<field name="model" search="[('model', '=', 'account.fiscalyear')]"/>
<field name="global_p" eval="True"/>
</record>
<record model="ir.rule" id="rule_fiscalyear_companies">
<field name="domain"
eval="[('company', 'in', Eval('companies', []))]"
pyson="1"/>
<field name="rule_group" ref="rule_group_fiscalyear_companies"/>
</record>
<record model="ir.action.act_window" id="act_fiscalyear_form_close">
<field name="name">Close Fiscal Years</field>
<field name="res_model">account.fiscalyear</field>
<field name="search_value"
eval="[('state', '=', 'open')]" pyson="1"/>
</record>
<record model="ir.action.act_window.view"
id="act_fiscalyear_form_close_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="fiscalyear_view_list_close"/>
<field name="act_window" ref="act_fiscalyear_form_close"/>
</record>
<menuitem
parent="menu_processing"
action="act_fiscalyear_form_close"
sequence="50"
id="menu_close_fiscalyear"/>
<record model="ir.ui.view" id="fiscalyear_create_periods_start_view_form">
<field name="model">account.fiscalyear.create_periods.start</field>
<field name="type">form</field>
<field name="name">fiscalyear_create_periods_start_form</field>
</record>
<record model="ir.action.wizard" id="act_create_periods">
<field name="name">Create Periods</field>
<field name="wiz_name">account.fiscalyear.create_periods</field>
</record>
<record model="ir.ui.view"
id="fiscalyear_balance_non_deferral_start_view_form">
<field
name="model">account.fiscalyear.balance_non_deferral.start</field>
<field name="type">form</field>
<field
name="name">fiscalyear_balance_non_deferral_start_form</field>
</record>
<record model="ir.action.wizard" id="act_balance_non_deferral">
<field name="name">Balance Non-Deferral</field>
<field
name="wiz_name">account.fiscalyear.balance_non_deferral</field>
</record>
<menuitem
parent="menu_processing"
action="act_balance_non_deferral"
sequence="40"
id="menu_balance_non_deferral"/>
<record model="ir.ui.view" id="fiscalyear_renew_start_view_form">
<field name="model">account.fiscalyear.renew.start</field>
<field name="type">form</field>
<field name="name">renew_fiscalyear_start_form</field>
</record>
<record model="ir.action.wizard" id="act_renew_fiscalyear">
<field name="name">Renew Fiscal Year</field>
<field name="wiz_name">account.fiscalyear.renew</field>
</record>
<record model="ir.action-res.group"
id="act_renew_fiscalyear_group_admin">
<field name="action" ref="act_renew_fiscalyear"/>
<field name="group" ref="group_account_admin"/>
</record>
<menuitem
parent="menu_fiscalyear_configuration"
action="act_renew_fiscalyear"
sequence="90"
id="menu_renew_fiscalyear"/>
</data>
</tryton>
+603
View File
@@ -0,0 +1,603 @@
<?xml version="1.0" encoding="UTF-8"?>
<office:document xmlns:officeooo="http://openoffice.org/2009/office" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:ooo="http://openoffice.org/2004/office" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:rpt="http://openoffice.org/2005/report" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:css3t="http://www.w3.org/TR/css3-text/" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:drawooo="http://openoffice.org/2010/draw" office:version="1.2" office:mimetype="application/vnd.oasis.opendocument.text">
<office:meta><meta:generator>LibreOffice/6.4.7.2$Linux_X86_64 LibreOffice_project/40$Build-2</meta:generator><meta:creation-date>2012-11-14T22:45:37</meta:creation-date><meta:editing-cycles>1</meta:editing-cycles><meta:editing-duration>P0D</meta:editing-duration><meta:document-statistic meta:table-count="3" meta:image-count="0" meta:object-count="0" meta:page-count="1" meta:paragraph-count="34" meta:word-count="76" meta:character-count="875" meta:non-whitespace-character-count="832"/><meta:user-defined meta:name="Info 1"/><meta:user-defined meta:name="Info 2"/><meta:user-defined meta:name="Info 3"/><meta:user-defined meta:name="Info 4"/></office:meta>
<office:settings>
<config:config-item-set config:name="ooo:view-settings">
<config:config-item config:name="ViewAreaTop" config:type="long">0</config:config-item>
<config:config-item config:name="ViewAreaLeft" config:type="long">0</config:config-item>
<config:config-item config:name="ViewAreaWidth" config:type="long">25640</config:config-item>
<config:config-item config:name="ViewAreaHeight" config:type="long">23021</config:config-item>
<config:config-item config:name="ShowRedlineChanges" config:type="boolean">true</config:config-item>
<config:config-item config:name="InBrowseMode" config:type="boolean">false</config:config-item>
<config:config-item-map-indexed config:name="Views">
<config:config-item-map-entry>
<config:config-item config:name="ViewId" config:type="string">view2</config:config-item>
<config:config-item config:name="ViewLeft" config:type="long">13259</config:config-item>
<config:config-item config:name="ViewTop" config:type="long">10862</config:config-item>
<config:config-item config:name="VisibleLeft" config:type="long">0</config:config-item>
<config:config-item config:name="VisibleTop" config:type="long">0</config:config-item>
<config:config-item config:name="VisibleRight" config:type="long">25638</config:config-item>
<config:config-item config:name="VisibleBottom" config:type="long">23019</config:config-item>
<config:config-item config:name="ZoomType" config:type="short">0</config:config-item>
<config:config-item config:name="ViewLayoutColumns" config:type="short">0</config:config-item>
<config:config-item config:name="ViewLayoutBookMode" config:type="boolean">false</config:config-item>
<config:config-item config:name="ZoomFactor" config:type="short">100</config:config-item>
<config:config-item config:name="IsSelectedFrame" config:type="boolean">false</config:config-item>
<config:config-item config:name="AnchoredTextOverflowLegacy" config:type="boolean">false</config:config-item>
</config:config-item-map-entry>
</config:config-item-map-indexed>
</config:config-item-set>
<config:config-item-set config:name="ooo:configuration-settings">
<config:config-item config:name="PrintProspectRTL" config:type="boolean">false</config:config-item>
<config:config-item config:name="ClipAsCharacterAnchoredWriterFlyFrames" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrinterSetup" config:type="base64Binary"/>
<config:config-item config:name="CurrentDatabaseCommand" config:type="string"/>
<config:config-item config:name="DoNotCaptureDrawObjsOnPage" config:type="boolean">false</config:config-item>
<config:config-item config:name="LoadReadonly" config:type="boolean">false</config:config-item>
<config:config-item config:name="CurrentDatabaseCommandType" config:type="int">0</config:config-item>
<config:config-item config:name="DoNotResetParaAttrsForNumFont" config:type="boolean">false</config:config-item>
<config:config-item config:name="DoNotJustifyLinesWithManualBreak" config:type="boolean">false</config:config-item>
<config:config-item config:name="LinkUpdateMode" config:type="short">1</config:config-item>
<config:config-item config:name="StylesNoDefault" config:type="boolean">false</config:config-item>
<config:config-item config:name="ConsiderTextWrapOnObjPos" config:type="boolean">false</config:config-item>
<config:config-item config:name="TabAtLeftIndentForParagraphsInList" config:type="boolean">false</config:config-item>
<config:config-item config:name="UnxForceZeroExtLeading" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrintDrawings" config:type="boolean">true</config:config-item>
<config:config-item config:name="UseFormerLineSpacing" config:type="boolean">false</config:config-item>
<config:config-item config:name="UseFormerTextWrapping" config:type="boolean">false</config:config-item>
<config:config-item config:name="AllowPrintJobCancel" config:type="boolean">true</config:config-item>
<config:config-item config:name="SubtractFlysAnchoredAtFlys" config:type="boolean">true</config:config-item>
<config:config-item config:name="AddVerticalFrameOffsets" config:type="boolean">false</config:config-item>
<config:config-item config:name="MathBaselineAlignment" config:type="boolean">false</config:config-item>
<config:config-item config:name="AddParaLineSpacingToTableCells" config:type="boolean">false</config:config-item>
<config:config-item config:name="TreatSingleColumnBreakAsPageBreak" config:type="boolean">false</config:config-item>
<config:config-item config:name="UseFormerObjectPositioning" config:type="boolean">false</config:config-item>
<config:config-item config:name="IsKernAsianPunctuation" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrinterIndependentLayout" config:type="string">high-resolution</config:config-item>
<config:config-item config:name="SaveVersionOnClose" config:type="boolean">false</config:config-item>
<config:config-item config:name="CharacterCompressionType" config:type="short">0</config:config-item>
<config:config-item config:name="PrintPaperFromSetup" config:type="boolean">false</config:config-item>
<config:config-item config:name="AddExternalLeading" config:type="boolean">true</config:config-item>
<config:config-item config:name="PrinterPaperFromSetup" config:type="boolean">false</config:config-item>
<config:config-item config:name="IgnoreFirstLineIndentInNumbering" config:type="boolean">false</config:config-item>
<config:config-item config:name="MsWordCompTrailingBlanks" config:type="boolean">false</config:config-item>
<config:config-item config:name="RedlineProtectionKey" config:type="base64Binary"/>
<config:config-item config:name="UseOldNumbering" config:type="boolean">false</config:config-item>
<config:config-item config:name="FieldAutoUpdate" config:type="boolean">true</config:config-item>
<config:config-item config:name="CurrentDatabaseDataSource" config:type="string"/>
<config:config-item config:name="PrintHiddenText" config:type="boolean">false</config:config-item>
<config:config-item config:name="ApplyUserData" config:type="boolean">false</config:config-item>
<config:config-item config:name="PropLineSpacingShrinksFirstLine" config:type="boolean">false</config:config-item>
<config:config-item config:name="EmbeddedDatabaseName" config:type="string"/>
<config:config-item config:name="SaveGlobalDocumentLinks" config:type="boolean">false</config:config-item>
<config:config-item config:name="ChartAutoUpdate" config:type="boolean">true</config:config-item>
<config:config-item config:name="InvertBorderSpacing" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrintEmptyPages" config:type="boolean">true</config:config-item>
<config:config-item config:name="UseOldPrinterMetrics" config:type="boolean">false</config:config-item>
<config:config-item config:name="IgnoreTabsAndBlanksForLineCalculation" config:type="boolean">false</config:config-item>
<config:config-item config:name="Rsid" config:type="int">2105963</config:config-item>
<config:config-item config:name="TableRowKeep" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrintBlackFonts" config:type="boolean">false</config:config-item>
<config:config-item config:name="UpdateFromTemplate" config:type="boolean">true</config:config-item>
<config:config-item config:name="OutlineLevelYieldsNumbering" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrinterName" config:type="string"/>
<config:config-item config:name="IsLabelDocument" config:type="boolean">false</config:config-item>
<config:config-item config:name="RsidRoot" config:type="int">991389</config:config-item>
<config:config-item config:name="MsWordCompMinLineHeightByFly" config:type="boolean">false</config:config-item>
<config:config-item config:name="CollapseEmptyCellPara" config:type="boolean">true</config:config-item>
<config:config-item config:name="SmallCapsPercentage66" config:type="boolean">true</config:config-item>
<config:config-item config:name="PrintSingleJobs" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrintTables" config:type="boolean">true</config:config-item>
<config:config-item config:name="TabOverflow" config:type="boolean">false</config:config-item>
<config:config-item config:name="AddFrameOffsets" config:type="boolean">false</config:config-item>
<config:config-item config:name="EmbedComplexScriptFonts" config:type="boolean">true</config:config-item>
<config:config-item config:name="EmbedSystemFonts" config:type="boolean">false</config:config-item>
<config:config-item config:name="UnbreakableNumberings" config:type="boolean">false</config:config-item>
<config:config-item config:name="ClippedPictures" config:type="boolean">false</config:config-item>
<config:config-item config:name="BackgroundParaOverDrawings" config:type="boolean">false</config:config-item>
<config:config-item config:name="SurroundTextWrapSmall" config:type="boolean">false</config:config-item>
<config:config-item config:name="EmbedFonts" config:type="boolean">false</config:config-item>
<config:config-item config:name="EmbedOnlyUsedFonts" config:type="boolean">false</config:config-item>
<config:config-item config:name="ProtectForm" config:type="boolean">false</config:config-item>
<config:config-item config:name="DisableOffPagePositioning" config:type="boolean">false</config:config-item>
<config:config-item config:name="EmbedLatinScriptFonts" config:type="boolean">true</config:config-item>
<config:config-item config:name="AddParaSpacingToTableCells" config:type="boolean">true</config:config-item>
<config:config-item config:name="EmbedAsianScriptFonts" config:type="boolean">true</config:config-item>
<config:config-item config:name="HeaderSpacingBelowLastPara" config:type="boolean">false</config:config-item>
<config:config-item config:name="TabOverMargin" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrintReversed" config:type="boolean">false</config:config-item>
<config:config-item config:name="ApplyParagraphMarkFormatToNumbering" config:type="boolean">false</config:config-item>
<config:config-item config:name="SaveThumbnail" config:type="boolean">true</config:config-item>
<config:config-item config:name="EmptyDbFieldHidesPara" config:type="boolean">false</config:config-item>
<config:config-item config:name="ContinuousEndnotes" config:type="boolean">false</config:config-item>
<config:config-item config:name="FloattableNomargins" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrintTextPlaceholder" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrintFaxName" config:type="string"/>
<config:config-item config:name="PrintRightPages" config:type="boolean">true</config:config-item>
<config:config-item config:name="AddParaTableSpacing" config:type="boolean">true</config:config-item>
<config:config-item config:name="PrintGraphics" config:type="boolean">true</config:config-item>
<config:config-item config:name="PrintAnnotationMode" config:type="short">0</config:config-item>
<config:config-item config:name="PrintControls" config:type="boolean">true</config:config-item>
<config:config-item config:name="AlignTabStopPosition" config:type="boolean">true</config:config-item>
<config:config-item config:name="PrintPageBackground" config:type="boolean">true</config:config-item>
<config:config-item config:name="PrintLeftPages" config:type="boolean">true</config:config-item>
<config:config-item config:name="AddParaTableSpacingAtStart" config:type="boolean">true</config:config-item>
<config:config-item config:name="TabsRelativeToIndent" config:type="boolean">true</config:config-item>
<config:config-item config:name="PrintProspect" config:type="boolean">false</config:config-item>
</config:config-item-set>
</office:settings>
<office:scripts>
<office:script script:language="ooo:Basic">
<ooo:libraries xmlns:ooo="http://openoffice.org/2004/office" xmlns:xlink="http://www.w3.org/1999/xlink"/>
</office:script>
</office:scripts>
<office:font-face-decls>
<style:font-face style:name="StarSymbol" svg:font-family="StarSymbol"/>
<style:font-face style:name="Liberation Serif1" svg:font-family="&apos;Liberation Serif&apos;" style:font-adornments="Bold" style:font-family-generic="roman" style:font-pitch="variable"/>
<style:font-face style:name="Liberation Serif" svg:font-family="&apos;Liberation Serif&apos;" style:font-adornments="Regular" style:font-family-generic="roman" style:font-pitch="variable"/>
<style:font-face style:name="Thorndale AMT" svg:font-family="&apos;Thorndale AMT&apos;" style:font-family-generic="roman" style:font-pitch="variable"/>
<style:font-face style:name="Liberation Sans" svg:font-family="&apos;Liberation Sans&apos;" style:font-adornments="Regular" style:font-family-generic="swiss" style:font-pitch="variable"/>
<style:font-face style:name="Andale Sans UI" svg:font-family="&apos;Andale Sans UI&apos;" style:font-family-generic="system" style:font-pitch="variable"/>
<style:font-face style:name="DejaVu Sans" svg:font-family="&apos;DejaVu Sans&apos;" style:font-family-generic="system" style:font-pitch="variable"/>
</office:font-face-decls>
<office:styles>
<style:default-style style:family="graphic">
<style:graphic-properties svg:stroke-color="#000000" draw:fill-color="#99ccff" fo:wrap-option="no-wrap" draw:shadow-offset-x="0.3cm" draw:shadow-offset-y="0.3cm" draw:start-line-spacing-horizontal="0.283cm" draw:start-line-spacing-vertical="0.283cm" draw:end-line-spacing-horizontal="0.283cm" draw:end-line-spacing-vertical="0.283cm" style:flow-with-text="false"/>
<style:paragraph-properties style:text-autospace="ideograph-alpha" style:line-break="strict" style:writing-mode="lr-tb" style:font-independent-line-spacing="false">
<style:tab-stops/>
</style:paragraph-properties>
<style:text-properties style:use-window-font-color="true" style:font-name="Thorndale AMT" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Andale Sans UI" style:font-size-asian="10.5pt" style:language-asian="zxx" style:country-asian="none" style:font-name-complex="Andale Sans UI" style:font-size-complex="12pt" style:language-complex="zxx" style:country-complex="none"/>
</style:default-style>
<style:default-style style:family="paragraph">
<style:paragraph-properties fo:hyphenation-ladder-count="no-limit" style:text-autospace="ideograph-alpha" style:punctuation-wrap="hanging" style:line-break="strict" style:tab-stop-distance="1.251cm" style:writing-mode="lr-tb"/>
<style:text-properties style:use-window-font-color="true" style:font-name="Thorndale AMT" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Andale Sans UI" style:font-size-asian="10.5pt" style:language-asian="zxx" style:country-asian="none" style:font-name-complex="Andale Sans UI" style:font-size-complex="12pt" style:language-complex="zxx" style:country-complex="none" fo:hyphenate="false" fo:hyphenation-remain-char-count="2" fo:hyphenation-push-char-count="2" loext:hyphenation-no-caps="false"/>
</style:default-style>
<style:default-style style:family="table">
<style:table-properties table:border-model="collapsing"/>
</style:default-style>
<style:default-style style:family="table-row">
<style:table-row-properties fo:keep-together="auto"/>
</style:default-style>
<style:style style:name="Standard" style:family="paragraph" style:class="text">
<style:text-properties style:font-name="Liberation Sans" fo:font-family="&apos;Liberation Sans&apos;" style:font-style-name="Regular" style:font-family-generic="swiss" style:font-pitch="variable" style:font-size-asian="10.5pt"/>
</style:style>
<style:style style:name="Heading" style:family="paragraph" style:parent-style-name="Standard" style:next-style-name="Text_20_body" style:class="text">
<style:paragraph-properties fo:margin-top="0.423cm" fo:margin-bottom="0.212cm" loext:contextual-spacing="false" fo:keep-with-next="always"/>
<style:text-properties style:font-name="Liberation Serif" fo:font-family="&apos;Liberation Serif&apos;" style:font-style-name="Regular" style:font-family-generic="roman" style:font-pitch="variable" fo:font-size="16pt" style:font-name-asian="DejaVu Sans" style:font-family-asian="&apos;DejaVu Sans&apos;" style:font-family-generic-asian="system" style:font-pitch-asian="variable" style:font-size-asian="14pt" style:font-name-complex="DejaVu Sans" style:font-family-complex="&apos;DejaVu Sans&apos;" style:font-family-generic-complex="system" style:font-pitch-complex="variable" style:font-size-complex="14pt"/>
</style:style>
<style:style style:name="Text_20_body" style:display-name="Text body" style:family="paragraph" style:parent-style-name="Standard" style:class="text">
<style:paragraph-properties fo:margin-top="0cm" fo:margin-bottom="0.212cm" loext:contextual-spacing="false"/>
<style:text-properties style:font-name="Liberation Sans" fo:font-family="&apos;Liberation Sans&apos;" style:font-style-name="Regular" style:font-family-generic="swiss" style:font-pitch="variable" style:font-size-asian="10.5pt"/>
</style:style>
<style:style style:name="List" style:family="paragraph" style:parent-style-name="Text_20_body" style:class="list">
<style:text-properties style:font-size-asian="12pt"/>
</style:style>
<style:style style:name="Caption" style:family="paragraph" style:parent-style-name="Standard" style:class="extra">
<style:paragraph-properties fo:margin-top="0.212cm" fo:margin-bottom="0.212cm" loext:contextual-spacing="false" text:number-lines="false" text:line-number="0"/>
<style:text-properties fo:font-size="12pt" fo:font-style="italic" style:font-size-asian="12pt" style:font-style-asian="italic" style:font-size-complex="12pt" style:font-style-complex="italic"/>
</style:style>
<style:style style:name="Index" style:family="paragraph" style:parent-style-name="Standard" style:class="index">
<style:paragraph-properties text:number-lines="false" text:line-number="0"/>
<style:text-properties style:font-size-asian="12pt"/>
</style:style>
<style:style style:name="Heading_20_1" style:display-name="Heading 1" style:family="paragraph" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:class="text">
<style:text-properties fo:font-size="16pt" fo:font-weight="bold" style:font-size-asian="115%" style:font-weight-asian="bold" style:font-size-complex="115%" style:font-weight-complex="bold"/>
</style:style>
<style:style style:name="Table_20_Contents" style:display-name="Table Contents" style:family="paragraph" style:parent-style-name="Standard" style:class="extra">
<style:paragraph-properties text:number-lines="false" text:line-number="0"/>
<style:text-properties style:font-size-asian="10.5pt"/>
</style:style>
<style:style style:name="Table_20_Heading" style:display-name="Table Heading" style:family="paragraph" style:parent-style-name="Table_20_Contents" style:class="extra">
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false" text:number-lines="false" text:line-number="0"/>
<style:text-properties style:font-name="Liberation Serif1" fo:font-family="&apos;Liberation Serif&apos;" style:font-style-name="Bold" style:font-family-generic="roman" style:font-pitch="variable" fo:font-weight="bold" style:font-size-asian="10.5pt" style:font-weight-asian="bold" style:font-weight-complex="bold"/>
</style:style>
<style:style style:name="Header_20_and_20_Footer" style:display-name="Header and Footer" style:family="paragraph" style:parent-style-name="Standard" style:class="extra">
<style:paragraph-properties text:number-lines="false" text:line-number="0">
<style:tab-stops>
<style:tab-stop style:position="8.5cm" style:type="center"/>
<style:tab-stop style:position="17cm" style:type="right"/>
</style:tab-stops>
</style:paragraph-properties>
</style:style>
<style:style style:name="Header" style:family="paragraph" style:parent-style-name="Standard" style:class="extra">
<style:paragraph-properties text:number-lines="false" text:line-number="0">
<style:tab-stops>
<style:tab-stop style:position="8.795cm" style:type="center"/>
<style:tab-stop style:position="17.59cm" style:type="right"/>
</style:tab-stops>
</style:paragraph-properties>
<style:text-properties fo:font-size="9pt" style:font-size-asian="10.5pt"/>
</style:style>
<style:style style:name="Heading_20_2" style:display-name="Heading 2" style:family="paragraph" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:class="text">
<style:text-properties fo:font-size="14pt" fo:font-style="italic" fo:font-weight="bold" style:font-size-asian="14pt" style:font-style-asian="italic" style:font-weight-asian="bold" style:font-size-complex="14pt" style:font-style-complex="italic" style:font-weight-complex="bold"/>
</style:style>
<style:style style:name="Footer" style:family="paragraph" style:parent-style-name="Standard" style:class="extra">
<style:paragraph-properties text:number-lines="false" text:line-number="0">
<style:tab-stops>
<style:tab-stop style:position="8.795cm" style:type="center"/>
<style:tab-stop style:position="17.59cm" style:type="right"/>
</style:tab-stops>
</style:paragraph-properties>
<style:text-properties fo:font-size="9pt" style:font-size-asian="10.5pt"/>
</style:style>
<style:style style:name="Heading_20_3" style:display-name="Heading 3" style:family="paragraph" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:class="text">
<style:text-properties fo:font-size="14pt" fo:font-weight="bold" style:font-size-asian="14pt" style:font-weight-asian="bold" style:font-size-complex="14pt" style:font-weight-complex="bold"/>
</style:style>
<style:style style:name="Text_20_body_20_indent" style:display-name="Text body indent" style:family="paragraph" style:parent-style-name="Text_20_body" style:class="text">
<style:paragraph-properties fo:margin-left="0.499cm" fo:margin-right="0cm" fo:margin-top="0cm" fo:margin-bottom="0cm" loext:contextual-spacing="false" fo:text-indent="0cm" style:auto-text-indent="false"/>
</style:style>
<style:style style:name="Header_20_right" style:display-name="Header right" style:family="paragraph" style:parent-style-name="Standard" style:class="extra">
<style:paragraph-properties text:number-lines="false" text:line-number="0">
<style:tab-stops>
<style:tab-stop style:position="8.795cm" style:type="center"/>
<style:tab-stop style:position="17.59cm" style:type="right"/>
</style:tab-stops>
</style:paragraph-properties>
</style:style>
<style:style style:name="Header_20_left" style:display-name="Header left" style:family="paragraph" style:parent-style-name="Standard" style:class="extra">
<style:paragraph-properties text:number-lines="false" text:line-number="0">
<style:tab-stops>
<style:tab-stop style:position="8.795cm" style:type="center"/>
<style:tab-stop style:position="17.59cm" style:type="right"/>
</style:tab-stops>
</style:paragraph-properties>
</style:style>
<style:style style:name="Placeholder" style:family="text">
<style:text-properties fo:font-variant="small-caps" fo:color="#008080" style:text-underline-style="dotted" style:text-underline-width="auto" style:text-underline-color="font-color"/>
</style:style>
<style:style style:name="Bullet_20_Symbols" style:display-name="Bullet Symbols" style:family="text">
<style:text-properties style:font-name="StarSymbol" fo:font-family="StarSymbol" fo:font-size="9pt" style:font-name-asian="StarSymbol" style:font-family-asian="StarSymbol" style:font-size-asian="9pt" style:font-name-complex="StarSymbol" style:font-family-complex="StarSymbol" style:font-size-complex="9pt"/>
</style:style>
<text:outline-style style:name="Outline">
<text:outline-level-style text:level="1" style:num-format="">
<style:list-level-properties text:min-label-distance="0.381cm"/>
</text:outline-level-style>
<text:outline-level-style text:level="2" style:num-format="">
<style:list-level-properties text:min-label-distance="0.381cm"/>
</text:outline-level-style>
<text:outline-level-style text:level="3" style:num-format="">
<style:list-level-properties text:min-label-distance="0.381cm"/>
</text:outline-level-style>
<text:outline-level-style text:level="4" style:num-format="">
<style:list-level-properties text:min-label-distance="0.381cm"/>
</text:outline-level-style>
<text:outline-level-style text:level="5" style:num-format="">
<style:list-level-properties text:min-label-distance="0.381cm"/>
</text:outline-level-style>
<text:outline-level-style text:level="6" style:num-format="">
<style:list-level-properties text:min-label-distance="0.381cm"/>
</text:outline-level-style>
<text:outline-level-style text:level="7" style:num-format="">
<style:list-level-properties text:min-label-distance="0.381cm"/>
</text:outline-level-style>
<text:outline-level-style text:level="8" style:num-format="">
<style:list-level-properties text:min-label-distance="0.381cm"/>
</text:outline-level-style>
<text:outline-level-style text:level="9" style:num-format="">
<style:list-level-properties text:min-label-distance="0.381cm"/>
</text:outline-level-style>
<text:outline-level-style text:level="10" style:num-format="">
<style:list-level-properties text:min-label-distance="0.381cm"/>
</text:outline-level-style>
</text:outline-style>
<text:notes-configuration text:note-class="footnote" style:num-format="1" text:start-value="0" text:footnotes-position="page" text:start-numbering-at="document"/>
<text:notes-configuration text:note-class="endnote" style:num-format="i" text:start-value="0"/>
<text:linenumbering-configuration text:number-lines="false" text:offset="0.499cm" style:num-format="1" text:number-position="left" text:increment="5"/>
</office:styles>
<office:automatic-styles>
<style:style style:name="Table3" style:family="table">
<style:table-properties style:width="17.59cm" table:align="margins"/>
</style:style>
<style:style style:name="Table3.A" style:family="table-column">
<style:table-column-properties style:column-width="5.863cm" style:rel-column-width="21845*"/>
</style:style>
<style:style style:name="Table3.A1" style:family="table-cell">
<style:table-cell-properties fo:background-color="transparent" fo:padding="0.097cm" fo:border="none">
<style:background-image/>
</style:table-cell-properties>
</style:style>
<style:style style:name="Table2" style:family="table">
<style:table-properties style:width="17.59cm" table:align="margins"/>
</style:style>
<style:style style:name="Table2.A" style:family="table-column">
<style:table-column-properties style:column-width="8.795cm" style:rel-column-width="32768*"/>
</style:style>
<style:style style:name="Table2.B" style:family="table-column">
<style:table-column-properties style:column-width="8.795cm" style:rel-column-width="32767*"/>
</style:style>
<style:style style:name="Table2.A1" style:family="table-cell">
<style:table-cell-properties fo:padding="0.097cm" fo:border="none"/>
</style:style>
<style:style style:name="Table3" style:family="table">
<style:table-properties style:width="17.59cm" table:align="margins"/>
</style:style>
<style:style style:name="Table3.A" style:family="table-column">
<style:table-column-properties style:column-width="5.863cm" style:rel-column-width="21845*"/>
</style:style>
<style:style style:name="Table3.A1" style:family="table-cell">
<style:table-cell-properties fo:background-color="transparent" fo:padding="0.097cm" fo:border="none">
<style:background-image/>
</style:table-cell-properties>
</style:style>
<style:style style:name="Table2" style:family="table">
<style:table-properties style:width="17.59cm" table:align="margins"/>
</style:style>
<style:style style:name="Table2.A" style:family="table-column">
<style:table-column-properties style:column-width="8.795cm" style:rel-column-width="32768*"/>
</style:style>
<style:style style:name="Table2.B" style:family="table-column">
<style:table-column-properties style:column-width="8.795cm" style:rel-column-width="32767*"/>
</style:style>
<style:style style:name="Table2.A1" style:family="table-cell">
<style:table-cell-properties fo:padding="0.097cm" fo:border="none"/>
</style:style>
<style:style style:name="Table4" style:family="table">
<style:table-properties style:width="17.59cm" fo:margin-top="0.4cm" fo:margin-bottom="0cm" table:align="margins" fo:background-color="transparent" style:may-break-between-rows="false">
<style:background-image/>
</style:table-properties>
</style:style>
<style:style style:name="Table4.A" style:family="table-column">
<style:table-column-properties style:column-width="3.517cm" style:rel-column-width="13107*"/>
</style:style>
<style:style style:name="Table4.1" style:family="table-row">
<style:table-row-properties fo:background-color="transparent">
<style:background-image/>
</style:table-row-properties>
</style:style>
<style:style style:name="Table4.A1" style:family="table-cell">
<style:table-cell-properties style:vertical-align="" fo:background-color="#cccccc" fo:padding="0.049cm" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="0.05pt solid #000000" fo:border-bottom="none" style:writing-mode="lr-tb">
<style:background-image/>
</style:table-cell-properties>
</style:style>
<style:style style:name="Table4.B1" style:family="table-cell">
<style:table-cell-properties fo:background-color="#cccccc" fo:padding="0.049cm" fo:border-left="none" fo:border-right="none" fo:border-top="0.05pt solid #000000" fo:border-bottom="none" style:writing-mode="page">
<style:background-image/>
</style:table-cell-properties>
</style:style>
<style:style style:name="Table4.C1" style:family="table-cell">
<style:table-cell-properties fo:background-color="#cccccc" fo:padding="0.049cm" fo:border-left="none" fo:border-right="none" fo:border-top="0.05pt solid #000000" fo:border-bottom="none" style:writing-mode="page">
<style:background-image/>
</style:table-cell-properties>
</style:style>
<style:style style:name="Table4.D1" style:family="table-cell">
<style:table-cell-properties fo:background-color="#cccccc" fo:padding="0.049cm" fo:border-left="none" fo:border-right="0.05pt solid #000000" fo:border-top="0.05pt solid #000000" fo:border-bottom="none" style:writing-mode="page">
<style:background-image/>
</style:table-cell-properties>
</style:style>
<style:style style:name="Table4.A2" style:family="table-cell">
<style:table-cell-properties style:vertical-align="middle" fo:background-color="#cccccc" fo:padding="0.049cm" fo:border-left="0.05pt solid #000000" fo:border-right="0.05pt solid #000000" fo:border-top="none" fo:border-bottom="0.05pt solid #000000" style:writing-mode="lr-tb">
<style:background-image/>
</style:table-cell-properties>
</style:style>
<style:style style:name="Table4.A3" style:family="table-cell">
<style:table-cell-properties fo:background-color="#dddddd" fo:padding="0.049cm" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="none" fo:border-bottom="0.05pt solid #000000" style:writing-mode="page">
<style:background-image/>
</style:table-cell-properties>
</style:style>
<style:style style:name="Table4.D3" style:family="table-cell">
<style:table-cell-properties fo:background-color="#dddddd" fo:padding="0.049cm" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="none" fo:border-bottom="0.05pt solid #000000" style:writing-mode="page">
<style:background-image/>
</style:table-cell-properties>
</style:style>
<style:style style:name="Table4.E3" style:family="table-cell">
<style:table-cell-properties fo:background-color="#dddddd" fo:padding="0.049cm" fo:border-left="0.05pt solid #000000" fo:border-right="0.05pt solid #000000" fo:border-top="none" fo:border-bottom="0.05pt solid #000000" style:writing-mode="page">
<style:background-image/>
</style:table-cell-properties>
</style:style>
<style:style style:name="Table4.A4" style:family="table-cell">
<style:table-cell-properties fo:padding="0.049cm" fo:border-left="0.05pt solid #000000" fo:border-right="0.05pt solid #000000" fo:border-top="none" fo:border-bottom="0.05pt solid #000000" style:writing-mode="page"/>
</style:style>
<style:style style:name="Table4.A5" style:family="table-cell">
<style:table-cell-properties fo:padding="0.049cm" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="none" fo:border-bottom="0.05pt solid #000000" style:writing-mode="page"/>
</style:style>
<style:style style:name="Table4.D5" style:family="table-cell">
<style:table-cell-properties style:vertical-align="middle" fo:padding="0.049cm" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="none" fo:border-bottom="0.05pt solid #000000" style:writing-mode="page"/>
</style:style>
<style:style style:name="Table4.E5" style:family="table-cell">
<style:table-cell-properties style:vertical-align="middle" fo:padding="0.049cm" fo:border-left="0.05pt solid #000000" fo:border-right="0.05pt solid #000000" fo:border-top="none" fo:border-bottom="0.05pt solid #000000" style:writing-mode="page"/>
</style:style>
<style:style style:name="Table4.A6" style:family="table-cell">
<style:table-cell-properties fo:padding="0.049cm" fo:border-left="0.05pt solid #000000" fo:border-right="0.05pt solid #000000" fo:border-top="none" fo:border-bottom="0.05pt solid #000000" style:writing-mode="page"/>
</style:style>
<style:style style:name="P1" style:family="paragraph" style:parent-style-name="Header">
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false"/>
</style:style>
<style:style style:name="P2" style:family="paragraph" style:parent-style-name="Header">
<style:paragraph-properties fo:text-align="end" style:justify-single-word="false"/>
</style:style>
<style:style style:name="P3" style:family="paragraph" style:parent-style-name="Footer">
<style:paragraph-properties fo:text-align="end" style:justify-single-word="false"/>
</style:style>
<style:style style:name="P4" style:family="paragraph" style:parent-style-name="Table_20_Heading">
<style:text-properties fo:font-size="12pt" style:font-size-asian="12pt" style:font-size-complex="12pt"/>
</style:style>
<style:style style:name="P5" style:family="paragraph" style:parent-style-name="Table_20_Heading">
<style:paragraph-properties fo:text-align="start" style:justify-single-word="false"/>
<style:text-properties officeooo:paragraph-rsid="001e5148"/>
</style:style>
<style:style style:name="P6" style:family="paragraph" style:parent-style-name="Table_20_Contents">
<style:paragraph-properties fo:text-align="start" style:justify-single-word="false"/>
<style:text-properties fo:font-size="12pt" style:font-size-asian="12pt" style:font-size-complex="12pt"/>
</style:style>
<style:style style:name="P7" style:family="paragraph" style:parent-style-name="Table_20_Contents">
<style:paragraph-properties fo:text-align="start" style:justify-single-word="false"/>
<style:text-properties fo:font-size="12pt" officeooo:paragraph-rsid="001960ab" style:font-size-asian="12pt" style:font-size-complex="12pt"/>
</style:style>
<style:style style:name="P8" style:family="paragraph" style:parent-style-name="Table_20_Contents">
<style:paragraph-properties fo:text-align="start" style:justify-single-word="false"/>
<style:text-properties fo:font-size="12pt" officeooo:paragraph-rsid="001b5738" style:font-size-asian="12pt" style:font-size-complex="12pt"/>
</style:style>
<style:style style:name="P9" style:family="paragraph" style:parent-style-name="Table_20_Contents">
<style:paragraph-properties fo:text-align="end" style:justify-single-word="false"/>
<style:text-properties fo:font-size="12pt" style:font-size-asian="12pt" style:font-size-complex="12pt"/>
</style:style>
<style:style style:name="P10" style:family="paragraph" style:parent-style-name="Table_20_Contents">
<style:paragraph-properties fo:text-align="end" style:justify-single-word="false"/>
<style:text-properties fo:font-size="12pt" officeooo:paragraph-rsid="001b5738" style:font-size-asian="12pt" style:font-size-complex="12pt"/>
</style:style>
<style:style style:name="P11" style:family="paragraph" style:parent-style-name="Heading_20_1">
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false"/>
<style:text-properties style:text-underline-style="solid" style:text-underline-width="auto" style:text-underline-color="font-color"/>
</style:style>
<style:style style:name="P12" style:family="paragraph" style:parent-style-name="Heading_20_1">
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false"/>
</style:style>
<style:style style:name="T1" style:family="text">
<style:text-properties style:text-underline-style="solid" style:text-underline-width="auto" style:text-underline-color="font-color"/>
</style:style>
<style:style style:name="Sect1" style:family="section">
<style:section-properties style:editable="false">
<style:columns fo:column-count="1" fo:column-gap="0cm"/>
</style:section-properties>
</style:style>
<style:page-layout style:name="pm1">
<style:page-layout-properties fo:page-width="21.59cm" fo:page-height="27.94cm" style:num-format="1" style:print-orientation="portrait" fo:margin-top="2cm" fo:margin-bottom="2cm" fo:margin-left="2cm" fo:margin-right="2cm" style:writing-mode="lr-tb" style:layout-grid-color="#c0c0c0" style:layout-grid-lines="44" style:layout-grid-base-height="0.55cm" style:layout-grid-ruby-height="0cm" style:layout-grid-mode="none" style:layout-grid-ruby-below="false" style:layout-grid-print="true" style:layout-grid-display="true" style:footnote-max-height="0cm">
<style:footnote-sep style:width="0.018cm" style:distance-before-sep="0.101cm" style:distance-after-sep="0.101cm" style:line-style="none" style:adjustment="left" style:rel-width="25%" style:color="#000000"/>
</style:page-layout-properties>
<style:header-style>
<style:header-footer-properties fo:min-height="0cm" fo:margin-left="0cm" fo:margin-right="0cm" fo:margin-bottom="0.499cm"/>
</style:header-style>
<style:footer-style>
<style:header-footer-properties fo:min-height="0cm" fo:margin-left="0cm" fo:margin-right="0cm" fo:margin-top="0.499cm"/>
</style:footer-style>
</style:page-layout>
</office:automatic-styles>
<office:master-styles>
<style:master-page style:name="Standard" style:page-layout-name="pm1">
<style:header>
<table:table table:name="Table3" table:style-name="Table3">
<table:table-column table:style-name="Table3.A" table:number-columns-repeated="3"/>
<table:table-row table:style-name="TableLine94266545094448">
<table:table-cell table:style-name="Table3.A1" office:value-type="string">
<text:p text:style-name="Header">Company: <text:placeholder text:placeholder-type="text">&lt;company.rec_name&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Table3.A1" office:value-type="string">
<text:p text:style-name="P1">General Journal</text:p>
</table:table-cell>
<table:table-cell table:style-name="Table3.A1" office:value-type="string">
<text:p text:style-name="P2">Print Date: <text:placeholder text:placeholder-type="text">&lt;format_date(datetime.date.today(), user.language)&gt;</text:placeholder><text:s/>at <text:placeholder text:placeholder-type="text">&lt;datetime.datetime.now().strftime(&apos;%H:%M:%S&apos;)&gt;</text:placeholder></text:p>
</table:table-cell>
</table:table-row>
</table:table>
</style:header>
<style:footer>
<table:table table:name="Table2" table:style-name="Table2">
<table:table-column table:style-name="Table2.A"/>
<table:table-column table:style-name="Table2.B"/>
<table:table-row table:style-name="TableLine94266545229984">
<table:table-cell table:style-name="Table2.A1" office:value-type="string">
<text:p text:style-name="Footer">User: <text:placeholder text:placeholder-type="text">&lt;user.rec_name&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Table2.A1" office:value-type="string">
<text:p text:style-name="P3"><text:page-number text:select-page="current">1</text:page-number>/<text:page-count>1</text:page-count></text:p>
</table:table-cell>
</table:table-row>
</table:table>
</style:footer>
</style:master-page>
</office:master-styles>
<office:body>
<office:text>
<office:forms form:automatic-focus="false" form:apply-design-mode="false"/>
<text:sequence-decls>
<text:sequence-decl text:display-outline-level="0" text:name="Illustration"/>
<text:sequence-decl text:display-outline-level="0" text:name="Table"/>
<text:sequence-decl text:display-outline-level="0" text:name="Text"/>
<text:sequence-decl text:display-outline-level="0" text:name="Drawing"/>
<text:sequence-decl text:display-outline-level="0" text:name="Figure"/>
</text:sequence-decls>
<text:p text:style-name="P11">General Journal</text:p>
<text:section text:style-name="Sect1" text:name="Section1">
<text:p text:style-name="Text_20_body"><text:placeholder text:placeholder-type="text">&lt;for each=&quot;move in records&quot;&gt;</text:placeholder></text:p>
<table:table table:name="Table4" table:style-name="Table4">
<table:table-column table:style-name="Table4.A" table:number-columns-repeated="5"/>
<table:table-header-rows>
<table:table-row table:style-name="Table4.1">
<table:table-cell table:style-name="Table4.A1" office:value-type="string">
<text:p text:style-name="Table_20_Heading">Journal Entry:<text:line-break/><text:placeholder text:placeholder-type="text">&lt;move.number&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Table4.C1" office:value-type="string">
<text:p text:style-name="Table_20_Heading">Date:<text:line-break/> <text:placeholder text:placeholder-type="text">&lt;format_date(move.date, user.language)&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Table4.C1" office:value-type="string">
<text:p text:style-name="Table_20_Heading"><text:placeholder text:placeholder-type="text">&lt;if test=&quot;move.origin&quot;&gt;</text:placeholder></text:p>
<text:p text:style-name="Table_20_Heading">Origin:<text:line-break/><text:placeholder text:placeholder-type="text">&lt;getattr(move.origin, &apos;rec_name&apos;, &apos;&apos;)&gt;</text:placeholder></text:p>
<text:p text:style-name="Table_20_Heading"><text:placeholder text:placeholder-type="text">&lt;/if&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Table4.D1" table:number-columns-spanned="2" office:value-type="string">
<text:p text:style-name="Table_20_Heading"><text:placeholder text:placeholder-type="text">&lt;if test=&quot;move.state == &apos;posted&apos;&quot;&gt;</text:placeholder></text:p>
<text:p text:style-name="Table_20_Heading">Posted <text:placeholder text:placeholder-type="text">&lt;move.post_number&gt;</text:placeholder><text:line-break/><text:placeholder text:placeholder-type="text">&lt;format_date(move.post_date, user.language)&gt;</text:placeholder></text:p>
<text:p text:style-name="Table_20_Heading"><text:placeholder text:placeholder-type="text">&lt;/if&gt;</text:placeholder></text:p>
<text:p text:style-name="Table_20_Heading"><text:placeholder text:placeholder-type="text">&lt;if test=&quot;move.state == &apos;draft&apos;&quot;&gt;</text:placeholder></text:p>
<text:p text:style-name="Table_20_Heading">Draft</text:p>
<text:p text:style-name="Table_20_Heading"><text:placeholder text:placeholder-type="text">&lt;/if&gt;</text:placeholder></text:p>
</table:table-cell>
<table:covered-table-cell/>
</table:table-row>
<table:table-row table:style-name="Table4.1">
<table:table-cell table:style-name="Table4.A2" table:number-columns-spanned="5" office:value-type="string">
<text:p text:style-name="P5"><text:placeholder text:placeholder-type="text">&lt;move.description&gt;</text:placeholder></text:p>
</table:table-cell>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
</table:table-row>
<table:table-row table:style-name="Table4.1">
<table:table-cell table:style-name="Table4.A3" table:number-columns-spanned="3" office:value-type="string">
<text:p text:style-name="Table_20_Heading">Account</text:p>
</table:table-cell>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:table-cell table:style-name="Table4.D3" office:value-type="string">
<text:p text:style-name="Table_20_Heading">Debit</text:p>
</table:table-cell>
<table:table-cell table:style-name="Table4.E3" office:value-type="string">
<text:p text:style-name="Table_20_Heading">Credit</text:p>
</table:table-cell>
</table:table-row>
</table:table-header-rows>
<table:table-row table:style-name="TableLine94266545333792">
<table:table-cell table:style-name="Table4.A4" table:number-columns-spanned="5" office:value-type="string">
<text:p text:style-name="P8"><text:placeholder text:placeholder-type="text">&lt;for each=&quot;line in move.lines&quot;&gt;</text:placeholder></text:p>
</table:table-cell>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
</table:table-row>
<table:table-row table:style-name="TableLine94266545335008">
<table:table-cell table:style-name="Table4.A5" table:number-columns-spanned="3" office:value-type="string">
<text:p text:style-name="P8"><text:placeholder text:placeholder-type="text">&lt;line.account.rec_name&gt;</text:placeholder></text:p>
<text:p text:style-name="P8"><text:placeholder text:placeholder-type="text">&lt;if test=&quot;line.party&quot;&gt;</text:placeholder></text:p>
<text:p text:style-name="P8"><text:placeholder text:placeholder-type="text">&lt;&apos;[%s] %s&apos; % (line.party.code, line.party.name)&gt;</text:placeholder></text:p>
<text:p text:style-name="P8"><text:placeholder text:placeholder-type="text">&lt;/if&gt;</text:placeholder></text:p>
<text:p text:style-name="P8"><text:placeholder text:placeholder-type="text">&lt;if test=&quot;line.description&quot;&gt;</text:placeholder></text:p>
<text:p text:style-name="P8"><text:placeholder text:placeholder-type="text">&lt;line.description&gt;</text:placeholder></text:p>
<text:p text:style-name="P8"><text:placeholder text:placeholder-type="text">&lt;/if&gt;</text:placeholder></text:p>
</table:table-cell>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:table-cell table:style-name="Table4.D5" office:value-type="string">
<text:p text:style-name="P10"><text:placeholder text:placeholder-type="text">&lt;format_currency(line.debit, user.language, company.currency)&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Table4.E5" office:value-type="string">
<text:p text:style-name="P10"><text:placeholder text:placeholder-type="text">&lt;format_currency(line.credit, user.language, company.currency)&gt;</text:placeholder></text:p>
</table:table-cell>
</table:table-row>
<table:table-row table:style-name="TableLine94266545337328">
<table:table-cell table:style-name="Table4.A6" table:number-columns-spanned="5" office:value-type="string">
<text:p text:style-name="P8"><text:placeholder text:placeholder-type="text">&lt;/for&gt;</text:placeholder></text:p>
</table:table-cell>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
</table:table-row>
</table:table>
<text:p text:style-name="Text_20_body"><text:placeholder text:placeholder-type="text">&lt;/for&gt;</text:placeholder></text:p>
</text:section>
</office:text>
</office:body>
</office:document>
+979
View File
@@ -0,0 +1,979 @@
<?xml version="1.0" encoding="UTF-8"?>
<office:document xmlns:officeooo="http://openoffice.org/2009/office" xmlns:css3t="http://www.w3.org/TR/css3-text/" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rpt="http://openoffice.org/2005/report" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:xforms="http://www.w3.org/2002/xforms" office:version="1.3" office:mimetype="application/vnd.oasis.opendocument.text">
<office:meta><meta:generator>LibreOffice/7.3.5.2$Linux_X86_64 LibreOffice_project/30$Build-2</meta:generator><meta:creation-date>2008-06-07T15:26:41</meta:creation-date><dc:date>2008-08-27T17:03:36</dc:date><meta:editing-cycles>1</meta:editing-cycles><meta:editing-duration>PT0S</meta:editing-duration><meta:document-statistic meta:table-count="4" meta:image-count="0" meta:object-count="0" meta:page-count="3" meta:paragraph-count="51" meta:word-count="145" meta:character-count="1808" meta:non-whitespace-character-count="1714"/><meta:user-defined meta:name="Info 1"/><meta:user-defined meta:name="Info 2"/><meta:user-defined meta:name="Info 3"/><meta:user-defined meta:name="Info 4"/></office:meta>
<office:settings>
<config:config-item-set config:name="ooo:view-settings">
<config:config-item config:name="ViewAreaTop" config:type="long">24130</config:config-item>
<config:config-item config:name="ViewAreaLeft" config:type="long">0</config:config-item>
<config:config-item config:name="ViewAreaWidth" config:type="long">48129</config:config-item>
<config:config-item config:name="ViewAreaHeight" config:type="long">22994</config:config-item>
<config:config-item config:name="ShowRedlineChanges" config:type="boolean">true</config:config-item>
<config:config-item config:name="InBrowseMode" config:type="boolean">false</config:config-item>
<config:config-item-map-indexed config:name="Views">
<config:config-item-map-entry>
<config:config-item config:name="ViewId" config:type="string">view2</config:config-item>
<config:config-item config:name="ViewLeft" config:type="long">19627</config:config-item>
<config:config-item config:name="ViewTop" config:type="long">29242</config:config-item>
<config:config-item config:name="VisibleLeft" config:type="long">0</config:config-item>
<config:config-item config:name="VisibleTop" config:type="long">24130</config:config-item>
<config:config-item config:name="VisibleRight" config:type="long">48128</config:config-item>
<config:config-item config:name="VisibleBottom" config:type="long">47122</config:config-item>
<config:config-item config:name="ZoomType" config:type="short">0</config:config-item>
<config:config-item config:name="ViewLayoutColumns" config:type="short">0</config:config-item>
<config:config-item config:name="ViewLayoutBookMode" config:type="boolean">false</config:config-item>
<config:config-item config:name="ZoomFactor" config:type="short">100</config:config-item>
<config:config-item config:name="IsSelectedFrame" config:type="boolean">false</config:config-item>
<config:config-item config:name="KeepRatio" config:type="boolean">false</config:config-item>
<config:config-item config:name="AnchoredTextOverflowLegacy" config:type="boolean">false</config:config-item>
</config:config-item-map-entry>
</config:config-item-map-indexed>
</config:config-item-set>
<config:config-item-set config:name="ooo:configuration-settings">
<config:config-item config:name="PrintProspect" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrintReversed" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrintSingleJobs" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrintLeftPages" config:type="boolean">true</config:config-item>
<config:config-item config:name="PrintTables" config:type="boolean">true</config:config-item>
<config:config-item config:name="PrintControls" config:type="boolean">true</config:config-item>
<config:config-item config:name="PrintPageBackground" config:type="boolean">true</config:config-item>
<config:config-item config:name="PrintDrawings" config:type="boolean">true</config:config-item>
<config:config-item config:name="PrintBlackFonts" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrintAnnotationMode" config:type="short">0</config:config-item>
<config:config-item config:name="PrintTextPlaceholder" config:type="boolean">false</config:config-item>
<config:config-item config:name="ProtectFields" config:type="boolean">false</config:config-item>
<config:config-item config:name="ProtectBookmarks" config:type="boolean">false</config:config-item>
<config:config-item config:name="EmptyDbFieldHidesPara" config:type="boolean">false</config:config-item>
<config:config-item config:name="DisableOffPagePositioning" config:type="boolean">false</config:config-item>
<config:config-item config:name="SubtractFlysAnchoredAtFlys" config:type="boolean">true</config:config-item>
<config:config-item config:name="PropLineSpacingShrinksFirstLine" config:type="boolean">false</config:config-item>
<config:config-item config:name="ApplyParagraphMarkFormatToNumbering" config:type="boolean">false</config:config-item>
<config:config-item config:name="GutterAtTop" config:type="boolean">false</config:config-item>
<config:config-item config:name="TreatSingleColumnBreakAsPageBreak" config:type="boolean">false</config:config-item>
<config:config-item config:name="EmbedSystemFonts" config:type="boolean">false</config:config-item>
<config:config-item config:name="EmbedComplexScriptFonts" config:type="boolean">true</config:config-item>
<config:config-item config:name="EmbedAsianScriptFonts" config:type="boolean">true</config:config-item>
<config:config-item config:name="EmbedLatinScriptFonts" config:type="boolean">true</config:config-item>
<config:config-item config:name="EmbedOnlyUsedFonts" config:type="boolean">false</config:config-item>
<config:config-item config:name="ContinuousEndnotes" config:type="boolean">false</config:config-item>
<config:config-item config:name="EmbedFonts" config:type="boolean">false</config:config-item>
<config:config-item config:name="ClippedPictures" config:type="boolean">false</config:config-item>
<config:config-item config:name="FloattableNomargins" config:type="boolean">false</config:config-item>
<config:config-item config:name="UnbreakableNumberings" config:type="boolean">false</config:config-item>
<config:config-item config:name="HeaderSpacingBelowLastPara" config:type="boolean">false</config:config-item>
<config:config-item config:name="AllowPrintJobCancel" config:type="boolean">true</config:config-item>
<config:config-item config:name="UseOldPrinterMetrics" config:type="boolean">false</config:config-item>
<config:config-item config:name="TabOverMargin" config:type="boolean">false</config:config-item>
<config:config-item config:name="TabsRelativeToIndent" config:type="boolean">true</config:config-item>
<config:config-item config:name="UseOldNumbering" config:type="boolean">false</config:config-item>
<config:config-item config:name="InvertBorderSpacing" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrintPaperFromSetup" config:type="boolean">false</config:config-item>
<config:config-item config:name="UpdateFromTemplate" config:type="boolean">true</config:config-item>
<config:config-item config:name="CurrentDatabaseCommandType" config:type="int">0</config:config-item>
<config:config-item config:name="LinkUpdateMode" config:type="short">1</config:config-item>
<config:config-item config:name="AddParaSpacingToTableCells" config:type="boolean">true</config:config-item>
<config:config-item config:name="FrameAutowidthWithMorePara" config:type="boolean">false</config:config-item>
<config:config-item config:name="CurrentDatabaseCommand" config:type="string"/>
<config:config-item config:name="PrinterIndependentLayout" config:type="string">high-resolution</config:config-item>
<config:config-item config:name="ApplyUserData" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrintFaxName" config:type="string"/>
<config:config-item config:name="CurrentDatabaseDataSource" config:type="string"/>
<config:config-item config:name="ClipAsCharacterAnchoredWriterFlyFrames" config:type="boolean">false</config:config-item>
<config:config-item config:name="IsKernAsianPunctuation" config:type="boolean">false</config:config-item>
<config:config-item config:name="SaveThumbnail" config:type="boolean">true</config:config-item>
<config:config-item config:name="UseFormerTextWrapping" config:type="boolean">false</config:config-item>
<config:config-item config:name="AddExternalLeading" config:type="boolean">true</config:config-item>
<config:config-item config:name="AddParaTableSpacing" config:type="boolean">true</config:config-item>
<config:config-item config:name="StylesNoDefault" config:type="boolean">false</config:config-item>
<config:config-item config:name="ChartAutoUpdate" config:type="boolean">true</config:config-item>
<config:config-item config:name="PrinterSetup" config:type="base64Binary"/>
<config:config-item config:name="AddParaTableSpacingAtStart" config:type="boolean">true</config:config-item>
<config:config-item config:name="Rsid" config:type="int">4069242</config:config-item>
<config:config-item config:name="EmbeddedDatabaseName" config:type="string"/>
<config:config-item config:name="FieldAutoUpdate" config:type="boolean">true</config:config-item>
<config:config-item config:name="OutlineLevelYieldsNumbering" config:type="boolean">false</config:config-item>
<config:config-item config:name="FootnoteInColumnToPageEnd" config:type="boolean">true</config:config-item>
<config:config-item config:name="AlignTabStopPosition" config:type="boolean">true</config:config-item>
<config:config-item config:name="CharacterCompressionType" config:type="short">0</config:config-item>
<config:config-item config:name="PrinterName" config:type="string"/>
<config:config-item config:name="SaveGlobalDocumentLinks" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrinterPaperFromSetup" config:type="boolean">false</config:config-item>
<config:config-item config:name="UseFormerLineSpacing" config:type="boolean">false</config:config-item>
<config:config-item config:name="AddParaLineSpacingToTableCells" config:type="boolean">false</config:config-item>
<config:config-item config:name="UseFormerObjectPositioning" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrintGraphics" config:type="boolean">true</config:config-item>
<config:config-item config:name="SurroundTextWrapSmall" config:type="boolean">false</config:config-item>
<config:config-item config:name="ConsiderTextWrapOnObjPos" config:type="boolean">false</config:config-item>
<config:config-item config:name="MsWordCompTrailingBlanks" config:type="boolean">false</config:config-item>
<config:config-item config:name="TabAtLeftIndentForParagraphsInList" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrintRightPages" config:type="boolean">true</config:config-item>
<config:config-item config:name="TabOverSpacing" config:type="boolean">false</config:config-item>
<config:config-item config:name="IgnoreFirstLineIndentInNumbering" config:type="boolean">false</config:config-item>
<config:config-item config:name="RedlineProtectionKey" config:type="base64Binary"/>
<config:config-item config:name="DoNotJustifyLinesWithManualBreak" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrintProspectRTL" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrintEmptyPages" config:type="boolean">true</config:config-item>
<config:config-item config:name="DoNotResetParaAttrsForNumFont" config:type="boolean">false</config:config-item>
<config:config-item config:name="AddFrameOffsets" config:type="boolean">false</config:config-item>
<config:config-item config:name="IgnoreTabsAndBlanksForLineCalculation" config:type="boolean">false</config:config-item>
<config:config-item config:name="LoadReadonly" config:type="boolean">false</config:config-item>
<config:config-item config:name="DoNotCaptureDrawObjsOnPage" config:type="boolean">false</config:config-item>
<config:config-item config:name="AddVerticalFrameOffsets" config:type="boolean">false</config:config-item>
<config:config-item config:name="UnxForceZeroExtLeading" config:type="boolean">false</config:config-item>
<config:config-item config:name="IsLabelDocument" config:type="boolean">false</config:config-item>
<config:config-item config:name="TableRowKeep" config:type="boolean">false</config:config-item>
<config:config-item config:name="RsidRoot" config:type="int">2070049</config:config-item>
<config:config-item config:name="PrintHiddenText" config:type="boolean">false</config:config-item>
<config:config-item config:name="ProtectForm" config:type="boolean">false</config:config-item>
<config:config-item config:name="MsWordCompMinLineHeightByFly" config:type="boolean">false</config:config-item>
<config:config-item config:name="BackgroundParaOverDrawings" config:type="boolean">false</config:config-item>
<config:config-item config:name="SaveVersionOnClose" config:type="boolean">false</config:config-item>
<config:config-item config:name="MathBaselineAlignment" config:type="boolean">false</config:config-item>
<config:config-item config:name="SmallCapsPercentage66" config:type="boolean">true</config:config-item>
<config:config-item config:name="CollapseEmptyCellPara" config:type="boolean">true</config:config-item>
<config:config-item config:name="TabOverflow" config:type="boolean">false</config:config-item>
</config:config-item-set>
</office:settings>
<office:scripts>
<office:script script:language="ooo:Basic">
<ooo:libraries xmlns:ooo="http://openoffice.org/2004/office" xmlns:xlink="http://www.w3.org/1999/xlink"/>
</office:script>
</office:scripts>
<office:font-face-decls>
<style:font-face style:name="Andale Sans UI" svg:font-family="&apos;Andale Sans UI&apos;" style:font-family-generic="system" style:font-pitch="variable"/>
<style:font-face style:name="DejaVu Sans" svg:font-family="&apos;DejaVu Sans&apos;" style:font-family-generic="system" style:font-pitch="variable"/>
<style:font-face style:name="Liberation Sans" svg:font-family="&apos;Liberation Sans&apos;" style:font-adornments="Regular" style:font-family-generic="swiss" style:font-pitch="variable"/>
<style:font-face style:name="Liberation Serif" svg:font-family="&apos;Liberation Serif&apos;" style:font-family-generic="roman" style:font-pitch="variable"/>
<style:font-face style:name="Liberation Serif1" svg:font-family="&apos;Liberation Serif&apos;" style:font-adornments="Bold" style:font-family-generic="roman" style:font-pitch="variable"/>
<style:font-face style:name="Liberation Serif2" svg:font-family="&apos;Liberation Serif&apos;" style:font-adornments="Regular" style:font-family-generic="roman" style:font-pitch="variable"/>
<style:font-face style:name="StarSymbol" svg:font-family="StarSymbol"/>
<style:font-face style:name="Thorndale AMT" svg:font-family="&apos;Thorndale AMT&apos;" style:font-family-generic="roman" style:font-pitch="variable"/>
</office:font-face-decls>
<office:styles>
<style:default-style style:family="graphic">
<style:graphic-properties svg:stroke-color="#000000" draw:fill-color="#99ccff" fo:wrap-option="no-wrap" draw:shadow-offset-x="0.3cm" draw:shadow-offset-y="0.3cm" draw:start-line-spacing-horizontal="0.283cm" draw:start-line-spacing-vertical="0.283cm" draw:end-line-spacing-horizontal="0.283cm" draw:end-line-spacing-vertical="0.283cm" style:flow-with-text="false"/>
<style:paragraph-properties style:text-autospace="ideograph-alpha" style:line-break="strict" style:writing-mode="lr-tb" style:font-independent-line-spacing="false">
<style:tab-stops/>
</style:paragraph-properties>
<style:text-properties style:use-window-font-color="true" loext:opacity="0%" style:font-name="Thorndale AMT" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Andale Sans UI" style:font-size-asian="10.5pt" style:language-asian="zxx" style:country-asian="none" style:font-name-complex="Andale Sans UI" style:font-size-complex="12pt" style:language-complex="zxx" style:country-complex="none"/>
</style:default-style>
<style:default-style style:family="paragraph">
<style:paragraph-properties fo:hyphenation-ladder-count="no-limit" style:text-autospace="ideograph-alpha" style:punctuation-wrap="hanging" style:line-break="strict" style:tab-stop-distance="1.251cm" style:writing-mode="lr-tb"/>
<style:text-properties style:use-window-font-color="true" loext:opacity="0%" style:font-name="Thorndale AMT" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Andale Sans UI" style:font-size-asian="10.5pt" style:language-asian="zxx" style:country-asian="none" style:font-name-complex="Andale Sans UI" style:font-size-complex="12pt" style:language-complex="zxx" style:country-complex="none" fo:hyphenate="false" fo:hyphenation-remain-char-count="2" fo:hyphenation-push-char-count="2" loext:hyphenation-no-caps="false"/>
</style:default-style>
<style:default-style style:family="table">
<style:table-properties table:border-model="collapsing"/>
</style:default-style>
<style:default-style style:family="table-row">
<style:table-row-properties fo:keep-together="auto"/>
</style:default-style>
<style:style style:name="Standard" style:family="paragraph" style:class="text">
<style:text-properties style:font-name="Liberation Sans" fo:font-family="&apos;Liberation Sans&apos;" style:font-style-name="Regular" style:font-family-generic="swiss" style:font-pitch="variable" style:font-size-asian="10.5pt"/>
</style:style>
<style:style style:name="Heading" style:family="paragraph" style:parent-style-name="Standard" style:next-style-name="Text_20_body" style:class="text">
<style:paragraph-properties fo:margin-top="0.423cm" fo:margin-bottom="0.212cm" style:contextual-spacing="false" fo:keep-with-next="always"/>
<style:text-properties style:font-name="Liberation Serif2" fo:font-family="&apos;Liberation Serif&apos;" style:font-style-name="Regular" style:font-family-generic="roman" style:font-pitch="variable" fo:font-size="16pt" style:font-name-asian="DejaVu Sans" style:font-family-asian="&apos;DejaVu Sans&apos;" style:font-family-generic-asian="system" style:font-pitch-asian="variable" style:font-size-asian="14pt" style:font-name-complex="DejaVu Sans" style:font-family-complex="&apos;DejaVu Sans&apos;" style:font-family-generic-complex="system" style:font-pitch-complex="variable" style:font-size-complex="14pt"/>
</style:style>
<style:style style:name="Text_20_body" style:display-name="Text body" style:family="paragraph" style:parent-style-name="Standard" style:class="text">
<style:paragraph-properties fo:margin-top="0cm" fo:margin-bottom="0.212cm" style:contextual-spacing="false"/>
<style:text-properties style:font-name="Liberation Sans" fo:font-family="&apos;Liberation Sans&apos;" style:font-style-name="Regular" style:font-family-generic="swiss" style:font-pitch="variable" style:font-size-asian="10.5pt"/>
</style:style>
<style:style style:name="List" style:family="paragraph" style:parent-style-name="Text_20_body" style:class="list">
<style:text-properties style:font-size-asian="12pt"/>
</style:style>
<style:style style:name="Caption" style:family="paragraph" style:parent-style-name="Standard" style:class="extra">
<style:paragraph-properties fo:margin-top="0.212cm" fo:margin-bottom="0.212cm" style:contextual-spacing="false" text:number-lines="false" text:line-number="0"/>
<style:text-properties fo:font-size="12pt" fo:font-style="italic" style:font-size-asian="12pt" style:font-style-asian="italic" style:font-size-complex="12pt" style:font-style-complex="italic"/>
</style:style>
<style:style style:name="Index" style:family="paragraph" style:parent-style-name="Standard" style:class="index">
<style:paragraph-properties text:number-lines="false" text:line-number="0"/>
<style:text-properties style:font-size-asian="12pt"/>
</style:style>
<style:style style:name="Table_20_Contents" style:display-name="Table Contents" style:family="paragraph" style:parent-style-name="Standard" style:class="extra">
<style:paragraph-properties text:number-lines="false" text:line-number="0"/>
<style:text-properties fo:font-size="11pt" style:font-size-asian="10.5pt"/>
</style:style>
<style:style style:name="Heading_20_1" style:display-name="Heading 1" style:family="paragraph" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:class="text">
<style:text-properties fo:font-size="16pt" fo:font-weight="bold" style:font-size-asian="115%" style:font-weight-asian="bold" style:font-size-complex="115%" style:font-weight-complex="bold"/>
</style:style>
<style:style style:name="Table_20_Heading" style:display-name="Table Heading" style:family="paragraph" style:parent-style-name="Table_20_Contents" style:class="extra">
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false" text:number-lines="false" text:line-number="0"/>
<style:text-properties style:font-name="Liberation Serif1" fo:font-family="&apos;Liberation Serif&apos;" style:font-style-name="Bold" style:font-family-generic="roman" style:font-pitch="variable" fo:font-size="12pt" fo:font-weight="bold" style:font-size-asian="10.5pt" style:font-weight-asian="bold" style:font-weight-complex="bold"/>
</style:style>
<style:style style:name="Horizontal_20_Line" style:display-name="Horizontal Line" style:family="paragraph" style:parent-style-name="Standard" style:next-style-name="Text_20_body" style:class="html">
<style:paragraph-properties fo:margin-top="0cm" fo:margin-bottom="0.499cm" style:contextual-spacing="false" style:border-line-width-bottom="0.002cm 0.035cm 0.002cm" fo:padding="0cm" fo:border-left="none" fo:border-right="none" fo:border-top="none" fo:border-bottom="1.11pt double #808080" text:number-lines="false" text:line-number="0" style:join-border="false"/>
<style:text-properties fo:font-size="6pt" style:font-size-asian="6pt" style:font-size-complex="6pt"/>
</style:style>
<style:style style:name="Header_20_and_20_Footer" style:display-name="Header and Footer" style:family="paragraph" style:parent-style-name="Standard" style:class="extra">
<style:paragraph-properties text:number-lines="false" text:line-number="0">
<style:tab-stops>
<style:tab-stop style:position="8.5cm" style:type="center"/>
<style:tab-stop style:position="17cm" style:type="right"/>
</style:tab-stops>
</style:paragraph-properties>
</style:style>
<style:style style:name="Header" style:family="paragraph" style:parent-style-name="Standard" style:class="extra">
<style:paragraph-properties text:number-lines="false" text:line-number="0">
<style:tab-stops>
<style:tab-stop style:position="8.795cm" style:type="center"/>
<style:tab-stop style:position="17.59cm" style:type="right"/>
</style:tab-stops>
</style:paragraph-properties>
<style:text-properties fo:font-size="9pt" style:font-size-asian="10.5pt"/>
</style:style>
<style:style style:name="Heading_20_2" style:display-name="Heading 2" style:family="paragraph" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:class="text">
<style:text-properties fo:font-size="14pt" fo:font-style="italic" fo:font-weight="bold" style:font-size-asian="14pt" style:font-style-asian="italic" style:font-weight-asian="bold" style:font-size-complex="14pt" style:font-style-complex="italic" style:font-weight-complex="bold"/>
</style:style>
<style:style style:name="Footer" style:family="paragraph" style:parent-style-name="Standard" style:class="extra">
<style:paragraph-properties text:number-lines="false" text:line-number="0">
<style:tab-stops>
<style:tab-stop style:position="8.795cm" style:type="center"/>
<style:tab-stop style:position="17.59cm" style:type="right"/>
</style:tab-stops>
</style:paragraph-properties>
<style:text-properties fo:font-size="9pt" style:font-size-asian="10.5pt"/>
</style:style>
<style:style style:name="Heading_20_3" style:display-name="Heading 3" style:family="paragraph" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:class="text">
<style:text-properties fo:font-size="14pt" fo:font-weight="bold" style:font-size-asian="14pt" style:font-weight-asian="bold" style:font-size-complex="14pt" style:font-weight-complex="bold"/>
</style:style>
<style:style style:name="Text_20_body_20_indent" style:display-name="Text body indent" style:family="paragraph" style:parent-style-name="Text_20_body" style:class="text">
<style:paragraph-properties fo:margin-left="0.499cm" fo:margin-right="0cm" fo:margin-top="0cm" fo:margin-bottom="0cm" style:contextual-spacing="false" fo:text-indent="0cm" style:auto-text-indent="false"/>
</style:style>
<style:style style:name="Quotations" style:family="paragraph" style:parent-style-name="Standard" style:class="html">
<style:paragraph-properties fo:margin-left="1cm" fo:margin-right="1cm" fo:margin-top="0cm" fo:margin-bottom="0.499cm" style:contextual-spacing="false" fo:text-indent="0cm" style:auto-text-indent="false"/>
</style:style>
<style:style style:name="Title" style:family="paragraph" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:class="chapter">
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false"/>
<style:text-properties fo:font-size="28pt" fo:font-weight="bold" style:font-size-asian="28pt" style:font-weight-asian="bold" style:font-size-complex="28pt" style:font-weight-complex="bold"/>
</style:style>
<style:style style:name="Subtitle" style:family="paragraph" style:parent-style-name="Heading" style:next-style-name="Text_20_body" style:class="chapter">
<style:paragraph-properties fo:margin-top="0.106cm" fo:margin-bottom="0.212cm" style:contextual-spacing="false" fo:text-align="center" style:justify-single-word="false"/>
<style:text-properties fo:font-size="18pt" style:font-size-asian="18pt" style:font-size-complex="18pt"/>
</style:style>
<style:style style:name="Placeholder" style:family="text">
<style:text-properties fo:font-variant="small-caps" fo:color="#008080" loext:opacity="100%" style:text-underline-style="dotted" style:text-underline-width="auto" style:text-underline-color="font-color"/>
</style:style>
<style:style style:name="Bullet_20_Symbols" style:display-name="Bullet Symbols" style:family="text">
<style:text-properties style:font-name="StarSymbol" fo:font-family="StarSymbol" fo:font-size="9pt" style:font-name-asian="StarSymbol" style:font-family-asian="StarSymbol" style:font-size-asian="9pt" style:font-name-complex="StarSymbol" style:font-family-complex="StarSymbol" style:font-size-complex="9pt"/>
</style:style>
<text:outline-style style:name="Outline">
<text:outline-level-style text:level="1" loext:num-list-format="%1%" style:num-format="">
<style:list-level-properties text:min-label-distance="0.381cm"/>
</text:outline-level-style>
<text:outline-level-style text:level="2" loext:num-list-format="%2%" style:num-format="">
<style:list-level-properties text:min-label-distance="0.381cm"/>
</text:outline-level-style>
<text:outline-level-style text:level="3" loext:num-list-format="%3%" style:num-format="">
<style:list-level-properties text:min-label-distance="0.381cm"/>
</text:outline-level-style>
<text:outline-level-style text:level="4" loext:num-list-format="%4%" style:num-format="">
<style:list-level-properties text:min-label-distance="0.381cm"/>
</text:outline-level-style>
<text:outline-level-style text:level="5" loext:num-list-format="%5%" style:num-format="">
<style:list-level-properties text:min-label-distance="0.381cm"/>
</text:outline-level-style>
<text:outline-level-style text:level="6" loext:num-list-format="%6%" style:num-format="">
<style:list-level-properties text:min-label-distance="0.381cm"/>
</text:outline-level-style>
<text:outline-level-style text:level="7" loext:num-list-format="%7%" style:num-format="">
<style:list-level-properties text:min-label-distance="0.381cm"/>
</text:outline-level-style>
<text:outline-level-style text:level="8" loext:num-list-format="%8%" style:num-format="">
<style:list-level-properties text:min-label-distance="0.381cm"/>
</text:outline-level-style>
<text:outline-level-style text:level="9" loext:num-list-format="%9%" style:num-format="">
<style:list-level-properties text:min-label-distance="0.381cm"/>
</text:outline-level-style>
<text:outline-level-style text:level="10" loext:num-list-format="%10%" style:num-format="">
<style:list-level-properties text:min-label-distance="0.381cm"/>
</text:outline-level-style>
</text:outline-style>
<text:notes-configuration text:note-class="footnote" style:num-format="1" text:start-value="0" text:footnotes-position="page" text:start-numbering-at="document"/>
<text:notes-configuration text:note-class="endnote" style:num-format="i" text:start-value="0"/>
<text:linenumbering-configuration text:number-lines="false" text:offset="0.499cm" style:num-format="1" text:number-position="left" text:increment="5"/>
<style:style style:name="Default_20_Style.1" style:display-name="Default Style.1" style:family="table-cell">
<style:table-cell-properties fo:border-left="0.51pt solid #000000" fo:border-top="0.51pt solid #000000" fo:border-bottom="0.51pt solid #000000"/>
</style:style>
<style:style style:name="Default_20_Style.2" style:display-name="Default Style.2" style:family="table-cell">
<style:table-cell-properties fo:border-left="0.51pt solid #000000" fo:border-bottom="0.51pt solid #000000"/>
</style:style>
<style:style style:name="Default_20_Style.3" style:display-name="Default Style.3" style:family="table-cell">
<style:table-cell-properties fo:border-left="0.51pt solid #000000" fo:border-bottom="0.51pt solid #000000"/>
</style:style>
<style:style style:name="Default_20_Style.4" style:display-name="Default Style.4" style:family="table-cell">
<style:table-cell-properties fo:border-left="0.51pt solid #000000" fo:border-right="0.51pt solid #000000" fo:border-bottom="0.51pt solid #000000"/>
</style:style>
<style:style style:name="Default_20_Style.5" style:display-name="Default Style.5" style:family="table-cell">
<style:table-cell-properties fo:border-left="0.51pt solid #000000" fo:border-bottom="0.51pt solid #000000"/>
</style:style>
<style:style style:name="Default_20_Style.6" style:display-name="Default Style.6" style:family="table-cell">
<style:table-cell-properties fo:border-left="0.51pt solid #000000" fo:border-bottom="0.51pt solid #000000"/>
</style:style>
<style:style style:name="Default_20_Style.7" style:display-name="Default Style.7" style:family="table-cell">
<style:table-cell-properties fo:border-left="0.51pt solid #000000" fo:border-bottom="0.51pt solid #000000"/>
</style:style>
<style:style style:name="Default_20_Style.8" style:display-name="Default Style.8" style:family="table-cell">
<style:table-cell-properties fo:border-left="0.51pt solid #000000" fo:border-bottom="0.51pt solid #000000"/>
</style:style>
<style:style style:name="Default_20_Style.9" style:display-name="Default Style.9" style:family="table-cell">
<style:table-cell-properties fo:border-left="0.51pt solid #000000" fo:border-bottom="0.51pt solid #000000"/>
</style:style>
<style:style style:name="Default_20_Style.10" style:display-name="Default Style.10" style:family="table-cell">
<style:table-cell-properties fo:border-left="0.51pt solid #000000" fo:border-right="0.51pt solid #000000" fo:border-bottom="0.51pt solid #000000"/>
</style:style>
<style:style style:name="Default_20_Style.11" style:display-name="Default Style.11" style:family="table-cell">
<style:table-cell-properties fo:border-left="0.51pt solid #000000" fo:border-top="0.51pt solid #000000" fo:border-bottom="0.51pt solid #000000"/>
</style:style>
<style:style style:name="Default_20_Style.12" style:display-name="Default Style.12" style:family="table-cell">
<style:table-cell-properties fo:border-left="0.51pt solid #000000" fo:border-right="0.51pt solid #000000" fo:border-top="0.51pt solid #000000" fo:border-bottom="0.51pt solid #000000"/>
</style:style>
<style:style style:name="Default_20_Style.13" style:display-name="Default Style.13" style:family="table-cell">
<style:table-cell-properties fo:border-left="0.51pt solid #000000" fo:border-bottom="0.51pt solid #000000"/>
</style:style>
<style:style style:name="Default_20_Style.14" style:display-name="Default Style.14" style:family="table-cell">
<style:table-cell-properties fo:border-left="0.51pt solid #000000" fo:border-right="0.51pt solid #000000" fo:border-bottom="0.51pt solid #000000"/>
</style:style>
<style:style style:name="Default_20_Style.15" style:display-name="Default Style.15" style:family="table-cell">
<style:table-cell-properties fo:border-left="0.51pt solid #000000" fo:border-top="0.51pt solid #000000" fo:border-bottom="0.51pt solid #000000"/>
</style:style>
<style:style style:name="Default_20_Style.16" style:display-name="Default Style.16" style:family="table-cell">
<style:table-cell-properties fo:border-left="0.51pt solid #000000" fo:border-bottom="0.51pt solid #000000"/>
</style:style>
<table:table-template table:name="Default Style" table:first-row-end-column="row" table:first-row-start-column="row" table:last-row-end-column="row" table:last-row-start-column="row">
<table:first-row table:style-name="Default_20_Style.1"/>
<table:last-row table:style-name="Default_20_Style.2"/>
<table:first-column table:style-name="Default_20_Style.3"/>
<table:last-column table:style-name="Default_20_Style.4"/>
<table:body table:style-name="Default_20_Style.9"/>
<table:even-rows table:style-name="Default_20_Style.5"/>
<table:odd-rows table:style-name="Default_20_Style.6"/>
<table:even-columns table:style-name="Default_20_Style.7"/>
<table:odd-columns table:style-name="Default_20_Style.8"/>
<table:background table:style-name="Default_20_Style.10"/>
<loext:first-row-even-column table:style-name="Default_20_Style.15"/>
<loext:last-row-even-column table:style-name="Default_20_Style.16"/>
<loext:first-row-end-column table:style-name="Default_20_Style.12"/>
<loext:first-row-start-column table:style-name="Default_20_Style.11"/>
<loext:last-row-end-column table:style-name="Default_20_Style.14"/>
<loext:last-row-start-column table:style-name="Default_20_Style.13"/>
</table:table-template>
</office:styles>
<office:automatic-styles>
<style:style style:name="Table2" style:family="table">
<style:table-properties style:width="23.94cm" table:align="margins"/>
</style:style>
<style:style style:name="Table2.A" style:family="table-column">
<style:table-column-properties style:column-width="7.98cm" style:rel-column-width="21845*"/>
</style:style>
<style:style style:name="Table2.A1" style:family="table-cell">
<style:table-cell-properties fo:background-color="transparent" fo:padding="0.097cm" fo:border="none">
<style:background-image/>
</style:table-cell-properties>
</style:style>
<style:style style:name="Table1" style:family="table">
<style:table-properties style:width="23.94cm" table:align="margins"/>
</style:style>
<style:style style:name="Table1.A" style:family="table-column">
<style:table-column-properties style:column-width="11.97cm" style:rel-column-width="32768*"/>
</style:style>
<style:style style:name="Table1.B" style:family="table-column">
<style:table-column-properties style:column-width="11.97cm" style:rel-column-width="32767*"/>
</style:style>
<style:style style:name="Table1.A1" style:family="table-cell">
<style:table-cell-properties fo:padding="0.097cm" fo:border="none"/>
</style:style>
<style:style style:name="Table2" style:family="table">
<style:table-properties style:width="23.94cm" table:align="margins"/>
</style:style>
<style:style style:name="Table2.A" style:family="table-column">
<style:table-column-properties style:column-width="7.98cm" style:rel-column-width="21845*"/>
</style:style>
<style:style style:name="Table2.A1" style:family="table-cell">
<style:table-cell-properties fo:background-color="transparent" fo:padding="0.097cm" fo:border="none">
<style:background-image/>
</style:table-cell-properties>
</style:style>
<style:style style:name="Table1" style:family="table">
<style:table-properties style:width="23.94cm" table:align="margins"/>
</style:style>
<style:style style:name="Table1.A" style:family="table-column">
<style:table-column-properties style:column-width="11.97cm" style:rel-column-width="32768*"/>
</style:style>
<style:style style:name="Table1.B" style:family="table-column">
<style:table-column-properties style:column-width="11.97cm" style:rel-column-width="32767*"/>
</style:style>
<style:style style:name="Table1.A1" style:family="table-cell">
<style:table-cell-properties fo:padding="0.097cm" fo:border="none"/>
</style:style>
<style:style style:name="Lines" style:family="table">
<style:table-properties style:width="23.94cm" fo:margin-left="0cm" fo:margin-right="0cm" fo:break-before="auto" fo:break-after="auto" table:align="margins" fo:background-color="transparent" fo:keep-with-next="always" style:may-break-between-rows="true" style:writing-mode="lr-tb">
<style:background-image/>
</style:table-properties>
</style:style>
<style:style style:name="Lines.A" style:family="table-column">
<style:table-column-properties style:column-width="2.499cm" style:rel-column-width="1417*"/>
</style:style>
<style:style style:name="Lines.B" style:family="table-column">
<style:table-column-properties style:column-width="3.358cm" style:rel-column-width="1904*"/>
</style:style>
<style:style style:name="Lines.C" style:family="table-column">
<style:table-column-properties style:column-width="3.36cm" style:rel-column-width="1905*"/>
</style:style>
<style:style style:name="Lines.F" style:family="table-column">
<style:table-column-properties style:column-width="4.002cm" style:rel-column-width="2269*"/>
</style:style>
<style:style style:name="Lines.1" style:family="table-row">
<style:table-row-properties fo:keep-together="always"/>
</style:style>
<style:style style:name="Lines.A1" style:family="table-cell">
<style:table-cell-properties fo:background-color="#b3b3b3" fo:padding="0.097cm" fo:border="0.05pt solid #000000">
<style:background-image/>
</style:table-cell-properties>
</style:style>
<style:style style:name="Lines.A2" style:family="table-cell">
<style:table-cell-properties fo:background-color="#b3b3b3" fo:padding="0.097cm" fo:border-left="0.05pt solid #000000" fo:border-right="0.05pt solid #000000" fo:border-top="none" fo:border-bottom="0.05pt solid #000000">
<style:background-image/>
</style:table-cell-properties>
</style:style>
<style:style style:name="Lines.A3" style:family="table-cell">
<style:table-cell-properties fo:background-color="#e6e6e6" fo:padding="0.097cm" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="0.05pt solid #000000" fo:border-bottom="0.05pt solid #000000">
<style:background-image/>
</style:table-cell-properties>
</style:style>
<style:style style:name="Lines.G3" style:family="table-cell">
<style:table-cell-properties fo:background-color="#e6e6e6" fo:padding="0.097cm" fo:border-left="0.05pt solid #000000" fo:border-right="0.05pt solid #000000" fo:border-top="none" fo:border-bottom="0.05pt solid #000000">
<style:background-image/>
</style:table-cell-properties>
</style:style>
<style:style style:name="Lines.A4" style:family="table-cell">
<style:table-cell-properties fo:background-color="#cccccc" fo:padding="0.097cm" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="0.05pt solid #000000" fo:border-bottom="0.05pt solid #000000">
<style:background-image/>
</style:table-cell-properties>
</style:style>
<style:style style:name="Lines.C4" style:family="table-cell">
<style:table-cell-properties fo:background-color="#cccccc" fo:padding="0.097cm" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="none" fo:border-bottom="0.05pt solid #000000">
<style:background-image/>
</style:table-cell-properties>
</style:style>
<style:style style:name="Lines.G4" style:family="table-cell">
<style:table-cell-properties fo:background-color="#cccccc" fo:padding="0.097cm" fo:border-left="0.05pt solid #000000" fo:border-right="0.05pt solid #000000" fo:border-top="none" fo:border-bottom="0.05pt solid #000000">
<style:background-image/>
</style:table-cell-properties>
</style:style>
<style:style style:name="Lines.A5" style:family="table-cell">
<style:table-cell-properties fo:padding="0.097cm" fo:border-left="0.05pt solid #000000" fo:border-right="0.05pt solid #000000" fo:border-top="none" fo:border-bottom="0.05pt solid #000000"/>
</style:style>
<style:style style:name="Lines.A6" style:family="table-cell">
<style:table-cell-properties fo:padding="0.097cm" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="none" fo:border-bottom="0.05pt solid #000000"/>
</style:style>
<style:style style:name="Lines.B6" style:family="table-cell">
<style:table-cell-properties fo:padding="0.097cm" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="none" fo:border-bottom="0.05pt solid #000000"/>
</style:style>
<style:style style:name="Lines.C6" style:family="table-cell">
<style:table-cell-properties fo:padding="0.097cm" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="none" fo:border-bottom="0.05pt solid #000000"/>
</style:style>
<style:style style:name="Lines.D6" style:family="table-cell">
<style:table-cell-properties fo:padding="0.097cm" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="none" fo:border-bottom="0.05pt solid #000000"/>
</style:style>
<style:style style:name="Lines.E6" style:family="table-cell">
<style:table-cell-properties fo:padding="0.097cm" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="none" fo:border-bottom="0.05pt solid #000000"/>
</style:style>
<style:style style:name="Lines.F6" style:family="table-cell">
<style:table-cell-properties fo:padding="0.097cm" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="none" fo:border-bottom="0.05pt solid #000000"/>
</style:style>
<style:style style:name="Lines.G6" style:family="table-cell">
<style:table-cell-properties fo:padding="0.097cm" fo:border-left="0.05pt solid #000000" fo:border-right="0.05pt solid #000000" fo:border-top="none" fo:border-bottom="0.05pt solid #000000"/>
</style:style>
<style:style style:name="Lines.A7" style:family="table-cell">
<style:table-cell-properties fo:padding="0.097cm" fo:border-left="0.05pt solid #000000" fo:border-right="0.05pt solid #000000" fo:border-top="none" fo:border-bottom="0.05pt solid #000000"/>
</style:style>
<style:style style:name="Lines.A8" style:family="table-cell">
<style:table-cell-properties fo:background-color="#e6e6e6" fo:padding="0.097cm" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="none" fo:border-bottom="0.05pt solid #000000">
<style:background-image/>
</style:table-cell-properties>
</style:style>
<style:style style:name="Table3" style:family="table" style:master-page-name="">
<style:table-properties style:width="23.94cm" style:page-number="auto" fo:break-before="auto" fo:break-after="auto" table:align="margins" fo:background-color="transparent" style:shadow="none" fo:keep-with-next="always" style:may-break-between-rows="true" style:writing-mode="lr-tb">
<style:background-image/>
</style:table-properties>
</style:style>
<style:style style:name="Table3.A" style:family="table-column">
<style:table-column-properties style:column-width="5.851cm" style:rel-column-width="3317*"/>
</style:style>
<style:style style:name="Table3.B" style:family="table-column">
<style:table-column-properties style:column-width="3.362cm" style:rel-column-width="1906*"/>
</style:style>
<style:style style:name="Table3.E" style:family="table-column">
<style:table-column-properties style:column-width="4.001cm" style:rel-column-width="2268*"/>
</style:style>
<style:style style:name="Table3.1" style:family="table-row">
<style:table-row-properties fo:background-color="transparent" fo:keep-together="always">
<style:background-image/>
</style:table-row-properties>
</style:style>
<style:style style:name="Table3.A1" style:family="table-cell">
<style:table-cell-properties style:vertical-align="" fo:background-color="#b3b3b3" fo:padding="0.097cm" fo:border="0.05pt solid #000000" style:writing-mode="lr-tb">
<style:background-image/>
</style:table-cell-properties>
</style:style>
<style:style style:name="Table3.A2" style:family="table-cell">
<style:table-cell-properties style:vertical-align="" fo:background-color="#b3b3b3" fo:padding="0.097cm" fo:border-left="0.05pt solid #000000" fo:border-right="0.05pt solid #000000" fo:border-top="none" fo:border-bottom="0.05pt solid #000000" style:writing-mode="lr-tb">
<style:background-image/>
</style:table-cell-properties>
</style:style>
<style:style style:name="Table3.A3" style:family="table-cell">
<style:table-cell-properties style:vertical-align="" fo:background-color="#cccccc" fo:padding="0.097cm" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="none" fo:border-bottom="0.05pt solid #000000" style:writing-mode="lr-tb">
<style:background-image/>
</style:table-cell-properties>
</style:style>
<style:style style:name="Table3.F3" style:family="table-cell">
<style:table-cell-properties style:vertical-align="" fo:background-color="#cccccc" fo:padding="0.097cm" fo:border-left="0.05pt solid #000000" fo:border-right="0.05pt solid #000000" fo:border-top="none" fo:border-bottom="0.05pt solid #000000" style:writing-mode="lr-tb">
<style:background-image/>
</style:table-cell-properties>
</style:style>
<style:style style:name="P1" style:family="paragraph" style:parent-style-name="Header">
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false"/>
</style:style>
<style:style style:name="P2" style:family="paragraph" style:parent-style-name="Header">
<style:paragraph-properties fo:text-align="end" style:justify-single-word="false"/>
</style:style>
<style:style style:name="P3" style:family="paragraph" style:parent-style-name="Footer">
<style:paragraph-properties fo:text-align="end" style:justify-single-word="false"/>
</style:style>
<style:style style:name="P4" style:family="paragraph" style:parent-style-name="Table_20_Contents">
<style:paragraph-properties fo:text-align="end" style:justify-single-word="false" fo:keep-together="always" fo:keep-with-next="always"/>
</style:style>
<style:style style:name="P5" style:family="paragraph" style:parent-style-name="Table_20_Heading">
<style:paragraph-properties fo:keep-together="always" style:shadow="none" fo:keep-with-next="always"/>
</style:style>
<style:style style:name="P6" style:family="paragraph" style:parent-style-name="Table_20_Heading">
<style:paragraph-properties fo:keep-together="always" fo:keep-with-next="always"/>
</style:style>
<style:style style:name="P7" style:family="paragraph" style:parent-style-name="Table_20_Contents">
<style:paragraph-properties fo:text-align="start" style:justify-single-word="false" fo:keep-together="always" style:shadow="none" fo:keep-with-next="always"/>
<style:text-properties fo:font-size="12pt" fo:font-weight="bold" style:font-size-asian="12pt" style:font-weight-asian="bold" style:font-size-complex="12pt" style:font-weight-complex="bold"/>
</style:style>
<style:style style:name="P8" style:family="paragraph" style:parent-style-name="Text_20_body">
<style:paragraph-properties fo:text-align="start" style:justify-single-word="false"/>
<style:text-properties fo:font-size="12pt" style:text-underline-style="none" fo:font-weight="normal" style:font-size-asian="10.5pt" style:font-weight-asian="normal" style:font-size-complex="12pt" style:font-weight-complex="normal"/>
</style:style>
<style:style style:name="P9" style:family="paragraph" style:parent-style-name="Table_20_Heading">
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false" fo:keep-together="always" fo:keep-with-next="always"/>
<style:text-properties style:font-size-asian="10.5pt"/>
</style:style>
<style:style style:name="P10" style:family="paragraph" style:parent-style-name="Table_20_Contents">
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false" fo:keep-together="always" fo:keep-with-next="always"/>
<style:text-properties style:font-size-asian="10.5pt"/>
</style:style>
<style:style style:name="P11" style:family="paragraph" style:parent-style-name="Table_20_Contents">
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false" fo:keep-together="always" fo:keep-with-next="always"/>
<style:text-properties officeooo:paragraph-rsid="002aca3c" style:font-size-asian="10.5pt"/>
</style:style>
<style:style style:name="P12" style:family="paragraph" style:parent-style-name="Table_20_Contents">
<style:paragraph-properties fo:text-align="start" style:justify-single-word="false" fo:keep-together="always" fo:keep-with-next="always"/>
</style:style>
<style:style style:name="P13" style:family="paragraph" style:parent-style-name="Table_20_Contents">
<style:paragraph-properties fo:text-align="start" style:justify-single-word="false" fo:keep-together="always" fo:keep-with-next="always"/>
<style:text-properties fo:font-size="11pt" style:font-size-asian="11pt" style:font-size-complex="11pt"/>
</style:style>
<style:style style:name="P14" style:family="paragraph" style:parent-style-name="Table_20_Contents">
<style:paragraph-properties fo:text-align="end" style:justify-single-word="false" fo:keep-together="always" fo:keep-with-next="always"/>
<style:text-properties fo:font-size="11pt" style:font-size-asian="11pt" style:font-size-complex="11pt"/>
</style:style>
<style:style style:name="P15" style:family="paragraph" style:parent-style-name="Text_20_body">
<style:paragraph-properties fo:text-align="start" style:justify-single-word="false" fo:keep-together="always" fo:keep-with-next="always"/>
<style:text-properties fo:font-size="11pt" style:text-underline-style="none" style:font-size-asian="11pt" style:font-size-complex="11pt"/>
</style:style>
<style:style style:name="P16" style:family="paragraph" style:parent-style-name="Text_20_body">
<style:paragraph-properties fo:text-align="start" style:justify-single-word="false" fo:keep-together="always" fo:keep-with-next="always"/>
<style:text-properties style:text-underline-style="none"/>
</style:style>
<style:style style:name="P17" style:family="paragraph" style:parent-style-name="Text_20_body">
<style:paragraph-properties fo:text-align="start" style:justify-single-word="false" fo:keep-together="always" fo:keep-with-next="always"/>
<style:text-properties style:text-underline-style="none" officeooo:paragraph-rsid="00251ac8"/>
</style:style>
<style:style style:name="P18" style:family="paragraph" style:parent-style-name="Text_20_body">
<style:paragraph-properties fo:text-align="start" style:justify-single-word="false"/>
<style:text-properties style:text-underline-style="none"/>
</style:style>
<style:style style:name="P19" style:family="paragraph" style:parent-style-name="Text_20_body">
<style:paragraph-properties fo:text-align="start" style:justify-single-word="false" fo:keep-together="always" fo:keep-with-next="always"/>
<style:text-properties style:text-underline-style="none" officeooo:paragraph-rsid="00251ac8" fo:background-color="transparent"/>
</style:style>
<style:style style:name="P20" style:family="paragraph" style:parent-style-name="Text_20_body">
<style:text-properties style:text-underline-style="none"/>
</style:style>
<style:style style:name="P21" style:family="paragraph" style:parent-style-name="Text_20_body">
<style:paragraph-properties fo:break-before="page"/>
<style:text-properties style:text-underline-style="none"/>
</style:style>
<style:style style:name="P22" style:family="paragraph" style:parent-style-name="Text_20_body">
<style:text-properties officeooo:paragraph-rsid="0037c304"/>
</style:style>
<style:style style:name="P23" style:family="paragraph" style:parent-style-name="Text_20_body">
<style:text-properties officeooo:paragraph-rsid="003a045d"/>
</style:style>
<style:style style:name="P24" style:family="paragraph" style:parent-style-name="Text_20_body">
<style:text-properties officeooo:rsid="003955ec" officeooo:paragraph-rsid="003a045d"/>
</style:style>
<style:style style:name="P25" style:family="paragraph" style:parent-style-name="Heading_20_1">
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false"/>
<style:text-properties style:text-underline-style="solid" style:text-underline-width="auto" style:text-underline-color="font-color"/>
</style:style>
<style:style style:name="P26" style:family="paragraph" style:parent-style-name="Table_20_Contents">
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false"/>
<style:text-properties style:font-name="Liberation Serif1" fo:font-weight="bold" style:font-size-asian="10.5pt" style:font-weight-asian="bold" style:font-weight-complex="bold"/>
</style:style>
<style:style style:name="P27" style:family="paragraph" style:parent-style-name="Header">
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false"/>
<style:text-properties style:text-underline-style="none" officeooo:paragraph-rsid="003e177a"/>
</style:style>
<style:style style:name="P28" style:family="paragraph" style:parent-style-name="Table_20_Contents">
<style:paragraph-properties fo:text-align="start" style:justify-single-word="false" fo:keep-together="always" fo:keep-with-next="always"/>
</style:style>
<style:style style:name="P29" style:family="paragraph" style:parent-style-name="Table_20_Contents">
<style:paragraph-properties fo:text-align="start" style:justify-single-word="false"/>
<style:text-properties fo:color="#000000" loext:opacity="100%" style:text-outline="false" style:text-line-through-style="none" style:text-line-through-type="none" style:font-name="Liberation Serif" fo:font-size="12pt" fo:font-style="normal" fo:text-shadow="none" style:text-underline-style="none" fo:font-weight="normal" style:font-size-asian="12pt" style:font-style-asian="normal" style:font-weight-asian="normal" style:font-size-complex="12pt" style:font-style-complex="normal" style:font-weight-complex="normal" style:text-overline-style="none" style:text-overline-color="font-color"/>
</style:style>
<style:style style:name="P30" style:family="paragraph" style:parent-style-name="Table_20_Contents">
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false" fo:keep-together="always" fo:keep-with-next="always"/>
<style:text-properties officeooo:paragraph-rsid="002aca3c" style:font-size-asian="10.5pt"/>
</style:style>
<style:style style:name="P31" style:family="paragraph" style:parent-style-name="Table_20_Contents">
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false" fo:keep-together="always" fo:keep-with-next="always"/>
<style:text-properties style:font-size-asian="10.5pt"/>
</style:style>
<style:style style:name="P32" style:family="paragraph" style:parent-style-name="Table_20_Contents">
<style:paragraph-properties fo:text-align="end" style:justify-single-word="false"/>
</style:style>
<style:style style:name="P33" style:family="paragraph" style:parent-style-name="Table_20_Contents">
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false"/>
</style:style>
<style:style style:name="P34" style:family="paragraph" style:parent-style-name="Table_20_Heading">
<style:text-properties fo:font-weight="bold" style:font-weight-asian="bold" style:font-weight-complex="bold"/>
</style:style>
<style:style style:name="P35" style:family="paragraph" style:parent-style-name="Table_20_Heading">
<style:paragraph-properties fo:text-align="start" style:justify-single-word="false"/>
<style:text-properties fo:font-weight="bold" style:font-weight-asian="bold" style:font-weight-complex="bold"/>
</style:style>
<style:style style:name="P36" style:family="paragraph" style:parent-style-name="Text_20_body">
<style:paragraph-properties fo:text-align="start" style:justify-single-word="false" fo:keep-together="always" fo:break-before="page" fo:keep-with-next="always"/>
<style:text-properties style:text-underline-style="none" officeooo:paragraph-rsid="003e177a"/>
</style:style>
<style:style style:name="P37" style:family="paragraph" style:parent-style-name="Text_20_body">
<style:paragraph-properties fo:text-align="start" style:justify-single-word="false" fo:keep-together="always" fo:keep-with-next="always"/>
<style:text-properties style:text-underline-style="none" officeooo:paragraph-rsid="003e177a"/>
</style:style>
<style:style style:name="P38" style:family="paragraph" style:parent-style-name="Text_20_body">
<style:paragraph-properties fo:text-align="start" style:justify-single-word="false" fo:keep-together="always" fo:keep-with-next="always"/>
<style:text-properties fo:font-size="12pt" style:text-underline-style="none" fo:font-weight="normal" officeooo:paragraph-rsid="003e177a" fo:background-color="transparent" style:font-size-asian="10.5pt" style:font-weight-asian="normal" style:font-size-complex="12pt" style:font-weight-complex="normal"/>
</style:style>
<style:style style:name="T1" style:family="text">
<style:text-properties officeooo:rsid="0037c304"/>
</style:style>
<style:style style:name="T2" style:family="text">
<style:text-properties officeooo:rsid="0039b016"/>
</style:style>
<style:style style:name="T3" style:family="text">
<style:text-properties officeooo:rsid="003e177a"/>
</style:style>
<style:style style:name="T4" style:family="text">
<style:text-properties style:text-underline-style="solid" style:text-underline-width="auto" style:text-underline-color="font-color"/>
</style:style>
<style:style style:name="T5" style:family="text">
<style:text-properties style:text-underline-style="solid" style:text-underline-width="auto" style:text-underline-color="font-color" officeooo:rsid="003e177a"/>
</style:style>
<style:style style:name="T6" style:family="text">
<style:text-properties style:text-underline-style="none"/>
</style:style>
<style:style style:name="T7" style:family="text">
<style:text-properties style:text-underline-style="none" officeooo:rsid="003e177a"/>
</style:style>
<style:page-layout style:name="pm1">
<style:page-layout-properties fo:page-width="27.94cm" fo:page-height="21.59cm" style:num-format="1" style:print-orientation="landscape" fo:margin-top="2cm" fo:margin-bottom="2cm" fo:margin-left="2cm" fo:margin-right="2cm" style:writing-mode="lr-tb" style:layout-grid-color="#c0c0c0" style:layout-grid-lines="44" style:layout-grid-base-height="0.55cm" style:layout-grid-ruby-height="0cm" style:layout-grid-mode="none" style:layout-grid-ruby-below="false" style:layout-grid-print="true" style:layout-grid-display="true" style:footnote-max-height="0cm" loext:margin-gutter="0cm">
<style:footnote-sep style:width="0.018cm" style:distance-before-sep="0.101cm" style:distance-after-sep="0.101cm" style:line-style="none" style:adjustment="left" style:rel-width="25%" style:color="#000000"/>
</style:page-layout-properties>
<style:header-style>
<style:header-footer-properties fo:min-height="0cm" fo:margin-left="0cm" fo:margin-right="0cm" fo:margin-bottom="0.499cm"/>
</style:header-style>
<style:footer-style>
<style:header-footer-properties fo:min-height="0cm" fo:margin-left="0cm" fo:margin-right="0cm" fo:margin-top="0.499cm"/>
</style:footer-style>
</style:page-layout>
<style:style style:name="dp1" style:family="drawing-page">
<style:drawing-page-properties draw:background-size="full"/>
</style:style>
</office:automatic-styles>
<office:master-styles>
<style:master-page style:name="Standard" style:page-layout-name="pm1" draw:style-name="dp1">
<style:header>
<table:table table:name="Table2" table:style-name="Table2">
<table:table-column table:style-name="Table2.A" table:number-columns-repeated="3"/>
<table:table-row table:style-name="TableLine94368948362784">
<table:table-cell table:style-name="Table2.A1" office:value-type="string">
<text:p text:style-name="Header">Company: <text:placeholder text:placeholder-type="text">&lt;company.rec_name&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Table2.A1" office:value-type="string">
<text:p text:style-name="P27">General Ledger<text:placeholder text:placeholder-type="text">&lt;if test=&quot;not context.get(&apos;posted&apos;)&quot;&gt;</text:placeholder> <text:span text:style-name="T3">Draft</text:span><text:span text:style-name="T3"><text:placeholder text:placeholder-type="text">&lt;/if&gt;</text:placeholder></text:span></text:p>
</table:table-cell>
<table:table-cell table:style-name="Table2.A1" office:value-type="string">
<text:p text:style-name="P2">Print Date: <text:placeholder text:placeholder-type="text">&lt;format_date(datetime.date.today(), user.language)&gt;</text:placeholder><text:s/>at <text:placeholder text:placeholder-type="text">&lt;datetime.datetime.now().strftime(&apos;%H:%M:%S&apos;)&gt;</text:placeholder></text:p>
</table:table-cell>
</table:table-row>
</table:table>
</style:header>
<style:footer>
<table:table table:name="Table1" table:style-name="Table1">
<table:table-column table:style-name="Table1.A"/>
<table:table-column table:style-name="Table1.B"/>
<table:table-row table:style-name="TableLine94368949141280">
<table:table-cell table:style-name="Table1.A1" office:value-type="string">
<text:p text:style-name="Footer">User: <text:placeholder text:placeholder-type="text">&lt;user.rec_name&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Table1.A1" office:value-type="string">
<text:p text:style-name="P3"><text:page-number text:select-page="current">1</text:page-number>/<text:page-count>3</text:page-count></text:p>
</table:table-cell>
</table:table-row>
</table:table>
</style:footer>
</style:master-page>
</office:master-styles>
<office:body>
<office:text text:use-soft-page-breaks="true">
<office:forms form:automatic-focus="false" form:apply-design-mode="false"/>
<text:sequence-decls>
<text:sequence-decl text:display-outline-level="0" text:name="Illustration"/>
<text:sequence-decl text:display-outline-level="0" text:name="Table"/>
<text:sequence-decl text:display-outline-level="0" text:name="Text"/>
<text:sequence-decl text:display-outline-level="0" text:name="Drawing"/>
<text:sequence-decl text:display-outline-level="0" text:name="Figure"/>
</text:sequence-decls>
<text:p text:style-name="P25">General Ledger<text:placeholder text:placeholder-type="text">&lt;if test=&quot;not context.get(&apos;posted&apos;)&quot;&gt;</text:placeholder> <text:span text:style-name="T3">Draft</text:span><text:span text:style-name="T3"><text:placeholder text:placeholder-type="text">&lt;/if&gt;</text:placeholder></text:span></text:p>
<text:p text:style-name="P23"><text:span text:style-name="T1">Fiscal Year: </text:span><text:placeholder text:placeholder-type="text">&lt;fiscalyear.rec_name&gt;</text:placeholder></text:p>
<text:p text:style-name="P23"><text:placeholder text:placeholder-type="text">&lt;if test=&quot;start_period or end_period&quot;&gt;</text:placeholder></text:p>
<text:p text:style-name="P23"><text:span text:style-name="T1">From Period</text:span>: <text:placeholder text:placeholder-type="text">&lt;start_period.name if start_period else &apos;&apos;&gt;</text:placeholder><text:s/><text:span text:style-name="T2">To</text:span> <text:placeholder text:placeholder-type="text">&lt;end_period.name if end_period else &apos;&apos;&gt;</text:placeholder></text:p>
<text:p text:style-name="P23"><text:placeholder text:placeholder-type="text">&lt;/if&gt;</text:placeholder></text:p>
<text:p text:style-name="P23"><text:placeholder text:placeholder-type="text">&lt;if test=&quot;from_date or to_date&quot;&gt;</text:placeholder></text:p>
<text:p text:style-name="P24">From Date: <text:placeholder text:placeholder-type="text">&lt;format_date(from_date, user.language) if from_date else &apos;&apos;&gt;</text:placeholder><text:s/>To <text:placeholder text:placeholder-type="text">&lt;format_date(to_date, user.language) if to_date else &apos;&apos;&gt;</text:placeholder></text:p>
<text:p text:style-name="P23"><text:placeholder text:placeholder-type="text">&lt;/if&gt;</text:placeholder></text:p>
<text:p text:style-name="P20"><text:placeholder text:placeholder-type="text">&lt;for each=&quot;account in accounts&quot;&gt;</text:placeholder></text:p>
<text:p text:style-name="P36"><text:placeholder text:placeholder-type="text">&lt;choose test=&quot;&quot;&gt;</text:placeholder></text:p>
<text:p text:style-name="P37"><text:placeholder text:placeholder-type="text">&lt;when test=&quot;account.general_ledger_balance&quot;&gt;</text:placeholder></text:p>
<table:table table:name="Table3" table:style-name="Table3" table:template-name="Default Style">
<table:table-column table:style-name="Table3.A"/>
<table:table-column table:style-name="Table3.B" table:number-columns-repeated="3"/>
<table:table-column table:style-name="Table3.E" table:number-columns-repeated="2"/>
<table:table-header-rows>
<table:table-row table:style-name="Table3.1">
<table:table-cell table:style-name="Table3.A1" table:number-columns-spanned="6" office:value-type="string">
<text:p text:style-name="P34">Name</text:p>
</table:table-cell>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
</table:table-row>
<table:table-row table:style-name="Table3.1">
<table:table-cell table:style-name="Table3.A2" table:number-columns-spanned="6" office:value-type="string">
<text:p text:style-name="P35"><text:placeholder text:placeholder-type="text">&lt;account.rec_name&gt;</text:placeholder></text:p>
</table:table-cell>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
</table:table-row>
</table:table-header-rows>
<table:table-row table:style-name="Table3.1">
<table:table-cell table:style-name="Table3.A3" office:value-type="string">
<text:p text:style-name="Table_20_Heading">Balance</text:p>
</table:table-cell>
<table:table-cell table:style-name="Table3.A3" office:value-type="string">
<text:p text:style-name="P11"/>
</table:table-cell>
<table:table-cell table:style-name="Table3.A3" office:value-type="string">
<text:p text:style-name="P11"/>
</table:table-cell>
<table:table-cell table:style-name="Table3.A3" office:value-type="string">
<text:p text:style-name="P11"><text:placeholder text:placeholder-type="text">&lt;format_currency(account.end_balance, user.language, company.currency)&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Table3.A3" office:value-type="string">
<text:p text:style-name="P10"/>
</table:table-cell>
<table:table-cell table:style-name="Table3.F3" office:value-type="string">
<text:p text:style-name="P10"/>
</table:table-cell>
</table:table-row>
</table:table>
<text:p text:style-name="P37"><text:placeholder text:placeholder-type="text">&lt;/when&gt;</text:placeholder></text:p>
<text:p text:style-name="P37"><text:placeholder text:placeholder-type="text">&lt;otherwise test=&quot;&quot;&gt;</text:placeholder></text:p>
<table:table table:name="Lines" table:style-name="Lines">
<table:table-column table:style-name="Lines.A"/>
<table:table-column table:style-name="Lines.B"/>
<table:table-column table:style-name="Lines.C"/>
<table:table-column table:style-name="Lines.B" table:number-columns-repeated="2"/>
<table:table-column table:style-name="Lines.F" table:number-columns-repeated="2"/>
<table:table-header-rows>
<table:table-row table:style-name="Lines.1">
<table:table-cell table:style-name="Lines.A1" table:number-columns-spanned="7" office:value-type="string">
<text:p text:style-name="P5">Name</text:p>
</table:table-cell>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
</table:table-row>
<table:table-row table:style-name="Lines.1">
<table:table-cell table:style-name="Lines.A2" table:number-columns-spanned="7" office:value-type="string">
<text:p text:style-name="P7"><text:placeholder text:placeholder-type="text">&lt;account.rec_name&gt;</text:placeholder></text:p>
</table:table-cell>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
</table:table-row>
<table:table-row table:style-name="Lines.1">
<table:table-cell table:style-name="Lines.A3" office:value-type="string">
<text:p text:style-name="P6">Date</text:p>
</table:table-cell>
<table:table-cell table:style-name="Lines.A3" office:value-type="string">
<text:p text:style-name="P6">Move</text:p>
</table:table-cell>
<table:table-cell table:style-name="Lines.A3" office:value-type="string">
<text:p text:style-name="Table_20_Heading">Debit</text:p>
</table:table-cell>
<table:table-cell table:style-name="Lines.A3" office:value-type="string">
<text:p text:style-name="P6">Credit</text:p>
</table:table-cell>
<table:table-cell table:style-name="Lines.A3" office:value-type="string">
<text:p text:style-name="P6">Balance</text:p>
</table:table-cell>
<table:table-cell table:style-name="Lines.A3" office:value-type="string">
<text:p text:style-name="P6">Description</text:p>
</table:table-cell>
<table:table-cell table:style-name="Lines.G3" office:value-type="string">
<text:p text:style-name="P6">Origin</text:p>
</table:table-cell>
</table:table-row>
</table:table-header-rows>
<table:table-row table:style-name="Lines.1">
<table:table-cell table:style-name="Lines.A4" table:number-columns-spanned="2" office:value-type="string">
<text:p text:style-name="P6">Balance</text:p>
</table:table-cell>
<table:covered-table-cell/>
<table:table-cell table:style-name="Lines.C4" office:value-type="string">
<text:p text:style-name="P4"/>
</table:table-cell>
<table:table-cell table:style-name="Lines.C4" office:value-type="string">
<text:p text:style-name="P4"/>
</table:table-cell>
<table:table-cell table:style-name="Lines.C4" office:value-type="string">
<text:p text:style-name="P4"><text:placeholder text:placeholder-type="text">&lt;format_currency(account.start_balance, user.language, company.currency)&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Lines.C4" office:value-type="string">
<text:p text:style-name="P12"/>
</table:table-cell>
<table:table-cell table:style-name="Lines.G4" office:value-type="string">
<text:p text:style-name="P12"/>
</table:table-cell>
</table:table-row>
<table:table-row table:style-name="Lines.1">
<table:table-cell table:style-name="Lines.A5" table:number-columns-spanned="7" office:value-type="string">
<text:p text:style-name="P16"><text:placeholder text:placeholder-type="text">&lt;for each=&quot;line in account.lines&quot;&gt;</text:placeholder></text:p>
</table:table-cell>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
</table:table-row>
<table:table-row table:style-name="Lines.1">
<table:table-cell table:style-name="Lines.A6" office:value-type="string">
<text:p text:style-name="P33"><text:placeholder text:placeholder-type="text">&lt;format_date(line.date, user.language)&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Lines.B6" office:value-type="string">
<text:p text:style-name="P32"><text:placeholder text:placeholder-type="text">&lt;line.move.rec_name&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Lines.C6" office:value-type="string">
<text:p text:style-name="P32"><text:placeholder text:placeholder-type="text">&lt;format_currency(line.debit, user.language, company.currency)&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Lines.D6" office:value-type="string">
<text:p text:style-name="P32"><text:placeholder text:placeholder-type="text">&lt;format_currency(line.credit, user.language, company.currency)&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Lines.E6" office:value-type="string">
<text:p text:style-name="P32"><text:placeholder text:placeholder-type="text">&lt;format_currency(line.balance, user.language, company.currency)&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Lines.F6" office:value-type="string">
<text:p text:style-name="Table_20_Contents"><text:placeholder text:placeholder-type="text">&lt;line.description or &apos;&apos;&gt;</text:placeholder><text:line-break/><text:placeholder text:placeholder-type="text">&lt;line.move_description or &apos;&apos;&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Lines.G6" office:value-type="string">
<text:p text:style-name="Table_20_Contents"><text:placeholder text:placeholder-type="text">&lt;getattr(line.origin, &apos;rec_name&apos;, &apos;&apos;)&gt;</text:placeholder></text:p>
</table:table-cell>
</table:table-row>
<text:soft-page-break/>
<table:table-row table:style-name="Lines.1">
<table:table-cell table:style-name="Lines.A7" table:number-columns-spanned="7" office:value-type="string">
<text:p text:style-name="P18"><text:placeholder text:placeholder-type="text">&lt;/for&gt;</text:placeholder></text:p>
</table:table-cell>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
<table:covered-table-cell/>
</table:table-row>
<table:table-row table:style-name="Lines.1">
<table:table-cell table:style-name="Lines.A8" table:number-columns-spanned="2" office:value-type="string">
<text:p text:style-name="P6">Total</text:p>
</table:table-cell>
<table:covered-table-cell/>
<table:table-cell table:style-name="Lines.A8" office:value-type="string">
<text:p text:style-name="P4"><text:placeholder text:placeholder-type="text">&lt;format_currency(account.end_debit - account.start_debit, user.language, company.currency)&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Lines.A8" office:value-type="string">
<text:p text:style-name="P4"><text:placeholder text:placeholder-type="text">&lt;format_currency(account.end_credit - account.start_credit, user.language, company.currency)&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Lines.A8" office:value-type="string">
<text:p text:style-name="P4"><text:placeholder text:placeholder-type="text">&lt;format_currency((account.end_debit - account.end_credit) - (account.start_debit - account.start_credit), user.language, company.currency)&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Lines.A8" office:value-type="string">
<text:p text:style-name="P12"/>
</table:table-cell>
<table:table-cell table:style-name="Lines.G3" office:value-type="string">
<text:p text:style-name="P12"/>
</table:table-cell>
</table:table-row>
<table:table-row table:style-name="Lines.1">
<table:table-cell table:style-name="Lines.C4" table:number-columns-spanned="2" office:value-type="string">
<text:p text:style-name="P6">Balance</text:p>
</table:table-cell>
<table:covered-table-cell/>
<table:table-cell table:style-name="Lines.C4" office:value-type="string">
<text:p text:style-name="P4"/>
</table:table-cell>
<table:table-cell table:style-name="Lines.C4" office:value-type="string">
<text:p text:style-name="P4"/>
</table:table-cell>
<table:table-cell table:style-name="Lines.C4" office:value-type="string">
<text:p text:style-name="P4"><text:placeholder text:placeholder-type="text">&lt;format_currency(account.end_balance, user.language, company.currency)&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Lines.C4" office:value-type="string">
<text:p text:style-name="P12"/>
</table:table-cell>
<table:table-cell table:style-name="Lines.G4" office:value-type="string">
<text:p text:style-name="P12"/>
</table:table-cell>
</table:table-row>
</table:table>
<text:p text:style-name="P38"><text:placeholder text:placeholder-type="text">&lt;/otherwise&gt;</text:placeholder></text:p>
<text:p text:style-name="P38"><text:placeholder text:placeholder-type="text">&lt;/choose&gt;</text:placeholder></text:p>
<text:p text:style-name="P8"><text:placeholder text:placeholder-type="text">&lt;/for&gt;</text:placeholder></text:p>
</office:text>
</office:body>
</office:document>
+202
View File
@@ -0,0 +1,202 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8z"/></svg>

After

Width:  |  Height:  |  Size: 371 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"/></svg>

After

Width:  |  Height:  |  Size: 363 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm0 12H6V10h12v10z"/></svg>

After

Width:  |  Height:  |  Size: 369 B

+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M0 0h24v24H0z" fill="none"/>
<path d="M4 10v7h3v-7H4zm6 0v7h3v-7h-3zM2 22h19v-3H2v3zm14-12v7h3v-7h-3zm-4.5-9L2 6v2h19V6l-9.5-5z"/>
</svg>

After

Width:  |  Height:  |  Size: 239 B

+366
View File
@@ -0,0 +1,366 @@
# 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 decimal import Decimal
from sql.aggregate import Sum
from trytond import backend
from trytond.i18n import gettext
from trytond.model import (
DeactivableMixin, ModelSQL, ModelView, Unique, Workflow, fields)
from trytond.model.exceptions import AccessError
from trytond.modules.company.model import (
CompanyMultiValueMixin, CompanyValueMixin)
from trytond.modules.currency.fields import Monetary
from trytond.pool import Pool
from trytond.pyson import Bool, Eval, Id
from trytond.tools import (
grouped_slice, is_full_text, lstrip_wildcard, reduce_ids)
from trytond.tools.multivalue import migrate_property
from trytond.transaction import Transaction
STATES = {
'readonly': Eval('state') == 'close',
}
class Journal(
DeactivableMixin, ModelSQL, ModelView, CompanyMultiValueMixin):
'Journal'
__name__ = 'account.journal'
name = fields.Char('Name', size=None, required=True, translate=True)
code = fields.Char('Code', size=None)
type = fields.Selection([
('general', "General"),
('revenue', "Revenue"),
('expense', "Expense"),
('cash', "Cash"),
('situation', "Situation"),
('write-off', "Write-Off"),
], 'Type', required=True)
sequence = fields.MultiValue(fields.Many2One(
'ir.sequence', "Sequence",
domain=[
('sequence_type', '=',
Id('account', 'sequence_type_account_journal')),
('company', 'in', [
Eval('context', {}).get('company', -1), None]),
],
states={
'required': Bool(Eval('context', {}).get('company', -1)),
}))
sequences = fields.One2Many(
'account.journal.sequence', 'journal', "Sequences")
debit = fields.Function(Monetary(
"Debit", currency='currency', digits='currency'),
'get_debit_credit_balance')
credit = fields.Function(Monetary(
"Credit", currency='currency', digits='currency'),
'get_debit_credit_balance')
balance = fields.Function(Monetary(
"Balance", currency='currency', digits='currency'),
'get_debit_credit_balance')
currency = fields.Function(fields.Many2One(
'currency.currency', "Currency"), 'get_currency')
@classmethod
def __setup__(cls):
super(Journal, cls).__setup__()
cls._order.insert(0, ('name', 'ASC'))
@classmethod
def default_sequence(cls, **pattern):
return cls.multivalue_model('sequence').default_sequence()
@classmethod
def search_rec_name(cls, name, clause):
_, operator, operand, *extra = clause
if operator.startswith('!') or operator.startswith('not '):
bool_op = 'AND'
else:
bool_op = 'OR'
code_value = operand
if operator.endswith('like') and is_full_text(operand):
code_value = lstrip_wildcard(operand)
return [bool_op,
('code', operator, code_value, *extra),
(cls._rec_name, operator, operand, *extra),
]
@classmethod
def get_currency(cls, journals, name):
pool = Pool()
Company = pool.get('company.company')
company_id = Transaction().context.get('company')
if company_id:
company = Company(company_id)
currency_id = company.currency.id
else:
currency_id = None
return dict.fromkeys([j.id for j in journals], currency_id)
@classmethod
def get_debit_credit_balance(cls, journals, names):
pool = Pool()
MoveLine = pool.get('account.move.line')
Move = pool.get('account.move')
Account = pool.get('account.account')
AccountType = pool.get('account.account.type')
Company = pool.get('company.company')
context = Transaction().context
cursor = Transaction().connection.cursor()
result = {}
ids = [j.id for j in journals]
for name in ['debit', 'credit', 'balance']:
result[name] = dict.fromkeys(ids, 0)
company_id = Transaction().context.get('company')
if not company_id:
return result
company = Company(company_id)
line = MoveLine.__table__()
move = Move.__table__()
account = Account.__table__()
account_type = AccountType.__table__()
where = ((move.date >= context.get('start_date'))
& (move.date <= context.get('end_date'))
& ~account_type.receivable
& ~account_type.payable
& (move.company == company.id))
for sub_journals in grouped_slice(journals):
sub_journals = list(sub_journals)
red_sql = reduce_ids(move.journal, [j.id for j in sub_journals])
query = line.join(move, 'LEFT', condition=line.move == move.id
).join(account, 'LEFT', condition=line.account == account.id
).join(account_type, 'LEFT',
condition=account.type == account_type.id
).select(move.journal, Sum(line.debit), Sum(line.credit),
where=where & red_sql,
group_by=move.journal)
cursor.execute(*query)
for journal_id, debit, credit in cursor:
# SQLite uses float for SUM
if not isinstance(debit, Decimal):
debit = Decimal(str(debit))
if not isinstance(credit, Decimal):
credit = Decimal(str(credit))
result['debit'][journal_id] = company.currency.round(debit)
result['credit'][journal_id] = company.currency.round(credit)
result['balance'][journal_id] = company.currency.round(
debit - credit)
return result
@classmethod
def write(cls, *args):
pool = Pool()
Move = pool.get('account.move')
actions = iter(args)
for journals, values in zip(actions, actions):
if 'type' in values:
for sub_journals in grouped_slice(journals):
moves = Move.search([
('journal', 'in', [j.id for j in sub_journals]),
('state', '=', 'posted')
], order=[], limit=1)
if moves:
move, = moves
raise AccessError(gettext(
'account.msg_journal_account_moves',
journal=move.journal.rec_name))
super().write(*args)
class JournalSequence(ModelSQL, CompanyValueMixin):
"Journal Sequence"
__name__ = 'account.journal.sequence'
journal = fields.Many2One(
'account.journal', "Journal", ondelete='CASCADE',
context={
'company': Eval('company', -1),
},
depends={'company'})
sequence = fields.Many2One(
'ir.sequence', "Sequence",
domain=[
('sequence_type', '=',
Id('account', 'sequence_type_account_journal')),
('company', 'in', [Eval('company', -1), None]),
],
depends={'company'})
@classmethod
def __register__(cls, module_name):
exist = backend.TableHandler.table_exist(cls._table)
super(JournalSequence, cls).__register__(module_name)
if not exist:
cls._migrate_property([], [], [])
@classmethod
def _migrate_property(cls, field_names, value_names, fields):
field_names.append('sequence')
value_names.append('sequence')
fields.append('company')
migrate_property(
'account.journal', field_names, cls, value_names,
parent='journal', fields=fields)
@classmethod
def default_sequence(cls):
pool = Pool()
ModelData = pool.get('ir.model.data')
try:
return ModelData.get_id('account', 'sequence_account_journal')
except KeyError:
return None
class JournalCashContext(ModelView):
'Journal Cash Context'
__name__ = 'account.journal.open_cash.context'
start_date = fields.Date('Start Date', required=True)
end_date = fields.Date('End Date', required=True)
@classmethod
def default_start_date(cls):
return Pool().get('ir.date').today()
default_end_date = default_start_date
class JournalPeriod(
DeactivableMixin, Workflow, ModelSQL, ModelView):
'Journal - Period'
__name__ = 'account.journal.period'
journal = fields.Many2One('account.journal', 'Journal', required=True,
ondelete='CASCADE', states=STATES)
period = fields.Many2One('account.period', 'Period', required=True,
ondelete='CASCADE', states=STATES)
icon = fields.Function(fields.Char('Icon'), 'get_icon')
state = fields.Selection([
('open', 'Open'),
('close', 'Close'),
], 'State', readonly=True, required=True, sort=False)
@classmethod
def __setup__(cls):
super(JournalPeriod, cls).__setup__()
t = cls.__table__()
cls._sql_constraints += [
('journal_period_uniq', Unique(t, t.journal, t.period),
'account.msg_journal_period_unique'),
]
cls._transitions |= set((
('open', 'close'),
('close', 'open'),
))
cls._buttons.update({
'close': {
'invisible': Eval('state') != 'open',
'depends': ['state'],
},
'reopen': {
'invisible': Eval('state') != 'close',
'depends': ['state'],
},
})
cls.active.states = STATES
@classmethod
def __register__(cls, module_name):
super(JournalPeriod, cls).__register__(module_name)
table = cls.__table_handler__(cls, module_name)
# Migration from 4.2: remove name column
table.drop_column('name')
@staticmethod
def default_state():
return 'open'
def get_rec_name(self, name):
return '%s - %s' % (self.journal.rec_name, self.period.rec_name)
@classmethod
def search_rec_name(cls, name, clause):
if clause[1].startswith('!') or clause[1].startswith('not '):
bool_op = 'AND'
else:
bool_op = 'OR'
return [bool_op,
[('journal.rec_name',) + tuple(clause[1:])],
[('period.rec_name',) + tuple(clause[1:])],
]
def get_icon(self, name):
return {
'open': 'tryton-account-open',
'close': 'tryton-account-close',
}.get(self.state)
@classmethod
def _check(cls, periods):
Move = Pool().get('account.move')
for period in periods:
moves = Move.search([
('journal', '=', period.journal.id),
('period', '=', period.period.id),
], limit=1)
if moves:
raise AccessError(
gettext('account.msg_modify_delete_journal_period_moves',
journal_period=period.rec_name))
@classmethod
def create(cls, vlist):
Period = Pool().get('account.period')
for vals in vlist:
if vals.get('period'):
period = Period(vals['period'])
if period.state != 'open':
raise AccessError(
gettext('account'
'.msg_create_journal_period_closed_period',
period=period.rec_name))
return super(JournalPeriod, cls).create(vlist)
@classmethod
def write(cls, *args):
actions = iter(args)
for journal_periods, values in zip(actions, actions):
if (values != {'state': 'close'}
and values != {'state': 'open'}):
cls._check(journal_periods)
if values.get('state') == 'open':
for journal_period in journal_periods:
if journal_period.period.state != 'open':
raise AccessError(
gettext('account'
'.msg_open_journal_period_closed_period',
journal_period=journal_period.rec_name,
period=journal_period.period.rec_name))
super(JournalPeriod, cls).write(*args)
@classmethod
def delete(cls, periods):
cls._check(periods)
super(JournalPeriod, cls).delete(periods)
@classmethod
@ModelView.button
@Workflow.transition('close')
def close(cls, periods):
'''
Close journal - period
'''
pass
@classmethod
@ModelView.button
@Workflow.transition('open')
def reopen(cls, periods):
"Open journal - period"
pass
+248
View File
@@ -0,0 +1,248 @@
<?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>
<menuitem
name="Journals"
parent="menu_account_configuration"
sequence="50"
id="menu_journal_configuration"/>
<record model="ir.ui.view" id="journal_view_form">
<field name="model">account.journal</field>
<field name="type">form</field>
<field name="name">journal_form</field>
</record>
<record model="ir.ui.view" id="journal_view_tree">
<field name="model">account.journal</field>
<field name="type">tree</field>
<field name="name">journal_tree</field>
</record>
<record model="ir.ui.view" id="journal_view_list_cash">
<field name="model">account.journal</field>
<field name="priority" eval="20"/>
<field name="type">tree</field>
<field name="name">journal_list_cash</field>
</record>
<record model="ir.action.act_window" id="act_journal_form">
<field name="name">Journals</field>
<field name="res_model">account.journal</field>
</record>
<record model="ir.action.act_window.view" id="act_journal_form_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="journal_view_tree"/>
<field name="act_window" ref="act_journal_form"/>
</record>
<record model="ir.action.act_window.view" id="act_journal_form_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="journal_view_form"/>
<field name="act_window" ref="act_journal_form"/>
</record>
<menuitem
parent="menu_journal_configuration"
action="act_journal_form"
sequence="10"
id="menu_journal_form"/>
<record model="ir.ui.view" id="journal_cash_context_view_form">
<field name="model">account.journal.open_cash.context</field>
<field name="type">form</field>
<field name="name">journal_open_cash_context</field>
</record>
<record model="ir.action.act_window" id="act_journal_open_cash">
<field name="name">Journals Cash</field>
<field name="res_model">account.journal</field>
<field name="domain" eval="[('type', '=', 'cash')]" pyson="1"/>
<field name="context_model">account.journal.open_cash.context</field>
</record>
<record model="ir.action.act_window.view"
id="act_journal_open_cash_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="journal_view_list_cash"/>
<field name="act_window" ref="act_journal_open_cash"/>
</record>
<menuitem
parent="menu_reporting"
action="act_journal_open_cash"
sequence="50"
id="menu_journal_open_cash"/>
<record model="ir.model.access" id="access_journal">
<field name="model" search="[('model', '=', 'account.journal')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_journal_account_admin">
<field name="model" search="[('model', '=', 'account.journal')]"/>
<field name="group" ref="group_account_admin"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.sequence.type" id="sequence_type_account_journal">
<field name="name">Account Journal</field>
</record>
<record model="ir.sequence.type-res.group"
id="sequence_type_account_journal_group_admin">
<field name="sequence_type" ref="sequence_type_account_journal"/>
<field name="group" ref="res.group_admin"/>
</record>
<record model="ir.sequence.type-res.group"
id="sequence_type_account_journal_group_account_admin">
<field name="sequence_type" ref="sequence_type_account_journal"/>
<field name="group" ref="group_account_admin"/>
</record>
<record model="ir.sequence" id="sequence_account_journal">
<field name="name">Default Account Journal</field>
<field name="sequence_type" ref="sequence_type_account_journal"/>
<field name="company" eval="None"/>
</record>
<record model="ir.ui.view" id="journal_period_view_form">
<field name="model">account.journal.period</field>
<field name="type">form</field>
<field name="name">journal_period_form</field>
</record>
<record model="ir.ui.view" id="journal_period_view_tree">
<field name="model">account.journal.period</field>
<field name="type">tree</field>
<field name="name">journal_period_tree</field>
</record>
<record model="ir.ui.view" id="journal_period_view_list_close">
<field name="model">account.journal.period</field>
<field name="type">tree</field>
<field name="name">journal_period_list_close</field>
</record>
<record model="ir.action.act_window" id="act_journal_period_tree">
<field name="name">Journals - Periods</field>
<field name="res_model">account.journal.period</field>
<field name="domain"
eval="[('period.fiscalyear.company.id', '=', Eval('context', {}).get('company', -1))]"
pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_journal_period_tree_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="journal_period_view_tree"/>
<field name="act_window" ref="act_journal_period_tree"/>
</record>
<menuitem
parent="menu_reporting"
action="act_journal_period_tree"
sequence="50"
id="menu_journal_period_tree"/>
<record model="ir.action.act_window" id="act_journal_period_tree2">
<field name="name">Journals - Periods</field>
<field name="res_model">account.journal.period</field>
<field name="domain"
eval="[('period.fiscalyear.company.id', '=', Eval('context', {}).get('company', -1))]"
pyson="1"/>
<field name="search_value"
eval="[('state', '=', 'open')]"
pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_journal_period_tree2_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="journal_period_view_tree"/>
<field name="act_window" ref="act_journal_period_tree2"/>
</record>
<menuitem
parent="menu_entries"
action="act_journal_period_tree2"
sequence="20"
id="menu_journal_period_tree2"/>
<record model="ir.action.act_window" id="act_journal_period_form_close">
<field name="name">Close Journals - Periods</field>
<field name="res_model">account.journal.period</field>
<field name="search_value"
eval="[('state', '=', 'open')]" pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_journal_period_form_close_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="journal_period_view_list_close"/>
<field name="act_window" ref="act_journal_period_form_close"/>
</record>
<menuitem
parent="menu_processing"
action="act_journal_period_form_close"
sequence="20"
id="menu_close_journal_period"/>
<record model="ir.model.access" id="access_journal_period">
<field name="model" search="[('model', '=', 'account.journal.period')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_journal_period_account">
<field name="model" search="[('model', '=', 'account.journal.period')]"/>
<field name="group" ref="group_account"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_journal_period_account_admin">
<field name="model" search="[('model', '=', 'account.journal.period')]"/>
<field name="group" ref="group_account_admin"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.model.button" id="journal_period_open_button">
<field name="name">open</field>
<field name="model"
search="[('model', '=', 'account.journal.period')]"/>
</record>
<record model="ir.model.button" id="journal_period_close_button">
<field name="name">close</field>
<field name="model"
search="[('model', '=', 'account.journal.period')]"/>
</record>
<record model="ir.model.button" id="journal_period_reopen_button">
<field name="name">reopen</field>
<field name="model"
search="[('model', '=', 'account.journal.period')]"/>
</record>
</data>
<data noupdate="1">
<record model="account.journal" id="journal_revenue">
<field name="name">Revenue</field>
<field name="code">REV</field>
<field name="type">revenue</field>
</record>
<record model="account.journal" id="journal_expense">
<field name="name">Expense</field>
<field name="code">EXP</field>
<field name="type">expense</field>
</record>
<record model="account.journal" id="journal_cash">
<field name="name">Cash</field>
<field name="code">CASH</field>
<field name="type">cash</field>
</record>
<record model="account.journal" id="journal_stock">
<field name="name">Stock</field>
<field name="code">STO</field>
<field name="type">general</field>
</record>
<record model="account.journal" id="journal_miscellaneous">
<field name="name">Miscellaneous</field>
<field name="code">MISC</field>
<field name="type">general</field>
</record>
</data>
</tryton>
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+41
View File
@@ -0,0 +1,41 @@
<?xml version="1.0"?>
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="lang"/>
<xsl:template match="data">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:attribute name="language"><xsl:value-of select="$lang"/></xsl:attribute>
<xsl:apply-templates select="node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="record[@id]">
<xsl:copy>
<xsl:attribute name="id">
<xsl:value-of select="attribute::id"/>_<xsl:value-of select="$lang"/>
</xsl:attribute>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="@*">
<xsl:choose>
<xsl:when test="name()='id' or name()='lang'"></xsl:when>
<xsl:when test="name()='ref'">
<xsl:attribute name="ref">
<xsl:value-of select="."/>_<xsl:value-of select="$lang"/>
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:copy/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="node()">
<xsl:choose>
<xsl:when test="@lang=$lang or not(@lang)">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:when>
</xsl:choose>
</xsl:template>
</xsl:transform>
+250
View File
@@ -0,0 +1,250 @@
<?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_no_period_date">
<field name="text">To continue, you must create a period for the date "%(date)s".</field>
</record>
<record model="ir.message" id="msg_modify_delete_period_moves">
<field name="text">You cannot modify or delete period "%(period)s" because it contains moves.</field>
</record>
<record model="ir.message" id="msg_create_period_closed_fiscalyear">
<field name="text">You cannot create a period in fiscal year "%(fiscalyear)s" because it is closed.</field>
</record>
<record model="ir.message" id="msg_open_period_closed_fiscalyear">
<field name="text">You cannot reopen period "%(period)s" because its fiscal year "%(fiscalyear)s" is closed.</field>
</record>
<record model="ir.message" id="msg_change_period_post_move_sequence">
<field name="text">You cannot change the post move sequence in period "%(period)s" because it has posted moves.</field>
</record>
<record model="ir.message" id="msg_close_period_non_posted_moves">
<field name="text">To close period "%(period)s" you must post the moves "%(moves)s".</field>
</record>
<record model="ir.message" id="msg_period_overlap">
<field name="text">The periods "%(first)s" and "%(second)s" overlap, you must use different dates.</field>
</record>
<record model="ir.message" id="msg_period_same_sequence">
<field name="text">You cannot use the same post move sequence for the periods "%(first)s" and "%(second)s" because they are from different fiscal years.</field>
</record>
<record model="ir.message" id="msg_period_fiscalyear_dates">
<field name="text">The dates for period "%(period)s" must be between the dates of its fiscal year "%(fiscalyear)s".</field>
</record>
<record model="ir.message" id="msg_journal_period_unique">
<field name="text">You can create only one journal per period.</field>
</record>
<record model="ir.message" id="msg_modify_delete_journal_period_moves">
<field name="text">You cannot modify or delete journal-period "%(journal_period)s" because it contains moves.</field>
</record>
<record model="ir.message" id="msg_create_journal_period_closed_period">
<field name="text">You cannot create a journal-period in closed period "%(period)s".</field>
</record>
<record model="ir.message" id="msg_open_journal_period_closed_period">
<field name="text">You cannot reopen journal-period "%(journal_period)s" in closed period "%(period)s".</field>
</record>
<record model="ir.message" id="msg_tax_update_unit_price_with_parent">
<field name="text">You cannot set "Update Unit Price" on child tax "%(tax)s".</field>
</record>
<record model="ir.message" id="msg_modify_tax_line_closed_period">
<field name="text">You cannot add/modify/delete tax lines in closed period "%(period)s".</field>
</record>
<record model="ir.message" id="msg_change_fiscalyear_post_move_sequence">
<field name="text">You cannot change the post move sequence on fiscal year "%(fiscalyear)s" because it contains posted moves.</field>
</record>
<record model="ir.message" id="msg_no_fiscalyear_date">
<field name="text">To continue, you must create a fiscal year for the date "%(date)s".</field>
</record>
<record model="ir.message" id="msg_fiscalyear_overlap">
<field name="text">The fiscal years "%(first)s" and "%(second)s" overlap, you must use different dates.</field>
</record>
<record model="ir.message" id="msg_open_fiscalyear_earlier">
<field name="text">The open fiscal year "%(open)s" can not be before the close fiscal year "%(closed)s".</field>
</record>
<record model="ir.message" id="msg_fiscalyear_different_post_move_sequence">
<field name="text">The fiscal years "%(first)s" and "%(second)s" cannot have the same post move sequence, you must use different sequences.</field>
</record>
<record model="ir.message" id="msg_close_fiscalyear_account_balance_not_zero">
<field name="text">To close the fiscal year, the balance of account "%(account)s" must be zero.</field>
</record>
<record model="ir.message" id="msg_close_fiscalyear_earlier">
<field name="text">To close fiscal year "%(fiscalyear)s", you must close all earlier fiscal years.</field>
</record>
<record model="ir.message" id="msg_reopen_fiscalyear_later">
<field name="text">To reopen fiscal year "%(fiscalyear)s", you must reopen all later fiscal years.</field>
</record>
<record model="ir.message" id="msg_party_missing_receivable_account">
<field name="text">To continue, you must define a receivable account for party "%(party)s".</field>
</record>
<record model="ir.message" id="msg_party_missing_payable_account">
<field name="text">To continue, you must define a payable account for party "%(party)s".</field>
</record>
<record model="ir.message" id="msg_erase_party_receivable_payable">
<field name="text">You cannot erase party "%(party)s" while they have pending receivable/payable with company "%(company)s".</field>
</record>
<record model="ir.message" id="msg_only_one_debit_credit_types">
<field name="text">Account can have only one of the debit or credit type set.</field>
</record>
<record model="ir.message" id="msg_delete_account_with_move_lines">
<field name="text">You cannot delete account "%(account)s" because it has move lines.</field>
</record>
<record model="ir.message" id="msg_account_invalid_type_second_currency">
<field name="text">To set a second currency for account "%(account)s", it must not have a type "payable", "revenue", "receivable" nor "expense".</field>
</record>
<record model="ir.message" id="msg_account_invalid_deferral_second_currency">
<field name="text">To set a second currency for account "%(account)s", it must be deferral.</field>
</record>
<record model="ir.message" id="msg_account_invalid_lines_second_currency">
<field name="text">To set a second currency for account "%(account)s", its lines must have the same second currency "%(currency)s".</field>
</record>
<record model="ir.message" id="msg_account_closed_lines">
<field name="text">You cannot close account "%(account)s" because it has move lines.</field>
</record>
<record model="ir.message" id="msg_account_no_type_lines">
<field name="text">You cannot remove type of account "%(account)s" because it has move lines.</field>
</record>
<record model="ir.message" id="msg_deferral_unique">
<field name="text">Deferral must be unique by account and fiscal year.</field>
</record>
<record model="ir.message" id="msg_write_deferral">
<field name="text">You cannot modify any account deferrals.</field>
</record>
<record model="ir.message" id="msg_account_chart_exists">
<field name="text">A chart of accounts already exists for company "%(company)s".</field>
</record>
<record model="ir.message" id="msg_post_empty_move">
<field name="text">To post move "%(move)s", you must fill in its lines.</field>
</record>
<record model="ir.message" id="msg_post_unbalanced_move">
<field name="text">To post move "%(move)s", you must balance all its lines debits and credits.</field>
</record>
<record model="ir.message" id="msg_modify_posted_moved">
<field name="text">You cannot modify posted move "%(move)s".</field>
</record>
<record model="ir.message" id="msg_move_date_outside_period">
<field name="text">The date of move "%(move)s" is outside the period, you must change the date or the period.</field>
</record>
<record model="ir.message" id="msg_move_cancel_closed_period">
<field name="text">The period of move "%(move)s" is closed.
Use the current period to cancel the move?</field>
</record>
<record model="ir.message" id="msg_move_template_invalid_expression">
<field name="text">Failed to evaluate expression "%(expression)s" from template "%(template)s" with error:
"%(error)s"</field>
</record>
<record model="ir.message" id="msg_move_template_expession_not_number">
<field name="text">The value "%(value)s" of "%(expression)s" from template "%(template)s" is not a number.</field>
</record>
<record model="ir.message" id="msg_write_reconciliation">
<field name="text">You cannot modify any reconciliation.</field>
</record>
<record model="ir.message" id="msg_reconciliation_delete_delegated">
<field name="text">The reconciliation "%(reconciliation)s" is delegated to the line "%(line)s".
You may need to cancel its move "%(move)s".</field>
</record>
<record model="ir.message" id="msg_reconciliation_line_not_valid">
<field name="text">You cannot reconcile non-valid line "%(line)s".</field>
</record>
<record model="ir.message" id="msg_reconciliation_different_accounts">
<field name="text">You cannot reconcile line "%(line)s" with others because its account "%(account1)s" is different from "%(account2)s".</field>
</record>
<record model="ir.message" id="msg_reconciliation_account_not_reconcile">
<field name="text">To reconcile line "%(line)s", you must set its account "%(account)s" as reconcilable.</field>
</record>
<record model="ir.message" id="msg_reconciliation_different_parties">
<field name="text">You cannot reconcile line "%(line)s" with others because its party "%(party1)s" is different from "%(party2)s".</field>
</record>
<record model="ir.message" id="msg_reconciliation_unbalanced">
<field name="text">To reconcile lines, they must have the same debit "%(debit)s" and credit "%(credit)s".</field>
</record>
<record model="ir.message" id="msg_line_debit_credit">
<field name="text">You cannot set both debit and credit on the line.</field>
</record>
<record model="ir.message" id="msg_line_second_currency_sign">
<field name="text">You must set the sign for second currency to match the sign of debit - credit.</field>
</record>
<record model="ir.message" id="msg_modify_line_closed_journal_period">
<field name="text">You cannot add/modify/delete lines on closed journal-period "%(journal_period)s".</field>
</record>
<record model="ir.message" id="msg_modify_line_posted_move">
<field name="text">You cannot modify line "%(line)s" from posted move "%(move)s".</field>
</record>
<record model="ir.message" id="msg_modify_line_reconciled">
<field name="text">You cannot modify reconciled line "%(line)s".</field>
</record>
<record model="ir.message" id="msg_line_closed_account">
<field name="text">To create a line on account "%(account)s", you must set a type or unclose it.</field>
</record>
<record model="ir.message" id="msg_line_already_reconciled">
<field name="text">You cannot reconcile already reconciled line "%(line)s".</field>
</record>
<record model="ir.message" id="msg_line_party_required">
<field name="text">To create a line on account "%(account)s", you must set a party on line "%(line)s".</field>
</record>
<record model="ir.message" id="msg_line_party_set">
<field name="text">To create a line on account "%(account)s", you must remove the party on line "%(line)s".</field>
</record>
<record model="ir.message" id="msg_group_line">
<field name="text">Line "%(line)s" can not be grouped.</field>
</record>
<record model="ir.message" id="msg_group_line_single">
<field name="text">You cannot group a single line.</field>
</record>
<record model="ir.message" id="msg_group_line_many_parties">
<field name="text">You cannot group lines with different parties.</field>
</record>
<record model="ir.message" id="msg_group_line_same_company">
<field name="text">You cannot group lines of different companies.</field>
</record>
<record model="ir.message" id="msg_group_line_same_second_currency">
<field name="text">You cannot group lines of different second currencies.</field>
</record>
<record model="ir.message" id="msg_group_line_maximum_account">
<field name="text">You cannot group lines from more than 2 different accounts.</field>
</record>
<record model="ir.message" id="msg_reschedule_line_same_origins">
<field name="text">You cannot reschedule lines with different origins.</field>
</record>
<record model="ir.message" id="msg_reschedule_line_same_currency">
<field name="text">You cannot reschedule lines with different currencies.</field>
</record>
<record model="ir.message" id="msg_reschedule_line_same_account">
<field name="text">You cannot reschedule lines with different accounts.</field>
</record>
<record model="ir.message" id="msg_reschedule_line_same_party">
<field name="text">You cannot reschedule lines with different parties.</field>
</record>
<record model="ir.message" id="msg_reschedule_line_wrong_amount">
<field name="text">To reschedule the lines you must change the terms to have a total amount of %(total_amount)s instead of %(amount)s.</field>
</record>
<record model="ir.message" id="msg_delegate_line_same_company">
<field name="text">You cannot delegate together lines of different companies.</field>
</record>
<record model="ir.message" id="msg_delegate_line_same_origins">
<field name="text">You cannot delegate together lines with different origins.</field>
</record>
<record model="ir.message" id="msg_cancel_line_delegated">
<field name="text">The moves "%(moves)s" contain grouped lines, cancelling them will ungroup the lines.</field>
</record>
<record model="ir.message" id="msg_company_change_currency">
<field name="text">You cannot change the currency of a company which is associated with account moves.</field>
</record>
<record model="ir.message" id="msg_close_period_inactive_accounts">
<field name="text">To close period "%(period)s", you must balance the inactive account "%(account)s".</field>
</record>
<record model="ir.message" id="msg_journal_account_moves">
<field name="text">You cannot change the type of journal "%(journal)s" because it has posted moves.</field>
</record>
</data>
</tryton>
+374
View File
@@ -0,0 +1,374 @@
<?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="account.account.type.template"
id="account_type_template_minimal">
<field name="name" lang="en">Minimal Account Type Chart</field>
<field name="name" lang="bg">Минимален сметкоплан</field>
<field name="name" lang="ca">Pla de tipus de compte mínim</field>
<field name="name" lang="de">Minimaler Kontentypenplan</field>
<field name="name" lang="es">Tipo de cuenta de plan mínimo</field>
<field name="name" lang="fr">Plan de type de compte minimal</field>
<field name="name" lang="nl">Basaal rekeningschematype</field>
<field name="name" lang="pt">Plano de tipos de conta mínimo</field>
<field name="name" lang="ru">Минимальная схема типов счетов</field>
<field name="name" lang="sl">Minimalni kontni načrt</field>
<field name="sequence" eval="10"/>
<field name="statement" eval="None"/>
</record>
<record model="account.account.type.template"
id="account_type_template_asset">
<field name="name" lang="en">Asset</field>
<field name="name" lang="bg">Притежание</field>
<field name="name" lang="ca">Actiu</field>
<field name="name" lang="de">Aktiva</field>
<field name="name" lang="es">Activo</field>
<field name="name" lang="fr">Actif</field>
<field name="name" lang="nl">Activa</field>
<field name="name" lang="pt">Ativo</field>
<field name="name" lang="ru">Активы</field>
<field name="name" lang="sl">Sredstvo</field>
<field name="sequence" eval="10"/>
<field name="parent" ref="account_type_template_minimal"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
</record>
<record model="account.account.type.template"
id="account_type_template_asset_current">
<field name="name" lang="en">Current</field>
<field name="name" lang="bg">Текущ</field>
<field name="name" lang="ca">Banc</field>
<field name="name" lang="de">Umlaufvermögen</field>
<field name="name" lang="es">Banco</field>
<field name="name" lang="fr">Courant</field>
<field name="name" lang="nl">Actueel</field>
<field name="name" lang="pt">Circulante</field>
<field name="name" lang="ru">Текущие</field>
<field name="name" lang="sl">Kratkoročno</field>
<field name="parent" ref="account_type_template_asset"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="10"/>
</record>
<record model="account.account.type.template"
id="account_type_template_asset_current_cash">
<field name="name" lang="en">Cash</field>
<field name="name" lang="bg">В брой</field>
<field name="name" lang="ca">Banc</field>
<field name="name" lang="de">Barvermögen</field>
<field name="name" lang="es">Efectivo</field>
<field name="name" lang="fr">Cash</field>
<field name="name" lang="nl">Kas</field>
<field name="name" lang="pt">Caixa</field>
<field name="name" lang="ru">Наличные</field>
<field name="name" lang="sl">Denar</field>
<field name="parent" ref="account_type_template_asset_current"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="10"/>
</record>
<record model="account.account.type.template"
id="account_type_template_asset_current_receivable">
<field name="name" lang="en">Receivable</field>
<field name="name" lang="bg">В брой</field>
<field name="name" lang="ca">Banc</field>
<field name="name" lang="de">Barvermögen</field>
<field name="name" lang="es">Efectivo</field>
<field name="name" lang="fr">Recevable</field>
<field name="name" lang="nl">Kas</field>
<field name="name" lang="pt">A Receber</field>
<field name="name" lang="ru">Наличные</field>
<field name="name" lang="sl">Denar</field>
<field name="parent" ref="account_type_template_asset_current"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="20"/>
<field name="receivable" eval="True"/>
</record>
<record model="account.account.type.template"
id="account_type_template_asset_long_term">
<field name="name" lang="en">Long-term</field>
<field name="name" lang="bg">Дългосрочен</field>
<field name="name" lang="ca">A llarg termini</field>
<field name="name" lang="de">Anlagevermögen</field>
<field name="name" lang="es">A largo plazo</field>
<field name="name" lang="fr">Long terme</field>
<field name="name" lang="nl">Langlopend</field>
<field name="name" lang="pt">Longo Prazo</field>
<field name="name" lang="ru">Долгосрочные</field>
<field name="name" lang="sl">Dolgoročno</field>
<field name="parent" ref="account_type_template_asset"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="20"/>
</record>
<record model="account.account.type.template"
id="account_type_template_liability">
<field name="name" lang="en">Liability</field>
<field name="name" lang="bg">Дълг</field>
<field name="name" lang="ca">Passiu</field>
<field name="name" lang="de">Verbindlichkeiten</field>
<field name="name" lang="es">Pasivo</field>
<field name="name" lang="fr">Passif</field>
<field name="name" lang="nl">Verplichting</field>
<field name="name" lang="pt">Passivo</field>
<field name="name" lang="ru">Пассивы</field>
<field name="name" lang="sl">Obveznosti</field>
<field name="sequence" eval="20"/>
<field name="parent" ref="account_type_template_minimal"/>
<field name="statement">balance</field>
</record>
<record model="account.account.type.template"
id="account_type_template_liability_current">
<field name="name" lang="en">Current</field>
<field name="name" lang="bg">Текущ</field>
<field name="name" lang="ca">Banc</field>
<field name="name" lang="de">Umlaufvermögen</field>
<field name="name" lang="es">Banco</field>
<field name="name" lang="fr">Courant</field>
<field name="name" lang="nl">Actueel</field>
<field name="name" lang="pt">Circulante</field>
<field name="name" lang="ru">Текущие</field>
<field name="name" lang="sl">Kratkoročno</field>
<field name="parent" ref="account_type_template_liability"/>
<field name="statement">balance</field>
<field name="sequence" eval="10"/>
</record>
<record model="account.account.type.template"
id="account_type_template_liability_current_payable">
<field name="name" lang="en">Payable</field>
<field name="name" lang="bg">Разходен</field>
<field name="name" lang="ca">A pagar</field>
<field name="name" lang="de">Verbindlichkeiten</field>
<field name="name" lang="es">A pagar</field>
<field name="name" lang="fr">À payer</field>
<field name="name" lang="nl">Te betalen</field>
<field name="name" lang="pt">A Pagar</field>
<field name="name" lang="ru">Подлежащие уплате</field>
<field name="name" lang="sl">Obveznosti</field>
<field name="parent" ref="account_type_template_liability_current"/>
<field name="statement">balance</field>
<field name="sequence" eval="10"/>
<field name="payable" eval="True"/>
</record>
<record model="account.account.type.template"
id="account_type_template_liability_current_tax">
<field name="name" lang="en">Tax</field>
<field name="name" lang="bg">Данък</field>
<field name="name" lang="ca">Impost</field>
<field name="name" lang="de">Steuer</field>
<field name="name" lang="es">Impuesto</field>
<field name="name" lang="fr">Taxe</field>
<field name="name" lang="nl">Belasting</field>
<field name="name" lang="pt">Tributos</field>
<field name="name" lang="ru">Налоги</field>
<field name="name" lang="sl">Davek</field>
<field name="parent" ref="account_type_template_liability_current"/>
<field name="statement">balance</field>
<field name="sequence" eval="20"/>
</record>
<record model="account.account.type.template"
id="account_type_template_liability_long_term">
<field name="name" lang="en">Long-term</field>
<field name="name" lang="bg">Дългосрочен</field>
<field name="name" lang="ca">A llarg termini</field>
<field name="name" lang="de">Anlagevermögen</field>
<field name="name" lang="es">A largo plazo</field>
<field name="name" lang="fr">Long terme</field>
<field name="name" lang="nl">Langlopend</field>
<field name="name" lang="pt">Longo Prazo</field>
<field name="name" lang="ru">Долгосрочные</field>
<field name="name" lang="sl">Dolgoročno</field>
<field name="parent" ref="account_type_template_liability"/>
<field name="statement">balance</field>
<field name="sequence" eval="20"/>
</record>
<record model="account.account.type.template"
id="account_type_template_equity">
<field name="name" lang="en">Equity</field>
<field name="name" lang="bg">Капитал</field>
<field name="name" lang="ca">Patrimoni</field>
<field name="name" lang="de">Kapital</field>
<field name="name" lang="es">Patrimonio</field>
<field name="name" lang="fr">Capitaux propres</field>
<field name="name" lang="nl">Eigen vermogen</field>
<field name="name" lang="pt">Patrimônio Líquido</field>
<field name="name" lang="ru">Собственные средства</field>
<field name="name" lang="sl">Kapital</field>
<field name="sequence" eval="30"/>
<field name="parent" ref="account_type_template_minimal"/>
<field name="statement">balance</field>
</record>
<record model="account.account.type.template"
id="account_type_template_income">
<field name="name" lang="en">Income</field>
<field name="name" lang="bg">Приход</field>
<field name="name" lang="ca">Benefici</field>
<field name="name" lang="de">Erträge</field>
<field name="name" lang="es">Beneficio</field>
<field name="name" lang="fr">Revenu</field>
<field name="name" lang="nl">Inkomsten</field>
<field name="name" lang="pt">Resultados</field>
<field name="name" lang="ru">Поступления</field>
<field name="name" lang="sl">Prihodki</field>
<field name="parent" ref="account_type_template_equity"/>
<field name="statement">income</field>
<field name="sequence" eval="40"/>
</record>
<record model="account.account.type.template"
id="account_type_template_revenue">
<field name="name" lang="en">Revenue</field>
<field name="name" lang="bg">Приход</field>
<field name="name" lang="ca">Ingressos</field>
<field name="name" lang="de">Ertrag</field>
<field name="name" lang="es">Ingresos</field>
<field name="name" lang="fr">Produit</field>
<field name="name" lang="nl">Opbrengst</field>
<field name="name" lang="pt">Receitas</field>
<field name="name" lang="ru">Доходы</field>
<field name="name" lang="sl">Prihodki</field>
<field name="parent" ref="account_type_template_income"/>
<field name="statement">income</field>
<field name="sequence" eval="10"/>
<field name="revenue" eval="True"/>
</record>
<record model="account.account.type.template"
id="account_type_template_expense">
<field name="name" lang="en">Expense</field>
<field name="name" lang="bg">Разход</field>
<field name="name" lang="ca">Despesa</field>
<field name="name" lang="de">Aufwand</field>
<field name="name" lang="es">Gastos</field>
<field name="name" lang="fr">Charge</field>
<field name="name" lang="nl">Kosten</field>
<field name="name" lang="pt">Despesas</field>
<field name="name" lang="ru">Расходы</field>
<field name="name" lang="sl">Odhodki</field>
<field name="parent" ref="account_type_template_income"/>
<field name="statement">income</field>
<field name="sequence" eval="20"/>
<field name="expense" eval="True"/>
</record>
<record model="account.account.type.template"
id="account_type_template_off_balance">
<field name="name" lang="en">Off-Balance</field>
<field name="name" lang="bg">Неутрално салдо</field>
<field name="name" lang="ca">Fora de balanç</field>
<field name="name" lang="de">Bilanzneutral</field>
<field name="name" lang="es">Fuera de balance</field>
<field name="name" lang="fr">Hors bilan</field>
<field name="name" lang="nl">Buiten balans</field>
<field name="name" lang="pt">Fora do Balanço</field>
<field name="name" lang="ru">Внебалансовые</field>
<field name="name" lang="sl">Zunaj bilance</field>
<field name="sequence" eval="60"/>
<field name="parent" ref="account_type_template_minimal"/>
<field name="statement">off-balance</field>
</record>
<record model="account.account.template" id="account_template_root">
<field name="name" lang="en">Minimal Account Chart</field>
<field name="name" lang="bg">Минимална графика на сметката</field>
<field name="name" lang="ca">Pla de comptes mínim</field>
<field name="name" lang="de">Minimaler Kontenplan</field>
<field name="name" lang="es">Plan de cuentas mínimo</field>
<field name="name" lang="fr">Plan comptable minimal</field>
<field name="name" lang="nl">Basaal rekeningschema</field>
<field name="name" lang="pt">Plano de Contas Mínimo</field>
<field name="name" lang="ru">Минимальная схема счетов</field>
<field name="name" lang="sl">Minimalni kontni načrt</field>
<field name="type" ref="account_type_template_minimal"/>
<field name="closed" eval="True"/>
</record>
<record model="account.account.template" id="account_template_receivable">
<field name="name" lang="en">Main Receivable</field>
<field name="name" lang="bg">Основна приходна сметка</field>
<field name="name" lang="ca">A cobrar principal</field>
<field name="name" lang="de">Forderungen</field>
<field name="name" lang="es">A cobrar principal</field>
<field name="name" lang="fr">Compte client</field>
<field name="name" lang="nl">Basisrekening ontvangen</field>
<field name="name" lang="pt">Clientes Principal</field>
<field name="name" lang="ru">Основной Подлежащий получению</field>
<field name="name" lang="sl">Glavne terjatve</field>
<field name="type" ref="account_type_template_asset_current_receivable"/>
<field name="reconcile" eval="True"/>
<field name="party_required" eval="True"/>
<field name="parent" ref="account_template_root"/>
</record>
<record model="account.account.template" id="account_template_payable">
<field name="name" lang="en">Main Payable</field>
<field name="name" lang="bg">Основна разходна сметка</field>
<field name="name" lang="ca">A pagar principal</field>
<field name="name" lang="de">Verbindlichkeiten</field>
<field name="name" lang="es">A pagar principal</field>
<field name="name" lang="fr">Compte fournisseur</field>
<field name="name" lang="nl">Basisrekening betalen</field>
<field name="name" lang="pt">Fornecedores Principal</field>
<field name="name" lang="ru">Основной Подлежащий уплате</field>
<field name="name" lang="sl">Glavne obveznosti</field>
<field name="type" ref="account_type_template_liability_current_payable"/>
<field name="reconcile" eval="True"/>
<field name="party_required" eval="True"/>
<field name="parent" ref="account_template_root"/>
</record>
<record model="account.account.template" id="account_template_revenue">
<field name="name" lang="en">Main Revenue</field>
<field name="name" lang="bg">Основна приходи</field>
<field name="name" lang="ca">Ingrés principal</field>
<field name="name" lang="de">Ertrag</field>
<field name="name" lang="es">Ingresos principal</field>
<field name="name" lang="fr">Compte de produits</field>
<field name="name" lang="nl">Basis opbrengstrekening</field>
<field name="name" lang="pt">Receitas Principal</field>
<field name="name" lang="ru">Основной Доходы</field>
<field name="name" lang="sl">Glavni prihodki</field>
<field name="type" ref="account_type_template_revenue"/>
<field name="parent" ref="account_template_root"/>
</record>
<record model="account.account.template" id="account_template_expense">
<field name="name" lang="en">Main Expense</field>
<field name="name" lang="bg">Основена разходи</field>
<field name="name" lang="ca">Despesa principal</field>
<field name="name" lang="de">Aufwand</field>
<field name="name" lang="es">Gastos principal</field>
<field name="name" lang="fr">Compte de charges</field>
<field name="name" lang="nl">Basis kostenrekening</field>
<field name="name" lang="pt">Despesas Principal</field>
<field name="name" lang="ru">Основной Расходы</field>
<field name="name" lang="sl">Glavni odhodki</field>
<field name="type" ref="account_type_template_expense"/>
<field name="parent" ref="account_template_root"/>
</record>
<record model="account.account.template" id="account_template_cash">
<field name="name" lang="en">Main Cash</field>
<field name="name" lang="bg">Основна наличност</field>
<field name="name" lang="ca">Efectiu principal</field>
<field name="name" lang="de">Barvermögen</field>
<field name="name" lang="es">Efectivo principal</field>
<field name="name" lang="fr">Compte de liquidité</field>
<field name="name" lang="nl">Basis kasrekening</field>
<field name="name" lang="pt">Caixa Principal</field>
<field name="name" lang="ru">Основной Наличные</field>
<field name="name" lang="sl">Glavna denarna sredstva</field>
<field name="type" ref="account_type_template_asset_current_cash"/>
<field name="parent" ref="account_template_root"/>
</record>
<record model="account.account.template" id="account_template_tax">
<field name="name" lang="en">Main Tax</field>
<field name="name" lang="bg">Основна данъци</field>
<field name="name" lang="ca">Impost principal</field>
<field name="name" lang="de">Steuern</field>
<field name="name" lang="es">Impuestos principal</field>
<field name="name" lang="fr">Compte de taxes</field>
<field name="name" lang="nl">Basis belastingrekening</field>
<field name="name" lang="pt">Tributos Principal</field>
<field name="name" lang="ru">Основной Налоги</field>
<field name="name" lang="sl">Glavni davki</field>
<field name="type" ref="account_type_template_liability_current_tax"/>
<field name="parent" ref="account_template_root"/>
</record>
</data>
</tryton>
+358
View File
@@ -0,0 +1,358 @@
<?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 language="bg">
<record id="account_type_template_minimal_bg" model="account.account.type.template">
<field name="name">Минимален сметкоплан</field>
<field name="sequence" eval="10"/>
<field name="statement" eval="None"/>
</record>
<record id="account_type_template_asset_bg" model="account.account.type.template">
<field name="name">Притежание</field>
<field name="sequence" eval="10"/>
<field name="parent" ref="account_type_template_minimal_bg"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
</record>
<record id="account_type_template_asset_current_bg" model="account.account.type.template">
<field name="name">Текущ</field>
<field name="parent" ref="account_type_template_asset_bg"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_asset_current_cash_bg" model="account.account.type.template">
<field name="name">В брой</field>
<field name="parent" ref="account_type_template_asset_current_bg"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_asset_current_receivable_bg" model="account.account.type.template">
<field name="name">В брой</field>
<field name="parent" ref="account_type_template_asset_current_bg"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="20"/>
<field name="receivable" eval="True"/>
</record>
<record id="account_type_template_asset_long_term_bg" model="account.account.type.template">
<field name="name">Дългосрочен</field>
<field name="parent" ref="account_type_template_asset_bg"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_liability_bg" model="account.account.type.template">
<field name="name">Дълг</field>
<field name="sequence" eval="20"/>
<field name="parent" ref="account_type_template_minimal_bg"/>
<field name="statement">balance</field>
</record>
<record id="account_type_template_liability_current_bg" model="account.account.type.template">
<field name="name">Текущ</field>
<field name="parent" ref="account_type_template_liability_bg"/>
<field name="statement">balance</field>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_liability_current_payable_bg" model="account.account.type.template">
<field name="name">Разходен</field>
<field name="parent" ref="account_type_template_liability_current_bg"/>
<field name="statement">balance</field>
<field name="sequence" eval="10"/>
<field name="payable" eval="True"/>
</record>
<record id="account_type_template_liability_current_tax_bg" model="account.account.type.template">
<field name="name">Данък</field>
<field name="parent" ref="account_type_template_liability_current_bg"/>
<field name="statement">balance</field>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_liability_long_term_bg" model="account.account.type.template">
<field name="name">Дългосрочен</field>
<field name="parent" ref="account_type_template_liability_bg"/>
<field name="statement">balance</field>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_equity_bg" model="account.account.type.template">
<field name="name">Капитал</field>
<field name="sequence" eval="30"/>
<field name="parent" ref="account_type_template_minimal_bg"/>
<field name="statement">balance</field>
</record>
<record id="account_type_template_income_bg" model="account.account.type.template">
<field name="name">Приход</field>
<field name="parent" ref="account_type_template_equity_bg"/>
<field name="statement">income</field>
<field name="sequence" eval="40"/>
</record>
<record id="account_type_template_revenue_bg" model="account.account.type.template">
<field name="name">Приход</field>
<field name="parent" ref="account_type_template_income_bg"/>
<field name="statement">income</field>
<field name="sequence" eval="10"/>
<field name="revenue" eval="True"/>
</record>
<record id="account_type_template_expense_bg" model="account.account.type.template">
<field name="name">Разход</field>
<field name="parent" ref="account_type_template_income_bg"/>
<field name="statement">income</field>
<field name="sequence" eval="20"/>
<field name="expense" eval="True"/>
</record>
<record id="account_type_template_off_balance_bg" model="account.account.type.template">
<field name="name">Неутрално салдо</field>
<field name="sequence" eval="60"/>
<field name="parent" ref="account_type_template_minimal_bg"/>
<field name="statement">off-balance</field>
</record>
<record id="account_template_root_bg" model="account.account.template">
<field name="name">Минимална графика на сметката</field>
<field name="type" ref="account_type_template_minimal_bg"/>
<field name="closed" eval="True"/>
</record>
<record id="account_template_receivable_bg" model="account.account.template">
<field name="name">Основна приходна сметка</field>
<field name="type" ref="account_type_template_asset_current_receivable_bg"/>
<field name="reconcile" eval="True"/>
<field name="party_required" eval="True"/>
<field name="parent" ref="account_template_root_bg"/>
</record>
<record id="account_template_payable_bg" model="account.account.template">
<field name="name">Основна разходна сметка</field>
<field name="type" ref="account_type_template_liability_current_payable_bg"/>
<field name="reconcile" eval="True"/>
<field name="party_required" eval="True"/>
<field name="parent" ref="account_template_root_bg"/>
</record>
<record id="account_template_revenue_bg" model="account.account.template">
<field name="name">Основна приходи</field>
<field name="type" ref="account_type_template_revenue_bg"/>
<field name="parent" ref="account_template_root_bg"/>
</record>
<record id="account_template_expense_bg" model="account.account.template">
<field name="name">Основена разходи</field>
<field name="type" ref="account_type_template_expense_bg"/>
<field name="parent" ref="account_template_root_bg"/>
</record>
<record id="account_template_cash_bg" model="account.account.template">
<field name="name">Основна наличност</field>
<field name="type" ref="account_type_template_asset_current_cash_bg"/>
<field name="parent" ref="account_template_root_bg"/>
</record>
<record id="account_template_tax_bg" model="account.account.template">
<field name="name">Основна данъци</field>
<field name="type" ref="account_type_template_liability_current_tax_bg"/>
<field name="parent" ref="account_template_root_bg"/>
</record>
</data>
</tryton>
+358
View File
@@ -0,0 +1,358 @@
<?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 language="ca">
<record id="account_type_template_minimal_ca" model="account.account.type.template">
<field name="name">Pla de tipus de compte mínim</field>
<field name="sequence" eval="10"/>
<field name="statement" eval="None"/>
</record>
<record id="account_type_template_asset_ca" model="account.account.type.template">
<field name="name">Actiu</field>
<field name="sequence" eval="10"/>
<field name="parent" ref="account_type_template_minimal_ca"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
</record>
<record id="account_type_template_asset_current_ca" model="account.account.type.template">
<field name="name">Banc</field>
<field name="parent" ref="account_type_template_asset_ca"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_asset_current_cash_ca" model="account.account.type.template">
<field name="name">Banc</field>
<field name="parent" ref="account_type_template_asset_current_ca"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_asset_current_receivable_ca" model="account.account.type.template">
<field name="name">Banc</field>
<field name="parent" ref="account_type_template_asset_current_ca"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="20"/>
<field name="receivable" eval="True"/>
</record>
<record id="account_type_template_asset_long_term_ca" model="account.account.type.template">
<field name="name">A llarg termini</field>
<field name="parent" ref="account_type_template_asset_ca"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_liability_ca" model="account.account.type.template">
<field name="name">Passiu</field>
<field name="sequence" eval="20"/>
<field name="parent" ref="account_type_template_minimal_ca"/>
<field name="statement">balance</field>
</record>
<record id="account_type_template_liability_current_ca" model="account.account.type.template">
<field name="name">Banc</field>
<field name="parent" ref="account_type_template_liability_ca"/>
<field name="statement">balance</field>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_liability_current_payable_ca" model="account.account.type.template">
<field name="name">A pagar</field>
<field name="parent" ref="account_type_template_liability_current_ca"/>
<field name="statement">balance</field>
<field name="sequence" eval="10"/>
<field name="payable" eval="True"/>
</record>
<record id="account_type_template_liability_current_tax_ca" model="account.account.type.template">
<field name="name">Impost</field>
<field name="parent" ref="account_type_template_liability_current_ca"/>
<field name="statement">balance</field>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_liability_long_term_ca" model="account.account.type.template">
<field name="name">A llarg termini</field>
<field name="parent" ref="account_type_template_liability_ca"/>
<field name="statement">balance</field>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_equity_ca" model="account.account.type.template">
<field name="name">Patrimoni</field>
<field name="sequence" eval="30"/>
<field name="parent" ref="account_type_template_minimal_ca"/>
<field name="statement">balance</field>
</record>
<record id="account_type_template_income_ca" model="account.account.type.template">
<field name="name">Benefici</field>
<field name="parent" ref="account_type_template_equity_ca"/>
<field name="statement">income</field>
<field name="sequence" eval="40"/>
</record>
<record id="account_type_template_revenue_ca" model="account.account.type.template">
<field name="name">Ingressos</field>
<field name="parent" ref="account_type_template_income_ca"/>
<field name="statement">income</field>
<field name="sequence" eval="10"/>
<field name="revenue" eval="True"/>
</record>
<record id="account_type_template_expense_ca" model="account.account.type.template">
<field name="name">Despesa</field>
<field name="parent" ref="account_type_template_income_ca"/>
<field name="statement">income</field>
<field name="sequence" eval="20"/>
<field name="expense" eval="True"/>
</record>
<record id="account_type_template_off_balance_ca" model="account.account.type.template">
<field name="name">Fora de balanç</field>
<field name="sequence" eval="60"/>
<field name="parent" ref="account_type_template_minimal_ca"/>
<field name="statement">off-balance</field>
</record>
<record id="account_template_root_ca" model="account.account.template">
<field name="name">Pla de comptes mínim</field>
<field name="type" ref="account_type_template_minimal_ca"/>
<field name="closed" eval="True"/>
</record>
<record id="account_template_receivable_ca" model="account.account.template">
<field name="name">A cobrar principal</field>
<field name="type" ref="account_type_template_asset_current_receivable_ca"/>
<field name="reconcile" eval="True"/>
<field name="party_required" eval="True"/>
<field name="parent" ref="account_template_root_ca"/>
</record>
<record id="account_template_payable_ca" model="account.account.template">
<field name="name">A pagar principal</field>
<field name="type" ref="account_type_template_liability_current_payable_ca"/>
<field name="reconcile" eval="True"/>
<field name="party_required" eval="True"/>
<field name="parent" ref="account_template_root_ca"/>
</record>
<record id="account_template_revenue_ca" model="account.account.template">
<field name="name">Ingrés principal</field>
<field name="type" ref="account_type_template_revenue_ca"/>
<field name="parent" ref="account_template_root_ca"/>
</record>
<record id="account_template_expense_ca" model="account.account.template">
<field name="name">Despesa principal</field>
<field name="type" ref="account_type_template_expense_ca"/>
<field name="parent" ref="account_template_root_ca"/>
</record>
<record id="account_template_cash_ca" model="account.account.template">
<field name="name">Efectiu principal</field>
<field name="type" ref="account_type_template_asset_current_cash_ca"/>
<field name="parent" ref="account_template_root_ca"/>
</record>
<record id="account_template_tax_ca" model="account.account.template">
<field name="name">Impost principal</field>
<field name="type" ref="account_type_template_liability_current_tax_ca"/>
<field name="parent" ref="account_template_root_ca"/>
</record>
</data>
</tryton>
+358
View File
@@ -0,0 +1,358 @@
<?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 language="de">
<record id="account_type_template_minimal_de" model="account.account.type.template">
<field name="name">Minimaler Kontentypenplan</field>
<field name="sequence" eval="10"/>
<field name="statement" eval="None"/>
</record>
<record id="account_type_template_asset_de" model="account.account.type.template">
<field name="name">Aktiva</field>
<field name="sequence" eval="10"/>
<field name="parent" ref="account_type_template_minimal_de"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
</record>
<record id="account_type_template_asset_current_de" model="account.account.type.template">
<field name="name">Umlaufvermögen</field>
<field name="parent" ref="account_type_template_asset_de"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_asset_current_cash_de" model="account.account.type.template">
<field name="name">Barvermögen</field>
<field name="parent" ref="account_type_template_asset_current_de"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_asset_current_receivable_de" model="account.account.type.template">
<field name="name">Barvermögen</field>
<field name="parent" ref="account_type_template_asset_current_de"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="20"/>
<field name="receivable" eval="True"/>
</record>
<record id="account_type_template_asset_long_term_de" model="account.account.type.template">
<field name="name">Anlagevermögen</field>
<field name="parent" ref="account_type_template_asset_de"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_liability_de" model="account.account.type.template">
<field name="name">Verbindlichkeiten</field>
<field name="sequence" eval="20"/>
<field name="parent" ref="account_type_template_minimal_de"/>
<field name="statement">balance</field>
</record>
<record id="account_type_template_liability_current_de" model="account.account.type.template">
<field name="name">Umlaufvermögen</field>
<field name="parent" ref="account_type_template_liability_de"/>
<field name="statement">balance</field>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_liability_current_payable_de" model="account.account.type.template">
<field name="name">Verbindlichkeiten</field>
<field name="parent" ref="account_type_template_liability_current_de"/>
<field name="statement">balance</field>
<field name="sequence" eval="10"/>
<field name="payable" eval="True"/>
</record>
<record id="account_type_template_liability_current_tax_de" model="account.account.type.template">
<field name="name">Steuer</field>
<field name="parent" ref="account_type_template_liability_current_de"/>
<field name="statement">balance</field>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_liability_long_term_de" model="account.account.type.template">
<field name="name">Anlagevermögen</field>
<field name="parent" ref="account_type_template_liability_de"/>
<field name="statement">balance</field>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_equity_de" model="account.account.type.template">
<field name="name">Kapital</field>
<field name="sequence" eval="30"/>
<field name="parent" ref="account_type_template_minimal_de"/>
<field name="statement">balance</field>
</record>
<record id="account_type_template_income_de" model="account.account.type.template">
<field name="name">Erträge</field>
<field name="parent" ref="account_type_template_equity_de"/>
<field name="statement">income</field>
<field name="sequence" eval="40"/>
</record>
<record id="account_type_template_revenue_de" model="account.account.type.template">
<field name="name">Ertrag</field>
<field name="parent" ref="account_type_template_income_de"/>
<field name="statement">income</field>
<field name="sequence" eval="10"/>
<field name="revenue" eval="True"/>
</record>
<record id="account_type_template_expense_de" model="account.account.type.template">
<field name="name">Aufwand</field>
<field name="parent" ref="account_type_template_income_de"/>
<field name="statement">income</field>
<field name="sequence" eval="20"/>
<field name="expense" eval="True"/>
</record>
<record id="account_type_template_off_balance_de" model="account.account.type.template">
<field name="name">Bilanzneutral</field>
<field name="sequence" eval="60"/>
<field name="parent" ref="account_type_template_minimal_de"/>
<field name="statement">off-balance</field>
</record>
<record id="account_template_root_de" model="account.account.template">
<field name="name">Minimaler Kontenplan</field>
<field name="type" ref="account_type_template_minimal_de"/>
<field name="closed" eval="True"/>
</record>
<record id="account_template_receivable_de" model="account.account.template">
<field name="name">Forderungen</field>
<field name="type" ref="account_type_template_asset_current_receivable_de"/>
<field name="reconcile" eval="True"/>
<field name="party_required" eval="True"/>
<field name="parent" ref="account_template_root_de"/>
</record>
<record id="account_template_payable_de" model="account.account.template">
<field name="name">Verbindlichkeiten</field>
<field name="type" ref="account_type_template_liability_current_payable_de"/>
<field name="reconcile" eval="True"/>
<field name="party_required" eval="True"/>
<field name="parent" ref="account_template_root_de"/>
</record>
<record id="account_template_revenue_de" model="account.account.template">
<field name="name">Ertrag</field>
<field name="type" ref="account_type_template_revenue_de"/>
<field name="parent" ref="account_template_root_de"/>
</record>
<record id="account_template_expense_de" model="account.account.template">
<field name="name">Aufwand</field>
<field name="type" ref="account_type_template_expense_de"/>
<field name="parent" ref="account_template_root_de"/>
</record>
<record id="account_template_cash_de" model="account.account.template">
<field name="name">Barvermögen</field>
<field name="type" ref="account_type_template_asset_current_cash_de"/>
<field name="parent" ref="account_template_root_de"/>
</record>
<record id="account_template_tax_de" model="account.account.template">
<field name="name">Steuern</field>
<field name="type" ref="account_type_template_liability_current_tax_de"/>
<field name="parent" ref="account_template_root_de"/>
</record>
</data>
</tryton>
+358
View File
@@ -0,0 +1,358 @@
<?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 language="en">
<record id="account_type_template_minimal_en" model="account.account.type.template">
<field name="name">Minimal Account Type Chart</field>
<field name="sequence" eval="10"/>
<field name="statement" eval="None"/>
</record>
<record id="account_type_template_asset_en" model="account.account.type.template">
<field name="name">Asset</field>
<field name="sequence" eval="10"/>
<field name="parent" ref="account_type_template_minimal_en"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
</record>
<record id="account_type_template_asset_current_en" model="account.account.type.template">
<field name="name">Current</field>
<field name="parent" ref="account_type_template_asset_en"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_asset_current_cash_en" model="account.account.type.template">
<field name="name">Cash</field>
<field name="parent" ref="account_type_template_asset_current_en"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_asset_current_receivable_en" model="account.account.type.template">
<field name="name">Receivable</field>
<field name="parent" ref="account_type_template_asset_current_en"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="20"/>
<field name="receivable" eval="True"/>
</record>
<record id="account_type_template_asset_long_term_en" model="account.account.type.template">
<field name="name">Long-term</field>
<field name="parent" ref="account_type_template_asset_en"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_liability_en" model="account.account.type.template">
<field name="name">Liability</field>
<field name="sequence" eval="20"/>
<field name="parent" ref="account_type_template_minimal_en"/>
<field name="statement">balance</field>
</record>
<record id="account_type_template_liability_current_en" model="account.account.type.template">
<field name="name">Current</field>
<field name="parent" ref="account_type_template_liability_en"/>
<field name="statement">balance</field>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_liability_current_payable_en" model="account.account.type.template">
<field name="name">Payable</field>
<field name="parent" ref="account_type_template_liability_current_en"/>
<field name="statement">balance</field>
<field name="sequence" eval="10"/>
<field name="payable" eval="True"/>
</record>
<record id="account_type_template_liability_current_tax_en" model="account.account.type.template">
<field name="name">Tax</field>
<field name="parent" ref="account_type_template_liability_current_en"/>
<field name="statement">balance</field>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_liability_long_term_en" model="account.account.type.template">
<field name="name">Long-term</field>
<field name="parent" ref="account_type_template_liability_en"/>
<field name="statement">balance</field>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_equity_en" model="account.account.type.template">
<field name="name">Equity</field>
<field name="sequence" eval="30"/>
<field name="parent" ref="account_type_template_minimal_en"/>
<field name="statement">balance</field>
</record>
<record id="account_type_template_income_en" model="account.account.type.template">
<field name="name">Income</field>
<field name="parent" ref="account_type_template_equity_en"/>
<field name="statement">income</field>
<field name="sequence" eval="40"/>
</record>
<record id="account_type_template_revenue_en" model="account.account.type.template">
<field name="name">Revenue</field>
<field name="parent" ref="account_type_template_income_en"/>
<field name="statement">income</field>
<field name="sequence" eval="10"/>
<field name="revenue" eval="True"/>
</record>
<record id="account_type_template_expense_en" model="account.account.type.template">
<field name="name">Expense</field>
<field name="parent" ref="account_type_template_income_en"/>
<field name="statement">income</field>
<field name="sequence" eval="20"/>
<field name="expense" eval="True"/>
</record>
<record id="account_type_template_off_balance_en" model="account.account.type.template">
<field name="name">Off-Balance</field>
<field name="sequence" eval="60"/>
<field name="parent" ref="account_type_template_minimal_en"/>
<field name="statement">off-balance</field>
</record>
<record id="account_template_root_en" model="account.account.template">
<field name="name">Minimal Account Chart</field>
<field name="type" ref="account_type_template_minimal_en"/>
<field name="closed" eval="True"/>
</record>
<record id="account_template_receivable_en" model="account.account.template">
<field name="name">Main Receivable</field>
<field name="type" ref="account_type_template_asset_current_receivable_en"/>
<field name="reconcile" eval="True"/>
<field name="party_required" eval="True"/>
<field name="parent" ref="account_template_root_en"/>
</record>
<record id="account_template_payable_en" model="account.account.template">
<field name="name">Main Payable</field>
<field name="type" ref="account_type_template_liability_current_payable_en"/>
<field name="reconcile" eval="True"/>
<field name="party_required" eval="True"/>
<field name="parent" ref="account_template_root_en"/>
</record>
<record id="account_template_revenue_en" model="account.account.template">
<field name="name">Main Revenue</field>
<field name="type" ref="account_type_template_revenue_en"/>
<field name="parent" ref="account_template_root_en"/>
</record>
<record id="account_template_expense_en" model="account.account.template">
<field name="name">Main Expense</field>
<field name="type" ref="account_type_template_expense_en"/>
<field name="parent" ref="account_template_root_en"/>
</record>
<record id="account_template_cash_en" model="account.account.template">
<field name="name">Main Cash</field>
<field name="type" ref="account_type_template_asset_current_cash_en"/>
<field name="parent" ref="account_template_root_en"/>
</record>
<record id="account_template_tax_en" model="account.account.template">
<field name="name">Main Tax</field>
<field name="type" ref="account_type_template_liability_current_tax_en"/>
<field name="parent" ref="account_template_root_en"/>
</record>
</data>
</tryton>
+358
View File
@@ -0,0 +1,358 @@
<?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 language="es">
<record id="account_type_template_minimal_es" model="account.account.type.template">
<field name="name">Tipo de cuenta de plan mínimo</field>
<field name="sequence" eval="10"/>
<field name="statement" eval="None"/>
</record>
<record id="account_type_template_asset_es" model="account.account.type.template">
<field name="name">Activo</field>
<field name="sequence" eval="10"/>
<field name="parent" ref="account_type_template_minimal_es"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
</record>
<record id="account_type_template_asset_current_es" model="account.account.type.template">
<field name="name">Banco</field>
<field name="parent" ref="account_type_template_asset_es"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_asset_current_cash_es" model="account.account.type.template">
<field name="name">Efectivo</field>
<field name="parent" ref="account_type_template_asset_current_es"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_asset_current_receivable_es" model="account.account.type.template">
<field name="name">Efectivo</field>
<field name="parent" ref="account_type_template_asset_current_es"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="20"/>
<field name="receivable" eval="True"/>
</record>
<record id="account_type_template_asset_long_term_es" model="account.account.type.template">
<field name="name">A largo plazo</field>
<field name="parent" ref="account_type_template_asset_es"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_liability_es" model="account.account.type.template">
<field name="name">Pasivo</field>
<field name="sequence" eval="20"/>
<field name="parent" ref="account_type_template_minimal_es"/>
<field name="statement">balance</field>
</record>
<record id="account_type_template_liability_current_es" model="account.account.type.template">
<field name="name">Banco</field>
<field name="parent" ref="account_type_template_liability_es"/>
<field name="statement">balance</field>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_liability_current_payable_es" model="account.account.type.template">
<field name="name">A pagar</field>
<field name="parent" ref="account_type_template_liability_current_es"/>
<field name="statement">balance</field>
<field name="sequence" eval="10"/>
<field name="payable" eval="True"/>
</record>
<record id="account_type_template_liability_current_tax_es" model="account.account.type.template">
<field name="name">Impuesto</field>
<field name="parent" ref="account_type_template_liability_current_es"/>
<field name="statement">balance</field>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_liability_long_term_es" model="account.account.type.template">
<field name="name">A largo plazo</field>
<field name="parent" ref="account_type_template_liability_es"/>
<field name="statement">balance</field>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_equity_es" model="account.account.type.template">
<field name="name">Patrimonio</field>
<field name="sequence" eval="30"/>
<field name="parent" ref="account_type_template_minimal_es"/>
<field name="statement">balance</field>
</record>
<record id="account_type_template_income_es" model="account.account.type.template">
<field name="name">Beneficio</field>
<field name="parent" ref="account_type_template_equity_es"/>
<field name="statement">income</field>
<field name="sequence" eval="40"/>
</record>
<record id="account_type_template_revenue_es" model="account.account.type.template">
<field name="name">Ingresos</field>
<field name="parent" ref="account_type_template_income_es"/>
<field name="statement">income</field>
<field name="sequence" eval="10"/>
<field name="revenue" eval="True"/>
</record>
<record id="account_type_template_expense_es" model="account.account.type.template">
<field name="name">Gastos</field>
<field name="parent" ref="account_type_template_income_es"/>
<field name="statement">income</field>
<field name="sequence" eval="20"/>
<field name="expense" eval="True"/>
</record>
<record id="account_type_template_off_balance_es" model="account.account.type.template">
<field name="name">Fuera de balance</field>
<field name="sequence" eval="60"/>
<field name="parent" ref="account_type_template_minimal_es"/>
<field name="statement">off-balance</field>
</record>
<record id="account_template_root_es" model="account.account.template">
<field name="name">Plan de cuentas mínimo</field>
<field name="type" ref="account_type_template_minimal_es"/>
<field name="closed" eval="True"/>
</record>
<record id="account_template_receivable_es" model="account.account.template">
<field name="name">A cobrar principal</field>
<field name="type" ref="account_type_template_asset_current_receivable_es"/>
<field name="reconcile" eval="True"/>
<field name="party_required" eval="True"/>
<field name="parent" ref="account_template_root_es"/>
</record>
<record id="account_template_payable_es" model="account.account.template">
<field name="name">A pagar principal</field>
<field name="type" ref="account_type_template_liability_current_payable_es"/>
<field name="reconcile" eval="True"/>
<field name="party_required" eval="True"/>
<field name="parent" ref="account_template_root_es"/>
</record>
<record id="account_template_revenue_es" model="account.account.template">
<field name="name">Ingresos principal</field>
<field name="type" ref="account_type_template_revenue_es"/>
<field name="parent" ref="account_template_root_es"/>
</record>
<record id="account_template_expense_es" model="account.account.template">
<field name="name">Gastos principal</field>
<field name="type" ref="account_type_template_expense_es"/>
<field name="parent" ref="account_template_root_es"/>
</record>
<record id="account_template_cash_es" model="account.account.template">
<field name="name">Efectivo principal</field>
<field name="type" ref="account_type_template_asset_current_cash_es"/>
<field name="parent" ref="account_template_root_es"/>
</record>
<record id="account_template_tax_es" model="account.account.template">
<field name="name">Impuestos principal</field>
<field name="type" ref="account_type_template_liability_current_tax_es"/>
<field name="parent" ref="account_template_root_es"/>
</record>
</data>
</tryton>
+358
View File
@@ -0,0 +1,358 @@
<?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 language="fr">
<record id="account_type_template_minimal_fr" model="account.account.type.template">
<field name="name">Plan de type de compte minimal</field>
<field name="sequence" eval="10"/>
<field name="statement" eval="None"/>
</record>
<record id="account_type_template_asset_fr" model="account.account.type.template">
<field name="name">Actif</field>
<field name="sequence" eval="10"/>
<field name="parent" ref="account_type_template_minimal_fr"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
</record>
<record id="account_type_template_asset_current_fr" model="account.account.type.template">
<field name="name">Courant</field>
<field name="parent" ref="account_type_template_asset_fr"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_asset_current_cash_fr" model="account.account.type.template">
<field name="name">Cash</field>
<field name="parent" ref="account_type_template_asset_current_fr"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_asset_current_receivable_fr" model="account.account.type.template">
<field name="name">Recevable</field>
<field name="parent" ref="account_type_template_asset_current_fr"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="20"/>
<field name="receivable" eval="True"/>
</record>
<record id="account_type_template_asset_long_term_fr" model="account.account.type.template">
<field name="name">Long terme</field>
<field name="parent" ref="account_type_template_asset_fr"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_liability_fr" model="account.account.type.template">
<field name="name">Passif</field>
<field name="sequence" eval="20"/>
<field name="parent" ref="account_type_template_minimal_fr"/>
<field name="statement">balance</field>
</record>
<record id="account_type_template_liability_current_fr" model="account.account.type.template">
<field name="name">Courant</field>
<field name="parent" ref="account_type_template_liability_fr"/>
<field name="statement">balance</field>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_liability_current_payable_fr" model="account.account.type.template">
<field name="name">À payer</field>
<field name="parent" ref="account_type_template_liability_current_fr"/>
<field name="statement">balance</field>
<field name="sequence" eval="10"/>
<field name="payable" eval="True"/>
</record>
<record id="account_type_template_liability_current_tax_fr" model="account.account.type.template">
<field name="name">Taxe</field>
<field name="parent" ref="account_type_template_liability_current_fr"/>
<field name="statement">balance</field>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_liability_long_term_fr" model="account.account.type.template">
<field name="name">Long terme</field>
<field name="parent" ref="account_type_template_liability_fr"/>
<field name="statement">balance</field>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_equity_fr" model="account.account.type.template">
<field name="name">Capitaux propres</field>
<field name="sequence" eval="30"/>
<field name="parent" ref="account_type_template_minimal_fr"/>
<field name="statement">balance</field>
</record>
<record id="account_type_template_income_fr" model="account.account.type.template">
<field name="name">Revenu</field>
<field name="parent" ref="account_type_template_equity_fr"/>
<field name="statement">income</field>
<field name="sequence" eval="40"/>
</record>
<record id="account_type_template_revenue_fr" model="account.account.type.template">
<field name="name">Produit</field>
<field name="parent" ref="account_type_template_income_fr"/>
<field name="statement">income</field>
<field name="sequence" eval="10"/>
<field name="revenue" eval="True"/>
</record>
<record id="account_type_template_expense_fr" model="account.account.type.template">
<field name="name">Charge</field>
<field name="parent" ref="account_type_template_income_fr"/>
<field name="statement">income</field>
<field name="sequence" eval="20"/>
<field name="expense" eval="True"/>
</record>
<record id="account_type_template_off_balance_fr" model="account.account.type.template">
<field name="name">Hors bilan</field>
<field name="sequence" eval="60"/>
<field name="parent" ref="account_type_template_minimal_fr"/>
<field name="statement">off-balance</field>
</record>
<record id="account_template_root_fr" model="account.account.template">
<field name="name">Plan comptable minimal</field>
<field name="type" ref="account_type_template_minimal_fr"/>
<field name="closed" eval="True"/>
</record>
<record id="account_template_receivable_fr" model="account.account.template">
<field name="name">Compte client</field>
<field name="type" ref="account_type_template_asset_current_receivable_fr"/>
<field name="reconcile" eval="True"/>
<field name="party_required" eval="True"/>
<field name="parent" ref="account_template_root_fr"/>
</record>
<record id="account_template_payable_fr" model="account.account.template">
<field name="name">Compte fournisseur</field>
<field name="type" ref="account_type_template_liability_current_payable_fr"/>
<field name="reconcile" eval="True"/>
<field name="party_required" eval="True"/>
<field name="parent" ref="account_template_root_fr"/>
</record>
<record id="account_template_revenue_fr" model="account.account.template">
<field name="name">Compte de produits</field>
<field name="type" ref="account_type_template_revenue_fr"/>
<field name="parent" ref="account_template_root_fr"/>
</record>
<record id="account_template_expense_fr" model="account.account.template">
<field name="name">Compte de charges</field>
<field name="type" ref="account_type_template_expense_fr"/>
<field name="parent" ref="account_template_root_fr"/>
</record>
<record id="account_template_cash_fr" model="account.account.template">
<field name="name">Compte de liquidité</field>
<field name="type" ref="account_type_template_asset_current_cash_fr"/>
<field name="parent" ref="account_template_root_fr"/>
</record>
<record id="account_template_tax_fr" model="account.account.template">
<field name="name">Compte de taxes</field>
<field name="type" ref="account_type_template_liability_current_tax_fr"/>
<field name="parent" ref="account_template_root_fr"/>
</record>
</data>
</tryton>
+358
View File
@@ -0,0 +1,358 @@
<?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 language="nl">
<record id="account_type_template_minimal_nl" model="account.account.type.template">
<field name="name">Basaal rekeningschematype</field>
<field name="sequence" eval="10"/>
<field name="statement" eval="None"/>
</record>
<record id="account_type_template_asset_nl" model="account.account.type.template">
<field name="name">Activa</field>
<field name="sequence" eval="10"/>
<field name="parent" ref="account_type_template_minimal_nl"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
</record>
<record id="account_type_template_asset_current_nl" model="account.account.type.template">
<field name="name">Actueel</field>
<field name="parent" ref="account_type_template_asset_nl"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_asset_current_cash_nl" model="account.account.type.template">
<field name="name">Kas</field>
<field name="parent" ref="account_type_template_asset_current_nl"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_asset_current_receivable_nl" model="account.account.type.template">
<field name="name">Kas</field>
<field name="parent" ref="account_type_template_asset_current_nl"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="20"/>
<field name="receivable" eval="True"/>
</record>
<record id="account_type_template_asset_long_term_nl" model="account.account.type.template">
<field name="name">Langlopend</field>
<field name="parent" ref="account_type_template_asset_nl"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_liability_nl" model="account.account.type.template">
<field name="name">Verplichting</field>
<field name="sequence" eval="20"/>
<field name="parent" ref="account_type_template_minimal_nl"/>
<field name="statement">balance</field>
</record>
<record id="account_type_template_liability_current_nl" model="account.account.type.template">
<field name="name">Actueel</field>
<field name="parent" ref="account_type_template_liability_nl"/>
<field name="statement">balance</field>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_liability_current_payable_nl" model="account.account.type.template">
<field name="name">Te betalen</field>
<field name="parent" ref="account_type_template_liability_current_nl"/>
<field name="statement">balance</field>
<field name="sequence" eval="10"/>
<field name="payable" eval="True"/>
</record>
<record id="account_type_template_liability_current_tax_nl" model="account.account.type.template">
<field name="name">Belasting</field>
<field name="parent" ref="account_type_template_liability_current_nl"/>
<field name="statement">balance</field>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_liability_long_term_nl" model="account.account.type.template">
<field name="name">Langlopend</field>
<field name="parent" ref="account_type_template_liability_nl"/>
<field name="statement">balance</field>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_equity_nl" model="account.account.type.template">
<field name="name">Eigen vermogen</field>
<field name="sequence" eval="30"/>
<field name="parent" ref="account_type_template_minimal_nl"/>
<field name="statement">balance</field>
</record>
<record id="account_type_template_income_nl" model="account.account.type.template">
<field name="name">Inkomsten</field>
<field name="parent" ref="account_type_template_equity_nl"/>
<field name="statement">income</field>
<field name="sequence" eval="40"/>
</record>
<record id="account_type_template_revenue_nl" model="account.account.type.template">
<field name="name">Opbrengst</field>
<field name="parent" ref="account_type_template_income_nl"/>
<field name="statement">income</field>
<field name="sequence" eval="10"/>
<field name="revenue" eval="True"/>
</record>
<record id="account_type_template_expense_nl" model="account.account.type.template">
<field name="name">Kosten</field>
<field name="parent" ref="account_type_template_income_nl"/>
<field name="statement">income</field>
<field name="sequence" eval="20"/>
<field name="expense" eval="True"/>
</record>
<record id="account_type_template_off_balance_nl" model="account.account.type.template">
<field name="name">Buiten balans</field>
<field name="sequence" eval="60"/>
<field name="parent" ref="account_type_template_minimal_nl"/>
<field name="statement">off-balance</field>
</record>
<record id="account_template_root_nl" model="account.account.template">
<field name="name">Basaal rekeningschema</field>
<field name="type" ref="account_type_template_minimal_nl"/>
<field name="closed" eval="True"/>
</record>
<record id="account_template_receivable_nl" model="account.account.template">
<field name="name">Basisrekening ontvangen</field>
<field name="type" ref="account_type_template_asset_current_receivable_nl"/>
<field name="reconcile" eval="True"/>
<field name="party_required" eval="True"/>
<field name="parent" ref="account_template_root_nl"/>
</record>
<record id="account_template_payable_nl" model="account.account.template">
<field name="name">Basisrekening betalen</field>
<field name="type" ref="account_type_template_liability_current_payable_nl"/>
<field name="reconcile" eval="True"/>
<field name="party_required" eval="True"/>
<field name="parent" ref="account_template_root_nl"/>
</record>
<record id="account_template_revenue_nl" model="account.account.template">
<field name="name">Basis opbrengstrekening</field>
<field name="type" ref="account_type_template_revenue_nl"/>
<field name="parent" ref="account_template_root_nl"/>
</record>
<record id="account_template_expense_nl" model="account.account.template">
<field name="name">Basis kostenrekening</field>
<field name="type" ref="account_type_template_expense_nl"/>
<field name="parent" ref="account_template_root_nl"/>
</record>
<record id="account_template_cash_nl" model="account.account.template">
<field name="name">Basis kasrekening</field>
<field name="type" ref="account_type_template_asset_current_cash_nl"/>
<field name="parent" ref="account_template_root_nl"/>
</record>
<record id="account_template_tax_nl" model="account.account.template">
<field name="name">Basis belastingrekening</field>
<field name="type" ref="account_type_template_liability_current_tax_nl"/>
<field name="parent" ref="account_template_root_nl"/>
</record>
</data>
</tryton>
+358
View File
@@ -0,0 +1,358 @@
<?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 language="pt">
<record id="account_type_template_minimal_pt" model="account.account.type.template">
<field name="name">Plano de tipos de conta mínimo</field>
<field name="sequence" eval="10"/>
<field name="statement" eval="None"/>
</record>
<record id="account_type_template_asset_pt" model="account.account.type.template">
<field name="name">Ativo</field>
<field name="sequence" eval="10"/>
<field name="parent" ref="account_type_template_minimal_pt"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
</record>
<record id="account_type_template_asset_current_pt" model="account.account.type.template">
<field name="name">Circulante</field>
<field name="parent" ref="account_type_template_asset_pt"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_asset_current_cash_pt" model="account.account.type.template">
<field name="name">Caixa</field>
<field name="parent" ref="account_type_template_asset_current_pt"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_asset_current_receivable_pt" model="account.account.type.template">
<field name="name">A Receber</field>
<field name="parent" ref="account_type_template_asset_current_pt"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="20"/>
<field name="receivable" eval="True"/>
</record>
<record id="account_type_template_asset_long_term_pt" model="account.account.type.template">
<field name="name">Longo Prazo</field>
<field name="parent" ref="account_type_template_asset_pt"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_liability_pt" model="account.account.type.template">
<field name="name">Passivo</field>
<field name="sequence" eval="20"/>
<field name="parent" ref="account_type_template_minimal_pt"/>
<field name="statement">balance</field>
</record>
<record id="account_type_template_liability_current_pt" model="account.account.type.template">
<field name="name">Circulante</field>
<field name="parent" ref="account_type_template_liability_pt"/>
<field name="statement">balance</field>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_liability_current_payable_pt" model="account.account.type.template">
<field name="name">A Pagar</field>
<field name="parent" ref="account_type_template_liability_current_pt"/>
<field name="statement">balance</field>
<field name="sequence" eval="10"/>
<field name="payable" eval="True"/>
</record>
<record id="account_type_template_liability_current_tax_pt" model="account.account.type.template">
<field name="name">Tributos</field>
<field name="parent" ref="account_type_template_liability_current_pt"/>
<field name="statement">balance</field>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_liability_long_term_pt" model="account.account.type.template">
<field name="name">Longo Prazo</field>
<field name="parent" ref="account_type_template_liability_pt"/>
<field name="statement">balance</field>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_equity_pt" model="account.account.type.template">
<field name="name">Patrimônio Líquido</field>
<field name="sequence" eval="30"/>
<field name="parent" ref="account_type_template_minimal_pt"/>
<field name="statement">balance</field>
</record>
<record id="account_type_template_income_pt" model="account.account.type.template">
<field name="name">Resultados</field>
<field name="parent" ref="account_type_template_equity_pt"/>
<field name="statement">income</field>
<field name="sequence" eval="40"/>
</record>
<record id="account_type_template_revenue_pt" model="account.account.type.template">
<field name="name">Receitas</field>
<field name="parent" ref="account_type_template_income_pt"/>
<field name="statement">income</field>
<field name="sequence" eval="10"/>
<field name="revenue" eval="True"/>
</record>
<record id="account_type_template_expense_pt" model="account.account.type.template">
<field name="name">Despesas</field>
<field name="parent" ref="account_type_template_income_pt"/>
<field name="statement">income</field>
<field name="sequence" eval="20"/>
<field name="expense" eval="True"/>
</record>
<record id="account_type_template_off_balance_pt" model="account.account.type.template">
<field name="name">Fora do Balanço</field>
<field name="sequence" eval="60"/>
<field name="parent" ref="account_type_template_minimal_pt"/>
<field name="statement">off-balance</field>
</record>
<record id="account_template_root_pt" model="account.account.template">
<field name="name">Plano de Contas Mínimo</field>
<field name="type" ref="account_type_template_minimal_pt"/>
<field name="closed" eval="True"/>
</record>
<record id="account_template_receivable_pt" model="account.account.template">
<field name="name">Clientes Principal</field>
<field name="type" ref="account_type_template_asset_current_receivable_pt"/>
<field name="reconcile" eval="True"/>
<field name="party_required" eval="True"/>
<field name="parent" ref="account_template_root_pt"/>
</record>
<record id="account_template_payable_pt" model="account.account.template">
<field name="name">Fornecedores Principal</field>
<field name="type" ref="account_type_template_liability_current_payable_pt"/>
<field name="reconcile" eval="True"/>
<field name="party_required" eval="True"/>
<field name="parent" ref="account_template_root_pt"/>
</record>
<record id="account_template_revenue_pt" model="account.account.template">
<field name="name">Receitas Principal</field>
<field name="type" ref="account_type_template_revenue_pt"/>
<field name="parent" ref="account_template_root_pt"/>
</record>
<record id="account_template_expense_pt" model="account.account.template">
<field name="name">Despesas Principal</field>
<field name="type" ref="account_type_template_expense_pt"/>
<field name="parent" ref="account_template_root_pt"/>
</record>
<record id="account_template_cash_pt" model="account.account.template">
<field name="name">Caixa Principal</field>
<field name="type" ref="account_type_template_asset_current_cash_pt"/>
<field name="parent" ref="account_template_root_pt"/>
</record>
<record id="account_template_tax_pt" model="account.account.template">
<field name="name">Tributos Principal</field>
<field name="type" ref="account_type_template_liability_current_tax_pt"/>
<field name="parent" ref="account_template_root_pt"/>
</record>
</data>
</tryton>
+358
View File
@@ -0,0 +1,358 @@
<?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 language="ru">
<record id="account_type_template_minimal_ru" model="account.account.type.template">
<field name="name">Минимальная схема типов счетов</field>
<field name="sequence" eval="10"/>
<field name="statement" eval="None"/>
</record>
<record id="account_type_template_asset_ru" model="account.account.type.template">
<field name="name">Активы</field>
<field name="sequence" eval="10"/>
<field name="parent" ref="account_type_template_minimal_ru"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
</record>
<record id="account_type_template_asset_current_ru" model="account.account.type.template">
<field name="name">Текущие</field>
<field name="parent" ref="account_type_template_asset_ru"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_asset_current_cash_ru" model="account.account.type.template">
<field name="name">Наличные</field>
<field name="parent" ref="account_type_template_asset_current_ru"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_asset_current_receivable_ru" model="account.account.type.template">
<field name="name">Наличные</field>
<field name="parent" ref="account_type_template_asset_current_ru"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="20"/>
<field name="receivable" eval="True"/>
</record>
<record id="account_type_template_asset_long_term_ru" model="account.account.type.template">
<field name="name">Долгосрочные</field>
<field name="parent" ref="account_type_template_asset_ru"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_liability_ru" model="account.account.type.template">
<field name="name">Пассивы</field>
<field name="sequence" eval="20"/>
<field name="parent" ref="account_type_template_minimal_ru"/>
<field name="statement">balance</field>
</record>
<record id="account_type_template_liability_current_ru" model="account.account.type.template">
<field name="name">Текущие</field>
<field name="parent" ref="account_type_template_liability_ru"/>
<field name="statement">balance</field>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_liability_current_payable_ru" model="account.account.type.template">
<field name="name">Подлежащие уплате</field>
<field name="parent" ref="account_type_template_liability_current_ru"/>
<field name="statement">balance</field>
<field name="sequence" eval="10"/>
<field name="payable" eval="True"/>
</record>
<record id="account_type_template_liability_current_tax_ru" model="account.account.type.template">
<field name="name">Налоги</field>
<field name="parent" ref="account_type_template_liability_current_ru"/>
<field name="statement">balance</field>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_liability_long_term_ru" model="account.account.type.template">
<field name="name">Долгосрочные</field>
<field name="parent" ref="account_type_template_liability_ru"/>
<field name="statement">balance</field>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_equity_ru" model="account.account.type.template">
<field name="name">Собственные средства</field>
<field name="sequence" eval="30"/>
<field name="parent" ref="account_type_template_minimal_ru"/>
<field name="statement">balance</field>
</record>
<record id="account_type_template_income_ru" model="account.account.type.template">
<field name="name">Поступления</field>
<field name="parent" ref="account_type_template_equity_ru"/>
<field name="statement">income</field>
<field name="sequence" eval="40"/>
</record>
<record id="account_type_template_revenue_ru" model="account.account.type.template">
<field name="name">Доходы</field>
<field name="parent" ref="account_type_template_income_ru"/>
<field name="statement">income</field>
<field name="sequence" eval="10"/>
<field name="revenue" eval="True"/>
</record>
<record id="account_type_template_expense_ru" model="account.account.type.template">
<field name="name">Расходы</field>
<field name="parent" ref="account_type_template_income_ru"/>
<field name="statement">income</field>
<field name="sequence" eval="20"/>
<field name="expense" eval="True"/>
</record>
<record id="account_type_template_off_balance_ru" model="account.account.type.template">
<field name="name">Внебалансовые</field>
<field name="sequence" eval="60"/>
<field name="parent" ref="account_type_template_minimal_ru"/>
<field name="statement">off-balance</field>
</record>
<record id="account_template_root_ru" model="account.account.template">
<field name="name">Минимальная схема счетов</field>
<field name="type" ref="account_type_template_minimal_ru"/>
<field name="closed" eval="True"/>
</record>
<record id="account_template_receivable_ru" model="account.account.template">
<field name="name">Основной Подлежащий получению</field>
<field name="type" ref="account_type_template_asset_current_receivable_ru"/>
<field name="reconcile" eval="True"/>
<field name="party_required" eval="True"/>
<field name="parent" ref="account_template_root_ru"/>
</record>
<record id="account_template_payable_ru" model="account.account.template">
<field name="name">Основной Подлежащий уплате</field>
<field name="type" ref="account_type_template_liability_current_payable_ru"/>
<field name="reconcile" eval="True"/>
<field name="party_required" eval="True"/>
<field name="parent" ref="account_template_root_ru"/>
</record>
<record id="account_template_revenue_ru" model="account.account.template">
<field name="name">Основной Доходы</field>
<field name="type" ref="account_type_template_revenue_ru"/>
<field name="parent" ref="account_template_root_ru"/>
</record>
<record id="account_template_expense_ru" model="account.account.template">
<field name="name">Основной Расходы</field>
<field name="type" ref="account_type_template_expense_ru"/>
<field name="parent" ref="account_template_root_ru"/>
</record>
<record id="account_template_cash_ru" model="account.account.template">
<field name="name">Основной Наличные</field>
<field name="type" ref="account_type_template_asset_current_cash_ru"/>
<field name="parent" ref="account_template_root_ru"/>
</record>
<record id="account_template_tax_ru" model="account.account.template">
<field name="name">Основной Налоги</field>
<field name="type" ref="account_type_template_liability_current_tax_ru"/>
<field name="parent" ref="account_template_root_ru"/>
</record>
</data>
</tryton>
+358
View File
@@ -0,0 +1,358 @@
<?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 language="sl">
<record id="account_type_template_minimal_sl" model="account.account.type.template">
<field name="name">Minimalni kontni načrt</field>
<field name="sequence" eval="10"/>
<field name="statement" eval="None"/>
</record>
<record id="account_type_template_asset_sl" model="account.account.type.template">
<field name="name">Sredstvo</field>
<field name="sequence" eval="10"/>
<field name="parent" ref="account_type_template_minimal_sl"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
</record>
<record id="account_type_template_asset_current_sl" model="account.account.type.template">
<field name="name">Kratkoročno</field>
<field name="parent" ref="account_type_template_asset_sl"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_asset_current_cash_sl" model="account.account.type.template">
<field name="name">Denar</field>
<field name="parent" ref="account_type_template_asset_current_sl"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_asset_current_receivable_sl" model="account.account.type.template">
<field name="name">Denar</field>
<field name="parent" ref="account_type_template_asset_current_sl"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="20"/>
<field name="receivable" eval="True"/>
</record>
<record id="account_type_template_asset_long_term_sl" model="account.account.type.template">
<field name="name">Dolgoročno</field>
<field name="parent" ref="account_type_template_asset_sl"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_liability_sl" model="account.account.type.template">
<field name="name">Obveznosti</field>
<field name="sequence" eval="20"/>
<field name="parent" ref="account_type_template_minimal_sl"/>
<field name="statement">balance</field>
</record>
<record id="account_type_template_liability_current_sl" model="account.account.type.template">
<field name="name">Kratkoročno</field>
<field name="parent" ref="account_type_template_liability_sl"/>
<field name="statement">balance</field>
<field name="sequence" eval="10"/>
</record>
<record id="account_type_template_liability_current_payable_sl" model="account.account.type.template">
<field name="name">Obveznosti</field>
<field name="parent" ref="account_type_template_liability_current_sl"/>
<field name="statement">balance</field>
<field name="sequence" eval="10"/>
<field name="payable" eval="True"/>
</record>
<record id="account_type_template_liability_current_tax_sl" model="account.account.type.template">
<field name="name">Davek</field>
<field name="parent" ref="account_type_template_liability_current_sl"/>
<field name="statement">balance</field>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_liability_long_term_sl" model="account.account.type.template">
<field name="name">Dolgoročno</field>
<field name="parent" ref="account_type_template_liability_sl"/>
<field name="statement">balance</field>
<field name="sequence" eval="20"/>
</record>
<record id="account_type_template_equity_sl" model="account.account.type.template">
<field name="name">Kapital</field>
<field name="sequence" eval="30"/>
<field name="parent" ref="account_type_template_minimal_sl"/>
<field name="statement">balance</field>
</record>
<record id="account_type_template_income_sl" model="account.account.type.template">
<field name="name">Prihodki</field>
<field name="parent" ref="account_type_template_equity_sl"/>
<field name="statement">income</field>
<field name="sequence" eval="40"/>
</record>
<record id="account_type_template_revenue_sl" model="account.account.type.template">
<field name="name">Prihodki</field>
<field name="parent" ref="account_type_template_income_sl"/>
<field name="statement">income</field>
<field name="sequence" eval="10"/>
<field name="revenue" eval="True"/>
</record>
<record id="account_type_template_expense_sl" model="account.account.type.template">
<field name="name">Odhodki</field>
<field name="parent" ref="account_type_template_income_sl"/>
<field name="statement">income</field>
<field name="sequence" eval="20"/>
<field name="expense" eval="True"/>
</record>
<record id="account_type_template_off_balance_sl" model="account.account.type.template">
<field name="name">Zunaj bilance</field>
<field name="sequence" eval="60"/>
<field name="parent" ref="account_type_template_minimal_sl"/>
<field name="statement">off-balance</field>
</record>
<record id="account_template_root_sl" model="account.account.template">
<field name="name">Minimalni kontni načrt</field>
<field name="type" ref="account_type_template_minimal_sl"/>
<field name="closed" eval="True"/>
</record>
<record id="account_template_receivable_sl" model="account.account.template">
<field name="name">Glavne terjatve</field>
<field name="type" ref="account_type_template_asset_current_receivable_sl"/>
<field name="reconcile" eval="True"/>
<field name="party_required" eval="True"/>
<field name="parent" ref="account_template_root_sl"/>
</record>
<record id="account_template_payable_sl" model="account.account.template">
<field name="name">Glavne obveznosti</field>
<field name="type" ref="account_type_template_liability_current_payable_sl"/>
<field name="reconcile" eval="True"/>
<field name="party_required" eval="True"/>
<field name="parent" ref="account_template_root_sl"/>
</record>
<record id="account_template_revenue_sl" model="account.account.template">
<field name="name">Glavni prihodki</field>
<field name="type" ref="account_type_template_revenue_sl"/>
<field name="parent" ref="account_template_root_sl"/>
</record>
<record id="account_template_expense_sl" model="account.account.template">
<field name="name">Glavni odhodki</field>
<field name="type" ref="account_type_template_expense_sl"/>
<field name="parent" ref="account_template_root_sl"/>
</record>
<record id="account_template_cash_sl" model="account.account.template">
<field name="name">Glavna denarna sredstva</field>
<field name="type" ref="account_type_template_asset_current_cash_sl"/>
<field name="parent" ref="account_template_root_sl"/>
</record>
<record id="account_template_tax_sl" model="account.account.template">
<field name="name">Glavni davki</field>
<field name="type" ref="account_type_template_liability_current_tax_sl"/>
<field name="parent" ref="account_template_root_sl"/>
</record>
</data>
</tryton>
File diff suppressed because it is too large Load Diff
+548
View File
@@ -0,0 +1,548 @@
<?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="move_view_form">
<field name="model">account.move</field>
<field name="type">form</field>
<field name="name">move_form</field>
</record>
<record model="ir.ui.view" id="move_view_tree">
<field name="model">account.move</field>
<field name="type">tree</field>
<field name="name">move_tree</field>
</record>
<record model="ir.action.act_window" id="act_move_form">
<field name="name">Account Moves</field>
<field name="res_model">account.move</field>
<field name="domain"
eval="[('company', '=', Eval('context', {}).get('company', -1))]"
pyson="1"/>
<field name="search_value"
eval="[('create_date', '>=', DateTime(hour=0, minute=0, second=0, microsecond=0, delta_years=-1))]"
pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_move_form_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="move_view_tree"/>
<field name="act_window" ref="act_move_form"/>
</record>
<record model="ir.action.act_window.view" id="act_move_form_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="move_view_form"/>
<field name="act_window" ref="act_move_form"/>
</record>
<menuitem
parent="menu_entries"
action="act_move_form"
sequence="50"
id="menu_move_form"/>
<record model="ir.rule.group" id="rule_group_move_companies">
<field name="name">User in companies</field>
<field name="model"
search="[('model', '=', 'account.move')]"/>
<field name="global_p" eval="True"/>
</record>
<record model="ir.rule" id="rule_move_companies">
<field name="domain"
eval="[('company', 'in', Eval('companies', []))]"
pyson="1"/>
<field name="rule_group" ref="rule_group_move_companies"/>
</record>
<record model="ir.model.access" id="access_move">
<field name="model" search="[('model', '=', 'account.move')]"/>
<field name="perm_read" eval="False"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_move_account">
<field name="model" search="[('model', '=', 'account.move')]"/>
<field name="group" ref="group_account"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_move_account_admin">
<field name="model" search="[('model', '=', 'account.move')]"/>
<field name="group" ref="group_account_admin"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.model.button" id="move_post_button">
<field name="name">post</field>
<field name="string">Post</field>
<field name="model" search="[('model', '=', 'account.move')]"/>
</record>
<record model="ir.sequence.type" id="sequence_type_account_move">
<field name="name">Account Move</field>
</record>
<record model="ir.sequence.type-res.group"
id="sequence_type_account_move_group_admin">
<field name="sequence_type" ref="sequence_type_account_move"/>
<field name="group" ref="res.group_admin"/>
</record>
<record model="ir.sequence.type-res.group"
id="sequence_type_account_move_group_account_admin">
<field name="sequence_type" ref="sequence_type_account_move"/>
<field name="group" ref="group_account_admin"/>
</record>
<record model="ir.ui.view" id="move_reconciliation_view_form">
<field name="model">account.move.reconciliation</field>
<field name="type">form</field>
<field name="name">move_reconciliation_form</field>
</record>
<record model="ir.ui.view" id="move_reconciliation_view_tree">
<field name="model">account.move.reconciliation</field>
<field name="type">tree</field>
<field name="name">move_reconciliation_tree</field>
</record>
<record model="ir.action.act_window" id="act_move_reconciliation_lines">
<field name="name">Reconciliation Lines</field>
<field name="res_model">account.move.line</field>
<field name="domain"
eval="[If(Eval('active_ids', []) == [Eval('active_id')], ('reconciliation', '=', Eval('active_id')), ('reconciliation', 'in', Eval('active_ids')))]"
pyson="1"/>
</record>
<record model="ir.action.keyword" id="act_move_reconciliation_lines_keyword1">
<field name="keyword">form_relate</field>
<field name="model">account.move.reconciliation,-1</field>
<field name="action" ref="act_move_reconciliation_lines"/>
</record>
<record model="ir.rule.group" id="rule_group_move_reconciliation_companies">
<field name="name">User in companies</field>
<field name="model"
search="[('model', '=', 'account.move.reconciliation')]"/>
<field name="global_p" eval="True"/>
</record>
<record model="ir.rule" id="rule_move_reconciliation_companies">
<field name="domain"
eval="[('company', 'in', Eval('companies', []))]"
pyson="1"/>
<field name="rule_group" ref="rule_group_move_reconciliation_companies"/>
</record>
<record model="ir.model.access" id="access_move_reconciliation">
<field name="model" search="[('model', '=', 'account.move.reconciliation')]"/>
<field name="perm_read" eval="False"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_move_reconciliation_account">
<field name="model" search="[('model', '=', 'account.move.reconciliation')]"/>
<field name="group" ref="group_account"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_move_reconciliation_account_admin">
<field name="model" search="[('model', '=', 'account.move.reconciliation')]"/>
<field name="group" ref="group_account_admin"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.sequence.type" id="sequence_type_account_move_reconciliation">
<field name="name">Account Move Reconciliation</field>
</record>
<record model="ir.sequence.type-res.group"
id="sequence_type_account_move_reconciliation_group_admin">
<field name="sequence_type" ref="sequence_type_account_move_reconciliation"/>
<field name="group" ref="res.group_admin"/>
</record>
<record model="ir.sequence.type-res.group"
id="sequence_type_account_move_reconciliation_group_account_admin">
<field name="sequence_type" ref="sequence_type_account_move_reconciliation"/>
<field name="group" ref="group_account_admin"/>
</record>
<record model="ir.sequence" id="sequence_account_move_reconciliation">
<field name="name">Default Account Move Reconciliation</field>
<field name="sequence_type" ref="sequence_type_account_move_reconciliation"/>
</record>
<record model="ir.ui.view" id="move_line_view_form">
<field name="model">account.move.line</field>
<field name="type">form</field>
<field name="priority" eval="10"/>
<field name="name">move_line_form</field>
</record>
<record model="ir.ui.view" id="move_line_view_form_move">
<field name="model">account.move.line</field>
<field name="type">form</field>
<field name="priority" eval="20"/>
<field name="name">move_line_form_move</field>
</record>
<record model="ir.ui.view" id="move_line_view_tree">
<field name="model">account.move.line</field>
<field name="type">tree</field>
<field name="priority" eval="10"/>
<field name="name">move_line_tree</field>
</record>
<record model="ir.ui.view" id="move_line_view_tree_move">
<field name="model">account.move.line</field>
<field name="type">tree</field>
<field name="priority" eval="20"/>
<field name="name">move_line_tree_move</field>
</record>
<record model="ir.ui.view" id="move_line_view_list_payable_receivable">
<field name="model">account.move.line</field>
<field name="type">tree</field>
<field name="priority" eval="30"/>
<field name="name">move_line_list_payable_receivable</field>
</record>
<record model="ir.action.act_window" id="act_move_line_form">
<field name="name">Account Move Lines</field>
<field name="res_model">account.move.line</field>
<field
name="domain"
eval="[('account', 'in', Eval('active_ids', [])), ('state', '=', 'valid')]"
pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_move_line_form_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="move_line_view_tree"/>
<field name="act_window" ref="act_move_line_form"/>
</record>
<record model="ir.action.act_window.view" id="act_move_line_form_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="move_line_view_form"/>
<field name="act_window" ref="act_move_line_form"/>
</record>
<record model="ir.action.wizard" id="act_open_account">
<field name="name">Open Move Account</field>
<field name="wiz_name">account.move.open_account</field>
<field name="model">account.account</field>
</record>
<record model="ir.action.keyword" id="act_open_account_keyword1">
<field name="keyword">tree_open</field>
<field name="model">account.account,-1</field>
<field name="action" ref="act_open_account"/>
</record>
<record model="ir.action.keyword" id="act_open_account_keyword2">
<field name="keyword">form_relate</field>
<field name="model">account.account,-1</field>
<field name="action" ref="act_open_account"/>
</record>
<record model="ir.action.act_window"
id="act_move_line_payable_receivable">
<field name="name">Payable/Receivable Lines</field>
<field name="res_model">account.move.line</field>
<field name="domain"
eval="[['OR', ('account.type.receivable', '=', True), ('account.type.payable', '=', True)], If(Eval('active_ids', []) == [Eval('active_id')], ('party', '=', Eval('active_id')), ('party', 'in', Eval('active_ids'))), ('company', '=', Eval('context', {}).get('company', -1))]"
pyson="1"/>
<field name="search_value"
eval="[('reconciliation', '=', None)]" pyson="1"/>
<field name="order" eval="[('maturity_date', 'ASC'), ('date', 'DESC'), ('id', 'DESC')]" pyson="1"/>
</record>
<record model="ir.action.act_window.view"
id="act_move_line_payable_receivable_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="move_line_view_list_payable_receivable"/>
<field name="act_window" ref="act_move_line_payable_receivable"/>
</record>
<record model="ir.action.act_window.domain"
id="act_move_line_payable_receivable_domain_payable">
<field name="name">Payable</field>
<field name="sequence" eval="10"/>
<field name="domain"
eval="[('account.type.payable', '=', True)]" pyson="1"/>
<field name="act_window" ref="act_move_line_payable_receivable"/>
</record>
<record model="ir.action.act_window.domain"
id="act_move_line_payable_receivable_domain_receivable">
<field name="name">Receivable</field>
<field name="sequence" eval="20"/>
<field name="domain"
eval="[('account.type.receivable', '=', True)]" pyson="1"/>
<field name="act_window" ref="act_move_line_payable_receivable"/>
</record>
<record model="ir.action.act_window.domain"
id="act_move_line_payable_receivable_domain_all">
<field name="name">All</field>
<field name="sequence" eval="9999"/>
<field name="act_window" ref="act_move_line_payable_receivable"/>
</record>
<record model="ir.action.keyword"
id="act_move_line_payable_receivable_keyword1">
<field name="keyword">form_relate</field>
<field name="model">party.party,-1</field>
<field name="action" ref="act_move_line_payable_receivable"/>
</record>
<record model="ir.action-res.group"
id="act_move_line_payable-group_account">
<field name="action" ref="act_move_line_payable_receivable"/>
<field name="group" ref="group_account"/>
</record>
<record model="ir.ui.view" id="open_journal_ask_view_form">
<field name="model">account.move.open_journal.ask</field>
<field name="type">form</field>
<field name="name">open_journal_ask_form</field>
</record>
<record model="ir.action.wizard" id="act_open_journal">
<field name="name">Open Journal</field>
<field name="wiz_name">account.move.open_journal</field>
</record>
<record model="ir.action.keyword" id="act_open_journal_keyword">
<field name="keyword">tree_open</field>
<field name="model">account.journal.period,-1</field>
<field name="action" ref="act_open_journal"/>
</record>
<menuitem
parent="menu_entries"
action="act_open_journal"
sequence="20"
id="menu_open_journal"
icon="tryton-list"/>
<record model="ir.ui.view" id="reconcile_lines_writeoff_view_form">
<field name="model">account.move.reconcile_lines.writeoff</field>
<field name="type">form</field>
<field name="name">reconcile_lines_writeoff_form</field>
</record>
<record model="ir.action.wizard" id="act_reconcile_lines">
<field name="name">Reconcile Lines</field>
<field name="wiz_name">account.move.reconcile_lines</field>
<field name="model">account.move.line</field>
</record>
<record model="ir.action.keyword" id="act_reconcile_lines_keyword">
<field name="keyword">form_action</field>
<field name="model">account.move.line,-1</field>
<field name="action" ref="act_reconcile_lines"/>
</record>
<!-- TODO keyword general ledger -->
<record model="ir.action.wizard" id="act_unreconcile_lines">
<field name="name">Unreconcile Lines</field>
<field name="wiz_name">account.move.unreconcile_lines</field>
<field name="model">account.move.line</field>
</record>
<record model="ir.action.keyword" id="act_unreconcile_lines_keyword">
<field name="keyword">form_action</field>
<field name="model">account.move.line,-1</field>
<field name="action" ref="act_unreconcile_lines"/>
</record>
<record model="ir.action.wizard" id="act_reconcile">
<field name="name">Reconcile Accounts</field>
<field name="wiz_name">account.reconcile</field>
<field name="window" eval="True"/>
</record>
<menuitem
parent="menu_processing"
action="act_reconcile"
sequence="20"
id="menu_reconcile"/>
<record model="ir.ui.view" id="reconcile_start_view_form">
<field name="model">account.reconcile.start</field>
<field name="type">form</field>
<field name="name">reconcile_start_form</field>
</record>
<record model="ir.ui.view" id="reconcile_show_view_form">
<field name="model">account.reconcile.show</field>
<field name="type">form</field>
<field name="name">reconcile_show_form</field>
</record>
<record model="ir.action.wizard" id="act_cancel_moves">
<field name="name">Cancel Moves</field>
<field name="wiz_name">account.move.cancel</field>
</record>
<record model="ir.action.keyword" id="act_cancel_moves_keyword1">
<field name="keyword">form_action</field>
<field name="model">account.move,-1</field>
<field name="action" ref="act_cancel_moves"/>
</record>
<record model="ir.ui.view" id="move_cancel_default_view_form">
<field name="model">account.move.cancel.default</field>
<field name="type">form</field>
<field name="name">move_cancel_default_form</field>
</record>
<record model="ir.ui.view" id="reconcile_writeoff_view_form">
<field name="model">account.move.reconcile.write_off</field>
<field name="type">form</field>
<field name="name">writeoff_form</field>
</record>
<record model="ir.ui.view" id="reconcile_writeoff_view_list">
<field name="model">account.move.reconcile.write_off</field>
<field name="type">tree</field>
<field name="name">writeoff_tree</field>
</record>
<record model="ir.action.act_window" id="act_reconcile_writeoff_form">
<field name="name">WriteOff Methods</field>
<field name="res_model">account.move.reconcile.write_off</field>
</record>
<record model="ir.action.act_window.view" id="act_reconcile_writeoff_form_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="reconcile_writeoff_view_list"/>
<field name="act_window" ref="act_reconcile_writeoff_form"/>
</record>
<record model="ir.action.act_window.view" id="act_reconcile_writeoff_form_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="reconcile_writeoff_view_form"/>
<field name="act_window" ref="act_reconcile_writeoff_form"/>
</record>
<menuitem
parent="menu_journal_configuration"
action="act_reconcile_writeoff_form"
sequence="20"
id="menu_reconcile_writeoff_form"/>
<record model="ir.rule.group" id="rule_group_reconcile_writeoff_companies">
<field name="name">User in companies</field>
<field name="model"
search="[('model', '=', 'account.move.reconcile.write_off')]"/>
<field name="global_p" eval="True"/>
</record>
<record model="ir.rule" id="rule_reconcile_writeoff_companies">
<field name="domain"
eval="[('company', 'in', Eval('companies', []))]"
pyson="1"/>
<field name="rule_group" ref="rule_group_reconcile_writeoff_companies"/>
</record>
<record model="ir.model.access" id="access_reconcile_writeoff">
<field name="model" search="[('model', '=', 'account.move.reconcile.write_off')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_reconcile_writeoff_account_admin">
<field name="model" search="[('model', '=', 'account.move.reconcile.write_off')]"/>
<field name="group" ref="group_account_admin"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.action.wizard" id="act_group_lines_wizard">
<field name="name">Group Lines</field>
<field name="wiz_name">account.move.line.group</field>
</record>
<record model="ir.action.keyword" id="act_group_lines_keyword1">
<field name="keyword">form_action</field>
<field name="model">account.move.line,-1</field>
<field name="action" ref="act_group_lines_wizard"/>
</record>
<record model="ir.ui.view" id="move_line_group_start_view_form">
<field name="model">account.move.line.group.start</field>
<field name="type">form</field>
<field name="name">move_line_group_start_form</field>
</record>
<record model="ir.action.act_window" id="act_move_form_grouping">
<field name="name">Grouped Account Move</field>
<field name="res_model">account.move</field>
</record>
<record model="ir.action.act_window.view" id="act_move_form_grouping_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="move_view_form"/>
<field name="act_window" ref="act_move_form_grouping"/>
</record>
<record model="ir.action.wizard" id="act_reschedule_lines_wizard">
<field name="name">Reschedule Lines</field>
<field name="wiz_name">account.move.line.reschedule</field>
<field name="model">account.move.line</field>
</record>
<record model="ir.action.keyword" id="act_reschedule_lines_keyword1">
<field name="keyword">form_action</field>
<field name="model">account.move.line,-1</field>
<field name="action" ref="act_reschedule_lines_wizard"/>
</record>
<record model="ir.ui.view" id="move_line_reschedule_start_view_form">
<field name="model">account.move.line.reschedule.start</field>
<field name="type">form</field>
<field name="name">move_line_reschedule_start_form</field>
</record>
<record model="ir.ui.view" id="move_line_reschedule_preview_view_form">
<field name="model">account.move.line.reschedule.preview</field>
<field name="type">form</field>
<field name="name">move_line_reschedule_preview_form</field>
</record>
<record model="ir.ui.view" id="move_line_reschedule_term_view_list">
<field name="model">account.move.line.reschedule.term</field>
<field name="type">tree</field>
<field name="name">move_line_reschedule_term_list</field>
</record>
<record model="ir.action.act_window" id="act_move_form_rescheduling">
<field name="name">Reschedule Account Move</field>
<field name="res_model">account.move</field>
</record>
<record model="ir.action.act_window.view" id="act_move_form_rescheduling_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="move_view_form"/>
<field name="act_window" ref="act_move_form_rescheduling"/>
</record>
<record model="ir.action.wizard" id="act_delegate_lines_wizard">
<field name="name">Delegate Lines</field>
<field name="wiz_name">account.move.line.delegate</field>
<field name="model">account.move.line</field>
</record>
<record model="ir.action.keyword" id="act_delegate_lines_keyword1">
<field name="keyword">form_action</field>
<field name="model">account.move.line,-1</field>
<field name="action" ref="act_delegate_lines_wizard"/>
</record>
<record model="ir.ui.view" id="move_line_delegate_start_view_form">
<field name="model">account.move.line.delegate.start</field>
<field name="type">form</field>
<field name="name">move_line_delegate_start_form</field>
</record>
<record model="ir.action.act_window" id="act_move_form_delegate">
<field name="name">Delegate Account Move</field>
<field name="res_model">account.move</field>
</record>
<record model="ir.action.act_window.view" id="act_move_form_delegate_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="move_view_form"/>
<field name="act_window" ref="act_move_form_delegate"/>
</record>
<record model="ir.action.report" id="report_general_journal">
<field name="name">General Journal</field>
<field name="model">account.move</field>
<field name="report_name">account.move.general_journal</field>
<field name="report">account/general_journal.fodt</field>
</record>
<record model="ir.action.keyword" id="report_general_journal_keyword">
<field name="keyword">form_print</field>
<field name="model">account.move,-1</field>
<field name="action" ref="report_general_journal"/>
</record>
</data>
</tryton>
+419
View File
@@ -0,0 +1,419 @@
# 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 decimal import Decimal
from xml.sax.saxutils import quoteattr
from simpleeval import InvalidExpression, simple_eval
from trytond.i18n import gettext
from trytond.model import (
DeactivableMixin, ModelSQL, ModelView, fields, sequence_ordered)
from trytond.pool import Pool
from trytond.pyson import Eval
from trytond.tools import decistmt
from trytond.transaction import Transaction
from trytond.wizard import (
Button, StateAction, StateTransition, StateView, Wizard)
from .exceptions import MoveTemplateExpressionError
class MoveTemplate(DeactivableMixin, ModelSQL, ModelView):
'Account Move Template'
__name__ = 'account.move.template'
name = fields.Char('Name', required=True, translate=True)
keywords = fields.One2Many('account.move.template.keyword', 'move',
'Keywords')
company = fields.Many2One('company.company', 'Company', required=True)
journal = fields.Many2One(
'account.journal', 'Journal', required=True,
context={
'company': Eval('company', -1),
},
depends={'company'})
date = fields.Char('Date', help='Leave empty for today.')
description = fields.Char('Description',
help="Keyword values substitutions are identified "
"by braces ('{' and '}').")
lines = fields.One2Many('account.move.line.template', 'move', 'Lines',
domain=[
('account.company', '=', Eval('company', -1)),
])
@staticmethod
def default_company():
return Transaction().context.get('company')
def get_move(self, values):
'Return the move for the keyword values'
pool = Pool()
Move = pool.get('account.move')
Keyword = pool.get('account.move.template.keyword')
move = Move()
move.company = self.company
move.journal = self.journal
if self.date:
move.date = values.get(self.date)
if self.description:
move.description = self.description.format(
**dict(Keyword.format_values(self, values)))
move.lines = [l.get_line(values) for l in self.lines]
return move
class MoveTemplateKeyword(sequence_ordered(), ModelSQL, ModelView):
'Account Move Template Keyword'
__name__ = 'account.move.template.keyword'
name = fields.Char('Name', required=True)
string = fields.Char('String', required=True, translate=True)
move = fields.Many2One(
'account.move.template', "Move", required=True, ondelete='CASCADE')
type_ = fields.Selection([
('char', 'Char'),
('numeric', 'Numeric'),
('date', 'Date'),
('party', 'Party'),
], 'Type')
required = fields.Boolean('Required')
digits = fields.Integer('Digits', states={
'invisible': Eval('type_') != 'numeric',
'required': Eval('type_') == 'numeric',
})
@classmethod
def __setup__(cls):
super().__setup__()
cls.__access__.add('move')
@staticmethod
def default_required():
return False
def get_field(self):
field = getattr(self, '_get_field_%s' % self.type_)()
field.update({
'name': self.name,
'string': self.string,
'required': self.required,
'help': '',
})
return field
def _get_field_char(self):
return {'type': 'char'}
def _get_field_numeric(self):
return {'type': 'numeric', 'digits': (16, self.digits)}
def _format_numeric(self, lang, value):
if value:
return lang.format('%.*f', (self.digits, value), True)
else:
return ''
def _get_field_date(self):
return {'type': 'date'}
def _format_date(self, lang, value):
if value:
return lang.strftime(value)
else:
return ''
def _get_field_party(self):
return {
'type': 'many2one',
'relation': 'party.party',
}
def _format_party(self, lang, value):
pool = Pool()
Party = pool.get('party.party')
if value:
return Party(value).rec_name
else:
return ''
@staticmethod
def format_values(template, values):
"Yield key and formatted value"
pool = Pool()
Lang = pool.get('ir.lang')
lang, = Lang.search([
('code', '=', Transaction().language),
])
keywords = {k.name: k for k in template.keywords}
for k, v in values.items():
keyword = keywords[k]
func = getattr(keyword, '_format_%s' % keyword.type_, None)
if func:
yield k, func(lang, v)
else:
yield k, v
class MoveLineTemplate(ModelSQL, ModelView):
'Account Move Line Template'
__name__ = 'account.move.line.template'
move = fields.Many2One(
'account.move.template', "Move", required=True, ondelete='CASCADE')
operation = fields.Selection([
('debit', 'Debit'),
('credit', 'Credit'),
], 'Operation', required=True)
amount = fields.Char('Amount', required=True,
help="A python expression that will be evaluated with the keywords.")
account = fields.Many2One('account.account', 'Account', required=True,
domain=[
('type', '!=', None),
('closed', '!=', True),
('company', '=', Eval('_parent_move', {}).get('company', -1)),
])
party = fields.Char('Party',
states={
'required': Eval('party_required', False),
'invisible': ~Eval('party_required', False),
},
help="The name of the 'Party' keyword.")
party_required = fields.Function(fields.Boolean('Party Required'),
'on_change_with_party_required')
description = fields.Char('Description',
help="Keywords values substitutions are identified "
"by braces ('{' and '}').")
taxes = fields.One2Many('account.tax.line.template', 'line', 'Taxes')
@classmethod
def __setup__(cls):
super().__setup__()
cls.__access__.add('move')
@fields.depends('account')
def on_change_with_party_required(self, name=None):
if self.account:
return self.account.party_required
return False
def get_line(self, values):
'Return the move line for the keyword values'
pool = Pool()
Line = pool.get('account.move.line')
Keyword = pool.get('account.move.template.keyword')
line = Line()
try:
amount = simple_eval(decistmt(self.amount),
functions={'Decimal': Decimal}, names=values)
except InvalidExpression as e:
raise MoveTemplateExpressionError(
gettext('account.msg_move_template_invalid_expression',
expression=values,
template=self.move.rec_name,
error=e)) from e
if not isinstance(amount, Decimal):
raise MoveTemplateExpressionError(
gettext('account.msg_move_template_expession_not_number',
value=amount,
expression=self.move.name,
template=self.move.rec_name))
amount = self.move.company.currency.round(amount)
if self.operation == 'debit':
line.debit = amount
else:
line.credit = amount
line.account = self.account
if self.party:
line.party = values.get(self.party)
if self.description:
try:
line.description = self.description.format(
**dict(Keyword.format_values(self.move, values)))
except KeyError as e:
raise MoveTemplateExpressionError(
gettext('account.msg_move_template_invalid_expression',
expression=values,
template=self.move.name,
error=e)) from e
line.tax_lines = [t.get_line(values) for t in self.taxes]
return line
class TaxLineTemplate(ModelSQL, ModelView):
'Account Tax Line Template'
__name__ = 'account.tax.line.template'
line = fields.Many2One(
'account.move.line.template', "Line",
required=True, ondelete='CASCADE')
amount = fields.Char('Amount', required=True,
help="A python expression that will be evaluated with the keywords.")
type = fields.Selection([
('tax', "Tax"),
('base', "Base"),
], "Type", required=True)
tax = fields.Many2One('account.tax', 'Tax',
domain=[
('company', '=', Eval('_parent_line', {}
).get('_parent_move', {}).get('company', -1)),
],
depends={'line'})
@classmethod
def __setup__(cls):
super().__setup__()
cls.__access__.add('line')
@classmethod
def __register__(cls, module_name):
super(TaxLineTemplate, cls).__register__(module_name)
table_h = cls.__table_handler__(module_name)
# Migration from 4.6: remove code
table_h.drop_column('code')
def get_line(self, values):
'Return the tax line for the keyword values'
pool = Pool()
TaxLine = pool.get('account.tax.line')
line = TaxLine()
try:
amount = simple_eval(decistmt(self.amount),
functions={'Decimal': Decimal}, names=values)
except InvalidExpression as e:
raise MoveTemplateExpressionError(
gettext('account.msg_template_invalid_expression',
expression=values,
template=self.line.rec_name,
error=e)) from e
if not isinstance(amount, Decimal):
raise MoveTemplateExpressionError(
gettext('account.msg_not_number',
result=amount,
expression=self.move.rec_name))
amount = self.line.move.company.currency.round(amount)
line.amount = amount
line.type = self.type
line.tax = self.tax
return line
class KeywordStateView(StateView):
def get_view(self, wizard, state_name):
fields = {}
view = {
'model': 'account.move.template.create.keywords',
'view_id': 0,
'type': 'form',
'fields': fields,
}
if not hasattr(wizard.template, 'template'):
return view
template = wizard.template.template
field_template = ('<label name=%(name)s/>'
'<field name=%(name)s/>')
view['arch'] = ('<?xml version="1.0"?>'
'<form col="2" string=%s>%s</form>' % (
quoteattr(template.name),
''.join(field_template % {'name': quoteattr(keyword.name)}
for keyword in template.keywords)
))
for keyword in template.keywords:
fields[keyword.name] = keyword.get_field()
return view
def get_defaults(self, wizard, state_name, fields):
return {}
class CreateMove(Wizard):
'Create Move from Template'
__name__ = 'account.move.template.create'
start = StateTransition()
template = StateView('account.move.template.create.template',
'account.move_template_create_template_view_form', [
Button('Cancel', 'end', 'tryton-cancel'),
Button('Next', 'keywords', 'tryton-forward', default=True),
])
keywords = KeywordStateView('account.move.template.create.keywords',
None, [
Button('Cancel', 'end', 'tryton-cancel'),
Button('Create', 'create_', 'tryton-ok', default=True),
])
create_ = StateTransition()
open_ = StateAction('account.act_move_from_template')
def create_move(self):
template = self.template.template
values = {}
for keyword in template.keywords:
values[keyword.name] = getattr(self.keywords, keyword.name, None)
move = template.get_move(values)
move.period = self.template.period
move.save()
return move
def transition_start(self):
context = Transaction().context
action_id = context.get('action_id')
period = context.get('period')
if self.model and self.model.__name__ == 'account.move.line':
# Template id is used as action
self.template.template = action_id
self.template.period = period
return 'keywords'
else:
return 'template'
def transition_create_(self):
if self.model and self.model.__name__ == 'account.move.line':
self.create_move()
return 'end'
else:
return 'open_'
def do_open_(self, action):
move = self.create_move()
return action, {'res_id': move.id}
def end(self):
if self.model and self.model.__name__ == 'account.move.line':
return 'reload'
class CreateMoveTemplate(ModelView):
'Create Move from Template'
__name__ = 'account.move.template.create.template'
template = fields.Many2One('account.move.template', 'Template',
required=True,
domain=[
('company', '=', Eval('context', {}).get('company', -1)),
])
period = fields.Many2One('account.period', 'Period', required=True,
domain=[
('state', '!=', 'close'),
('fiscalyear.company.id', '=',
Eval('context', {}).get('company', 0)),
])
@staticmethod
def default_period():
pool = Pool()
Period = pool.get('account.period')
company = Transaction().context.get('company')
return Period.find(company, exception=False)
class CreateMoveKeywords(ModelView):
'Create Move from Template'
__no_slots__ = True
__name__ = 'account.move.template.create.keywords'
+145
View File
@@ -0,0 +1,145 @@
<?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="move_template_view_form">
<field name="model">account.move.template</field>
<field name="type">form</field>
<field name="name">move_template_form</field>
</record>
<record model="ir.ui.view" id="move_template_view_list">
<field name="model">account.move.template</field>
<field name="type">tree</field>
<field name="name">move_template_list</field>
</record>
<record model="ir.action.act_window" id="act_move_template_form">
<field name="name">Moves</field>
<field name="res_model">account.move.template</field>
<field name="domain"
eval="[('company', '=', Eval('context', {}).get('company', -1))]"
pyson="1"/>
</record>
<record model="ir.action.act_window.view"
id="act_move_template_form_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="move_template_view_list"/>
<field name="act_window" ref="act_move_template_form"/>
</record>
<record model="ir.action.act_window.view"
id="act_move_template_form_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="move_template_view_form"/>
<field name="act_window" ref="act_move_template_form"/>
</record>
<menuitem
parent="menu_templates"
action="act_move_template_form"
sequence="10"
id="menu_move_template_form"/>
<record model="ir.rule.group" id="rule_group_move_template_companies">
<field name="name">User in companies</field>
<field name="model"
search="[('model', '=', 'account.move.template')]"/>
<field name="global_p" eval="True"/>
</record>
<record model="ir.rule" id="rule_move_template_companies">
<field name="domain"
eval="[('company', 'in', Eval('companies', []))]"
pyson="1"/>
<field name="rule_group" ref="rule_group_move_template_companies"/>
</record>
<record model="ir.model.access" id="access_move_template">
<field name="model" search="[('model', '=', 'account.move.template')]"/>
<field name="perm_read" eval="False"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_move_template_account">
<field name="model" search="[('model', '=', 'account.move.template')]"/>
<field name="group" ref="group_account"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_move_template_account_admin">
<field name="model" search="[('model', '=', 'account.move.template')]"/>
<field name="group" ref="group_account_admin"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.ui.view" id="move_template_keyword_view_form">
<field name="model">account.move.template.keyword</field>
<field name="type">form</field>
<field name="name">move_template_keyword_form</field>
</record>
<record model="ir.ui.view" id="move_template_keyword_view_list">
<field name="model">account.move.template.keyword</field>
<field name="type">tree</field>
<field name="priority" eval="10"/>
<field name="name">move_template_keyword_list</field>
</record>
<record model="ir.ui.view" id="move_template_keyword_view_list_sequence">
<field name="model">account.move.template.keyword</field>
<field name="type">tree</field>
<field name="priority" eval="20"/>
<field name="name">move_template_keyword_list_sequence</field>
</record>
<record model="ir.ui.view" id="move_line_template_view_form">
<field name="model">account.move.line.template</field>
<field name="type">form</field>
<field name="name">move_line_template_form</field>
</record>
<record model="ir.ui.view" id="move_line_template_view_list">
<field name="model">account.move.line.template</field>
<field name="type">tree</field>
<field name="name">move_line_template_list</field>
</record>
<record model="ir.ui.view" id="tax_line_template_view_form">
<field name="model">account.tax.line.template</field>
<field name="type">form</field>
<field name="name">tax_line_template_form</field>
</record>
<record model="ir.ui.view" id="tax_line_template_view_list">
<field name="model">account.tax.line.template</field>
<field name="type">tree</field>
<field name="name">tax_line_template_list</field>
</record>
<record model="ir.ui.view" id="move_template_create_template_view_form">
<field name="model">account.move.template.create.template</field>
<field name="type">form</field>
<field name="name">move_template_create_template_form</field>
</record>
<record model="ir.action.wizard" id="act_move_template_create">
<field name="name">Create Move from Template</field>
<field name="wiz_name">account.move.template.create</field>
</record>
<menuitem
parent="menu_entries"
action="act_move_template_create"
sequence="20"
id="menu_move_template_create"/>
<record model="ir.action.act_window" id="act_move_from_template">
<field name="name">Account Move</field>
<field name="res_model">account.move</field>
</record>
<record model="ir.action.act_window.view"
id="act_move_from_template_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="move_view_form"/>
<field name="act_window" ref="act_move_from_template"/>
</record>
</data>
</tryton>
+370
View File
@@ -0,0 +1,370 @@
# 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 decimal import Decimal
from sql import Literal, Null
from sql.aggregate import Sum
from sql.conditionals import Coalesce
from trytond import backend
from trytond.i18n import gettext
from trytond.model import ModelSQL, fields
from trytond.modules.company.model import (
CompanyMultiValueMixin, CompanyValueMixin)
from trytond.modules.currency.fields import Monetary
from trytond.modules.party.exceptions import EraseError
from trytond.pool import Pool, PoolMeta
from trytond.pyson import Eval, If
from trytond.tools import grouped_slice, reduce_ids
from trytond.tools.multivalue import migrate_property
from trytond.transaction import Transaction
from .exceptions import AccountMissing
account_names = [
'account_payable', 'account_receivable',
'customer_tax_rule', 'supplier_tax_rule']
class Party(CompanyMultiValueMixin, metaclass=PoolMeta):
__name__ = 'party.party'
accounts = fields.One2Many('party.party.account', 'party', "Accounts")
account_payable = fields.MultiValue(fields.Many2One(
'account.account', "Account Payable",
domain=[
('closed', '!=', True),
('type.payable', '=', True),
('party_required', '=', True),
('company', '=', Eval('context', {}).get('company', -1)),
],
states={
'invisible': ~Eval('context', {}).get('company'),
}))
account_receivable = fields.MultiValue(fields.Many2One(
'account.account', "Account Receivable",
domain=[
('closed', '!=', True),
('type.receivable', '=', True),
('party_required', '=', True),
('company', '=', Eval('context', {}).get('company', -1)),
],
states={
'invisible': ~Eval('context', {}).get('company'),
}))
customer_tax_rule = fields.MultiValue(fields.Many2One(
'account.tax.rule', "Customer Tax Rule",
domain=[
('company', '=', Eval('context', {}).get('company', -1)),
('kind', 'in', ['sale', 'both']),
],
states={
'invisible': ~Eval('context', {}).get('company'),
}, help='Apply this rule on taxes when party is customer.'))
supplier_tax_rule = fields.MultiValue(fields.Many2One(
'account.tax.rule', "Supplier Tax Rule",
domain=[
('company', '=', Eval('context', {}).get('company', -1)),
('kind', 'in', ['purchase', 'both']),
],
states={
'invisible': ~Eval('context', {}).get('company'),
}, help='Apply this rule on taxes when party is supplier.'))
currency = fields.Function(fields.Many2One(
'currency.currency', "Currency"), 'get_currency')
receivable = fields.Function(Monetary(
"Receivable", currency='currency', digits='currency'),
'get_receivable_payable', searcher='search_receivable_payable')
payable = fields.Function(Monetary(
"Payable", currency='currency', digits='currency'),
'get_receivable_payable', searcher='search_receivable_payable')
receivable_today = fields.Function(Monetary(
"Receivable Today", currency='currency', digits='currency'),
'get_receivable_payable', searcher='search_receivable_payable')
payable_today = fields.Function(Monetary(
"Payable Today", currency='currency', digits='currency'),
'get_receivable_payable', searcher='search_receivable_payable')
@classmethod
def multivalue_model(cls, field):
pool = Pool()
if field in account_names:
return pool.get('party.party.account')
return super(Party, cls).multivalue_model(field)
@classmethod
def _default_tax_rule(cls, type_, **pattern):
pool = Pool()
Configuration = pool.get('account.configuration')
config = Configuration(1)
assert type_ in {'customer', 'supplier'}
tax_rule = config.get_multivalue(
'default_%s_tax_rule' % type_, **pattern)
return tax_rule.id if tax_rule else None
@classmethod
def default_customer_tax_rule(cls, **pattern):
return cls._default_tax_rule('customer', **pattern)
@classmethod
def default_supplier_tax_rule(cls, **pattern):
return cls._default_tax_rule('supplier', **pattern)
def get_currency(self, name):
pool = Pool()
Company = pool.get('company.company')
company_id = Transaction().context.get('company')
if company_id:
company = Company(company_id)
return company.currency.id
@classmethod
def get_receivable_payable(cls, parties, names):
'''
Function to compute receivable, payable (today or not) for party ids.
'''
result = {}
pool = Pool()
MoveLine = pool.get('account.move.line')
Account = pool.get('account.account')
AccountType = pool.get('account.account.type')
User = pool.get('res.user')
Date = pool.get('ir.date')
cursor = Transaction().connection.cursor()
line = MoveLine.__table__()
account = Account.__table__()
account_type = AccountType.__table__()
for name in names:
if name not in ('receivable', 'payable',
'receivable_today', 'payable_today'):
raise Exception('Bad argument')
result[name] = dict((p.id, Decimal('0.0')) for p in parties)
user = User(Transaction().user)
if not user.company:
return result
company_id = user.company.id
exp = Decimal(str(10.0 ** -user.company.currency.digits))
with Transaction().set_context(company=company_id):
today = Date.today()
amount = Sum(Coalesce(line.debit, 0) - Coalesce(line.credit, 0))
for name in names:
code = name
today_where = Literal(True)
if name in ('receivable_today', 'payable_today'):
code = name[:-6]
today_where = ((line.maturity_date <= today)
| (line.maturity_date == Null))
for sub_parties in grouped_slice(parties):
sub_ids = [p.id for p in sub_parties]
party_where = reduce_ids(line.party, sub_ids)
cursor.execute(*line.join(account,
condition=account.id == line.account
).join(account_type,
condition=account.type == account_type.id
).select(line.party, amount,
where=(getattr(account_type, code)
& (line.reconciliation == Null)
& (account.company == company_id)
& party_where
& today_where),
group_by=line.party))
for party, value in cursor:
# SQLite uses float for SUM
if not isinstance(value, Decimal):
value = Decimal(str(value))
result[name][party] = value.quantize(exp)
return result
@classmethod
def search_receivable_payable(cls, name, clause):
pool = Pool()
MoveLine = pool.get('account.move.line')
Account = pool.get('account.account')
AccountType = pool.get('account.account.type')
User = pool.get('res.user')
Date = pool.get('ir.date')
line = MoveLine.__table__()
account = Account.__table__()
account_type = AccountType.__table__()
if name not in ('receivable', 'payable',
'receivable_today', 'payable_today'):
raise Exception('Bad argument')
_, operator, value = clause
user = User(Transaction().user)
if not user.company:
return []
company_id = user.company.id
with Transaction().set_context(company=company_id):
today = Date.today()
code = name
today_query = Literal(True)
if name in ('receivable_today', 'payable_today'):
code = name[:-6]
today_query = ((line.maturity_date <= today)
| (line.maturity_date == Null))
Operator = fields.SQL_OPERATORS[operator]
# Need to cast numeric for sqlite
cast_ = MoveLine.debit.sql_cast
amount = cast_(Sum(Coalesce(line.debit, 0) - Coalesce(line.credit, 0)))
if operator in {'in', 'not in'}:
value = [cast_(Literal(Decimal(v or 0))) for v in value]
else:
value = cast_(Literal(Decimal(value or 0)))
query = (line.join(account, condition=account.id == line.account
).join(account_type, condition=account.type == account_type.id
).select(line.party,
where=(getattr(account_type, code)
& (line.party != Null)
& (line.reconciliation == Null)
& (account.company == company_id)
& today_query),
group_by=line.party,
having=Operator(amount, value)))
return [('id', 'in', query)]
@property
def account_payable_used(self):
pool = Pool()
Configuration = pool.get('account.configuration')
account = self.account_payable
if not account:
with Transaction().set_context(self._context):
config = Configuration(1)
account = config.get_multivalue('default_account_payable')
# Allow empty values on on_change
if not account and not Transaction().readonly:
raise AccountMissing(
gettext('account.msg_party_missing_payable_account',
party=self.rec_name))
if account:
return account.current()
@property
def account_receivable_used(self):
pool = Pool()
Configuration = pool.get('account.configuration')
account = self.account_receivable
if not account:
with Transaction().set_context(self._context):
config = Configuration(1)
account = config.get_multivalue('default_account_receivable')
# Allow empty values on on_change
if not account and not Transaction().readonly:
raise AccountMissing(
gettext('account.msg_party_missing_receivable_account',
party=self.rec_name))
if account:
return account.current()
@classmethod
def view_attributes(cls):
return super().view_attributes() + [
('/tree/field[@name="receivable_today"]',
'visual', If(Eval('receivable_today', 0) > 0, 'danger', '')),
('/tree/field[@name="payable_today"]',
'visual', If(Eval('payable_today', 0) < 0, 'warning', '')),
]
@classmethod
def copy(cls, parties, default=None):
context = Transaction().context
default = default.copy() if default else {}
if context.get('_check_access'):
fields = [
'accounts',
'account_payable', 'account_receivable',
'customer_tax_rule', 'supplier_tax_rule']
default_values = cls.default_get(fields, with_rec_name=False)
for fname in fields:
default.setdefault(fname, default_values.get(fname))
return super().copy(parties, default=default)
class PartyAccount(ModelSQL, CompanyValueMixin):
"Party Account"
__name__ = 'party.party.account'
party = fields.Many2One(
'party.party', "Party", ondelete='CASCADE',
context={
'company': Eval('company', -1),
},
depends={'company'})
account_payable = fields.Many2One(
'account.account', "Account Payable",
domain=[
('type.payable', '=', True),
('party_required', '=', True),
('company', '=', Eval('company', -1)),
],
ondelete='RESTRICT')
account_receivable = fields.Many2One(
'account.account', "Account Receivable",
domain=[
('type.receivable', '=', True),
('party_required', '=', True),
('company', '=', Eval('company', -1)),
],
ondelete='RESTRICT')
customer_tax_rule = fields.Many2One(
'account.tax.rule', "Customer Tax Rule",
domain=[
('company', '=', Eval('company', -1)),
('kind', 'in', ['sale', 'both']),
],
ondelete='RESTRICT')
supplier_tax_rule = fields.Many2One(
'account.tax.rule', "Supplier Tax Rule",
domain=[
('company', '=', Eval('company', -1)),
('kind', 'in', ['purchase', 'both']),
],
ondelete='RESTRICT')
@classmethod
def __register__(cls, module_name):
exist = backend.TableHandler.table_exist(cls._table)
super(PartyAccount, cls).__register__(module_name)
if not exist:
cls._migrate_property([], [], [])
@classmethod
def _migrate_property(cls, field_names, value_names, fields):
field_names.extend(account_names)
value_names.extend(account_names)
fields.append('company')
migrate_property(
'party.party', field_names, cls, value_names,
parent='party', fields=fields)
class PartyReplace(metaclass=PoolMeta):
__name__ = 'party.replace'
@classmethod
def fields_to_replace(cls):
return super(PartyReplace, cls).fields_to_replace() + [
('account.move.line', 'party'),
]
class PartyErase(metaclass=PoolMeta):
__name__ = 'party.erase'
def check_erase_company(self, party, company):
super(PartyErase, self).check_erase_company(party, company)
if party.receivable or party.payable:
raise EraseError(
gettext('account.msg_erase_party_receivable_payable',
party=party.rec_name,
company=company.rec_name))
+78
View File
@@ -0,0 +1,78 @@
<?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_tree">
<field name="model">party.party</field>
<field name="inherit" ref="party.party_view_tree"/>
<field name="name">party_tree</field>
</record>
<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_accounts">
<field name="field" search="[('model.model', '=', 'party.party'), ('name', '=', 'accounts')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
</record>
<record model="ir.model.field.access" id="access_party_accounts_account_party">
<field name="field" search="[('model.model', '=', 'party.party'), ('name', '=', 'accounts')]"/>
<field name="group" ref="group_account_party"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
</record>
<record model="ir.model.field.access" id="access_party_account_payable">
<field name="field" search="[('model.model', '=', 'party.party'), ('name', '=', 'account_payable')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
</record>
<record model="ir.model.field.access" id="access_party_account_payable_account_party">
<field name="field" search="[('model.model', '=', 'party.party'), ('name', '=', 'account_payable')]"/>
<field name="group" ref="group_account_party"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
</record>
<record model="ir.model.field.access" id="access_party_account_receivable">
<field name="field" search="[('model.model', '=', 'party.party'), ('name', '=', 'account_receivable')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
</record>
<record model="ir.model.field.access" id="access_party_account_receivable_account_party">
<field name="field" search="[('model.model', '=', 'party.party'), ('name', '=', 'account_receivable')]"/>
<field name="group" ref="group_account_party"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
</record>
<record model="ir.model.field.access" id="access_party_customer_tax_rule">
<field name="field" search="[('model.model', '=', 'party.party'), ('name', '=', 'customer_tax_rule')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
</record>
<record model="ir.model.field.access" id="access_party_customer_tax_rule_account_party">
<field name="field" search="[('model.model', '=', 'party.party'), ('name', '=', 'customer_tax_rule')]"/>
<field name="group" ref="group_account_party"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
</record>
<record model="ir.model.field.access" id="access_party_supplier_tax_rule">
<field name="field" search="[('model.model', '=', 'party.party'), ('name', '=', 'supplier_tax_rule')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
</record>
<record model="ir.model.field.access" id="access_party_supplier_tax_rule_account_party">
<field name="field" search="[('model.model', '=', 'party.party'), ('name', '=', 'supplier_tax_rule')]"/>
<field name="group" ref="group_account_party"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
</record>
</data>
</tryton>
+376
View File
@@ -0,0 +1,376 @@
# 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.const import OPERATORS
from trytond.i18n import gettext
from trytond.model import Index, ModelSQL, ModelView, Workflow, fields
from trytond.model.exceptions import AccessError
from trytond.pool import Pool
from trytond.pyson import Eval, Id
from trytond.transaction import Transaction
from .exceptions import (
ClosePeriodError, PeriodDatesError, PeriodNotFoundError,
PeriodSequenceError)
_STATES = {
'readonly': Eval('state') != 'open',
}
class Period(Workflow, ModelSQL, ModelView):
'Period'
__name__ = 'account.period'
name = fields.Char('Name', required=True)
start_date = fields.Date('Starting Date', required=True, states=_STATES,
domain=[('start_date', '<=', Eval('end_date', None))])
end_date = fields.Date('Ending Date', required=True, states=_STATES,
domain=[('end_date', '>=', Eval('start_date', None))])
fiscalyear = fields.Many2One(
'account.fiscalyear', "Fiscal Year", required=True, states=_STATES)
state = fields.Selection([
('open', 'Open'),
('close', 'Close'),
('locked', 'Locked'),
], 'State', readonly=True, required=True, sort=False)
post_move_sequence = fields.Many2One('ir.sequence', 'Post Move Sequence',
domain=[
('sequence_type', '=',
Id('account', 'sequence_type_account_move')),
['OR',
('company', '=', None),
('company', '=', Eval('company', -1)),
],
])
type = fields.Selection([
('standard', 'Standard'),
('adjustment', 'Adjustment'),
], 'Type', required=True,
states=_STATES)
company = fields.Function(fields.Many2One('company.company', 'Company',),
'on_change_with_company', searcher='search_company')
icon = fields.Function(fields.Char("Icon"), 'get_icon')
@classmethod
def __setup__(cls):
super(Period, cls).__setup__()
t = cls.__table__()
cls.__access__.add('fiscalyear')
cls._sql_indexes.add(
Index(
t,
(t.start_date, Index.Range()),
(t.end_date, Index.Range()),
order='DESC'))
cls._order.insert(0, ('start_date', 'DESC'))
cls._transitions |= set((
('open', 'close'),
('close', 'locked'),
('close', 'open'),
))
cls._buttons.update({
'close': {
'invisible': Eval('state') != 'open',
'depends': ['state'],
},
'reopen': {
'invisible': Eval('state') != 'close',
'depends': ['state'],
},
'lock_': {
'invisible': Eval('state') != 'close',
'depends': ['state'],
},
})
@staticmethod
def default_state():
return 'open'
@staticmethod
def default_type():
return 'standard'
@fields.depends('fiscalyear', '_parent_fiscalyear.company')
def on_change_with_company(self, name=None):
if self.fiscalyear:
return self.fiscalyear.company.id
@classmethod
def search_company(cls, name, clause):
return [('fiscalyear.' + clause[0],) + tuple(clause[1:])]
def get_icon(self, name):
return {
'open': 'tryton-account-open',
'close': 'tryton-account-close',
'locked': 'tryton-account-block',
}.get(self.state)
@classmethod
def validate_fields(cls, periods, field_names):
super().validate_fields(periods, field_names)
cls.check_dates(periods, field_names)
cls.check_fiscalyear_dates(periods, field_names)
cls.check_post_move_sequence(periods, field_names)
@classmethod
def check_dates(cls, periods, field_names=None):
if field_names and not (
field_names & {
'start_date', 'end_date', 'fiscalyear', 'type'}):
return
transaction = Transaction()
connection = transaction.connection
cls.lock()
table = cls.__table__()
cursor = connection.cursor()
for period in periods:
if period.type != 'standard':
continue
cursor.execute(*table.select(table.id,
where=(((table.start_date <= period.start_date)
& (table.end_date >= period.start_date))
| ((table.start_date <= period.end_date)
& (table.end_date >= period.end_date))
| ((table.start_date >= period.start_date)
& (table.end_date <= period.end_date)))
& (table.fiscalyear == period.fiscalyear.id)
& (table.type == 'standard')
& (table.id != period.id)))
period_id = cursor.fetchone()
if period_id:
overlapping_period = cls(period_id[0])
raise PeriodDatesError(
gettext('account.msg_period_overlap',
first=period.rec_name,
second=overlapping_period.rec_name))
@classmethod
def check_fiscalyear_dates(cls, periods, field_names=None):
if field_names and not (
field_names & {
'start_date', 'end_date', 'fiscalyear'}):
return
for period in periods:
fiscalyear = period.fiscalyear
if (period.start_date < fiscalyear.start_date
or period.end_date > fiscalyear.end_date):
raise PeriodDatesError(
gettext('account.msg_period_fiscalyear_dates',
period=period.rec_name,
fiscalyear=fiscalyear.rec_name))
@classmethod
def check_post_move_sequence(cls, periods, field_names=None):
if field_names and not (
field_names & {'post_move_sequence', 'fiscalyear'}):
return
for period in periods:
if not period.post_move_sequence:
continue
periods = cls.search([
('post_move_sequence', '=', period.post_move_sequence.id),
('fiscalyear', '!=', period.fiscalyear.id),
])
if periods:
raise PeriodSequenceError(
gettext('account.msg_period_same_sequence',
first=period.rec_name,
second=periods[0].rec_name))
@classmethod
def find(cls, company_id, date=None, exception=True, test_state=True):
'''
Return the period for the company_id
at the date or the current date.
If exception is set the function will raise an exception
if no period is found.
If test_state is true, it will search on non-closed periods
'''
pool = Pool()
Date = pool.get('ir.date')
Lang = pool.get('ir.lang')
if not date:
with Transaction().set_context(company=company_id):
date = Date.today()
clause = [
('start_date', '<=', date),
('end_date', '>=', date),
('fiscalyear.company', '=', company_id),
('type', '=', 'standard'),
]
if test_state:
clause.append(('state', '=', 'open'))
periods = cls.search(clause, order=[('start_date', 'DESC')], limit=1)
if not periods:
if exception:
lang = Lang.get()
raise PeriodNotFoundError(
gettext('account.msg_no_period_date',
date=lang.strftime(date)))
else:
return None
return periods[0].id
@classmethod
def _check(cls, periods):
Move = Pool().get('account.move')
moves = Move.search([
('period', 'in', [p.id for p in periods]),
], limit=1)
if moves:
raise AccessError(
gettext('account.msg_modify_delete_period_moves',
period=moves[0].period.rec_name))
@classmethod
def search(cls, args, offset=0, limit=None, order=None, count=False,
query=False):
args = args[:]
def process_args(args):
i = 0
while i < len(args):
# add test for xmlrpc and pyson that doesn't handle tuple
if ((
isinstance(args[i], tuple)
or (isinstance(args[i], list) and len(args[i]) > 2
and args[i][1] in OPERATORS))
and args[i][0] in ('start_date', 'end_date')
and isinstance(args[i][2], (list, tuple))):
if not args[i][2][0]:
args[i] = ('id', '!=', '0')
else:
period = cls(args[i][2][0])
args[i] = (args[i][0], args[i][1],
getattr(period, args[i][2][1]))
elif isinstance(args[i], list):
process_args(args[i])
i += 1
process_args(args)
return super(Period, cls).search(args, offset=offset, limit=limit,
order=order, count=count, query=query)
@classmethod
def create(cls, vlist):
FiscalYear = Pool().get('account.fiscalyear')
vlist = [x.copy() for x in vlist]
for vals in vlist:
if vals.get('fiscalyear'):
fiscalyear = FiscalYear(vals['fiscalyear'])
if fiscalyear.state != 'open':
raise AccessError(
gettext('account.msg_create_period_closed_fiscalyear',
fiscalyear=fiscalyear.rec_name))
if not vals.get('post_move_sequence'):
vals['post_move_sequence'] = (
fiscalyear.post_move_sequence.id)
return super(Period, cls).create(vlist)
@classmethod
def write(cls, *args):
Move = Pool().get('account.move')
actions = iter(args)
args = []
for periods, values in zip(actions, actions):
for key, value in values.items():
if key in ('start_date', 'end_date', 'fiscalyear'):
def modified(period):
if key in ['start_date', 'end_date']:
return getattr(period, key) != value
else:
return period.fiscalyear .id != value
cls._check(list(filter(modified, periods)))
break
if values.get('state') == 'open':
for period in periods:
if period.fiscalyear.state != 'open':
raise AccessError(
gettext(
'account.msg_open_period_closed_fiscalyear',
period=period.rec_name,
fiscalyear=period.fiscalyear.rec_name))
if values.get('post_move_sequence'):
for period in periods:
if (period.post_move_sequence
and period.post_move_sequence.id
!= values['post_move_sequence']):
if Move.search([
('period', '=', period.id),
('state', '=', 'posted'),
]):
raise AccessError(
gettext('account'
'.msg_change_period_post_move_sequence',
period=period.rec_name))
args.extend((periods, values))
super(Period, cls).write(*args)
@classmethod
def delete(cls, periods):
cls._check(periods)
super(Period, cls).delete(periods)
@classmethod
@ModelView.button
@Workflow.transition('close')
def close(cls, periods):
pool = Pool()
JournalPeriod = pool.get('account.journal.period')
Move = pool.get('account.move')
Account = pool.get('account.account')
transaction = Transaction()
# Lock period and move to be sure no new record will be created
JournalPeriod.lock()
Move.lock()
for period in periods:
with transaction.set_context(
fiscalyear=period.fiscalyear.id, date=period.end_date,
cumulate=True, journal=None):
for account in Account.search([
('company', '=', period.company.id),
('end_date', '>=', period.start_date),
('end_date', '<=', period.end_date),
]):
if account.balance:
raise ClosePeriodError(
gettext('account.'
'msg_close_period_inactive_accounts',
account=account.rec_name,
period=period.rec_name))
unposted_moves = Move.search([
('period', 'in', [p.id for p in periods]),
('state', '!=', 'posted'),
], limit=1)
if unposted_moves:
unposted_move, = unposted_moves
raise ClosePeriodError(
gettext('account.msg_close_period_non_posted_moves',
period=unposted_move.period.rec_name,
moves=unposted_move.rec_name))
journal_periods = JournalPeriod.search([
('period', 'in', [p.id for p in periods]),
])
JournalPeriod.close(journal_periods)
@classmethod
@ModelView.button
@Workflow.transition('open')
def reopen(cls, periods):
"Re-open period"
pass
@classmethod
@ModelView.button
@Workflow.transition('locked')
def lock_(cls, periods):
pass
@property
def post_move_sequence_used(self):
return self.post_move_sequence or self.fiscalyear.post_move_sequence
+104
View File
@@ -0,0 +1,104 @@
<?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="period_view_form">
<field name="model">account.period</field>
<field name="type">form</field>
<field name="name">period_form</field>
</record>
<record model="ir.ui.view" id="period_view_tree">
<field name="model">account.period</field>
<field name="type">tree</field>
<field name="name">period_tree</field>
</record>
<record model="ir.ui.view" id="period_view_list_close">
<field name="model">account.period</field>
<field name="type">tree</field>
<field name="name">period_list_close</field>
</record>
<record model="ir.action.act_window" id="act_period_form">
<field name="name">Periods</field>
<field name="res_model">account.period</field>
<field name="domain"
eval="[('company', '=', Eval('context', {}).get('company', -1))]"
pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_period_form_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="period_view_tree"/>
<field name="act_window" ref="act_period_form"/>
</record>
<record model="ir.action.act_window.view" id="act_period_form_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="period_view_form"/>
<field name="act_window" ref="act_period_form"/>
</record>
<menuitem
parent="menu_fiscalyear_configuration"
action="act_period_form"
sequence="20"
id="menu_period_form"/>
<record model="ir.model.button" id="period_close_button">
<field name="name">close</field>
<field name="string">Close</field>
<field name="model" search="[('model', '=', 'account.period')]"/>
</record>
<record model="ir.model.button-res.group"
id="period_close_button_group_account_admin">
<field name="button" ref="period_close_button"/>
<field name="group" ref="group_account_admin"/>
</record>
<record model="ir.model.button" id="period_reopen_button">
<field name="name">reopen</field>
<field name="string">Re-Open</field>
<field name="model" search="[('model', '=', 'account.period')]"/>
</record>
<record model="ir.model.button-res.group"
id="period_reopen_button_group_account_admin">
<field name="button" ref="period_reopen_button"/>
<field name="group" ref="group_account_admin"/>
</record>
<record model="ir.model.button" id="period_lock_button">
<field name="name">lock_</field>
<field name="string">Lock</field>
<field name="confirm">Are you sure you want to lock the period?</field>
<field name="model" search="[('model', '=', 'account.period')]"/>
</record>
<record model="ir.action.act_window" id="act_period_form_close">
<field name="name">Close Periods</field>
<field name="res_model">account.period</field>
<field name="search_value"
eval="[('state', '=', 'open')]" pyson="1"/>
<field name="order" eval="[('start_date', 'ASC'), ('id', 'ASC')]" pyson="1"/>
</record>
<record model="ir.action.act_window.view"
id="act_period_form_close_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="period_view_list_close"/>
<field name="act_window" ref="act_period_form_close"/>
</record>
<menuitem
parent="menu_processing"
action="act_period_form_close"
sequence="30"
id="menu_close_period"/>
<record model="ir.rule.group" id="rule_group_period_companies">
<field name="name">User in companies</field>
<field name="model" search="[('model', '=', 'account.period')]"/>
<field name="global_p" eval="True"/>
</record>
<record model="ir.rule" id="rule_period_companies">
<field name="domain"
eval="[('company', 'in', Eval('companies', []))]"
pyson="1"/>
<field name="rule_group" ref="rule_group_period_companies"/>
</record>
</data>
</tryton>
+154
View File
@@ -0,0 +1,154 @@
#!/usr/bin/env python3
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import io
import os
import re
from configparser import ConfigParser
from setuptools import find_packages, setup
def read(fname):
content = io.open(
os.path.join(os.path.dirname(__file__), fname),
'r', encoding='utf-8').read()
content = re.sub(
r'(?m)^\.\. toctree::\r?\n((^$|^\s.*$)\r?\n)*', '', content)
return content
def get_require_version(name):
if minor_version % 2:
require = '%s >= %s.%s.dev0, < %s.%s'
else:
require = '%s >= %s.%s, < %s.%s'
require %= (name, major_version, minor_version,
major_version, minor_version + 1)
return require
config = ConfigParser()
config.read_file(open(os.path.join(os.path.dirname(__file__), 'tryton.cfg')))
info = dict(config.items('tryton'))
for key in ('depends', 'extras_depend', 'xml'):
if key in info:
info[key] = info[key].strip().splitlines()
version = info.get('version', '0.0.1')
major_version, minor_version, _ = version.split('.', 2)
major_version = int(major_version)
minor_version = int(minor_version)
name = 'trytond_account'
download_url = 'http://downloads.tryton.org/%s.%s/' % (
major_version, minor_version)
if minor_version % 2:
version = '%s.%s.dev0' % (major_version, minor_version)
download_url = (
'hg+http://hg.tryton.org/modules/%s#egg=%s-%s' % (
name[8:], name, version))
local_version = []
if os.environ.get('CI_JOB_ID'):
local_version.append(os.environ['CI_JOB_ID'])
else:
for build in ['CI_BUILD_NUMBER', 'CI_JOB_NUMBER']:
if os.environ.get(build):
local_version.append(os.environ[build])
else:
local_version = []
break
if local_version:
version += '+' + '.'.join(local_version)
requires = ['python-dateutil', 'python-sql >= 0.7', 'simpleeval']
for dep in info.get('depends', []):
if not re.match(r'(ir|res)(\W|$)', dep):
requires.append(get_require_version('trytond_%s' % dep))
requires.append(get_require_version('trytond'))
tests_require = [get_require_version('proteus')]
dependency_links = []
if minor_version % 2:
dependency_links.append(
'https://trydevpi.tryton.org/?local_version='
+ '.'.join(local_version))
setup(name=name,
version=version,
description='Tryton module for accounting',
long_description=read('README.rst'),
author='Tryton',
author_email='bugs@tryton.org',
url='http://www.tryton.org/',
download_url=download_url,
project_urls={
"Bug Tracker": 'https://bugs.tryton.org/',
"Documentation": 'https://docs.tryton.org/projects/modules-account/',
"Forum": 'https://www.tryton.org/forum',
"Source Code": 'https://hg.tryton.org/modules/account',
},
keywords='tryton account',
package_dir={'trytond.modules.account': '.'},
packages=(
['trytond.modules.account']
+ ['trytond.modules.account.%s' % p for p in find_packages()]
),
package_data={
'trytond.modules.account': (info.get('xml', [])
+ ['tryton.cfg', 'view/*.xml', 'locale/*.po', '*.fodt',
'icons/*.svg', 'tests/*.rst']),
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Plugins',
'Framework :: Tryton',
'Intended Audience :: Developers',
'Intended Audience :: Financial and Insurance Industry',
'Intended Audience :: Legal Industry',
'License :: OSI Approved :: '
'GNU General Public License v3 or later (GPLv3+)',
'Natural Language :: Bulgarian',
'Natural Language :: Catalan',
'Natural Language :: Chinese (Simplified)',
'Natural Language :: Czech',
'Natural Language :: Dutch',
'Natural Language :: English',
'Natural Language :: Finnish',
'Natural Language :: French',
'Natural Language :: German',
'Natural Language :: Hungarian',
'Natural Language :: Indonesian',
'Natural Language :: Italian',
'Natural Language :: Persian',
'Natural Language :: Polish',
'Natural Language :: Portuguese (Brazilian)',
'Natural Language :: Romanian',
'Natural Language :: Russian',
'Natural Language :: Slovenian',
'Natural Language :: Spanish',
'Natural Language :: Turkish',
'Natural Language :: Ukrainian',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Office/Business',
'Topic :: Office/Business :: Financial :: Accounting',
],
license='GPL-3',
python_requires='>=3.7',
install_requires=requires,
extras_require={
'test': tests_require,
},
dependency_links=dependency_links,
zip_safe=False,
entry_points="""
[trytond.modules]
account = trytond.modules.account
""",
)
File diff suppressed because it is too large Load Diff
+538
View File
@@ -0,0 +1,538 @@
<?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>
<menuitem
name="Taxes"
parent="menu_account_configuration"
sequence="50"
id="menu_taxes"/>
<record model="ir.ui.view" id="tax_group_view_form">
<field name="model">account.tax.group</field>
<field name="type">form</field>
<field name="name">tax_group_form</field>
</record>
<record model="ir.ui.view" id="tax_group_view_tree">
<field name="model">account.tax.group</field>
<field name="type">tree</field>
<field name="name">tax_group_tree</field>
</record>
<record model="ir.action.act_window" id="act_tax_group_form">
<field name="name">Groups</field>
<field name="res_model">account.tax.group</field>
</record>
<record model="ir.action.act_window.view" id="act_tax_group_form_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="tax_group_view_tree"/>
<field name="act_window" ref="act_tax_group_form"/>
</record>
<record model="ir.action.act_window.view" id="act_tax_group_form_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="tax_group_view_form"/>
<field name="act_window" ref="act_tax_group_form"/>
</record>
<menuitem
parent="menu_taxes"
action="act_tax_group_form"
sequence="20"
id="menu_tax_group_form"/>
<record model="ir.model.access" id="access_tax_group">
<field name="model" search="[('model', '=', 'account.tax.group')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_tax_group_account_admin">
<field name="model" search="[('model', '=', 'account.tax.group')]"/>
<field name="group" ref="group_account_admin"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.ui.view" id="tax_code_template_view_form">
<field name="model">account.tax.code.template</field>
<field name="type">form</field>
<field name="name">tax_code_template_form</field>
</record>
<record model="ir.ui.view" id="tax_code_template_view_tree">
<field name="model">account.tax.code.template</field>
<field name="type">tree</field>
<field name="field_childs">childs</field>
<field name="name">tax_code_template_tree</field>
</record>
<record model="ir.action.act_window" id="act_tax_code_template_tree">
<field name="name">Tax Codes</field>
<field name="res_model">account.tax.code.template</field>
<field name="domain" eval="[('parent', '=', None)]" pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_tax_code_template_tree_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="tax_code_template_view_tree"/>
<field name="act_window" ref="act_tax_code_template_tree"/>
</record>
<record model="ir.action.act_window.view" id="act_tax_code_template_tree_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="tax_code_template_view_form"/>
<field name="act_window" ref="act_tax_code_template_tree"/>
</record>
<menuitem
parent="menu_templates"
action="act_tax_code_template_tree"
sequence="20"
id="menu_tax_code_template_tree"/>
<record model="ir.model.access" id="access_tax_code_template">
<field name="model" search="[('model', '=', 'account.tax.code.template')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.ui.view" id="tax_code_view_form">
<field name="model">account.tax.code</field>
<field name="type">form</field>
<field name="name">tax_code_form</field>
</record>
<record model="ir.ui.view" id="tax_code_view_tree">
<field name="model">account.tax.code</field>
<field name="type">tree</field>
<field name="field_childs">childs</field>
<field name="name">tax_code_tree</field>
</record>
<record model="ir.ui.view" id="tax_code_view_list">
<field name="model">account.tax.code</field>
<field name="type">tree</field>
<field name="name">tax_code_list</field>
</record>
<record model="ir.action.act_window" id="act_tax_code_tree">
<field name="name">Codes</field>
<field name="res_model">account.tax.code</field>
<field name="domain" eval="[('parent', '=', None)]" pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_tax_code_tree_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="tax_code_view_tree"/>
<field name="act_window" ref="act_tax_code_tree"/>
</record>
<record model="ir.action.act_window.view" id="act_tax_code_tree_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="tax_code_view_form"/>
<field name="act_window" ref="act_tax_code_tree"/>
</record>
<menuitem
parent="menu_taxes"
action="act_tax_code_tree"
sequence="20"
id="menu_tax_code_tree"/>
<record model="ir.action.act_window" id="act_tax_code_list">
<field name="name">Codes</field>
<field name="res_model">account.tax.code</field>
</record>
<record model="ir.action.act_window.view" id="act_tax_code_list_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="tax_code_view_list"/>
<field name="act_window" ref="act_tax_code_list"/>
</record>
<record model="ir.action.act_window.view" id="act_tax_code_list_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="tax_code_view_form"/>
<field name="act_window" ref="act_tax_code_list"/>
</record>
<menuitem
parent="menu_tax_code_tree"
action="act_tax_code_list"
sequence="10"
id="menu_tax_code_list"/>
<record model="ir.ui.view" id="tax_code_view_tree_chart">
<field name="model">account.tax.code</field>
<field name="type">tree</field>
<field name="field_childs">childs</field>
<field name="name">tax_code_tree_chart</field>
</record>
<record model="ir.action.act_window" id="act_tax_code_tree_chart">
<field name="name">Chart of Tax Codes</field>
<field name="res_model">account.tax.code</field>
<field name="context_model">account.tax.code.context</field>
<field name="domain"
eval="[('parent', '=', None), ('context_company', '=', True)]"
pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_tax_code_tree_chart_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="tax_code_view_tree_chart"/>
<field name="act_window" ref="act_tax_code_tree_chart"/>
</record>
<menuitem
parent="menu_reporting"
action="act_tax_code_tree_chart"
sequence="30"
id="menu_tax_code_tree_chart"/>
<record model="ir.ui.view" id="tax_code_context_view_form">
<field name="model">account.tax.code.context</field>
<field name="type">form</field>
<field name="name">tax_code_context_form</field>
</record>
<record model="ir.model.access" id="access_tax_code">
<field name="model" search="[('model', '=', 'account.tax.code')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_tax_code_account_admin">
<field name="model" search="[('model', '=', 'account.tax.code')]"/>
<field name="group" ref="group_account_admin"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.rule.group" id="rule_group_tax_code_companies">
<field name="name">User in companies</field>
<field name="model" search="[('model', '=', 'account.tax.code')]" />
<field name="global_p" eval="True" />
</record>
<record model="ir.rule" id="rule_tax_code_companies">
<field name="domain"
eval="[('company', 'in', Eval('companies', []))]"
pyson="1"/>
<field name="rule_group" ref="rule_group_tax_code_companies" />
</record>
<record model="ir.ui.view" id="tax_code_line_template_view_form">
<field name="model">account.tax.code.line.template</field>
<field name="type">form</field>
<field name="name">tax_code_line_template_form</field>
</record>
<record model="ir.ui.view" id="tax_code_line_template_view_list">
<field name="model">account.tax.code.line.template</field>
<field name="type">tree</field>
<field name="name">tax_code_line_template_list</field>
</record>
<record model="ir.ui.view" id="tax_code_line_view_form">
<field name="model">account.tax.code.line</field>
<field name="type">form</field>
<field name="name">tax_code_line_form</field>
</record>
<record model="ir.ui.view" id="tax_code_line_view_list">
<field name="model">account.tax.code.line</field>
<field name="type">tree</field>
<field name="name">tax_code_line_list</field>
</record>
<record model="ir.ui.view" id="tax_template_view_form">
<field name="model">account.tax.template</field>
<field name="type">form</field>
<field name="name">tax_template_form</field>
</record>
<record model="ir.ui.view" id="tax_template_view_list">
<field name="model">account.tax.template</field>
<field name="type">tree</field>
<field name="priority" eval="10"/>
<field name="name">tax_template_list</field>
</record>
<record model="ir.action.act_window" id="act_tax_template_list">
<field name="name">Taxes</field>
<field name="res_model">account.tax.template</field>
<field name="domain" eval="[('parent', '=', None)]" pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_tax_template_list_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="tax_template_view_list"/>
<field name="act_window" ref="act_tax_template_list"/>
</record>
<record model="ir.action.act_window.view" id="act_tax_template_list_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="tax_template_view_form"/>
<field name="act_window" ref="act_tax_template_list"/>
</record>
<menuitem
parent="menu_templates"
action="act_tax_template_list"
sequence="40"
id="menu_tax_template_list"/>
<record model="ir.model.access" id="access_tax_template">
<field name="model" search="[('model', '=', 'account.tax.template')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.ui.view" id="tax_view_form">
<field name="model">account.tax</field>
<field name="type">form</field>
<field name="name">tax_form</field>
</record>
<record model="ir.ui.view" id="tax_view_list">
<field name="model">account.tax</field>
<field name="type">tree</field>
<field name="priority" eval="10"/>
<field name="name">tax_list</field>
</record>
<record model="ir.action.act_window" id="act_tax_list">
<field name="name">Taxes</field>
<field name="res_model">account.tax</field>
<field name="domain"
eval="[('company', '=', Eval('company')), ('parent', '=', None)]"
pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_tax_list_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="tax_view_list"/>
<field name="act_window" ref="act_tax_list"/>
</record>
<record model="ir.action.act_window.view" id="act_tax_list_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="tax_view_form"/>
<field name="act_window" ref="act_tax_list"/>
</record>
<menuitem
parent="menu_taxes"
action="act_tax_list"
sequence="10"
id="menu_tax_list"/>
<record model="ir.model.access" id="access_tax">
<field name="model" search="[('model', '=', 'account.tax')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_tax_account_admin">
<field name="model" search="[('model', '=', 'account.tax')]"/>
<field name="group" ref="group_account_admin"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.rule.group" id="rule_group_tax_companies">
<field name="name">User in companies</field>
<field name="model" search="[('model', '=', 'account.tax')]"/>
<field name="global_p" eval="True"/>
</record>
<record model="ir.rule" id="rule_tax_companies">
<field name="domain"
eval="[('company', 'in', Eval('companies', []))]"
pyson="1"/>
<field name="rule_group" ref="rule_group_tax_companies"/>
</record>
<record model="ir.action.wizard" id="wizard_tax_test">
<field name="name">Test Tax</field>
<field name="wiz_name">account.tax.test</field>
</record>
<record model="ir.action.keyword" id="wizard_tax_test_keyword1">
<field name="keyword">form_action</field>
<field name="model">account.tax,-1</field>
<field name="action" ref="wizard_tax_test"/>
</record>
<menuitem
parent="menu_taxes"
action="wizard_tax_test"
sequence="90"
id="menu_tax_test"/>
<record model="ir.ui.view" id="tax_test_view_form">
<field name="model">account.tax.test</field>
<field name="type">form</field>
<field name="name">tax_test_form</field>
</record>
<record model="ir.ui.view" id="tax_test_result_view_list">
<field name="model">account.tax.test.result</field>
<field name="type">tree</field>
<field name="name">tax_test_result_list</field>
</record>
<record model="ir.ui.view" id="tax_line_view_form">
<field name="model">account.tax.line</field>
<field name="type">form</field>
<field name="name">tax_line_form</field>
</record>
<record model="ir.ui.view" id="tax_line_view_tree">
<field name="model">account.tax.line</field>
<field name="type">tree</field>
<field name="name">tax_line_tree</field>
</record>
<record model="ir.action.act_window" id="act_tax_line_form">
<field name="name">Tax Lines</field>
<field name="res_model">account.tax.line</field>
</record>
<record model="ir.action.act_window.view" id="act_tax_line_form_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="tax_line_view_tree"/>
<field name="act_window" ref="act_tax_line_form"/>
</record>
<record model="ir.action.act_window.view" id="act_tax_line_form_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="tax_line_view_form"/>
<field name="act_window" ref="act_tax_line_form"/>
</record>
<record model="ir.action.wizard" id="act_open_tax_code">
<field name="name">Open Tax Code</field>
<field name="wiz_name">account.tax.open_code</field>
<field name="model">account.tax.code</field>
</record>
<record model="ir.action.keyword" id="act_open_tax_code_keyword">
<field name="keyword">tree_open</field>
<field name="model">account.tax.code,-1</field>
<field name="action" ref="act_open_tax_code"/>
</record>
<record model="ir.ui.view" id="tax_rule_template_view_form">
<field name="model">account.tax.rule.template</field>
<field name="type">form</field>
<field name="name">tax_rule_template_form</field>
</record>
<record model="ir.ui.view" id="tax_rule_template_view_tree">
<field name="model">account.tax.rule.template</field>
<field name="type">tree</field>
<field name="name">tax_rule_template_tree</field>
</record>
<record model="ir.action.act_window" id="act_tax_rule_template_form">
<field name="name">Tax Rules</field>
<field name="res_model">account.tax.rule.template</field>
</record>
<record model="ir.action.act_window.view" id="act_tax_rule_template_form_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="tax_rule_template_view_tree"/>
<field name="act_window" ref="act_tax_rule_template_form"/>
</record>
<record model="ir.action.act_window.view" id="act_tax_rule_template_form_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="tax_rule_template_view_form"/>
<field name="act_window" ref="act_tax_rule_template_form"/>
</record>
<menuitem
parent="menu_templates"
action="act_tax_rule_template_form"
sequence="50"
id="menu_tax_rule_template_form"/>
<record model="ir.model.access" id="access_tax_rule_template">
<field name="model" search="[('model', '=', 'account.tax.rule.template')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.ui.view" id="tax_rule_view_form">
<field name="model">account.tax.rule</field>
<field name="type">form</field>
<field name="name">tax_rule_form</field>
</record>
<record model="ir.ui.view" id="tax_rule_view_tree">
<field name="model">account.tax.rule</field>
<field name="type">tree</field>
<field name="name">tax_rule_tree</field>
</record>
<record model="ir.action.act_window" id="act_tax_rule_form">
<field name="name">Rules</field>
<field name="res_model">account.tax.rule</field>
<field name="domain" eval="[('company', '=', Eval('company'))]"
pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_tax_rule_form_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="tax_rule_view_tree"/>
<field name="act_window" ref="act_tax_rule_form"/>
</record>
<record model="ir.action.act_window.view" id="act_tax_rule_form_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="tax_rule_view_form"/>
<field name="act_window" ref="act_tax_rule_form"/>
</record>
<menuitem
parent="menu_taxes"
action="act_tax_rule_form"
sequence="50"
id="menu_tax_rule_form"/>
<record model="ir.model.access" id="access_tax_rule">
<field name="model" search="[('model', '=', 'account.tax.rule')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_tax_rule_account_admin">
<field name="model" search="[('model', '=', 'account.tax.rule')]"/>
<field name="group" ref="group_account_admin"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.rule.group" id="rule_group_tax_rule_companies">
<field name="name">User in companies</field>
<field name="model" search="[('model', '=', 'account.tax.rule')]"/>
<field name="global_p" eval="True"/>
</record>
<record model="ir.rule" id="rule_tax_rule_companies">
<field name="domain"
eval="[('company', 'in', Eval('companies', []))]"
pyson="1"/>
<field name="rule_group" ref="rule_group_tax_rule_companies"/>
</record>
<record model="ir.ui.view" id="tax_rule_line_template_view_form">
<field name="model">account.tax.rule.line.template</field>
<field name="type">form</field>
<field name="name">tax_rule_line_template_form</field>
</record>
<record model="ir.ui.view" id="tax_rule_line_template_view_tree">
<field name="model">account.tax.rule.line.template</field>
<field name="type">tree</field>
<field name="name">tax_rule_line_template_tree</field>
</record>
<record model="ir.ui.view" id="tax_rule_line_view_form">
<field name="model">account.tax.rule.line</field>
<field name="type">form</field>
<field name="name">tax_rule_line_form</field>
</record>
<record model="ir.ui.view" id="tax_rule_line_view_tree">
<field name="model">account.tax.rule.line</field>
<field name="type">tree</field>
<field name="priority" eval="10"/>
<field name="name">tax_rule_line_tree</field>
</record>
<record model="ir.ui.view" id="tax_rule_line_view_tree_sequence">
<field name="model">account.tax.rule.line</field>
<field name="type">tree</field>
<field name="priority" eval="20"/>
<field name="name">tax_rule_line_tree_sequence</field>
</record>
</data>
</tryton>
+6
View File
@@ -0,0 +1,6 @@
# 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 .test_module import create_chart, get_fiscalyear
__all__ = ['create_chart', 'get_fiscalyear']
@@ -0,0 +1,156 @@
=======================
Account Active Scenario
=======================
Imports::
>>> import datetime
>>> from dateutil.relativedelta import relativedelta
>>> from proteus import Model
>>> from trytond.tests.tools import activate_modules
>>> from trytond.modules.company.tests.tools import create_company, \
... get_company
>>> from trytond.modules.account.tests.tools import create_fiscalyear, \
... create_chart, get_accounts
Activate modules::
>>> config = activate_modules('account')
Create company::
>>> _ = create_company()
>>> company = get_company()
Create fiscal year::
>>> fiscalyear = create_fiscalyear(company)
>>> fiscalyear.click('create_period')
>>> period = fiscalyear.periods[1]
Create chart of accounts::
>>> Account = Model.get('account.account')
>>> _ = create_chart(company)
>>> accounts = get_accounts(company)
>>> cash = accounts['cash']
Check active without start or end date::
>>> cash.active
True
>>> len(Account.find([('id', '=', cash.id)]))
1
>>> len(Account.find([('id', '=', cash.id), ('active', '=', True)]))
1
>>> len(Account.find([('id', '=', cash.id), ('active', 'in', [True])]))
1
>>> len(Account.find([('id', '=', cash.id), ('active', 'in', [True, False])]))
1
Check negative search::
>>> len(Account.find([('id', '=', cash.id), ('active', '=', False)]))
0
>>> len(Account.find([('id', '=', cash.id), ('active', 'in', [False])]))
0
Check active with a start date::
>>> cash.start_date = period.start_date
>>> cash.save()
>>> with config.set_context(date=period.start_date):
... Account(cash.id).active
... len(Account.find([('id', '=', cash.id)]))
True
1
>>> with config.set_context(date=period.end_date):
... Account(cash.id).active
... len(Account.find([('id', '=', cash.id)]))
True
1
>>> with config.set_context(date=fiscalyear.start_date):
... Account(cash.id).active
... len(Account.find([('id', '=', cash.id)]))
True
1
>>> with config.set_context(date=fiscalyear.start_date - relativedelta(days=1)):
... Account(cash.id).active
... len(Account.find([('id', '=', cash.id)]))
False
0
>>> with config.set_context(date=fiscalyear.end_date - relativedelta(days=1)):
... Account(cash.id).active
... len(Account.find([('id', '=', cash.id)]))
True
1
Check active with an end date::
>>> cash.start_date = None
>>> cash.end_date = period.end_date
>>> cash.save()
>>> with config.set_context(date=period.start_date):
... Account(cash.id).active
... len(Account.find([('id', '=', cash.id)]))
True
1
>>> with config.set_context(date=period.end_date):
... Account(cash.id).active
... len(Account.find([('id', '=', cash.id)]))
True
1
>>> with config.set_context(date=fiscalyear.end_date):
... Account(cash.id).active
... len(Account.find([('id', '=', cash.id)]))
True
1
>>> with config.set_context(date=fiscalyear.start_date - relativedelta(days=1)):
... Account(cash.id).active
... len(Account.find([('id', '=', cash.id)]))
True
1
>>> with config.set_context(date=fiscalyear.end_date + relativedelta(days=1)):
... Account(cash.id).active
... len(Account.find([('id', '=', cash.id)]))
False
0
Check active with start and end date::
>>> cash.start_date = period.start_date
>>> cash.end_date = period.end_date
>>> cash.save()
>>> with config.set_context(date=period.start_date):
... Account(cash.id).active
... len(Account.find([('id', '=', cash.id)]))
True
1
>>> with config.set_context(date=period.end_date):
... Account(cash.id).active
... len(Account.find([('id', '=', cash.id)]))
True
1
>>> with config.set_context(date=fiscalyear.start_date):
... Account(cash.id).active
... len(Account.find([('id', '=', cash.id)]))
True
1
>>> with config.set_context(date=fiscalyear.end_date):
... Account(cash.id).active
... len(Account.find([('id', '=', cash.id)]))
True
1
>>> with config.set_context(date=fiscalyear.start_date - relativedelta(days=1)):
... Account(cash.id).active
... len(Account.find([('id', '=', cash.id)]))
False
0
>>> with config.set_context(date=fiscalyear.end_date + relativedelta(days=1)):
... Account(cash.id).active
... len(Account.find([('id', '=', cash.id)]))
False
0

Some files were not shown because too many files have changed in this diff Show More