Automatic Update form OCA2FC Migrator
This commit is contained in:
commit
e598bc2f45
|
@ -0,0 +1,158 @@
|
|||
image: ubuntu:focal
|
||||
|
||||
stages:
|
||||
- testall
|
||||
- testsingle
|
||||
|
||||
variables:
|
||||
POSTGRES_DB: postgres
|
||||
POSTGRES_USER: flectra
|
||||
POSTGRES_PASSWORD: flectra
|
||||
POSTGRES_HOST: postgres
|
||||
POSTGRES_PORT: "5432"
|
||||
|
||||
services:
|
||||
- name: postgres:12-alpine
|
||||
alias: psql
|
||||
|
||||
|
||||
test_all_modules:
|
||||
stage: testall
|
||||
image:
|
||||
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
||||
entrypoint: ["/bin/sh", "-c"]
|
||||
script:
|
||||
- apt-get install -y p7zip-full
|
||||
- apt-get install -y expect-dev
|
||||
- su - flectra -c "mkdir ~/others"
|
||||
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/reporting-engine.git ~/others/reporting-engine"
|
||||
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
||||
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
||||
- mkdir ${CI_PROJECT_DIR}/ci_data
|
||||
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
||||
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
||||
- export PGPASSWORD="flectra"
|
||||
- createdb -h psql -U flectra -O flectra -T template1 test_all
|
||||
- psql -h psql -U flectra -d test_all -f ${CI_PROJECT_DIR}/ci_data/dump.sql
|
||||
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
||||
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_all
|
||||
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_all
|
||||
- su - flectra -c "/opt/flectra/flectra-bin
|
||||
--addons-path ${CI_PROJECT_DIR},~/others/reporting-engine,~/others/server-ux
|
||||
--db_host psql
|
||||
--db_port 5432
|
||||
--db_user flectra
|
||||
--db_password flectra
|
||||
--database test_all
|
||||
--test-enable
|
||||
--init mis_builder_budget,mis_builder_demo,mis_builder
|
||||
--stop-after-init
|
||||
--log-level error
|
||||
--log-handler flectra.addons.mis_builder_budget:TEST
|
||||
--log-handler flectra.addons.mis_builder_demo:TEST
|
||||
--log-handler flectra.addons.mis_builder:TEST
|
||||
"
|
||||
|
||||
|
||||
test_module_mis_builder_budget:
|
||||
stage: testsingle
|
||||
when: on_failure
|
||||
image:
|
||||
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
||||
entrypoint: ["/bin/sh", "-c"]
|
||||
script:
|
||||
- apt-get install -y p7zip-full
|
||||
- apt install -y expect-dev
|
||||
- su - flectra -c "mkdir ~/others"
|
||||
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/reporting-engine.git ~/others/reporting-engine"
|
||||
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
||||
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
||||
- mkdir ${CI_PROJECT_DIR}/ci_data
|
||||
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
||||
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
||||
- export PGPASSWORD="flectra"
|
||||
- createdb -h psql -U flectra -O flectra -T template1 test_mis_builder_budget
|
||||
- psql -h psql -U flectra -d test_mis_builder_budget -f ${CI_PROJECT_DIR}/ci_data/dump.sql
|
||||
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
||||
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_mis_builder_budget
|
||||
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_mis_builder_budget
|
||||
- su - flectra -c "/opt/flectra/flectra-bin
|
||||
--addons-path ${CI_PROJECT_DIR},~/others/reporting-engine,~/others/server-ux
|
||||
--db_host psql
|
||||
--db_port 5432
|
||||
--db_user flectra
|
||||
--db_password flectra
|
||||
--database test_mis_builder_budget
|
||||
--test-enable -i mis_builder_budget
|
||||
--stop-after-init
|
||||
--log-level error
|
||||
--log-handler flectra.addons.mis_builder_budget:TEST"
|
||||
|
||||
test_module_mis_builder_demo:
|
||||
stage: testsingle
|
||||
when: on_failure
|
||||
image:
|
||||
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
||||
entrypoint: ["/bin/sh", "-c"]
|
||||
script:
|
||||
- apt-get install -y p7zip-full
|
||||
- apt install -y expect-dev
|
||||
- su - flectra -c "mkdir ~/others"
|
||||
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/reporting-engine.git ~/others/reporting-engine"
|
||||
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
||||
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
||||
- mkdir ${CI_PROJECT_DIR}/ci_data
|
||||
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
||||
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
||||
- export PGPASSWORD="flectra"
|
||||
- createdb -h psql -U flectra -O flectra -T template1 test_mis_builder_demo
|
||||
- psql -h psql -U flectra -d test_mis_builder_demo -f ${CI_PROJECT_DIR}/ci_data/dump.sql
|
||||
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
||||
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_mis_builder_demo
|
||||
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_mis_builder_demo
|
||||
- su - flectra -c "/opt/flectra/flectra-bin
|
||||
--addons-path ${CI_PROJECT_DIR},~/others/reporting-engine,~/others/server-ux
|
||||
--db_host psql
|
||||
--db_port 5432
|
||||
--db_user flectra
|
||||
--db_password flectra
|
||||
--database test_mis_builder_demo
|
||||
--test-enable -i mis_builder_demo
|
||||
--stop-after-init
|
||||
--log-level error
|
||||
--log-handler flectra.addons.mis_builder_demo:TEST"
|
||||
|
||||
test_module_mis_builder:
|
||||
stage: testsingle
|
||||
when: on_failure
|
||||
image:
|
||||
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
||||
entrypoint: ["/bin/sh", "-c"]
|
||||
script:
|
||||
- apt-get install -y p7zip-full
|
||||
- apt install -y expect-dev
|
||||
- su - flectra -c "mkdir ~/others"
|
||||
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/reporting-engine.git ~/others/reporting-engine"
|
||||
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
||||
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
||||
- mkdir ${CI_PROJECT_DIR}/ci_data
|
||||
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
||||
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
||||
- export PGPASSWORD="flectra"
|
||||
- createdb -h psql -U flectra -O flectra -T template1 test_mis_builder
|
||||
- psql -h psql -U flectra -d test_mis_builder -f ${CI_PROJECT_DIR}/ci_data/dump.sql
|
||||
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
||||
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_mis_builder
|
||||
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_mis_builder
|
||||
- su - flectra -c "/opt/flectra/flectra-bin
|
||||
--addons-path ${CI_PROJECT_DIR},~/others/reporting-engine,~/others/server-ux
|
||||
--db_host psql
|
||||
--db_port 5432
|
||||
--db_user flectra
|
||||
--db_password flectra
|
||||
--database test_mis_builder
|
||||
--test-enable -i mis_builder
|
||||
--stop-after-init
|
||||
--log-level error
|
||||
--log-handler flectra.addons.mis_builder:TEST"
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
**Summary**
|
||||
|
||||
(Summarize the bug encountered concisely)
|
||||
|
||||
|
||||
**Steps to reproduce**
|
||||
|
||||
(How one can reproduce the issue - this is very important)
|
||||
|
||||
|
||||
**What is the current bug behavior?**
|
||||
|
||||
(What actually happens)
|
||||
|
||||
|
||||
**What is the expected correct behavior?**
|
||||
|
||||
(What you should see instead)
|
||||
|
||||
|
||||
**Relevant logs and/or screenshots**
|
||||
|
||||
(Paste any relevant logs - please use code blocks (```) to format console output,
|
||||
logs, and code as it's very hard to read otherwise.)
|
||||
|
||||
|
||||
**Possible fixes**
|
||||
|
||||
(If you can, link to the line of code that might be responsible for the problem)
|
||||
|
||||
/label ~bug
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
# Flectra Community / Flectra 2.0 / mis-builder
|
||||
|
||||
None
|
||||
|
||||
|
||||
|
||||
Available addons
|
||||
----------------
|
||||
|
||||
addon | version | summary
|
||||
--- | --- | ---
|
||||
[mis_builder_budget](mis_builder_budget/) | 2.0.3.5.0| Create budgets for MIS reports
|
||||
[mis_builder_demo](mis_builder_demo/) | 2.0.3.1.2| Demo addon for MIS Builder
|
||||
[mis_builder](mis_builder/) | 2.0.3.6.3| Build 'Management Information System' Reports and Dashboards
|
||||
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
Most of the files are
|
||||
|
||||
/* Copyright 2014-2019 ACSONE SA/NV (<http://acsone.eu>)
|
||||
:Copyright: This stylesheet has been placed in the public domain.
|
||||
Copyright 2014 ACSONE SA/NV (<http://acsone.eu>)
|
||||
Copyright 2014-2018 ACSONE SA/NV (<http://acsone.eu>)
|
||||
Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
|
||||
Copyright 2016 Akretion (<http://akretion.com>)
|
||||
Copyright 2016 Therp BV (<http://therp.nl>)
|
||||
Copyright 2016 Thomas Binsfeld
|
||||
Copyright 2017 ACSONE SA/NV
|
||||
Copyright 2017 ACSONE SA/NV (<http://acsone.eu>)
|
||||
Copyright 2019 ACSONE SA/NV (<http://acsone.eu>)
|
||||
Copyright 2020 ACSONE SA/NV
|
||||
Copyright 2020 ACSONE SA/NV (<http://acsone.eu>)
|
||||
Copyright 2018 Flectra Community
|
||||
|
||||
Many files also contain contributions from third
|
||||
parties. In this case the original copyright of
|
||||
the contributions can be traced through the
|
||||
history of the source version control system.
|
||||
|
||||
When that is not the case, the files contain a prominent
|
||||
notice stating the original copyright and applicable
|
||||
license, or come with their own dedicated COPYRIGHT
|
||||
and/or LICENSE file.
|
|
@ -0,0 +1,663 @@
|
|||
For copyright information, please see the COPYRIGHT file.
|
||||
|
||||
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
Version 3, 19 November 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 Affero General Public License is a free, copyleft license for
|
||||
software and other kinds of works, specifically designed to ensure
|
||||
cooperation with the community in the case of network server software.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
our General Public Licenses are 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.
|
||||
|
||||
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.
|
||||
|
||||
Developers that use our General Public Licenses protect your rights
|
||||
with two steps: (1) assert copyright on the software, and (2) offer
|
||||
you this License which gives you legal permission to copy, distribute
|
||||
and/or modify the software.
|
||||
|
||||
A secondary benefit of defending all users' freedom is that
|
||||
improvements made in alternate versions of the program, if they
|
||||
receive widespread use, become available for other developers to
|
||||
incorporate. Many developers of free software are heartened and
|
||||
encouraged by the resulting cooperation. However, in the case of
|
||||
software used on network servers, this result may fail to come about.
|
||||
The GNU General Public License permits making a modified version and
|
||||
letting the public access it on a server without ever releasing its
|
||||
source code to the public.
|
||||
|
||||
The GNU Affero General Public License is designed specifically to
|
||||
ensure that, in such cases, the modified source code becomes available
|
||||
to the community. It requires the operator of a network server to
|
||||
provide the source code of the modified version running there to the
|
||||
users of that server. Therefore, public use of a modified version, on
|
||||
a publicly accessible server, gives the public access to the source
|
||||
code of the modified version.
|
||||
|
||||
An older license, called the Affero General Public License and
|
||||
published by Affero, was designed to accomplish similar goals. This is
|
||||
a different license, not a version of the Affero GPL, but Affero has
|
||||
released a new version of the Affero GPL which permits relicensing under
|
||||
this license.
|
||||
|
||||
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 Affero 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. Remote Network Interaction; Use with the GNU General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, if you modify the
|
||||
Program, your modified version must prominently offer all users
|
||||
interacting with it remotely through a computer network (if your version
|
||||
supports such interaction) an opportunity to receive the Corresponding
|
||||
Source of your version by providing access to the Corresponding Source
|
||||
from a network server at no charge, through some standard or customary
|
||||
means of facilitating copying of software. This Corresponding Source
|
||||
shall include the Corresponding Source for any work covered by version 3
|
||||
of the GNU General Public License that is incorporated pursuant to the
|
||||
following paragraph.
|
||||
|
||||
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 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 work with which it is combined will remain governed by version
|
||||
3 of the GNU General Public License.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU Affero 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 Affero 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 Affero 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 Affero 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 Affero 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 Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero 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 your software can interact with users remotely through a computer
|
||||
network, you should also make sure that it provides a way for users to
|
||||
get its source. For example, if your program is a web application, its
|
||||
interface could display a "Source" link that leads users to an archive
|
||||
of the code. There are many ways you could offer source, and different
|
||||
solutions will be better for different programs; see section 13 for the
|
||||
specific requirements.
|
||||
|
||||
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 AGPL, see
|
||||
<http://www.gnu.org/licenses/>.
|
|
@ -0,0 +1,559 @@
|
|||
===========
|
||||
MIS Builder
|
||||
===========
|
||||
|
||||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
|
||||
:target: https://odoo-community.org/page/development-status
|
||||
:alt: Production/Stable
|
||||
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
|
||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||
:alt: License: AGPL-3
|
||||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmis--builder-lightgray.png?logo=github
|
||||
:target: https://github.com/OCA/mis-builder/tree/13.0/mis_builder
|
||||
:alt: OCA/mis-builder
|
||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
||||
:target: https://translation.odoo-community.org/projects/mis-builder-13-0/mis-builder-13-0-mis_builder
|
||||
:alt: Translate me on Weblate
|
||||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
|
||||
:target: https://runbot.odoo-community.org/runbot/248/13.0
|
||||
:alt: Try me on Runbot
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
|
||||
This module allows you to build Management Information Systems dashboards.
|
||||
Such style of reports presents KPI in rows and time periods in columns.
|
||||
Reports mainly fetch data from account moves, but can also combine data coming
|
||||
from arbitrary Odoo models. Reports can be exported to PDF, Excel and they
|
||||
can be added to Odoo dashboards.
|
||||
|
||||
**Table of contents**
|
||||
|
||||
.. contents::
|
||||
:local:
|
||||
|
||||
Installation
|
||||
============
|
||||
|
||||
Your preferred way to install addons will work with MIS Builder.
|
||||
|
||||
An easy way to install it with all its dependencies is using pip:
|
||||
|
||||
* ``pip install --pre odoo12-addon-mis_builder``
|
||||
* then restart Odoo, update the addons list in your database, and install
|
||||
the MIS Builder application.
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
To configure this module, you need to:
|
||||
|
||||
* Go to Accounting > Configuration > MIS Reporting > MIS Report Templates where
|
||||
you can create report templates by defining KPI's. KPI's constitute the rows of your
|
||||
reports. Such report templates are time independent.
|
||||
|
||||
.. figure:: https://raw.githubusercontent.com/OCA/mis-builder/10.0/mis_builder/static/description/ex_report_template.png
|
||||
:alt: Sample report template
|
||||
:width: 80 %
|
||||
:align: center
|
||||
|
||||
* Then in Accounting > Reports > MIS Reporting > MIS Reports you can create report instance by
|
||||
binding the templates to time periods, hence defining the columns of your reports.
|
||||
|
||||
.. figure:: https://raw.githubusercontent.com/OCA/mis-builder/10.0/mis_builder/static/description/ex_report_settings.png
|
||||
:alt: Sample report configuration
|
||||
:width: 80 %
|
||||
:align: center
|
||||
|
||||
* From the MIS Reports view, you can preview the report, add it to and Odoo dashboard,
|
||||
and export it to PDF or Excel.
|
||||
|
||||
.. figure:: https://raw.githubusercontent.com/OCA/mis-builder/10.0/mis_builder/static/description/ex_report_preview.png
|
||||
:alt: Sample preview
|
||||
:width: 80 %
|
||||
:align: center
|
||||
|
||||
Development
|
||||
===========
|
||||
|
||||
A typical extension is to provide a mechanism to filter reports on analytic dimensions
|
||||
or operational units. To implement this, you can override _get_additional_move_line_filter
|
||||
and _get_additional_filter to further filter move lines or queries based on a user
|
||||
selection. A typical use case could be to add an analytic account field on mis.report.instance,
|
||||
or even on mis.report.instance.period if you want different columns to show different
|
||||
analytic accounts.
|
||||
|
||||
Known issues / Roadmap
|
||||
======================
|
||||
|
||||
The mis_builder `roadmap <https://github.com/OCA/mis-builder/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement>`_
|
||||
and `known issues <https://github.com/OCA/mis-builder/issues?q=is%3Aopen+is%3Aissue+label%3Abug>`_ can
|
||||
be found on GitHub.
|
||||
|
||||
Changelog
|
||||
=========
|
||||
|
||||
13.0.3.6.3 (2020-08-28)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
**Bugfixes**
|
||||
|
||||
- Having a "Compare columns" added on a KPI with an associated style using a
|
||||
Factor/Divider did lead to the said factor being applied on the percentages
|
||||
when exporting to XLSX. (`#300 <https://github.com/OCA/mis-builder/issues/300>`_)
|
||||
|
||||
|
||||
**Misc**
|
||||
|
||||
- `#280 <https://github.com/OCA/mis-builder/issues/280>`_, `#296 <https://github.com/OCA/mis-builder/issues/296>`_
|
||||
|
||||
|
||||
13.0.3.6.2 (2020-04-22)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
**Bugfixes**
|
||||
|
||||
- The "Settings" button is now displayed for users with the "Show full accounting features" right when previewing a report. (`#281 <https://github.com/OCA/mis-builder/issues/281>`_)
|
||||
|
||||
|
||||
13.0.3.6.1 (2020-04-22)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
**Bugfixes**
|
||||
|
||||
- Fix ``TypeError: 'module' object is not iterable`` when using
|
||||
budgets by account. (`#276 <https://github.com/OCA/mis-builder/issues/276>`_)
|
||||
|
||||
|
||||
13.0.3.6.0 (2020-03-28)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
**Features**
|
||||
|
||||
- Add column-level filters on analytic account and analytic tags.
|
||||
These filters are combined with a AND with the report-level filters
|
||||
and cannot be modified in the preview. (`#138 <https://github.com/OCA/mis-builder/issues/138>`_)
|
||||
- Access to KPI from other reports in KPI expressions, aka subreports. In a
|
||||
report template, one can list named "subreports" (other report templates). When
|
||||
evaluating expressions, you can access KPI's of subreports with a dot-prefix
|
||||
notation. Example: you can define a MIS Report for a "Balance Sheet", and then
|
||||
have another MIS Report "Balance Sheet Ratios" that fetches KPI's from "Balance
|
||||
Sheet" to create new KPI's for the ratios (e.g. balance_sheet.current_assets /
|
||||
balance_sheet.total_assets). (`#155 <https://github.com/OCA/mis-builder/issues/155>`_)
|
||||
|
||||
|
||||
13.0.3.5.0 (2020-01-??)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Migration to odoo 13.0.
|
||||
|
||||
12.0.3.5.0 (2019-10-26)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
**Features**
|
||||
|
||||
- The ``account_id`` field of the model selected in 'Move lines source'
|
||||
in the Period form can now be a Many2one
|
||||
relationship with any model that has a ``code`` field (not only with
|
||||
``account.account`` model). To this end, the model to be used for Actuals
|
||||
move lines can be configured on the report template. It can be something else
|
||||
than move lines and the only constraint is that its ``account_id`` field
|
||||
as a ``code`` field. (`#149 <https://github.com/oca/mis-builder/issues/149>`_)
|
||||
- Add ``source_aml_model_name`` field so extension modules providing
|
||||
alternative data sources can more easily customize their data source. (`#214 <https://github.com/oca/mis-builder/issues/214>`_)
|
||||
- Support analytic tag filters in the backend view and preview widget.
|
||||
Selecting several tags in the filter means filtering on move lines which
|
||||
have *all* these tags set. This is to support the most common use case of
|
||||
using tags for different dimensions. The filter also makes a AND with the
|
||||
analytic account filter. (`#228 <https://github.com/oca/mis-builder/issues/228>`_)
|
||||
- Display company in account details rows in multi-company mode. (`#242 <https://github.com/oca/mis-builder/issues/242>`_)
|
||||
|
||||
|
||||
**Bugfixes**
|
||||
|
||||
- Propagate context to xlsx report, so the analytic account filter
|
||||
works when exporting to xslx too. This also requires a fix to
|
||||
``report_xlsx`` (see https://github.com/OCA/reporting-engine/pull/259). (`#178 <https://github.com/oca/mis-builder/issues/178>`_)
|
||||
- In columns of type Sum, preserve styles for KPIs that are not summable
|
||||
(eg percentage values). Before this fix, such cells were displayed without
|
||||
style. (`#219 <https://github.com/oca/mis-builder/issues/219>`_)
|
||||
- In Excel export, keep the percentage point suffix (pp) instead of replacing it with %. (`#220 <https://github.com/oca/mis-builder/issues/220>`_)
|
||||
|
||||
|
||||
12.0.3.4.0 (2019-07-09)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
**Features**
|
||||
|
||||
- New year-to-date mode for defining periods. (`#165 <https://github.com/oca/mis-builder/issues/165>`_)
|
||||
- Add support for move lines with negative debit or credit.
|
||||
Used by some for storno accounting. Not officially supported. (`#175 <https://github.com/oca/mis-builder/issues/175>`_)
|
||||
- In Excel export, use a number format with thousands separator. The
|
||||
specific separator used depends on the Excel configuration (eg regional
|
||||
settings). (`#190 <https://github.com/oca/mis-builder/issues/190>`_)
|
||||
- Add generation date/time at the end of the XLS export. (`#191 <https://github.com/oca/mis-builder/issues/191>`_)
|
||||
- In presence of Sub KPIs, report more informative user errors when
|
||||
non-multi expressions yield tuples of incorrect lenght. (`#196 <https://github.com/oca/mis-builder/issues/196>`_)
|
||||
|
||||
|
||||
**Bugfixes**
|
||||
|
||||
- Fix rendering of percentage types in Excel export. (`#192 <https://github.com/oca/mis-builder/issues/192>`_)
|
||||
|
||||
|
||||
12.0.3.3.0 (2019-01-26)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
**Features**
|
||||
|
||||
*Dynamic analytic filters in report preview are not yet available in 11,
|
||||
this requires an update to the JS widget that proved difficult to implement
|
||||
so far. Help welcome.*
|
||||
|
||||
- Analytic account filters. On a report, an analytic
|
||||
account can be selected for filtering. The filter will
|
||||
be applied to move lines queries. A filter box is also
|
||||
available in the widget to let the user select the analytic
|
||||
account during report preview. (`#15 <https://github.com/oca/mis-builder/issues/15>`_)
|
||||
- Control visibility of analytic filter combo box in widget.
|
||||
This is useful to hide the analytic filters on reports where
|
||||
they do not make sense, such as balance sheet reports. (`#42 <https://github.com/oca/mis-builder/issues/42>`_)
|
||||
- Display analytic filters in the header of exported pdf and xls. (`#44 <https://github.com/oca/mis-builder/issues/44>`_)
|
||||
- Replace the last old gtk icons with fontawesome icons. (`#104 <https://github.com/oca/mis-builder/issues/104>`_)
|
||||
- Use active_test=False in AEP queries.
|
||||
This is important for reports involving inactive taxes.
|
||||
This should not negatively effect existing reports, because
|
||||
an accounting report must take into account all existing move lines
|
||||
even if they reference objects such as taxes, journals, accounts types
|
||||
that have been deactivated since their creation. (`#107 <https://github.com/oca/mis-builder/issues/107>`_)
|
||||
- int(), float() and round() support for AccountingNone. (`#108 <https://github.com/oca/mis-builder/issues/108>`_)
|
||||
- Allow referencing subkpis by name by writing `kpi_x.subkpi_y` in expressions. (`#114 <https://github.com/oca/mis-builder/issues/114>`_)
|
||||
- Add an option to control the display of the start/end dates in the
|
||||
column headers. It is disabled by default (this is a change compared
|
||||
to previous behaviour). (`#118 <https://github.com/oca/mis-builder/issues/118>`_)
|
||||
- Add evaluate method to mis.report. This is a simplified
|
||||
method to evaluate kpis of a report over a time period,
|
||||
without creating a mis.report.instance. (`#123 <https://github.com/oca/mis-builder/issues/123>`_)
|
||||
|
||||
**Bugs**
|
||||
|
||||
- In the style form, hide the "Hide always" checkbox when "Hide always inherit"
|
||||
is checked, as for all other syle elements. (`#121 <https://github.com/OCA/mis-builder/pull/121>_`)
|
||||
|
||||
**Upgrading from 3.2 (breaking changes)**
|
||||
|
||||
If you use ``Actuals (alternative)`` data source in combination with analytic
|
||||
filters, the underlying model must now have an ``analytic_account_id`` field.
|
||||
|
||||
|
||||
11.0.3.2.2 (2018-06-30)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
* [FIX] Fix bug in company_default_get call returning
|
||||
id instead of recordset
|
||||
(`#103 <https://github.com/OCA/mis-builder/pull/103>`_)
|
||||
* [IMP] add "hide always" style property to make hidden KPI's
|
||||
(for KPI that serve as basis for other formulas, but do not
|
||||
need to be displayed).
|
||||
(`#46 <https://github.com/OCA/mis-builder/issues/46>`_)
|
||||
|
||||
11.0.3.2.1 (2018-05-29)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
* [FIX] Missing comparison operator for AccountingNone
|
||||
leading to errors in pbal computations
|
||||
(`#93 <https://github.com/OCA/mis-builder/issue/93>`_)
|
||||
|
||||
10.0.3.2.0 (2018-05-02)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
* [FIX] make subkpi ordering deterministic
|
||||
(`#71 <https://github.com/OCA/mis-builder/issues/71>`_)
|
||||
* [ADD] report instance level option to disable account expansion,
|
||||
enabling the creation of detailed templates while deferring the decision
|
||||
of rendering the details or not to the report instance
|
||||
(`#74 <https://github.com/OCA/mis-builder/issues/74>`_)
|
||||
* [ADD] pbal and nbal accounting expressions, to sum positive
|
||||
and negative balances respectively (ie ignoring accounts with negative,
|
||||
resp positive balances)
|
||||
(`#86 <https://github.com/OCA/mis-builder/issues/86>`_)
|
||||
|
||||
11.0.3.1.2 (2018-02-04)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Migration to Odoo 11. No new feature.
|
||||
(`#67 <https://github.com/OCA/mis-builder/pull/67>`_)
|
||||
|
||||
10.0.3.1.1 (2017-11-14)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
New features:
|
||||
|
||||
* [ADD] month and year relative periods, easier to use than
|
||||
date ranges for the most common case.
|
||||
(`#2 <https://github.com/OCA/mis-builder/issues/2>`_)
|
||||
* [ADD] multi-company consolidation support, with currency conversion
|
||||
(the conversion rate date is the end of the reporting period)
|
||||
(`#7 <https://github.com/OCA/mis-builder/issues/7>`_,
|
||||
`#3 <https://github.com/OCA/mis-builder/issues/3>`_)
|
||||
* [ADD] provide ref, datetime, dateutil, time, user in the evaluation
|
||||
context of move line domains; among other things, this allows using
|
||||
references to xml ids (such as account types or tax tags) when
|
||||
querying move lines
|
||||
(`#26 <https://github.com/OCA/mis-builder/issues/26>`_).
|
||||
* [ADD] extended account selectors: you can now select accounts using
|
||||
any domain on account.account, not only account codes
|
||||
``balp[('user_type_id', '=', ref('account.data_account_type_receivable').id)]``
|
||||
(`#4 <https://github.com/OCA/mis-builder/issues/4>`_).
|
||||
* [IMP] in the report instance configuration form, the filters are
|
||||
now grouped in a notebook page, this improves readability and
|
||||
extensibility
|
||||
(`#39 <https://github.com/OCA/mis-builder/issues/39>`_).
|
||||
|
||||
Bug fixes:
|
||||
|
||||
* [FIX] fix error when saving periods in comparison mode on newly
|
||||
created (not yet saved) report instances.
|
||||
`#50 <https://github.com/OCA/mis-builder/pull/50>`_
|
||||
* [FIX] improve display of Base Date report instance view.
|
||||
`#51 <https://github.com/OCA/mis-builder/pull/51>`_
|
||||
|
||||
Upgrading from 3.0 (breaking changes):
|
||||
|
||||
* Alternative move line data sources must have a company_id field.
|
||||
|
||||
10.0.3.0.4 (2017-10-14)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Bug fix:
|
||||
|
||||
* [FIX] issue with initial balance rounding.
|
||||
`#30 <https://github.com/OCA/mis-builder/issues/30>`_
|
||||
|
||||
10.0.3.0.3 (2017-10-03)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Bug fix:
|
||||
|
||||
* [FIX] fix error saving KPI on newly created reports.
|
||||
`#18 <https://github.com/OCA/mis-builder/issues/18>`_
|
||||
|
||||
10.0.3.0.2 (2017-10-01)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
New features:
|
||||
|
||||
* [ADD] Alternative move line source per report column.
|
||||
This makes mis buidler accounting expressions work on any model
|
||||
that has debit, credit, account_id and date fields. Provided you can
|
||||
expose, say, committed purchases, or your budget as a view with
|
||||
debit, credit and account_id, this opens up a lot of possibilities
|
||||
* [ADD] Comparison column source (more flexible than the previous,
|
||||
now deprecated, comparison mechanism).
|
||||
CAVEAT: there is no automated migration to the new mechanism.
|
||||
* [ADD] Sum column source, to create columns that add/subtract
|
||||
other columns.
|
||||
* [ADD] mis.kpi.data abstract model as a basis for manual KPI values
|
||||
supporting automatic ajustment to the reporting time period (the basis
|
||||
for budget item, but could also server other purposes, such as manually
|
||||
entering some KPI values, such as number of employee)
|
||||
* [ADD] mis_builder_budget module providing a new budget data source
|
||||
* [ADD] new "hide empty" style property
|
||||
* [IMP] new AEP method to get accounts involved in an expression
|
||||
(this is useful to find which KPI relate to a given P&L
|
||||
acount, to implement budget control)
|
||||
* [IMP] many UI improvements
|
||||
* [IMP] many code style improvements and some refactoring
|
||||
* [IMP] add the column date_from, date_to in expression evaluation context,
|
||||
as well as time, datetime and dateutil modules
|
||||
|
||||
Main bug fixes:
|
||||
|
||||
* [FIX] deletion of templates and reports (cascade and retricts)
|
||||
(https://github.com/OCA/account-financial-reporting/issues/281)
|
||||
* [FIX] copy of reports
|
||||
(https://github.com/OCA/account-financial-reporting/issues/282)
|
||||
* [FIX] better error message when periods have wrong/missing dates
|
||||
(https://github.com/OCA/account-financial-reporting/issues/283)
|
||||
* [FIX] xlsx export of string types KPI
|
||||
(https://github.com/OCA/account-financial-reporting/issues/285)
|
||||
* [FIX] sorting of detail by account
|
||||
* [FIX] computation bug in detail by account when multiple accounting
|
||||
expressions were used in a KPI
|
||||
* [FIX] permission issue when adding report to dashboard with non admin user
|
||||
|
||||
10.0.2.0.3 (unreleased)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
* [IMP] more robust behaviour in presence of missing expressions
|
||||
* [FIX] indent style
|
||||
* [FIX] local variable 'ctx' referenced before assignment when generating
|
||||
reports with no objects
|
||||
* [IMP] use fontawesome icons
|
||||
* [MIG] migrate to 10.0
|
||||
* [FIX] unicode error when exporting to Excel
|
||||
* [IMP] provide full access to mis builder style for group Adviser.
|
||||
|
||||
9.0.2.0.2 (2016-09-27)
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
* [IMP] Add refresh button in mis report preview.
|
||||
* [IMP] Widget code changes to allow to add fields in the widget more easily.
|
||||
|
||||
9.0.2.0.1 (2016-05-26)
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
* [IMP] remove unused argument in declare_and_compute_period()
|
||||
for a cleaner API. This is a breaking API changing merged in
|
||||
urgency before it is used by other modules.
|
||||
|
||||
9.0.2.0.0 (2016-05-24)
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Part of the work for this release has been done at the Sorrento sprint
|
||||
April 26-29, 2016. The rest (ie a major refactoring) has been done in
|
||||
the weeks after.
|
||||
|
||||
* [IMP] hide button box in edit mode on the report instance settings form
|
||||
* [FIX] Fix sum aggregation of non-stored fields
|
||||
(https://github.com/OCA/account-financial-reporting/issues/178)
|
||||
* [IMP] There is now a default style at the report level
|
||||
* [CHG] Number display properties (rounding, prefix, suffix, factor) are
|
||||
now defined in styles
|
||||
* [CHG] Percentage difference are rounded to 1 digit instead of the kpi's
|
||||
rounding, as the KPI rounding does not make sense in this case
|
||||
* [CHG] The divider suffix (k, M, etc) is not inserted automatically anymore
|
||||
because it is inconsistent when working with prefixes; you need to add it
|
||||
manually in the suffix
|
||||
* [IMP] AccountingExpressionProcessor now supports 'balu' expressions
|
||||
to obtain the unallocated profit/loss of previous fiscal years;
|
||||
get_unallocated_pl is the corresponding convenience method
|
||||
* [IMP] AccountingExpressionProcessor now has easy methods to obtain
|
||||
balances by account: get_balances_initial, get_balances_end,
|
||||
get_balances_variation
|
||||
* [IMP] there is now an auto-expand feature to automatically display
|
||||
a detail by account for selected kpis
|
||||
* [IMP] the kpi and period lists are now manipulated through forms instead
|
||||
of directly in the tree views
|
||||
* [IMP] it is now possible to create a report through a wizard, such
|
||||
reports are deemed temporary and available through a "Last Reports Generated"
|
||||
menu, they are garbaged collected automatically, unless saved permanently,
|
||||
which can be done using a Save button
|
||||
* [IMP] there is now a beginner mode to configure simple reports with
|
||||
only one period
|
||||
* [IMP] it is now easier to configure periods with fixed start/end dates
|
||||
* [IMP] the new sub-kpi mechanism allows the creation of columns
|
||||
with multiple values, or columns with different values
|
||||
* [IMP] thanks to the new style model, the Excel export is now styled
|
||||
* [IMP] a new style model is now used to centralize style configuration
|
||||
* [FIX] use =like instead of like to search for accounts, because
|
||||
the % are added by the user in the expressions
|
||||
* [FIX] Correctly compute the initial balance of income and expense account
|
||||
based on the start of the fiscal year
|
||||
* [IMP] Support date ranges (from OCA/server-tools/date_range) as a more
|
||||
flexible alternative to fiscal periods
|
||||
* v9 migration: fiscal periods are removed, account charts are removed,
|
||||
consolidation accounts have been removed
|
||||
|
||||
8.0.1.0.0 (2016-04-27)
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
* The copy of a MIS Report Instance now copies period.
|
||||
https://github.com/OCA/account-financial-reporting/pull/181
|
||||
* The copy of a MIS Report Template now copies KPIs and queries.
|
||||
https://github.com/OCA/account-financial-reporting/pull/177
|
||||
* Usability: the default view for MIS Report instances is now the rendered preview,
|
||||
and the settings are accessible through a gear icon in the list view and
|
||||
a button in the preview.
|
||||
https://github.com/OCA/account-financial-reporting/pull/170
|
||||
* Display blank cells instead of 0.0 when there is no data.
|
||||
https://github.com/OCA/account-financial-reporting/pull/169
|
||||
* Usability: better layout of the MIS Report periods settings on small screens.
|
||||
https://github.com/OCA/account-financial-reporting/pull/167
|
||||
* Include the download buttons inside the MIS Builder widget, and refactor
|
||||
the widget to open the door to analytic filtering in the previews.
|
||||
https://github.com/OCA/account-financial-reporting/pull/151
|
||||
* Add KPI rendering prefixes (so you can print $ in front of the value).
|
||||
https://github.com/OCA/account-financial-reporting/pull/158
|
||||
* Add hooks for analytic filtering.
|
||||
https://github.com/OCA/account-financial-reporting/pull/128
|
||||
https://github.com/OCA/account-financial-reporting/pull/131
|
||||
|
||||
8.0.0.2.0
|
||||
~~~~~~~~~
|
||||
|
||||
Pre-history. Or rather, you need to look at the git log.
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
|
||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/mis-builder/issues>`_.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||
`feedback <https://github.com/OCA/mis-builder/issues/new?body=module:%20mis_builder%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
|
||||
Do not contact contributors directly about support or help with technical issues.
|
||||
|
||||
Credits
|
||||
=======
|
||||
|
||||
Authors
|
||||
~~~~~~~
|
||||
|
||||
* ACSONE SA/NV
|
||||
|
||||
Contributors
|
||||
~~~~~~~~~~~~
|
||||
|
||||
* Stéphane Bidoul <stephane.bidoul@acsone.eu>
|
||||
* Laetitia Gangloff <laetitia.gangloff@acsone.eu>
|
||||
* Adrien Peiffer <adrien.peiffer@acsone.eu>
|
||||
* Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
* Alexandre Fayolle <alexandre.fayolle@camptocamp.com>
|
||||
* Jordi Ballester <jordi.ballester@eficent.com>
|
||||
* Thomas Binsfeld <thomas.binsfeld@gmail.com>
|
||||
* Giovanni Capalbo <giovanni@therp.nl>
|
||||
* Marco Calcagni <mcalcagni@dinamicheaziendali.it>
|
||||
* Sébastien Beau <sebastien.beau@akretion.com>
|
||||
* Laurent Mignon <laurent.mignon@acsone.eu>
|
||||
* Luc De Meyer <luc.demeyer@noviat.com>
|
||||
* Benjamin Willig <benjamin.willig@acsone.eu>
|
||||
* Martronic SA <info@martronic.ch>
|
||||
* nicomacr <nmr@adhoc.com.ar>
|
||||
* Juan Jose Scarafia <jjs@adhoc.com.ar>
|
||||
* Richard deMeester <richard@willowit.com.au>
|
||||
* Eric Caudal <eric.caudal@elico-corp.com>
|
||||
* Andrea Stirpe <a.stirpe@onestein.nl>
|
||||
* Maxence Groine <mgroine@fiefmanage.ch>
|
||||
* Arnaud Pineux <arnaud.pineux@acsone.eu>
|
||||
* Ernesto Tejeda <ernesto.tejeda@tecnativa.com>
|
||||
* Pedro M. Baeza <pedro.baeza@tecnativa.com>
|
||||
|
||||
Maintainers
|
||||
~~~~~~~~~~~
|
||||
|
||||
This module is maintained by the OCA.
|
||||
|
||||
.. image:: https://odoo-community.org/logo.png
|
||||
:alt: Odoo Community Association
|
||||
:target: https://odoo-community.org
|
||||
|
||||
OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||
mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.
|
||||
|
||||
.. |maintainer-sbidoul| image:: https://github.com/sbidoul.png?size=40px
|
||||
:target: https://github.com/sbidoul
|
||||
:alt: sbidoul
|
||||
|
||||
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|
||||
|
||||
|maintainer-sbidoul|
|
||||
|
||||
This module is part of the `OCA/mis-builder <https://github.com/OCA/mis-builder/tree/13.0/mis_builder>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
|
@ -0,0 +1,6 @@
|
|||
# Copyright 2014 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from . import models
|
||||
from . import wizard
|
||||
from . import report
|
|
@ -0,0 +1,36 @@
|
|||
# Copyright 2014-2018 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
{
|
||||
"name": "MIS Builder",
|
||||
"version": "2.0.3.6.3",
|
||||
"category": "Reporting",
|
||||
"summary": """
|
||||
Build 'Management Information System' Reports and Dashboards
|
||||
""",
|
||||
"author": "ACSONE SA/NV, " "Odoo Community Association (OCA)",
|
||||
"website": "https://gitlab.com/flectra-community/mis-builder",
|
||||
"depends": [
|
||||
"account",
|
||||
"board",
|
||||
"report_xlsx", # OCA/reporting-engine
|
||||
"date_range", # OCA/server-ux
|
||||
],
|
||||
"data": [
|
||||
"wizard/mis_builder_dashboard.xml",
|
||||
"views/mis_report.xml",
|
||||
"views/mis_report_instance.xml",
|
||||
"views/mis_report_style.xml",
|
||||
"datas/ir_cron.xml",
|
||||
"security/ir.model.access.csv",
|
||||
"security/mis_builder_security.xml",
|
||||
"report/mis_report_instance_qweb.xml",
|
||||
"report/mis_report_instance_xlsx.xml",
|
||||
],
|
||||
"qweb": ["static/src/xml/mis_report_widget.xml"],
|
||||
"installable": False,
|
||||
"application": True,
|
||||
"license": "AGPL-3",
|
||||
"development_status": "Production/Stable",
|
||||
"maintainers": ["sbidoul"],
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<flectra noupdate="1">
|
||||
<record id="ir_cron_vacuum_temp_reports" model="ir.cron">
|
||||
<field name="name">Vacuum temporary reports</field>
|
||||
<field name="interval_number">4</field>
|
||||
<field name="interval_type">hours</field>
|
||||
<field name="numbercall">-1</field>
|
||||
<field eval="False" name="doall" />
|
||||
<field ref="model_mis_report_instance" name="model_id" />
|
||||
<field name="code">model._vacuum_report()</field>
|
||||
<field name="active" eval="True" />
|
||||
</record>
|
||||
</flectra>
|
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
|
@ -0,0 +1,29 @@
|
|||
# Copyright 2017 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
|
||||
def migrate(cr, version):
|
||||
cr.execute(
|
||||
"""
|
||||
INSERT INTO mis_report_kpi_expression
|
||||
(create_uid, create_date, write_uid, write_date,
|
||||
kpi_id, name, sequence)
|
||||
SELECT create_uid, create_date, write_uid, write_date,
|
||||
id, old_expression, sequence
|
||||
FROM mis_report_kpi
|
||||
"""
|
||||
)
|
||||
cr.execute(
|
||||
"""
|
||||
ALTER TABLE mis_report_kpi
|
||||
DROP COLUMN old_expression
|
||||
"""
|
||||
)
|
||||
# set default mode to relative for existing periods
|
||||
# as it was the only mode in previous versions
|
||||
cr.execute(
|
||||
"""
|
||||
UPDATE mis_report_instance_period
|
||||
SET mode='relative'
|
||||
"""
|
||||
)
|
|
@ -0,0 +1,20 @@
|
|||
# Copyright 2017 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
|
||||
def migrate(cr, version):
|
||||
cr.execute(
|
||||
"""
|
||||
ALTER TABLE mis_report_kpi
|
||||
RENAME COLUMN expression TO old_expression
|
||||
"""
|
||||
)
|
||||
# this migration to date_range type is partial,
|
||||
# actual date ranges needs to be created manually
|
||||
cr.execute(
|
||||
"""
|
||||
UPDATE mis_report_instance_period
|
||||
SET type='date_range'
|
||||
WHERE type='fp'
|
||||
"""
|
||||
)
|
|
@ -0,0 +1,10 @@
|
|||
# Copyright 2014 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from . import mis_report
|
||||
from . import mis_report_subreport
|
||||
from . import mis_report_instance
|
||||
from . import mis_report_style
|
||||
from . import aep
|
||||
from . import mis_kpi_data
|
||||
from . import prorata_read_group_mixin
|
|
@ -0,0 +1,215 @@
|
|||
# Copyright 2016 Thomas Binsfeld
|
||||
# Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
"""
|
||||
Provides the AccountingNone singleton.
|
||||
|
||||
AccountingNone is a null value that dissolves in basic arithmetic operations,
|
||||
as illustrated in the examples below. In comparisons, AccountingNone behaves
|
||||
the same as zero.
|
||||
|
||||
>>> 1 + 1
|
||||
2
|
||||
>>> 1 + AccountingNone
|
||||
1
|
||||
>>> AccountingNone + 1
|
||||
1
|
||||
>>> AccountingNone + None
|
||||
AccountingNone
|
||||
>>> None + AccountingNone
|
||||
AccountingNone
|
||||
>>> +AccountingNone
|
||||
AccountingNone
|
||||
>>> -AccountingNone
|
||||
AccountingNone
|
||||
>>> -(AccountingNone)
|
||||
AccountingNone
|
||||
>>> AccountingNone - 1
|
||||
-1
|
||||
>>> 1 - AccountingNone
|
||||
1
|
||||
>>> abs(AccountingNone)
|
||||
AccountingNone
|
||||
>>> AccountingNone - None
|
||||
AccountingNone
|
||||
>>> None - AccountingNone
|
||||
AccountingNone
|
||||
>>> AccountingNone / 2
|
||||
0.0
|
||||
>>> 2 / AccountingNone
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
ZeroDivisionError
|
||||
>>> AccountingNone / AccountingNone
|
||||
AccountingNone
|
||||
>>> AccountingNone // 2
|
||||
0.0
|
||||
>>> 2 // AccountingNone
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
ZeroDivisionError
|
||||
>>> AccountingNone // AccountingNone
|
||||
AccountingNone
|
||||
>>> AccountingNone * 2
|
||||
0.0
|
||||
>>> 2 * AccountingNone
|
||||
0.0
|
||||
>>> AccountingNone * AccountingNone
|
||||
AccountingNone
|
||||
>>> AccountingNone * None
|
||||
AccountingNone
|
||||
>>> None * AccountingNone
|
||||
AccountingNone
|
||||
>>> str(AccountingNone)
|
||||
''
|
||||
>>> bool(AccountingNone)
|
||||
False
|
||||
>>> AccountingNone > 0
|
||||
False
|
||||
>>> AccountingNone < 0
|
||||
False
|
||||
>>> AccountingNone < 1
|
||||
True
|
||||
>>> AccountingNone > 1
|
||||
False
|
||||
>>> 0 < AccountingNone
|
||||
False
|
||||
>>> 0 > AccountingNone
|
||||
False
|
||||
>>> 1 < AccountingNone
|
||||
False
|
||||
>>> 1 > AccountingNone
|
||||
True
|
||||
>>> AccountingNone == 0
|
||||
True
|
||||
>>> AccountingNone == 0.0
|
||||
True
|
||||
>>> AccountingNone == None
|
||||
True
|
||||
>>> AccountingNone >= AccountingNone
|
||||
True
|
||||
>>> AccountingNone <= AccountingNone
|
||||
True
|
||||
>>> round(AccountingNone, 2)
|
||||
0.0
|
||||
>>> float(AccountingNone)
|
||||
0.0
|
||||
>>> int(AccountingNone)
|
||||
0
|
||||
"""
|
||||
|
||||
__all__ = ["AccountingNone"]
|
||||
|
||||
|
||||
class AccountingNoneType(object):
|
||||
def __add__(self, other):
|
||||
if other is None:
|
||||
return AccountingNone
|
||||
return other
|
||||
|
||||
__radd__ = __add__
|
||||
|
||||
def __sub__(self, other):
|
||||
if other is None:
|
||||
return AccountingNone
|
||||
return -other
|
||||
|
||||
def __rsub__(self, other):
|
||||
if other is None:
|
||||
return AccountingNone
|
||||
return other
|
||||
|
||||
def __iadd__(self, other):
|
||||
if other is None:
|
||||
return AccountingNone
|
||||
return other
|
||||
|
||||
def __isub__(self, other):
|
||||
if other is None:
|
||||
return AccountingNone
|
||||
return -other
|
||||
|
||||
def __abs__(self):
|
||||
return self
|
||||
|
||||
def __pos__(self):
|
||||
return self
|
||||
|
||||
def __neg__(self):
|
||||
return self
|
||||
|
||||
def __div__(self, other):
|
||||
if other is AccountingNone:
|
||||
return AccountingNone
|
||||
return 0.0
|
||||
|
||||
def __rdiv__(self, other):
|
||||
raise ZeroDivisionError
|
||||
|
||||
def __floordiv__(self, other):
|
||||
if other is AccountingNone:
|
||||
return AccountingNone
|
||||
return 0.0
|
||||
|
||||
def __rfloordiv__(self, other):
|
||||
raise ZeroDivisionError
|
||||
|
||||
def __truediv__(self, other):
|
||||
if other is AccountingNone:
|
||||
return AccountingNone
|
||||
return 0.0
|
||||
|
||||
def __rtruediv__(self, other):
|
||||
raise ZeroDivisionError
|
||||
|
||||
def __mul__(self, other):
|
||||
if other is None or other is AccountingNone:
|
||||
return AccountingNone
|
||||
return 0.0
|
||||
|
||||
__rmul__ = __mul__
|
||||
|
||||
def __repr__(self):
|
||||
return "AccountingNone"
|
||||
|
||||
def __str__(self):
|
||||
return ""
|
||||
|
||||
def __nonzero__(self):
|
||||
return False
|
||||
|
||||
def __bool__(self):
|
||||
return False
|
||||
|
||||
def __eq__(self, other):
|
||||
return other == 0 or other is None or other is AccountingNone
|
||||
|
||||
def __lt__(self, other):
|
||||
return other > 0
|
||||
|
||||
def __gt__(self, other):
|
||||
return other < 0
|
||||
|
||||
def __le__(self, other):
|
||||
return other >= 0
|
||||
|
||||
def __ge__(self, other):
|
||||
return other <= 0
|
||||
|
||||
def __float__(self):
|
||||
return 0.0
|
||||
|
||||
def __int__(self):
|
||||
return 0
|
||||
|
||||
def __round__(self, ndigits):
|
||||
return 0.0
|
||||
|
||||
|
||||
AccountingNone = AccountingNoneType()
|
||||
|
||||
|
||||
if __name__ == "__main__": # pragma: no cover
|
||||
import doctest
|
||||
|
||||
doctest.testmod()
|
|
@ -0,0 +1,553 @@
|
|||
# Copyright 2014 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
import datetime
|
||||
import re
|
||||
import time
|
||||
from collections import defaultdict
|
||||
|
||||
import dateutil
|
||||
|
||||
from flectra import _, fields
|
||||
from flectra.exceptions import UserError
|
||||
from flectra.models import expression
|
||||
from flectra.tools.float_utils import float_is_zero
|
||||
from flectra.tools.safe_eval import safe_eval
|
||||
|
||||
from .accounting_none import AccountingNone
|
||||
|
||||
try:
|
||||
import itertools.izip as zip
|
||||
except ImportError:
|
||||
pass # python 3
|
||||
|
||||
|
||||
_DOMAIN_START_RE = re.compile(r"\(|(['\"])[!&|]\1")
|
||||
|
||||
|
||||
def _is_domain(s):
|
||||
""" Test if a string looks like an Flectra domain """
|
||||
return _DOMAIN_START_RE.match(s)
|
||||
|
||||
|
||||
class AccountingExpressionProcessor(object):
|
||||
"""Processor for accounting expressions.
|
||||
|
||||
Expressions of the form <field><mode>[accounts][optional move line domain]
|
||||
are supported, where:
|
||||
* field is bal, crd, deb, pbal (positive balances only),
|
||||
nbal (negative balance only)
|
||||
* mode is i (initial balance), e (ending balance),
|
||||
p (moves over period)
|
||||
* there is also a special u mode (unallocated P&L) which computes
|
||||
the sum from the beginning until the beginning of the fiscal year
|
||||
of the period; it is only meaningful for P&L accounts
|
||||
* accounts is a list of accounts, possibly containing % wildcards,
|
||||
or a domain expression on account.account
|
||||
* an optional domain on move lines allowing filters on eg analytic
|
||||
accounts or journal
|
||||
|
||||
Examples:
|
||||
* bal[70]: variation of the balance of moves on account 70
|
||||
over the period (it is the same as balp[70]);
|
||||
* bali[70,60]: balance of accounts 70 and 60 at the start of period;
|
||||
* bale[1%]: balance of accounts starting with 1 at end of period.
|
||||
|
||||
How to use:
|
||||
* repeatedly invoke parse_expr() for each expression containing
|
||||
accounting variables as described above; this lets the processor
|
||||
group domains and modes and accounts;
|
||||
* when all expressions have been parsed, invoke done_parsing()
|
||||
to notify the processor that it can prepare to query (mainly
|
||||
search all accounts - children, consolidation - that will need to
|
||||
be queried;
|
||||
* for each period, call do_queries(), then call replace_expr() for each
|
||||
expression to replace accounting variables with their resulting value
|
||||
for the given period.
|
||||
|
||||
How it works:
|
||||
* by accumulating the expressions before hand, it ensures to do the
|
||||
strict minimum number of queries to the database (for each period,
|
||||
one query per domain and mode);
|
||||
* it queries using the orm read_group which reduces to a query with
|
||||
sum on debit and credit and group by on account_id and company_id,
|
||||
(note: it seems the orm then does one query per account to fetch
|
||||
the account name...);
|
||||
* additionally, one query per view/consolidation account is done to
|
||||
discover the children accounts.
|
||||
"""
|
||||
|
||||
MODE_VARIATION = "p"
|
||||
MODE_INITIAL = "i"
|
||||
MODE_END = "e"
|
||||
MODE_UNALLOCATED = "u"
|
||||
|
||||
_ACC_RE = re.compile(
|
||||
r"(?P<field>\bbal|\bpbal|\bnbal|\bcrd|\bdeb)"
|
||||
r"(?P<mode>[piseu])?"
|
||||
r"\s*"
|
||||
r"(?P<account_sel>_[a-zA-Z0-9]+|\[.*?\])"
|
||||
r"\s*"
|
||||
r"(?P<ml_domain>\[.*?\])?"
|
||||
)
|
||||
|
||||
def __init__(self, companies, currency=None, account_model="account.account"):
|
||||
self.env = companies.env
|
||||
self.companies = companies
|
||||
if not currency:
|
||||
self.currency = companies.mapped("currency_id")
|
||||
if len(self.currency) > 1:
|
||||
raise UserError(
|
||||
_(
|
||||
"If currency_id is not provided, "
|
||||
"all companies must have the same currency."
|
||||
)
|
||||
)
|
||||
else:
|
||||
self.currency = currency
|
||||
self.dp = self.currency.decimal_places
|
||||
# before done_parsing: {(ml_domain, mode): set(acc_domain)}
|
||||
# after done_parsing: {(ml_domain, mode): list(account_ids)}
|
||||
self._map_account_ids = defaultdict(set)
|
||||
# {account_domain: set(account_ids)}
|
||||
self._account_ids_by_acc_domain = defaultdict(set)
|
||||
# smart ending balance (returns AccountingNone if there
|
||||
# are no moves in period and 0 initial balance), implies
|
||||
# a first query to get the initial balance and another
|
||||
# to get the variation, so it's a bit slower
|
||||
self.smart_end = True
|
||||
# Account model
|
||||
self._account_model = self.env[account_model].with_context(active_test=False)
|
||||
|
||||
def _account_codes_to_domain(self, account_codes):
|
||||
"""Convert a comma separated list of account codes
|
||||
(possibly with wildcards) to a domain on account.account.
|
||||
"""
|
||||
elems = []
|
||||
for account_code in account_codes.split(","):
|
||||
account_code = account_code.strip()
|
||||
if "%" in account_code:
|
||||
elems.append([("code", "=like", account_code)])
|
||||
else:
|
||||
elems.append([("code", "=", account_code)])
|
||||
return tuple(expression.OR(elems))
|
||||
|
||||
def _parse_match_object(self, mo):
|
||||
"""Split a match object corresponding to an accounting variable
|
||||
|
||||
Returns field, mode, account domain, move line domain.
|
||||
"""
|
||||
domain_eval_context = {
|
||||
"ref": self.env.ref,
|
||||
"user": self.env.user,
|
||||
"time": time,
|
||||
"datetime": datetime,
|
||||
"dateutil": dateutil,
|
||||
}
|
||||
field, mode, account_sel, ml_domain = mo.groups()
|
||||
# handle some legacy modes
|
||||
if not mode:
|
||||
mode = self.MODE_VARIATION
|
||||
elif mode == "s":
|
||||
mode = self.MODE_END
|
||||
# convert account selector to account domain
|
||||
if account_sel.startswith("_"):
|
||||
# legacy bal_NNN%
|
||||
acc_domain = self._account_codes_to_domain(account_sel[1:])
|
||||
else:
|
||||
assert account_sel[0] == "[" and account_sel[-1] == "]"
|
||||
inner_account_sel = account_sel[1:-1].strip()
|
||||
if not inner_account_sel:
|
||||
# empty selector: select all accounts
|
||||
acc_domain = tuple()
|
||||
elif _is_domain(inner_account_sel):
|
||||
# account selector is a domain
|
||||
acc_domain = tuple(safe_eval(account_sel, domain_eval_context))
|
||||
else:
|
||||
# account selector is a list of account codes
|
||||
acc_domain = self._account_codes_to_domain(inner_account_sel)
|
||||
# move line domain
|
||||
if ml_domain:
|
||||
assert ml_domain[0] == "[" and ml_domain[-1] == "]"
|
||||
ml_domain = tuple(safe_eval(ml_domain, domain_eval_context))
|
||||
else:
|
||||
ml_domain = tuple()
|
||||
return field, mode, acc_domain, ml_domain
|
||||
|
||||
def parse_expr(self, expr):
|
||||
"""Parse an expression, extracting accounting variables.
|
||||
|
||||
Move line domains and account selectors are extracted and
|
||||
stored in the map so when all expressions have been parsed,
|
||||
we know which account domains to query for each move line domain
|
||||
and mode.
|
||||
"""
|
||||
for mo in self._ACC_RE.finditer(expr):
|
||||
_, mode, acc_domain, ml_domain = self._parse_match_object(mo)
|
||||
if mode == self.MODE_END and self.smart_end:
|
||||
modes = (self.MODE_INITIAL, self.MODE_VARIATION, self.MODE_END)
|
||||
else:
|
||||
modes = (mode,)
|
||||
for mode in modes:
|
||||
key = (ml_domain, mode)
|
||||
self._map_account_ids[key].add(acc_domain)
|
||||
|
||||
def done_parsing(self):
|
||||
""" Replace account domains by account ids in map """
|
||||
for key, acc_domains in self._map_account_ids.items():
|
||||
all_account_ids = set()
|
||||
for acc_domain in acc_domains:
|
||||
acc_domain_with_company = expression.AND(
|
||||
[acc_domain, [("company_id", "in", self.companies.ids)]]
|
||||
)
|
||||
account_ids = self._account_model.search(acc_domain_with_company).ids
|
||||
self._account_ids_by_acc_domain[acc_domain].update(account_ids)
|
||||
all_account_ids.update(account_ids)
|
||||
self._map_account_ids[key] = list(all_account_ids)
|
||||
|
||||
@classmethod
|
||||
def has_account_var(cls, expr):
|
||||
"""Test if an string contains an accounting variable."""
|
||||
return bool(cls._ACC_RE.search(expr))
|
||||
|
||||
def get_account_ids_for_expr(self, expr):
|
||||
"""Get a set of account ids that are involved in an expression.
|
||||
|
||||
Prerequisite: done_parsing() must have been invoked.
|
||||
"""
|
||||
account_ids = set()
|
||||
for mo in self._ACC_RE.finditer(expr):
|
||||
field, mode, acc_domain, ml_domain = self._parse_match_object(mo)
|
||||
account_ids.update(self._account_ids_by_acc_domain[acc_domain])
|
||||
return account_ids
|
||||
|
||||
def get_aml_domain_for_expr(
|
||||
self, expr, date_from, date_to, target_move, account_id=None
|
||||
):
|
||||
"""Get a domain on account.move.line for an expression.
|
||||
|
||||
Prerequisite: done_parsing() must have been invoked.
|
||||
|
||||
Returns a domain that can be used to search on account.move.line.
|
||||
"""
|
||||
aml_domains = []
|
||||
date_domain_by_mode = {}
|
||||
for mo in self._ACC_RE.finditer(expr):
|
||||
field, mode, acc_domain, ml_domain = self._parse_match_object(mo)
|
||||
aml_domain = list(ml_domain)
|
||||
account_ids = set()
|
||||
account_ids.update(self._account_ids_by_acc_domain[acc_domain])
|
||||
if not account_id:
|
||||
aml_domain.append(("account_id", "in", tuple(account_ids)))
|
||||
else:
|
||||
# filter on account_id
|
||||
if account_id in account_ids:
|
||||
aml_domain.append(("account_id", "=", account_id))
|
||||
else:
|
||||
continue
|
||||
if field == "crd":
|
||||
aml_domain.append(("credit", "<>", 0.0))
|
||||
elif field == "deb":
|
||||
aml_domain.append(("debit", "<>", 0.0))
|
||||
aml_domains.append(expression.normalize_domain(aml_domain))
|
||||
if mode not in date_domain_by_mode:
|
||||
date_domain_by_mode[mode] = self.get_aml_domain_for_dates(
|
||||
date_from, date_to, mode, target_move
|
||||
)
|
||||
assert aml_domains
|
||||
# TODO we could do this for more precision:
|
||||
# AND(OR(aml_domains[mode]), date_domain[mode]) for each mode
|
||||
return expression.OR(aml_domains) + expression.OR(date_domain_by_mode.values())
|
||||
|
||||
def get_aml_domain_for_dates(self, date_from, date_to, mode, target_move):
|
||||
if mode == self.MODE_VARIATION:
|
||||
domain = [("date", ">=", date_from), ("date", "<=", date_to)]
|
||||
elif mode in (self.MODE_INITIAL, self.MODE_END):
|
||||
# for income and expense account, sum from the beginning
|
||||
# of the current fiscal year only, for balance sheet accounts
|
||||
# sum from the beginning of time
|
||||
date_from_date = fields.Date.from_string(date_from)
|
||||
# TODO this takes the fy from the first company
|
||||
# make that user controllable (nice to have)?
|
||||
fy_date_from = self.companies[0].compute_fiscalyear_dates(date_from_date)[
|
||||
"date_from"
|
||||
]
|
||||
domain = [
|
||||
"|",
|
||||
("date", ">=", fields.Date.to_string(fy_date_from)),
|
||||
("account_id.user_type_id.include_initial_balance", "=", True),
|
||||
]
|
||||
if mode == self.MODE_INITIAL:
|
||||
domain.append(("date", "<", date_from))
|
||||
elif mode == self.MODE_END:
|
||||
domain.append(("date", "<=", date_to))
|
||||
elif mode == self.MODE_UNALLOCATED:
|
||||
date_from_date = fields.Date.from_string(date_from)
|
||||
# TODO this takes the fy from the first company
|
||||
# make that user controllable (nice to have)?
|
||||
fy_date_from = self.companies[0].compute_fiscalyear_dates(date_from_date)[
|
||||
"date_from"
|
||||
]
|
||||
domain = [
|
||||
("date", "<", fields.Date.to_string(fy_date_from)),
|
||||
("account_id.user_type_id.include_initial_balance", "=", False),
|
||||
]
|
||||
if target_move == "posted":
|
||||
domain.append(("move_id.state", "=", "posted"))
|
||||
return expression.normalize_domain(domain)
|
||||
|
||||
def _get_company_rates(self, date):
|
||||
# get exchange rates for each company with its rouding
|
||||
company_rates = {}
|
||||
target_rate = self.currency.with_context(date=date).rate
|
||||
for company in self.companies:
|
||||
if company.currency_id != self.currency:
|
||||
rate = target_rate / company.currency_id.with_context(date=date).rate
|
||||
else:
|
||||
rate = 1.0
|
||||
company_rates[company.id] = (rate, company.currency_id.decimal_places)
|
||||
return company_rates
|
||||
|
||||
def do_queries(
|
||||
self,
|
||||
date_from,
|
||||
date_to,
|
||||
target_move="posted",
|
||||
additional_move_line_filter=None,
|
||||
aml_model=None,
|
||||
):
|
||||
"""Query sums of debit and credit for all accounts and domains
|
||||
used in expressions.
|
||||
|
||||
This method must be executed after done_parsing().
|
||||
"""
|
||||
if not aml_model:
|
||||
aml_model = self.env["account.move.line"]
|
||||
else:
|
||||
aml_model = self.env[aml_model]
|
||||
aml_model = aml_model.with_context(active_test=False)
|
||||
company_rates = self._get_company_rates(date_to)
|
||||
# {(domain, mode): {account_id: (debit, credit)}}
|
||||
self._data = defaultdict(dict)
|
||||
domain_by_mode = {}
|
||||
ends = []
|
||||
for key in self._map_account_ids:
|
||||
domain, mode = key
|
||||
if mode == self.MODE_END and self.smart_end:
|
||||
# postpone computation of ending balance
|
||||
ends.append((domain, mode))
|
||||
continue
|
||||
if mode not in domain_by_mode:
|
||||
domain_by_mode[mode] = self.get_aml_domain_for_dates(
|
||||
date_from, date_to, mode, target_move
|
||||
)
|
||||
domain = list(domain) + domain_by_mode[mode]
|
||||
domain.append(("account_id", "in", self._map_account_ids[key]))
|
||||
if additional_move_line_filter:
|
||||
domain.extend(additional_move_line_filter)
|
||||
# fetch sum of debit/credit, grouped by account_id
|
||||
accs = aml_model.read_group(
|
||||
domain,
|
||||
["debit", "credit", "account_id", "company_id"],
|
||||
["account_id", "company_id"],
|
||||
lazy=False,
|
||||
)
|
||||
for acc in accs:
|
||||
rate, dp = company_rates[acc["company_id"][0]]
|
||||
debit = acc["debit"] or 0.0
|
||||
credit = acc["credit"] or 0.0
|
||||
if mode in (self.MODE_INITIAL, self.MODE_UNALLOCATED) and float_is_zero(
|
||||
debit - credit, precision_digits=self.dp
|
||||
):
|
||||
# in initial mode, ignore accounts with 0 balance
|
||||
continue
|
||||
self._data[key][acc["account_id"][0]] = (debit * rate, credit * rate)
|
||||
# compute ending balances by summing initial and variation
|
||||
for key in ends:
|
||||
domain, mode = key
|
||||
initial_data = self._data[(domain, self.MODE_INITIAL)]
|
||||
variation_data = self._data[(domain, self.MODE_VARIATION)]
|
||||
account_ids = set(initial_data.keys()) | set(variation_data.keys())
|
||||
for account_id in account_ids:
|
||||
di, ci = initial_data.get(account_id, (AccountingNone, AccountingNone))
|
||||
dv, cv = variation_data.get(
|
||||
account_id, (AccountingNone, AccountingNone)
|
||||
)
|
||||
self._data[key][account_id] = (di + dv, ci + cv)
|
||||
|
||||
def replace_expr(self, expr):
|
||||
"""Replace accounting variables in an expression by their amount.
|
||||
|
||||
Returns a new expression string.
|
||||
|
||||
This method must be executed after do_queries().
|
||||
"""
|
||||
|
||||
def f(mo):
|
||||
field, mode, acc_domain, ml_domain = self._parse_match_object(mo)
|
||||
key = (ml_domain, mode)
|
||||
account_ids_data = self._data[key]
|
||||
v = AccountingNone
|
||||
account_ids = self._account_ids_by_acc_domain[acc_domain]
|
||||
for account_id in account_ids:
|
||||
debit, credit = account_ids_data.get(
|
||||
account_id, (AccountingNone, AccountingNone)
|
||||
)
|
||||
if field == "bal":
|
||||
v += debit - credit
|
||||
elif field == "pbal" and debit >= credit:
|
||||
v += debit - credit
|
||||
elif field == "nbal" and debit < credit:
|
||||
v += debit - credit
|
||||
elif field == "deb":
|
||||
v += debit
|
||||
elif field == "crd":
|
||||
v += credit
|
||||
# in initial balance mode, assume 0 is None
|
||||
# as it does not make sense to distinguish 0 from "no data"
|
||||
if (
|
||||
v is not AccountingNone
|
||||
and mode in (self.MODE_INITIAL, self.MODE_UNALLOCATED)
|
||||
and float_is_zero(v, precision_digits=self.dp)
|
||||
):
|
||||
v = AccountingNone
|
||||
return "(" + repr(v) + ")"
|
||||
|
||||
return self._ACC_RE.sub(f, expr)
|
||||
|
||||
def replace_exprs_by_account_id(self, exprs):
|
||||
"""Replace accounting variables in a list of expression
|
||||
by their amount, iterating by accounts involved in the expression.
|
||||
|
||||
yields account_id, replaced_expr
|
||||
|
||||
This method must be executed after do_queries().
|
||||
"""
|
||||
|
||||
def f(mo):
|
||||
field, mode, acc_domain, ml_domain = self._parse_match_object(mo)
|
||||
key = (ml_domain, mode)
|
||||
# first check if account_id is involved in
|
||||
# the current expression part
|
||||
if account_id not in self._account_ids_by_acc_domain[acc_domain]:
|
||||
return "(AccountingNone)"
|
||||
# here we know account_id is involved in acc_domain
|
||||
account_ids_data = self._data[key]
|
||||
debit, credit = account_ids_data.get(
|
||||
account_id, (AccountingNone, AccountingNone)
|
||||
)
|
||||
if field == "bal":
|
||||
v = debit - credit
|
||||
elif field == "pbal":
|
||||
if debit >= credit:
|
||||
v = debit - credit
|
||||
else:
|
||||
v = AccountingNone
|
||||
elif field == "nbal":
|
||||
if debit < credit:
|
||||
v = debit - credit
|
||||
else:
|
||||
v = AccountingNone
|
||||
elif field == "deb":
|
||||
v = debit
|
||||
elif field == "crd":
|
||||
v = credit
|
||||
# in initial balance mode, assume 0 is None
|
||||
# as it does not make sense to distinguish 0 from "no data"
|
||||
if (
|
||||
v is not AccountingNone
|
||||
and mode in (self.MODE_INITIAL, self.MODE_UNALLOCATED)
|
||||
and float_is_zero(v, precision_digits=self.dp)
|
||||
):
|
||||
v = AccountingNone
|
||||
return "(" + repr(v) + ")"
|
||||
|
||||
account_ids = set()
|
||||
for expr in exprs:
|
||||
for mo in self._ACC_RE.finditer(expr):
|
||||
field, mode, acc_domain, ml_domain = self._parse_match_object(mo)
|
||||
key = (ml_domain, mode)
|
||||
account_ids_data = self._data[key]
|
||||
for account_id in self._account_ids_by_acc_domain[acc_domain]:
|
||||
if account_id in account_ids_data:
|
||||
account_ids.add(account_id)
|
||||
|
||||
for account_id in account_ids:
|
||||
yield account_id, [self._ACC_RE.sub(f, expr) for expr in exprs]
|
||||
|
||||
@classmethod
|
||||
def _get_balances(cls, mode, companies, date_from, date_to, target_move="posted"):
|
||||
expr = "deb{mode}[], crd{mode}[]".format(mode=mode)
|
||||
aep = AccountingExpressionProcessor(companies)
|
||||
# disable smart_end to have the data at once, instead
|
||||
# of initial + variation
|
||||
aep.smart_end = False
|
||||
aep.parse_expr(expr)
|
||||
aep.done_parsing()
|
||||
aep.do_queries(date_from, date_to, target_move)
|
||||
return aep._data[((), mode)]
|
||||
|
||||
@classmethod
|
||||
def get_balances_initial(cls, companies, date, target_move="posted"):
|
||||
"""A convenience method to obtain the initial balances of all accounts
|
||||
at a given date.
|
||||
|
||||
It is the same as get_balances_end(date-1).
|
||||
|
||||
:param companies:
|
||||
:param date:
|
||||
:param target_move: if 'posted', consider only posted moves
|
||||
|
||||
Returns a dictionary: {account_id, (debit, credit)}
|
||||
"""
|
||||
return cls._get_balances(cls.MODE_INITIAL, companies, date, date, target_move)
|
||||
|
||||
@classmethod
|
||||
def get_balances_end(cls, companies, date, target_move="posted"):
|
||||
"""A convenience method to obtain the ending balances of all accounts
|
||||
at a given date.
|
||||
|
||||
It is the same as get_balances_initial(date+1).
|
||||
|
||||
:param companies:
|
||||
:param date:
|
||||
:param target_move: if 'posted', consider only posted moves
|
||||
|
||||
Returns a dictionary: {account_id, (debit, credit)}
|
||||
"""
|
||||
return cls._get_balances(cls.MODE_END, companies, date, date, target_move)
|
||||
|
||||
@classmethod
|
||||
def get_balances_variation(
|
||||
cls, companies, date_from, date_to, target_move="posted"
|
||||
):
|
||||
"""A convenience method to obtain the variation of the
|
||||
balances of all accounts over a period.
|
||||
|
||||
:param companies:
|
||||
:param date:
|
||||
:param target_move: if 'posted', consider only posted moves
|
||||
|
||||
Returns a dictionary: {account_id, (debit, credit)}
|
||||
"""
|
||||
return cls._get_balances(
|
||||
cls.MODE_VARIATION, companies, date_from, date_to, target_move
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def get_unallocated_pl(cls, companies, date, target_move="posted"):
|
||||
"""A convenience method to obtain the unallocated profit/loss
|
||||
of the previous fiscal years at a given date.
|
||||
|
||||
:param companies:
|
||||
:param date:
|
||||
:param target_move: if 'posted', consider only posted moves
|
||||
|
||||
Returns a tuple (debit, credit)
|
||||
"""
|
||||
# TODO shoud we include here the accounts of type "unaffected"
|
||||
# or leave that to the caller?
|
||||
bals = cls._get_balances(
|
||||
cls.MODE_UNALLOCATED, companies, date, date, target_move
|
||||
)
|
||||
return tuple(map(sum, zip(*bals.values())))
|
|
@ -0,0 +1,129 @@
|
|||
# Copyright 2014 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
|
||||
def _sum(lst):
|
||||
"""Same as stdlib sum but returns None instead of 0
|
||||
in case of empty sequence.
|
||||
|
||||
>>> sum([1])
|
||||
1
|
||||
>>> _sum([1])
|
||||
1
|
||||
>>> sum([1, 2])
|
||||
3
|
||||
>>> _sum([1, 2])
|
||||
3
|
||||
>>> sum([])
|
||||
0
|
||||
>>> _sum([])
|
||||
"""
|
||||
if not lst:
|
||||
return None
|
||||
return sum(lst)
|
||||
|
||||
|
||||
def _avg(lst):
|
||||
"""Arithmetic mean of a sequence. Returns None in case of empty sequence.
|
||||
|
||||
>>> _avg([1])
|
||||
1.0
|
||||
>>> _avg([1, 2])
|
||||
1.5
|
||||
>>> _avg([])
|
||||
"""
|
||||
if not lst:
|
||||
return None
|
||||
return sum(lst) / float(len(lst))
|
||||
|
||||
|
||||
def _min(*args):
|
||||
"""Same as stdlib min but returns None instead of exception
|
||||
in case of empty sequence.
|
||||
|
||||
>>> min(1, 2)
|
||||
1
|
||||
>>> _min(1, 2)
|
||||
1
|
||||
>>> min([1, 2])
|
||||
1
|
||||
>>> _min([1, 2])
|
||||
1
|
||||
>>> min(1)
|
||||
Traceback (most recent call last):
|
||||
File "<stdin>", line 1, in ?
|
||||
TypeError: 'int' object is not iterable
|
||||
>>> _min(1)
|
||||
Traceback (most recent call last):
|
||||
File "<stdin>", line 1, in ?
|
||||
TypeError: 'int' object is not iterable
|
||||
>>> min([1])
|
||||
1
|
||||
>>> _min([1])
|
||||
1
|
||||
>>> min()
|
||||
Traceback (most recent call last):
|
||||
File "<stdin>", line 1, in ?
|
||||
TypeError: min expected 1 arguments, got 0
|
||||
>>> _min()
|
||||
Traceback (most recent call last):
|
||||
File "<stdin>", line 1, in ?
|
||||
TypeError: min expected 1 arguments, got 0
|
||||
>>> min([])
|
||||
Traceback (most recent call last):
|
||||
File "<stdin>", line 1, in ?
|
||||
ValueError: min() arg is an empty sequence
|
||||
>>> _min([])
|
||||
"""
|
||||
if len(args) == 1 and not args[0]:
|
||||
return None
|
||||
return min(*args)
|
||||
|
||||
|
||||
def _max(*args):
|
||||
"""Same as stdlib max but returns None instead of exception
|
||||
in case of empty sequence.
|
||||
|
||||
>>> max(1, 2)
|
||||
2
|
||||
>>> _max(1, 2)
|
||||
2
|
||||
>>> max([1, 2])
|
||||
2
|
||||
>>> _max([1, 2])
|
||||
2
|
||||
>>> max(1)
|
||||
Traceback (most recent call last):
|
||||
File "<stdin>", line 1, in ?
|
||||
TypeError: 'int' object is not iterable
|
||||
>>> _max(1)
|
||||
Traceback (most recent call last):
|
||||
File "<stdin>", line 1, in ?
|
||||
TypeError: 'int' object is not iterable
|
||||
>>> max([1])
|
||||
1
|
||||
>>> _max([1])
|
||||
1
|
||||
>>> max()
|
||||
Traceback (most recent call last):
|
||||
File "<stdin>", line 1, in ?
|
||||
TypeError: max expected 1 arguments, got 0
|
||||
>>> _max()
|
||||
Traceback (most recent call last):
|
||||
File "<stdin>", line 1, in ?
|
||||
TypeError: max expected 1 arguments, got 0
|
||||
>>> max([])
|
||||
Traceback (most recent call last):
|
||||
File "<stdin>", line 1, in ?
|
||||
ValueError: max() arg is an empty sequence
|
||||
>>> _max([])
|
||||
"""
|
||||
if len(args) == 1 and not args[0]:
|
||||
return None
|
||||
return max(*args)
|
||||
|
||||
|
||||
if __name__ == "__main__": # pragma: no cover
|
||||
import doctest
|
||||
|
||||
doctest.testmod()
|
|
@ -0,0 +1,17 @@
|
|||
# Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# Copyright 2016 Akretion (<http://akretion.com>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
|
||||
class DataError(Exception):
|
||||
def __init__(self, name, msg):
|
||||
super(DataError, self).__init__()
|
||||
self.name = name
|
||||
self.msg = msg
|
||||
|
||||
def __repr__(self):
|
||||
return "{}({})".format(self.__class__.__name__, repr(self.name))
|
||||
|
||||
|
||||
class NameDataError(DataError):
|
||||
pass
|
|
@ -0,0 +1,76 @@
|
|||
# Copyright 2020 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from .mis_safe_eval import NameDataError, mis_safe_eval
|
||||
|
||||
try:
|
||||
import itertools.izip as zip
|
||||
except ImportError:
|
||||
pass # python 3
|
||||
|
||||
|
||||
class ExpressionEvaluator(object):
|
||||
def __init__(
|
||||
self,
|
||||
aep,
|
||||
date_from,
|
||||
date_to,
|
||||
target_move=None,
|
||||
additional_move_line_filter=None,
|
||||
aml_model=None,
|
||||
):
|
||||
self.aep = aep
|
||||
self.date_from = date_from
|
||||
self.date_to = date_to
|
||||
self.target_move = target_move
|
||||
self.additional_move_line_filter = additional_move_line_filter
|
||||
self.aml_model = aml_model
|
||||
self._aep_queries_done = False
|
||||
|
||||
def aep_do_queries(self):
|
||||
if self.aep and not self._aep_queries_done:
|
||||
self.aep.do_queries(
|
||||
self.date_from,
|
||||
self.date_to,
|
||||
self.target_move,
|
||||
self.additional_move_line_filter,
|
||||
self.aml_model,
|
||||
)
|
||||
self._aep_queries_done = True
|
||||
|
||||
def eval_expressions(self, expressions, locals_dict):
|
||||
vals = []
|
||||
drilldown_args = []
|
||||
name_error = False
|
||||
for expression in expressions:
|
||||
expr = expression and expression.name or "AccountingNone"
|
||||
if self.aep:
|
||||
replaced_expr = self.aep.replace_expr(expr)
|
||||
else:
|
||||
replaced_expr = expr
|
||||
val = mis_safe_eval(replaced_expr, locals_dict)
|
||||
vals.append(val)
|
||||
if isinstance(val, NameDataError):
|
||||
name_error = True
|
||||
if replaced_expr != expr:
|
||||
drilldown_args.append({"expr": expr})
|
||||
else:
|
||||
drilldown_args.append(None)
|
||||
return vals, drilldown_args, name_error
|
||||
|
||||
def eval_expressions_by_account(self, expressions, locals_dict):
|
||||
if not self.aep:
|
||||
return
|
||||
exprs = [e and e.name or "AccountingNone" for e in expressions]
|
||||
for account_id, replaced_exprs in self.aep.replace_exprs_by_account_id(exprs):
|
||||
vals = []
|
||||
drilldown_args = []
|
||||
name_error = False
|
||||
for expr, replaced_expr in zip(exprs, replaced_exprs):
|
||||
val = mis_safe_eval(replaced_expr, locals_dict)
|
||||
vals.append(val)
|
||||
if replaced_expr != expr:
|
||||
drilldown_args.append({"expr": expr, "account_id": account_id})
|
||||
else:
|
||||
drilldown_args.append(None)
|
||||
yield account_id, vals, drilldown_args, name_error
|
|
@ -0,0 +1,544 @@
|
|||
# Copyright 2014 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
import logging
|
||||
from collections import OrderedDict, defaultdict
|
||||
|
||||
from flectra import _
|
||||
from flectra.exceptions import UserError
|
||||
|
||||
from .accounting_none import AccountingNone
|
||||
from .mis_kpi_data import ACC_SUM
|
||||
from .mis_safe_eval import DataError, mis_safe_eval
|
||||
from .simple_array import SimpleArray
|
||||
|
||||
try:
|
||||
import itertools.izip as zip
|
||||
except ImportError:
|
||||
pass # python 3
|
||||
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class KpiMatrixRow(object):
|
||||
|
||||
# TODO: ultimately, the kpi matrix will become ignorant of KPI's and
|
||||
# accounts and know about rows, columns, sub columns and styles only.
|
||||
# It is already ignorant of period and only knowns about columns.
|
||||
# This will require a correct abstraction for expanding row details.
|
||||
|
||||
def __init__(self, matrix, kpi, account_id=None, parent_row=None):
|
||||
self._matrix = matrix
|
||||
self.kpi = kpi
|
||||
self.account_id = account_id
|
||||
self.description = ""
|
||||
self.parent_row = parent_row
|
||||
if not self.account_id:
|
||||
self.style_props = self._matrix._style_model.merge(
|
||||
[self.kpi.report_id.style_id, self.kpi.style_id]
|
||||
)
|
||||
else:
|
||||
self.style_props = self._matrix._style_model.merge(
|
||||
[self.kpi.report_id.style_id, self.kpi.auto_expand_accounts_style_id]
|
||||
)
|
||||
|
||||
@property
|
||||
def label(self):
|
||||
if not self.account_id:
|
||||
return self.kpi.description
|
||||
else:
|
||||
return self._matrix.get_account_name(self.account_id)
|
||||
|
||||
@property
|
||||
def row_id(self):
|
||||
if not self.account_id:
|
||||
return self.kpi.name
|
||||
else:
|
||||
return "{}:{}".format(self.kpi.name, self.account_id)
|
||||
|
||||
def iter_cell_tuples(self, cols=None):
|
||||
if cols is None:
|
||||
cols = self._matrix.iter_cols()
|
||||
for col in cols:
|
||||
yield col.get_cell_tuple_for_row(self)
|
||||
|
||||
def iter_cells(self, subcols=None):
|
||||
if subcols is None:
|
||||
subcols = self._matrix.iter_subcols()
|
||||
for subcol in subcols:
|
||||
yield subcol.get_cell_for_row(self)
|
||||
|
||||
def is_empty(self):
|
||||
for cell in self.iter_cells():
|
||||
if cell and cell.val not in (AccountingNone, None):
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
class KpiMatrixCol(object):
|
||||
def __init__(self, key, label, description, locals_dict, subkpis):
|
||||
self.key = key
|
||||
self.label = label
|
||||
self.description = description
|
||||
self.locals_dict = locals_dict
|
||||
self.colspan = subkpis and len(subkpis) or 1
|
||||
self._subcols = []
|
||||
self.subkpis = subkpis
|
||||
if not subkpis:
|
||||
subcol = KpiMatrixSubCol(self, "", "", 0)
|
||||
self._subcols.append(subcol)
|
||||
else:
|
||||
for i, subkpi in enumerate(subkpis):
|
||||
subcol = KpiMatrixSubCol(self, subkpi.description, "", i)
|
||||
self._subcols.append(subcol)
|
||||
self._cell_tuples_by_row = {} # {row: (cells tuple)}
|
||||
|
||||
def _set_cell_tuple(self, row, cell_tuple):
|
||||
self._cell_tuples_by_row[row] = cell_tuple
|
||||
|
||||
def iter_subcols(self):
|
||||
return self._subcols
|
||||
|
||||
def iter_cell_tuples(self):
|
||||
return self._cell_tuples_by_row.values()
|
||||
|
||||
def get_cell_tuple_for_row(self, row):
|
||||
return self._cell_tuples_by_row.get(row)
|
||||
|
||||
|
||||
class KpiMatrixSubCol(object):
|
||||
def __init__(self, col, label, description, index=0):
|
||||
self.col = col
|
||||
self.label = label
|
||||
self.description = description
|
||||
self.index = index
|
||||
|
||||
@property
|
||||
def subkpi(self):
|
||||
if self.col.subkpis:
|
||||
return self.col.subkpis[self.index]
|
||||
|
||||
def iter_cells(self):
|
||||
for cell_tuple in self.col.iter_cell_tuples():
|
||||
yield cell_tuple[self.index]
|
||||
|
||||
def get_cell_for_row(self, row):
|
||||
cell_tuple = self.col.get_cell_tuple_for_row(row)
|
||||
if cell_tuple is None:
|
||||
return None
|
||||
return cell_tuple[self.index]
|
||||
|
||||
|
||||
class KpiMatrixCell(object): # noqa: B903 (immutable data class)
|
||||
def __init__(
|
||||
self,
|
||||
row,
|
||||
subcol,
|
||||
val,
|
||||
val_rendered,
|
||||
val_comment,
|
||||
style_props,
|
||||
drilldown_arg,
|
||||
val_type,
|
||||
):
|
||||
self.row = row
|
||||
self.subcol = subcol
|
||||
self.val = val
|
||||
self.val_rendered = val_rendered
|
||||
self.val_comment = val_comment
|
||||
self.style_props = style_props
|
||||
self.drilldown_arg = drilldown_arg
|
||||
self.val_type = val_type
|
||||
|
||||
|
||||
class KpiMatrix(object):
|
||||
def __init__(self, env, multi_company=False, account_model="account.account"):
|
||||
# cache language id for faster rendering
|
||||
lang_model = env["res.lang"]
|
||||
self.lang = lang_model._lang_get(env.user.lang)
|
||||
self._style_model = env["mis.report.style"]
|
||||
self._account_model = env[account_model]
|
||||
# data structures
|
||||
# { kpi: KpiMatrixRow }
|
||||
self._kpi_rows = OrderedDict()
|
||||
# { kpi: {account_id: KpiMatrixRow} }
|
||||
self._detail_rows = {}
|
||||
# { col_key: KpiMatrixCol }
|
||||
self._cols = OrderedDict()
|
||||
# { col_key (left of comparison): [(col_key, base_col_key)] }
|
||||
self._comparison_todo = defaultdict(list)
|
||||
# { col_key (left of sum): (col_key, [(sign, sum_col_key)])
|
||||
self._sum_todo = {}
|
||||
# { account_id: account_name }
|
||||
self._account_names = {}
|
||||
self._multi_company = multi_company
|
||||
|
||||
def declare_kpi(self, kpi):
|
||||
"""Declare a new kpi (row) in the matrix.
|
||||
|
||||
Invoke this first for all kpi, in display order.
|
||||
"""
|
||||
self._kpi_rows[kpi] = KpiMatrixRow(self, kpi)
|
||||
self._detail_rows[kpi] = {}
|
||||
|
||||
def declare_col(self, col_key, label, description, locals_dict, subkpis):
|
||||
"""Declare a new column, giving it an identifier (key).
|
||||
|
||||
Invoke the declare_* methods in display order.
|
||||
"""
|
||||
col = KpiMatrixCol(col_key, label, description, locals_dict, subkpis)
|
||||
self._cols[col_key] = col
|
||||
return col
|
||||
|
||||
def declare_comparison(
|
||||
self, cmpcol_key, col_key, base_col_key, label, description=None
|
||||
):
|
||||
"""Declare a new comparison column.
|
||||
|
||||
Invoke the declare_* methods in display order.
|
||||
"""
|
||||
self._comparison_todo[cmpcol_key] = (col_key, base_col_key, label, description)
|
||||
self._cols[cmpcol_key] = None # reserve slot in insertion order
|
||||
|
||||
def declare_sum(
|
||||
self, sumcol_key, col_to_sum_keys, label, description=None, sum_accdet=False
|
||||
):
|
||||
"""Declare a new summation column.
|
||||
|
||||
Invoke the declare_* methods in display order.
|
||||
:param col_to_sum_keys: [(sign, col_key)]
|
||||
"""
|
||||
self._sum_todo[sumcol_key] = (col_to_sum_keys, label, description, sum_accdet)
|
||||
self._cols[sumcol_key] = None # reserve slot in insertion order
|
||||
|
||||
def set_values(self, kpi, col_key, vals, drilldown_args, tooltips=True):
|
||||
"""Set values for a kpi and a colum.
|
||||
|
||||
Invoke this after declaring the kpi and the column.
|
||||
"""
|
||||
self.set_values_detail_account(
|
||||
kpi, col_key, None, vals, drilldown_args, tooltips
|
||||
)
|
||||
|
||||
def set_values_detail_account(
|
||||
self, kpi, col_key, account_id, vals, drilldown_args, tooltips=True
|
||||
):
|
||||
"""Set values for a kpi and a column and a detail account.
|
||||
|
||||
Invoke this after declaring the kpi and the column.
|
||||
"""
|
||||
if not account_id:
|
||||
row = self._kpi_rows[kpi]
|
||||
else:
|
||||
kpi_row = self._kpi_rows[kpi]
|
||||
if account_id in self._detail_rows[kpi]:
|
||||
row = self._detail_rows[kpi][account_id]
|
||||
else:
|
||||
row = KpiMatrixRow(self, kpi, account_id, parent_row=kpi_row)
|
||||
self._detail_rows[kpi][account_id] = row
|
||||
col = self._cols[col_key]
|
||||
cell_tuple = []
|
||||
assert len(vals) == col.colspan
|
||||
assert len(drilldown_args) == col.colspan
|
||||
for val, drilldown_arg, subcol in zip(vals, drilldown_args, col.iter_subcols()):
|
||||
if isinstance(val, DataError):
|
||||
val_rendered = val.name
|
||||
val_comment = val.msg
|
||||
else:
|
||||
val_rendered = self._style_model.render(
|
||||
self.lang, row.style_props, kpi.type, val
|
||||
)
|
||||
if row.kpi.multi and subcol.subkpi:
|
||||
val_comment = u"{}.{} = {}".format(
|
||||
row.kpi.name,
|
||||
subcol.subkpi.name,
|
||||
row.kpi._get_expression_str_for_subkpi(subcol.subkpi),
|
||||
)
|
||||
else:
|
||||
val_comment = u"{} = {}".format(row.kpi.name, row.kpi.expression)
|
||||
cell_style_props = row.style_props
|
||||
if row.kpi.style_expression:
|
||||
# evaluate style expression
|
||||
try:
|
||||
style_name = mis_safe_eval(
|
||||
row.kpi.style_expression, col.locals_dict
|
||||
)
|
||||
except Exception:
|
||||
_logger.error(
|
||||
"Error evaluating style expression <%s>",
|
||||
row.kpi.style_expression,
|
||||
exc_info=True,
|
||||
)
|
||||
if style_name:
|
||||
style = self._style_model.search([("name", "=", style_name)])
|
||||
if style:
|
||||
cell_style_props = self._style_model.merge(
|
||||
[row.style_props, style[0]]
|
||||
)
|
||||
else:
|
||||
_logger.error("Style '%s' not found.", style_name)
|
||||
cell = KpiMatrixCell(
|
||||
row,
|
||||
subcol,
|
||||
val,
|
||||
val_rendered,
|
||||
tooltips and val_comment or None,
|
||||
cell_style_props,
|
||||
drilldown_arg,
|
||||
kpi.type,
|
||||
)
|
||||
cell_tuple.append(cell)
|
||||
assert len(cell_tuple) == col.colspan
|
||||
col._set_cell_tuple(row, cell_tuple)
|
||||
|
||||
def _common_subkpis(self, cols):
|
||||
if not cols:
|
||||
return set()
|
||||
common_subkpis = set(cols[0].subkpis)
|
||||
for col in cols[1:]:
|
||||
common_subkpis = common_subkpis & set(col.subkpis)
|
||||
return common_subkpis
|
||||
|
||||
def compute_comparisons(self):
|
||||
"""Compute comparisons.
|
||||
|
||||
Invoke this after setting all values.
|
||||
"""
|
||||
for (
|
||||
cmpcol_key,
|
||||
(col_key, base_col_key, label, description),
|
||||
) in self._comparison_todo.items():
|
||||
col = self._cols[col_key]
|
||||
base_col = self._cols[base_col_key]
|
||||
common_subkpis = self._common_subkpis([col, base_col])
|
||||
if (col.subkpis or base_col.subkpis) and not common_subkpis:
|
||||
raise UserError(
|
||||
_("Columns {} and {} are not comparable").format(
|
||||
col.description, base_col.description
|
||||
)
|
||||
)
|
||||
if not label:
|
||||
label = u"{} vs {}".format(col.label, base_col.label)
|
||||
comparison_col = KpiMatrixCol(
|
||||
cmpcol_key,
|
||||
label,
|
||||
description,
|
||||
{},
|
||||
sorted(common_subkpis, key=lambda s: s.sequence),
|
||||
)
|
||||
self._cols[cmpcol_key] = comparison_col
|
||||
for row in self.iter_rows():
|
||||
cell_tuple = col.get_cell_tuple_for_row(row)
|
||||
base_cell_tuple = base_col.get_cell_tuple_for_row(row)
|
||||
if cell_tuple is None and base_cell_tuple is None:
|
||||
continue
|
||||
if cell_tuple is None:
|
||||
vals = [AccountingNone] * (len(common_subkpis) or 1)
|
||||
else:
|
||||
vals = [
|
||||
cell.val
|
||||
for cell in cell_tuple
|
||||
if not common_subkpis or cell.subcol.subkpi in common_subkpis
|
||||
]
|
||||
if base_cell_tuple is None:
|
||||
base_vals = [AccountingNone] * (len(common_subkpis) or 1)
|
||||
else:
|
||||
base_vals = [
|
||||
cell.val
|
||||
for cell in base_cell_tuple
|
||||
if not common_subkpis or cell.subcol.subkpi in common_subkpis
|
||||
]
|
||||
comparison_cell_tuple = []
|
||||
for val, base_val, comparison_subcol in zip(
|
||||
vals, base_vals, comparison_col.iter_subcols()
|
||||
):
|
||||
# TODO FIXME average factors
|
||||
comparison = self._style_model.compare_and_render(
|
||||
self.lang,
|
||||
row.style_props,
|
||||
row.kpi.type,
|
||||
row.kpi.compare_method,
|
||||
val,
|
||||
base_val,
|
||||
1,
|
||||
1,
|
||||
)
|
||||
delta, delta_r, delta_style, delta_type = comparison
|
||||
comparison_cell_tuple.append(
|
||||
KpiMatrixCell(
|
||||
row,
|
||||
comparison_subcol,
|
||||
delta,
|
||||
delta_r,
|
||||
None,
|
||||
delta_style,
|
||||
None,
|
||||
delta_type,
|
||||
)
|
||||
)
|
||||
comparison_col._set_cell_tuple(row, comparison_cell_tuple)
|
||||
|
||||
def compute_sums(self):
|
||||
"""Compute comparisons.
|
||||
|
||||
Invoke this after setting all values.
|
||||
"""
|
||||
for (
|
||||
sumcol_key,
|
||||
(col_to_sum_keys, label, description, sum_accdet),
|
||||
) in self._sum_todo.items():
|
||||
sumcols = [self._cols[k] for (sign, k) in col_to_sum_keys]
|
||||
# TODO check all sumcols are resolved; we need a kind of
|
||||
# recompute queue here so we don't depend on insertion
|
||||
# order
|
||||
common_subkpis = self._common_subkpis(sumcols)
|
||||
if any(c.subkpis for c in sumcols) and not common_subkpis:
|
||||
raise UserError(
|
||||
_(
|
||||
"Sum cannot be computed in column {} "
|
||||
"because the columns to sum have no "
|
||||
"common subkpis"
|
||||
).format(label)
|
||||
)
|
||||
sum_col = KpiMatrixCol(
|
||||
sumcol_key,
|
||||
label,
|
||||
description,
|
||||
{},
|
||||
sorted(common_subkpis, key=lambda s: s.sequence),
|
||||
)
|
||||
self._cols[sumcol_key] = sum_col
|
||||
for row in self.iter_rows():
|
||||
acc = SimpleArray([AccountingNone] * (len(common_subkpis) or 1))
|
||||
if row.kpi.accumulation_method == ACC_SUM and not (
|
||||
row.account_id and not sum_accdet
|
||||
):
|
||||
for sign, col_to_sum in col_to_sum_keys:
|
||||
cell_tuple = self._cols[col_to_sum].get_cell_tuple_for_row(row)
|
||||
if cell_tuple is None:
|
||||
vals = [AccountingNone] * (len(common_subkpis) or 1)
|
||||
else:
|
||||
vals = [
|
||||
cell.val
|
||||
for cell in cell_tuple
|
||||
if not common_subkpis
|
||||
or cell.subcol.subkpi in common_subkpis
|
||||
]
|
||||
if sign == "+":
|
||||
acc += SimpleArray(vals)
|
||||
else:
|
||||
acc -= SimpleArray(vals)
|
||||
self.set_values_detail_account(
|
||||
row.kpi,
|
||||
sumcol_key,
|
||||
row.account_id,
|
||||
acc,
|
||||
[None] * (len(common_subkpis) or 1),
|
||||
tooltips=False,
|
||||
)
|
||||
|
||||
def iter_rows(self):
|
||||
"""Iterate rows in display order.
|
||||
|
||||
yields KpiMatrixRow.
|
||||
"""
|
||||
for kpi_row in self._kpi_rows.values():
|
||||
yield kpi_row
|
||||
detail_rows = self._detail_rows[kpi_row.kpi].values()
|
||||
detail_rows = sorted(detail_rows, key=lambda r: r.label)
|
||||
for detail_row in detail_rows:
|
||||
yield detail_row
|
||||
|
||||
def iter_cols(self):
|
||||
"""Iterate columns in display order.
|
||||
|
||||
yields KpiMatrixCol: one for each column or comparison.
|
||||
"""
|
||||
for _col_key, col in self._cols.items():
|
||||
yield col
|
||||
|
||||
def iter_subcols(self):
|
||||
"""Iterate sub columns in display order.
|
||||
|
||||
yields KpiMatrixSubCol: one for each subkpi in each column
|
||||
and comparison.
|
||||
"""
|
||||
for col in self.iter_cols():
|
||||
for subcol in col.iter_subcols():
|
||||
yield subcol
|
||||
|
||||
def _load_account_names(self):
|
||||
account_ids = set()
|
||||
for detail_rows in self._detail_rows.values():
|
||||
account_ids.update(detail_rows.keys())
|
||||
accounts = self._account_model.search([("id", "in", list(account_ids))])
|
||||
self._account_names = {a.id: self._get_account_name(a) for a in accounts}
|
||||
|
||||
def _get_account_name(self, account):
|
||||
result = u"{} {}".format(account.code, account.name)
|
||||
if self._multi_company:
|
||||
result = u"{} [{}]".format(result, account.company_id.name)
|
||||
return result
|
||||
|
||||
def get_account_name(self, account_id):
|
||||
if account_id not in self._account_names:
|
||||
self._load_account_names()
|
||||
return self._account_names[account_id]
|
||||
|
||||
def as_dict(self):
|
||||
header = [{"cols": []}, {"cols": []}]
|
||||
for col in self.iter_cols():
|
||||
header[0]["cols"].append(
|
||||
{
|
||||
"label": col.label,
|
||||
"description": col.description,
|
||||
"colspan": col.colspan,
|
||||
}
|
||||
)
|
||||
for subcol in col.iter_subcols():
|
||||
header[1]["cols"].append(
|
||||
{
|
||||
"label": subcol.label,
|
||||
"description": subcol.description,
|
||||
"colspan": 1,
|
||||
}
|
||||
)
|
||||
|
||||
body = []
|
||||
for row in self.iter_rows():
|
||||
if (
|
||||
row.style_props.hide_empty and row.is_empty()
|
||||
) or row.style_props.hide_always:
|
||||
continue
|
||||
row_data = {
|
||||
"row_id": row.row_id,
|
||||
"parent_row_id": (row.parent_row and row.parent_row.row_id or None),
|
||||
"label": row.label,
|
||||
"description": row.description,
|
||||
"style": self._style_model.to_css_style(row.style_props),
|
||||
"cells": [],
|
||||
}
|
||||
for cell in row.iter_cells():
|
||||
if cell is None:
|
||||
# TODO use subcol style here
|
||||
row_data["cells"].append({})
|
||||
else:
|
||||
if cell.val is AccountingNone or isinstance(cell.val, DataError):
|
||||
val = None
|
||||
else:
|
||||
val = cell.val
|
||||
col_data = {
|
||||
"val": val,
|
||||
"val_r": cell.val_rendered,
|
||||
"val_c": cell.val_comment,
|
||||
"style": self._style_model.to_css_style(
|
||||
cell.style_props, no_indent=True
|
||||
),
|
||||
}
|
||||
if cell.drilldown_arg:
|
||||
col_data["drilldown_arg"] = cell.drilldown_arg
|
||||
row_data["cells"].append(col_data)
|
||||
body.append(row_data)
|
||||
|
||||
return {"header": header, "body": body}
|
|
@ -0,0 +1,112 @@
|
|||
# Copyright 2017 ACSONE SA/NV
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from collections import defaultdict
|
||||
|
||||
from flectra import _, api, fields, models
|
||||
from flectra.exceptions import UserError
|
||||
from flectra.osv import expression
|
||||
|
||||
ACC_SUM = "sum"
|
||||
ACC_AVG = "avg"
|
||||
ACC_NONE = "none"
|
||||
|
||||
|
||||
def intersect_days(item_dt_from, item_dt_to, dt_from, dt_to):
|
||||
item_days = (item_dt_to - item_dt_from).days + 1.0
|
||||
i_dt_from = max(dt_from, item_dt_from)
|
||||
i_dt_to = min(dt_to, item_dt_to)
|
||||
i_days = (i_dt_to - i_dt_from).days + 1.0
|
||||
return i_days, item_days
|
||||
|
||||
|
||||
class MisKpiData(models.AbstractModel):
|
||||
"""Abstract class for manually entered KPI values."""
|
||||
|
||||
_name = "mis.kpi.data"
|
||||
_description = "MIS Kpi Data Abtract class"
|
||||
|
||||
name = fields.Char(compute="_compute_name", required=False, readonly=True)
|
||||
kpi_expression_id = fields.Many2one(
|
||||
comodel_name="mis.report.kpi.expression",
|
||||
required=True,
|
||||
ondelete="restrict",
|
||||
string="KPI",
|
||||
)
|
||||
date_from = fields.Date(required=True, string="From")
|
||||
date_to = fields.Date(required=True, string="To")
|
||||
amount = fields.Float()
|
||||
seq1 = fields.Integer(
|
||||
related="kpi_expression_id.kpi_id.sequence",
|
||||
store=True,
|
||||
readonly=True,
|
||||
string="KPI Sequence",
|
||||
)
|
||||
seq2 = fields.Integer(
|
||||
related="kpi_expression_id.subkpi_id.sequence",
|
||||
store=True,
|
||||
readonly=True,
|
||||
string="Sub-KPI Sequence",
|
||||
)
|
||||
|
||||
@api.depends(
|
||||
"kpi_expression_id.subkpi_id.name",
|
||||
"kpi_expression_id.kpi_id.name",
|
||||
"date_from",
|
||||
"date_to",
|
||||
)
|
||||
def _compute_name(self):
|
||||
for rec in self:
|
||||
subkpi_name = rec.kpi_expression_id.subkpi_id.name
|
||||
if subkpi_name:
|
||||
subkpi_name = "." + subkpi_name
|
||||
else:
|
||||
subkpi_name = ""
|
||||
rec.name = u"{}{}: {} - {}".format(
|
||||
rec.kpi_expression_id.kpi_id.name,
|
||||
subkpi_name,
|
||||
rec.date_from,
|
||||
rec.date_to,
|
||||
)
|
||||
|
||||
@api.model
|
||||
def _intersect_days(self, item_dt_from, item_dt_to, dt_from, dt_to):
|
||||
return intersect_days(item_dt_from, item_dt_to, dt_from, dt_to)
|
||||
|
||||
@api.model
|
||||
def _query_kpi_data(self, date_from, date_to, base_domain):
|
||||
"""Query mis.kpi.data over a time period.
|
||||
|
||||
Returns {mis.report.kpi.expression: amount}
|
||||
"""
|
||||
dt_from = fields.Date.from_string(date_from)
|
||||
dt_to = fields.Date.from_string(date_to)
|
||||
# all data items within or overlapping [date_from, date_to]
|
||||
date_domain = [("date_from", "<=", date_to), ("date_to", ">=", date_from)]
|
||||
domain = expression.AND([date_domain, base_domain])
|
||||
res = defaultdict(float)
|
||||
res_avg = defaultdict(list)
|
||||
for item in self.search(domain):
|
||||
item_dt_from = fields.Date.from_string(item.date_from)
|
||||
item_dt_to = fields.Date.from_string(item.date_to)
|
||||
i_days, item_days = self._intersect_days(
|
||||
item_dt_from, item_dt_to, dt_from, dt_to
|
||||
)
|
||||
if item.kpi_expression_id.kpi_id.accumulation_method == ACC_SUM:
|
||||
# accumulate pro-rata overlap between item and reporting period
|
||||
res[item.kpi_expression_id] += item.amount * i_days / item_days
|
||||
elif item.kpi_expression_id.kpi_id.accumulation_method == ACC_AVG:
|
||||
# memorize the amount and number of days overlapping
|
||||
# the reporting period (used as weight in average)
|
||||
res_avg[item.kpi_expression_id].append((i_days, item.amount))
|
||||
else:
|
||||
raise UserError(
|
||||
_("Unexpected accumulation method %s for %s.")
|
||||
% (item.kpi_expression_id.kpi_id.accumulation_method, item.name)
|
||||
)
|
||||
# compute weighted average for ACC_AVG
|
||||
for kpi_expression, amounts in res_avg.items():
|
||||
res[kpi_expression] = sum(d * a for d, a in amounts) / sum(
|
||||
d for d, a in amounts
|
||||
)
|
||||
return res
|
|
@ -0,0 +1,980 @@
|
|||
# Copyright 2014 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
import datetime
|
||||
import logging
|
||||
import re
|
||||
import time
|
||||
from collections import defaultdict
|
||||
|
||||
import dateutil
|
||||
import pytz
|
||||
|
||||
from flectra import _, api, fields, models
|
||||
from flectra.exceptions import UserError, ValidationError
|
||||
from flectra.models import expression as osv_expression
|
||||
from flectra.tools.safe_eval import safe_eval
|
||||
|
||||
from .accounting_none import AccountingNone
|
||||
from .aep import AccountingExpressionProcessor as AEP
|
||||
from .aggregate import _avg, _max, _min, _sum
|
||||
from .expression_evaluator import ExpressionEvaluator
|
||||
from .kpimatrix import KpiMatrix
|
||||
from .mis_kpi_data import ACC_AVG, ACC_NONE, ACC_SUM
|
||||
from .mis_report_style import CMP_DIFF, CMP_NONE, CMP_PCT, TYPE_NUM, TYPE_PCT, TYPE_STR
|
||||
from .mis_safe_eval import DataError
|
||||
from .simple_array import SimpleArray, named_simple_array
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class SubKPITupleLengthError(UserError):
|
||||
pass
|
||||
|
||||
|
||||
class SubKPIUnknownTypeError(UserError):
|
||||
pass
|
||||
|
||||
|
||||
class AutoStruct(object):
|
||||
def __init__(self, **kwargs):
|
||||
for k, v in kwargs.items():
|
||||
setattr(self, k, v)
|
||||
|
||||
|
||||
def _utc_midnight(d, tz_name, add_day=0):
|
||||
d = fields.Datetime.from_string(d) + datetime.timedelta(days=add_day)
|
||||
utc_tz = pytz.timezone("UTC")
|
||||
context_tz = pytz.timezone(tz_name)
|
||||
local_timestamp = context_tz.localize(d, is_dst=False)
|
||||
return fields.Datetime.to_string(local_timestamp.astimezone(utc_tz))
|
||||
|
||||
|
||||
def _python_var(var_str):
|
||||
return re.sub(r"\W|^(?=\d)", "_", var_str).lower()
|
||||
|
||||
|
||||
def _is_valid_python_var(name):
|
||||
return re.match("[_A-Za-z][_a-zA-Z0-9]*$", name)
|
||||
|
||||
|
||||
class MisReportKpi(models.Model):
|
||||
"""A KPI is an element (ie a line) of a MIS report.
|
||||
|
||||
In addition to a name and description, it has an expression
|
||||
to compute it based on queries defined in the MIS report.
|
||||
It also has various informations defining how to render it
|
||||
(numeric or percentage or a string, a prefix, a suffix, divider) and
|
||||
how to render comparison of two values of the KPI.
|
||||
KPI's have a sequence and are ordered inside the MIS report.
|
||||
"""
|
||||
|
||||
_name = "mis.report.kpi"
|
||||
_description = "MIS Report KPI"
|
||||
|
||||
name = fields.Char(size=32, required=True, string="Name")
|
||||
description = fields.Char(required=True, string="Description", translate=True)
|
||||
multi = fields.Boolean()
|
||||
expression = fields.Char(
|
||||
compute="_compute_expression",
|
||||
inverse="_inverse_expression",
|
||||
string="Expression",
|
||||
)
|
||||
expression_ids = fields.One2many(
|
||||
comodel_name="mis.report.kpi.expression",
|
||||
inverse_name="kpi_id",
|
||||
copy=True,
|
||||
string="Expressions",
|
||||
)
|
||||
auto_expand_accounts = fields.Boolean(string="Display details by account")
|
||||
auto_expand_accounts_style_id = fields.Many2one(
|
||||
string="Style for account detail rows",
|
||||
comodel_name="mis.report.style",
|
||||
required=False,
|
||||
)
|
||||
style_id = fields.Many2one(
|
||||
string="Style", comodel_name="mis.report.style", required=False
|
||||
)
|
||||
style_expression = fields.Char(
|
||||
string="Style expression",
|
||||
help="An expression that returns a style depending on the KPI value. "
|
||||
"Such style is applied on top of the row style.",
|
||||
)
|
||||
type = fields.Selection(
|
||||
[
|
||||
(TYPE_NUM, _("Numeric")),
|
||||
(TYPE_PCT, _("Percentage")),
|
||||
(TYPE_STR, _("String")),
|
||||
],
|
||||
required=True,
|
||||
string="Value type",
|
||||
default=TYPE_NUM,
|
||||
)
|
||||
compare_method = fields.Selection(
|
||||
[
|
||||
(CMP_DIFF, _("Difference")),
|
||||
(CMP_PCT, _("Percentage")),
|
||||
(CMP_NONE, _("None")),
|
||||
],
|
||||
required=True,
|
||||
string="Comparison Method",
|
||||
default=CMP_PCT,
|
||||
)
|
||||
accumulation_method = fields.Selection(
|
||||
[(ACC_SUM, _("Sum")), (ACC_AVG, _("Average")), (ACC_NONE, _("None"))],
|
||||
required=True,
|
||||
string="Accumulation Method",
|
||||
default=ACC_SUM,
|
||||
help="Determines how values of this kpi spanning over a "
|
||||
"time period are transformed to match the reporting period. "
|
||||
"Sum: values of shorter period are added, "
|
||||
"values of longest or partially overlapping periods are "
|
||||
"adjusted pro-rata temporis.\n"
|
||||
"Average: values of included period are averaged "
|
||||
"with a pro-rata temporis weight.",
|
||||
)
|
||||
sequence = fields.Integer(string="Sequence", default=100)
|
||||
report_id = fields.Many2one(
|
||||
"mis.report", string="Report", required=True, ondelete="cascade"
|
||||
)
|
||||
|
||||
_order = "sequence, id"
|
||||
|
||||
def name_get(self):
|
||||
res = []
|
||||
for rec in self:
|
||||
name = u"{} ({})".format(rec.description, rec.name)
|
||||
res.append((rec.id, name))
|
||||
return res
|
||||
|
||||
@api.model
|
||||
def name_search(self, name="", args=None, operator="ilike", limit=100):
|
||||
domain = args or []
|
||||
domain += ["|", ("name", operator, name), ("description", operator, name)]
|
||||
return self.search(domain, limit=limit).name_get()
|
||||
|
||||
@api.constrains("name")
|
||||
def _check_name(self):
|
||||
for record in self:
|
||||
if not _is_valid_python_var(record.name):
|
||||
raise ValidationError(
|
||||
_("KPI name ({}) must be a valid python identifier").format(
|
||||
record.name
|
||||
)
|
||||
)
|
||||
|
||||
@api.depends("expression_ids.subkpi_id.name", "expression_ids.name")
|
||||
def _compute_expression(self):
|
||||
for kpi in self:
|
||||
exprs = []
|
||||
for expression in kpi.expression_ids:
|
||||
if expression.subkpi_id:
|
||||
exprs.append(
|
||||
u"{}\xa0=\xa0{}".format(
|
||||
expression.subkpi_id.name, expression.name
|
||||
)
|
||||
)
|
||||
else:
|
||||
exprs.append(expression.name or "AccountingNone")
|
||||
kpi.expression = ",\n".join(exprs)
|
||||
|
||||
def _inverse_expression(self):
|
||||
for kpi in self:
|
||||
if kpi.multi:
|
||||
raise UserError(_("Can not update a multi kpi from " "the kpi line"))
|
||||
if kpi.expression_ids:
|
||||
kpi.expression_ids[0].write({"name": kpi.expression, "subkpi_id": None})
|
||||
for expression in kpi.expression_ids[1:]:
|
||||
expression.unlink()
|
||||
else:
|
||||
expression = self.env["mis.report.kpi.expression"].new(
|
||||
{"name": kpi.expression}
|
||||
)
|
||||
kpi.expression_ids += expression
|
||||
|
||||
@api.onchange("multi")
|
||||
def _onchange_multi(self):
|
||||
for kpi in self:
|
||||
if not kpi.multi:
|
||||
if kpi.expression_ids:
|
||||
kpi.expression = kpi.expression_ids[0].name
|
||||
else:
|
||||
kpi.expression = None
|
||||
else:
|
||||
expressions = []
|
||||
for subkpi in kpi.report_id.subkpi_ids:
|
||||
expressions.append(
|
||||
(0, 0, {"name": kpi.expression, "subkpi_id": subkpi.id})
|
||||
)
|
||||
kpi.expression_ids = expressions
|
||||
|
||||
@api.onchange("description")
|
||||
def _onchange_description(self):
|
||||
""" construct name from description """
|
||||
if self.description and not self.name:
|
||||
self.name = _python_var(self.description)
|
||||
|
||||
@api.onchange("type")
|
||||
def _onchange_type(self):
|
||||
if self.type == TYPE_NUM:
|
||||
self.compare_method = CMP_PCT
|
||||
self.accumulation_method = ACC_SUM
|
||||
elif self.type == TYPE_PCT:
|
||||
self.compare_method = CMP_DIFF
|
||||
self.accumulation_method = ACC_AVG
|
||||
elif self.type == TYPE_STR:
|
||||
self.compare_method = CMP_NONE
|
||||
self.accumulation_method = ACC_NONE
|
||||
|
||||
def _get_expression_str_for_subkpi(self, subkpi):
|
||||
e = self._get_expression_for_subkpi(subkpi)
|
||||
return e and e.name or ""
|
||||
|
||||
def _get_expression_for_subkpi(self, subkpi):
|
||||
for expression in self.expression_ids:
|
||||
if expression.subkpi_id == subkpi:
|
||||
return expression
|
||||
return None
|
||||
|
||||
def _get_expressions(self, subkpis):
|
||||
if subkpis and self.multi:
|
||||
return [self._get_expression_for_subkpi(subkpi) for subkpi in subkpis]
|
||||
else:
|
||||
if self.expression_ids:
|
||||
assert len(self.expression_ids) == 1
|
||||
assert not self.expression_ids[0].subkpi_id
|
||||
return self.expression_ids
|
||||
else:
|
||||
return [None]
|
||||
|
||||
|
||||
class MisReportSubkpi(models.Model):
|
||||
_name = "mis.report.subkpi"
|
||||
_description = "MIS Report Sub-KPI"
|
||||
_order = "sequence, id"
|
||||
|
||||
sequence = fields.Integer(default=1)
|
||||
report_id = fields.Many2one(
|
||||
comodel_name="mis.report", required=True, ondelete="cascade"
|
||||
)
|
||||
name = fields.Char(size=32, required=True, string="Name")
|
||||
description = fields.Char(required=True, string="Description", translate=True)
|
||||
expression_ids = fields.One2many("mis.report.kpi.expression", "subkpi_id")
|
||||
|
||||
@api.constrains("name")
|
||||
def _check_name(self):
|
||||
for record in self:
|
||||
if not _is_valid_python_var(record.name):
|
||||
raise ValidationError(
|
||||
_("Sub-KPI name ({}) must be a valid python identifier").format(
|
||||
record.name
|
||||
)
|
||||
)
|
||||
|
||||
@api.onchange("description")
|
||||
def _onchange_description(self):
|
||||
""" construct name from description """
|
||||
if self.description and not self.name:
|
||||
self.name = _python_var(self.description)
|
||||
|
||||
|
||||
class MisReportKpiExpression(models.Model):
|
||||
"""A KPI Expression is an expression of a line of a MIS report Kpi.
|
||||
It's used to compute the kpi value.
|
||||
"""
|
||||
|
||||
_name = "mis.report.kpi.expression"
|
||||
_description = "MIS Report KPI Expression"
|
||||
_order = "sequence, name, id"
|
||||
|
||||
sequence = fields.Integer(related="subkpi_id.sequence", store=True, readonly=True)
|
||||
name = fields.Char(string="Expression")
|
||||
kpi_id = fields.Many2one("mis.report.kpi", required=True, ondelete="cascade")
|
||||
# TODO FIXME set readonly=True when onchange('subkpi_ids') below works
|
||||
subkpi_id = fields.Many2one("mis.report.subkpi", readonly=False, ondelete="cascade")
|
||||
|
||||
_sql_constraints = [
|
||||
(
|
||||
"subkpi_kpi_unique",
|
||||
"unique(subkpi_id, kpi_id)",
|
||||
"Sub KPI must be used once and only once for each KPI",
|
||||
)
|
||||
]
|
||||
|
||||
def name_get(self):
|
||||
res = []
|
||||
for rec in self:
|
||||
kpi = rec.kpi_id
|
||||
subkpi = rec.subkpi_id
|
||||
if subkpi:
|
||||
name = u"{} / {} ({}.{})".format(
|
||||
kpi.description, subkpi.description, kpi.name, subkpi.name
|
||||
)
|
||||
else:
|
||||
name = rec.kpi_id.display_name
|
||||
res.append((rec.id, name))
|
||||
return res
|
||||
|
||||
@api.model
|
||||
def name_search(self, name="", args=None, operator="ilike", limit=100):
|
||||
# TODO maybe implement negative search operators, although
|
||||
# there is not really a use case for that
|
||||
domain = args or []
|
||||
splitted_name = name.split(".", 2)
|
||||
name_search_domain = []
|
||||
if "." in name:
|
||||
kpi_name, subkpi_name = splitted_name[0], splitted_name[1]
|
||||
name_search_domain = osv_expression.AND(
|
||||
[
|
||||
name_search_domain,
|
||||
[
|
||||
"|",
|
||||
"|",
|
||||
"&",
|
||||
("kpi_id.name", "=", kpi_name),
|
||||
("subkpi_id.name", operator, subkpi_name),
|
||||
("kpi_id.description", operator, name),
|
||||
("subkpi_id.description", operator, name),
|
||||
],
|
||||
]
|
||||
)
|
||||
name_search_domain = osv_expression.OR(
|
||||
[
|
||||
name_search_domain,
|
||||
[
|
||||
"|",
|
||||
("kpi_id.name", operator, name),
|
||||
("kpi_id.description", operator, name),
|
||||
],
|
||||
]
|
||||
)
|
||||
domain = osv_expression.AND([domain, name_search_domain])
|
||||
return self.search(domain, limit=limit).name_get()
|
||||
|
||||
|
||||
class MisReportQuery(models.Model):
|
||||
"""A query to fetch arbitrary data for a MIS report.
|
||||
|
||||
A query works on a model and has a domain and list of fields to fetch.
|
||||
At runtime, the domain is expanded with a "and" on the date/datetime field.
|
||||
"""
|
||||
|
||||
_name = "mis.report.query"
|
||||
_description = "MIS Report Query"
|
||||
|
||||
@api.depends("field_ids")
|
||||
def _compute_field_names(self):
|
||||
for record in self:
|
||||
field_names = [field.name for field in record.field_ids]
|
||||
record.field_names = ", ".join(field_names)
|
||||
|
||||
name = fields.Char(size=32, required=True, string="Name")
|
||||
model_id = fields.Many2one(
|
||||
"ir.model", required=True, string="Model", ondelete="restrict"
|
||||
)
|
||||
field_ids = fields.Many2many(
|
||||
"ir.model.fields", required=True, string="Fields to fetch"
|
||||
)
|
||||
field_names = fields.Char(
|
||||
compute="_compute_field_names", string="Fetched fields name"
|
||||
)
|
||||
aggregate = fields.Selection(
|
||||
[
|
||||
("sum", _("Sum")),
|
||||
("avg", _("Average")),
|
||||
("min", _("Min")),
|
||||
("max", _("Max")),
|
||||
],
|
||||
string="Aggregate",
|
||||
)
|
||||
date_field = fields.Many2one(
|
||||
comodel_name="ir.model.fields",
|
||||
required=True,
|
||||
domain=[("ttype", "in", ("date", "datetime"))],
|
||||
ondelete="restrict",
|
||||
)
|
||||
domain = fields.Char(string="Domain")
|
||||
report_id = fields.Many2one(
|
||||
comodel_name="mis.report", string="Report", required=True, ondelete="cascade"
|
||||
)
|
||||
|
||||
_order = "name"
|
||||
|
||||
@api.constrains("name")
|
||||
def _check_name(self):
|
||||
for record in self:
|
||||
if not _is_valid_python_var(record.name):
|
||||
raise ValidationError(
|
||||
_("Query name ({}) must be valid python identifier").format(
|
||||
record.name
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
class MisReport(models.Model):
|
||||
"""A MIS report template (without period information)
|
||||
|
||||
The MIS report holds:
|
||||
* a list of explicit queries; the result of each query is
|
||||
stored in a variable with same name as a query, containing as list
|
||||
of data structures populated with attributes for each fields to fetch;
|
||||
when queries have an aggregate method and no fields to group, it returns
|
||||
a data structure with the aggregated fields
|
||||
* a list of KPI to be evaluated based on the variables resulting
|
||||
from the accounting data and queries (KPI expressions can references
|
||||
queries and accounting expression - see AccoutingExpressionProcessor)
|
||||
"""
|
||||
|
||||
_name = "mis.report"
|
||||
_description = "MIS Report Template"
|
||||
|
||||
def _default_move_lines_source(self):
|
||||
return self.env["ir.model"].search([("model", "=", "account.move.line")])
|
||||
|
||||
name = fields.Char(required=True, string="Name", translate=True)
|
||||
description = fields.Char(required=False, string="Description", translate=True)
|
||||
style_id = fields.Many2one(string="Style", comodel_name="mis.report.style")
|
||||
query_ids = fields.One2many(
|
||||
"mis.report.query", "report_id", string="Queries", copy=True
|
||||
)
|
||||
kpi_ids = fields.One2many("mis.report.kpi", "report_id", string="KPI's", copy=True)
|
||||
subkpi_ids = fields.One2many(
|
||||
"mis.report.subkpi", "report_id", string="Sub KPI", copy=True
|
||||
)
|
||||
subreport_ids = fields.One2many(
|
||||
"mis.report.subreport", "report_id", string="Sub reports", copy=True
|
||||
)
|
||||
all_kpi_ids = fields.One2many(
|
||||
comodel_name="mis.report.kpi",
|
||||
compute="_compute_all_kpi_ids",
|
||||
help="KPIs of this report and subreports.",
|
||||
)
|
||||
move_lines_source = fields.Many2one(
|
||||
comodel_name="ir.model",
|
||||
string="Move lines source",
|
||||
domain=[
|
||||
("field_id.name", "=", "debit"),
|
||||
("field_id.name", "=", "credit"),
|
||||
("field_id.name", "=", "account_id"),
|
||||
("field_id.name", "=", "date"),
|
||||
("field_id.name", "=", "company_id"),
|
||||
],
|
||||
default=_default_move_lines_source,
|
||||
required=True,
|
||||
help="A 'move line like' model, ie having at least debit, credit, "
|
||||
"date, account_id and company_id fields. This model is the "
|
||||
"data source for column Actuals.",
|
||||
)
|
||||
account_model = fields.Char(
|
||||
compute="_compute_account_model", string="Account model"
|
||||
)
|
||||
|
||||
@api.depends("kpi_ids", "subreport_ids")
|
||||
def _compute_all_kpi_ids(self):
|
||||
for rec in self:
|
||||
rec.all_kpi_ids = rec.kpi_ids | rec.subreport_ids.mapped(
|
||||
"subreport_id.kpi_ids"
|
||||
)
|
||||
|
||||
@api.depends("move_lines_source")
|
||||
def _compute_account_model(self):
|
||||
for record in self:
|
||||
record.account_model = record.move_lines_source.field_id.filtered(
|
||||
lambda r: r.name == "account_id"
|
||||
).relation
|
||||
|
||||
@api.onchange("subkpi_ids")
|
||||
def _on_change_subkpi_ids(self):
|
||||
"""Update kpi expressions when subkpis change on the report,
|
||||
so the list of kpi expressions is always up-to-date"""
|
||||
for kpi in self.kpi_ids:
|
||||
if not kpi.multi:
|
||||
continue
|
||||
new_subkpis = {subkpi for subkpi in self.subkpi_ids}
|
||||
expressions = []
|
||||
for expression in kpi.expression_ids:
|
||||
assert expression.subkpi_id # must be true if kpi is multi
|
||||
if expression.subkpi_id not in self.subkpi_ids:
|
||||
expressions.append((2, expression.id, None)) # remove
|
||||
else:
|
||||
new_subkpis.remove(expression.subkpi_id) # no change
|
||||
for subkpi in new_subkpis:
|
||||
# TODO FIXME this does not work, while the remove above works
|
||||
expressions.append(
|
||||
(0, None, {"name": False, "subkpi_id": subkpi.id})
|
||||
) # add empty expressions for new subkpis
|
||||
if expressions:
|
||||
kpi.expressions_ids = expressions
|
||||
|
||||
def get_wizard_report_action(self):
|
||||
action = self.env.ref("mis_builder.mis_report_instance_view_action")
|
||||
res = action.read()[0]
|
||||
view = self.env.ref("mis_builder.wizard_mis_report_instance_view_form")
|
||||
res.update(
|
||||
{
|
||||
"view_id": view.id,
|
||||
"views": [(view.id, "form")],
|
||||
"target": "new",
|
||||
"context": {
|
||||
"default_report_id": self.id,
|
||||
"default_name": self.name,
|
||||
"default_temporary": True,
|
||||
},
|
||||
}
|
||||
)
|
||||
return res
|
||||
|
||||
def copy(self, default=None):
|
||||
self.ensure_one()
|
||||
default = dict(default or [])
|
||||
default["name"] = _("%s (copy)") % self.name
|
||||
new = super(MisReport, self).copy(default)
|
||||
# after a copy, we have new subkpis, but the expressions
|
||||
# subkpi_id fields still point to the original one, so
|
||||
# we patch them after copying
|
||||
subkpis_by_name = {sk.name: sk for sk in new.subkpi_ids}
|
||||
for subkpi in self.subkpi_ids:
|
||||
# search expressions linked to subkpis of the original report
|
||||
exprs = self.env["mis.report.kpi.expression"].search(
|
||||
[("kpi_id.report_id", "=", new.id), ("subkpi_id", "=", subkpi.id)]
|
||||
)
|
||||
# and replace them with references to subkpis of the new report
|
||||
exprs.write({"subkpi_id": subkpis_by_name[subkpi.name].id})
|
||||
return new
|
||||
|
||||
# TODO: kpi name cannot be start with query name
|
||||
|
||||
def prepare_kpi_matrix(self, multi_company=False):
|
||||
self.ensure_one()
|
||||
kpi_matrix = KpiMatrix(self.env, multi_company, self.account_model)
|
||||
for kpi in self.kpi_ids:
|
||||
kpi_matrix.declare_kpi(kpi)
|
||||
return kpi_matrix
|
||||
|
||||
def _prepare_aep(self, companies, currency=None):
|
||||
self.ensure_one()
|
||||
aep = AEP(companies, currency, self.account_model)
|
||||
for kpi in self.all_kpi_ids:
|
||||
for expression in kpi.expression_ids:
|
||||
if expression.name:
|
||||
aep.parse_expr(expression.name)
|
||||
aep.done_parsing()
|
||||
return aep
|
||||
|
||||
def prepare_locals_dict(self):
|
||||
return {
|
||||
"sum": _sum,
|
||||
"min": _min,
|
||||
"max": _max,
|
||||
"len": len,
|
||||
"avg": _avg,
|
||||
"time": time,
|
||||
"datetime": datetime,
|
||||
"dateutil": dateutil,
|
||||
"AccountingNone": AccountingNone,
|
||||
"SimpleArray": SimpleArray,
|
||||
}
|
||||
|
||||
def _fetch_queries(self, date_from, date_to, get_additional_query_filter=None):
|
||||
self.ensure_one()
|
||||
res = {}
|
||||
for query in self.query_ids:
|
||||
model = self.env[query.model_id.model]
|
||||
eval_context = {
|
||||
"env": self.env,
|
||||
"time": time,
|
||||
"datetime": datetime,
|
||||
"dateutil": dateutil,
|
||||
# deprecated
|
||||
"uid": self.env.uid,
|
||||
"context": self.env.context,
|
||||
}
|
||||
domain = query.domain and safe_eval(query.domain, eval_context) or []
|
||||
if get_additional_query_filter:
|
||||
domain.extend(get_additional_query_filter(query))
|
||||
if query.date_field.ttype == "date":
|
||||
domain.extend(
|
||||
[
|
||||
(query.date_field.name, ">=", date_from),
|
||||
(query.date_field.name, "<=", date_to),
|
||||
]
|
||||
)
|
||||
else:
|
||||
datetime_from = _utc_midnight(date_from, self._context.get("tz", "UTC"))
|
||||
datetime_to = _utc_midnight(
|
||||
date_to, self._context.get("tz", "UTC"), add_day=1
|
||||
)
|
||||
domain.extend(
|
||||
[
|
||||
(query.date_field.name, ">=", datetime_from),
|
||||
(query.date_field.name, "<", datetime_to),
|
||||
]
|
||||
)
|
||||
field_names = [f.name for f in query.field_ids]
|
||||
all_stored = all([model._fields[f].store for f in field_names])
|
||||
if not query.aggregate:
|
||||
data = model.search_read(domain, field_names)
|
||||
res[query.name] = [AutoStruct(**d) for d in data]
|
||||
elif query.aggregate == "sum" and all_stored:
|
||||
# use read_group to sum stored fields
|
||||
data = model.read_group(domain, field_names, [])
|
||||
s = AutoStruct(count=data[0]["__count"])
|
||||
for field_name in field_names:
|
||||
try:
|
||||
v = data[0][field_name]
|
||||
except KeyError:
|
||||
_logger.error(
|
||||
"field %s not found in read_group " "for %s; not summable?",
|
||||
field_name,
|
||||
model._name,
|
||||
)
|
||||
v = AccountingNone
|
||||
setattr(s, field_name, v)
|
||||
res[query.name] = s
|
||||
else:
|
||||
data = model.search_read(domain, field_names)
|
||||
s = AutoStruct(count=len(data))
|
||||
if query.aggregate == "min":
|
||||
agg = _min
|
||||
elif query.aggregate == "max":
|
||||
agg = _max
|
||||
elif query.aggregate == "avg":
|
||||
agg = _avg
|
||||
elif query.aggregate == "sum":
|
||||
agg = _sum
|
||||
for field_name in field_names:
|
||||
setattr(s, field_name, agg([d[field_name] for d in data]))
|
||||
res[query.name] = s
|
||||
return res
|
||||
|
||||
def _declare_and_compute_col( # noqa: C901 (TODO simplify this fnction)
|
||||
self,
|
||||
expression_evaluator,
|
||||
kpi_matrix,
|
||||
col_key,
|
||||
col_label,
|
||||
col_description,
|
||||
subkpis_filter,
|
||||
locals_dict,
|
||||
no_auto_expand_accounts=False,
|
||||
):
|
||||
"""This is the main computation loop.
|
||||
|
||||
It evaluates the kpis and puts the results in the KpiMatrix.
|
||||
Evaluation is done through the expression_evaluator so data sources
|
||||
can provide their own mean of obtaining the data (eg preset
|
||||
kpi values for budget, or alternative move line sources).
|
||||
"""
|
||||
|
||||
if subkpis_filter:
|
||||
# TODO filter by subkpi names
|
||||
subkpis = [subkpi for subkpi in self.subkpi_ids if subkpi in subkpis_filter]
|
||||
else:
|
||||
subkpis = self.subkpi_ids
|
||||
|
||||
SimpleArray_cls = named_simple_array(
|
||||
"SimpleArray_{}".format(col_key), [subkpi.name for subkpi in subkpis]
|
||||
)
|
||||
locals_dict["SimpleArray"] = SimpleArray_cls
|
||||
|
||||
col = kpi_matrix.declare_col(
|
||||
col_key, col_label, col_description, locals_dict, subkpis
|
||||
)
|
||||
|
||||
compute_queue = self.kpi_ids
|
||||
recompute_queue = []
|
||||
while True:
|
||||
for kpi in compute_queue:
|
||||
# build the list of expressions for this kpi
|
||||
expressions = kpi._get_expressions(subkpis)
|
||||
|
||||
(
|
||||
vals,
|
||||
drilldown_args,
|
||||
name_error,
|
||||
) = expression_evaluator.eval_expressions(expressions, locals_dict)
|
||||
for drilldown_arg in drilldown_args:
|
||||
if not drilldown_arg:
|
||||
continue
|
||||
drilldown_arg["period_id"] = col_key
|
||||
drilldown_arg["kpi_id"] = kpi.id
|
||||
|
||||
if name_error:
|
||||
recompute_queue.append(kpi)
|
||||
else:
|
||||
# no error, set it in locals_dict so it can be used
|
||||
# in computing other kpis
|
||||
if not subkpis or not kpi.multi:
|
||||
locals_dict[kpi.name] = vals[0]
|
||||
else:
|
||||
locals_dict[kpi.name] = SimpleArray_cls(vals)
|
||||
|
||||
# even in case of name error we set the result in the matrix
|
||||
# so the name error will be displayed if it cannot be
|
||||
# resolved by recomputing later
|
||||
|
||||
if subkpis and not kpi.multi:
|
||||
# here we have one expression for this kpi, but
|
||||
# multiple subkpis (so this kpi is most probably
|
||||
# a sum or other operation on multi-valued kpis)
|
||||
if isinstance(vals[0], tuple):
|
||||
vals = vals[0]
|
||||
if len(vals) != col.colspan:
|
||||
raise SubKPITupleLengthError(
|
||||
_(
|
||||
'KPI "{}" is valued as a tuple of '
|
||||
"length {} while a tuple of length {} "
|
||||
"is expected."
|
||||
).format(kpi.description, len(vals), col.colspan)
|
||||
)
|
||||
elif isinstance(vals[0], DataError):
|
||||
vals = (vals[0],) * col.colspan
|
||||
else:
|
||||
raise SubKPIUnknownTypeError(
|
||||
_(
|
||||
'KPI "{}" has type {} while a tuple was '
|
||||
"expected.\n\nThis can be fixed by either:\n\t- "
|
||||
"Changing the KPI value to a tuple of length "
|
||||
"{}\nor\n\t- Changing the "
|
||||
"KPI to `multi` mode and giving an explicit "
|
||||
"value for each sub-KPI."
|
||||
).format(kpi.description, type(vals[0]), col.colspan)
|
||||
)
|
||||
if len(drilldown_args) != col.colspan:
|
||||
drilldown_args = [None] * col.colspan
|
||||
|
||||
kpi_matrix.set_values(kpi, col_key, vals, drilldown_args)
|
||||
|
||||
if (
|
||||
name_error
|
||||
or no_auto_expand_accounts
|
||||
or not kpi.auto_expand_accounts
|
||||
):
|
||||
continue
|
||||
|
||||
for (
|
||||
account_id,
|
||||
vals,
|
||||
drilldown_args,
|
||||
_name_error,
|
||||
) in expression_evaluator.eval_expressions_by_account(
|
||||
expressions, locals_dict
|
||||
):
|
||||
for drilldown_arg in drilldown_args:
|
||||
if not drilldown_arg:
|
||||
continue
|
||||
drilldown_arg["period_id"] = col_key
|
||||
drilldown_arg["kpi_id"] = kpi.id
|
||||
kpi_matrix.set_values_detail_account(
|
||||
kpi, col_key, account_id, vals, drilldown_args
|
||||
)
|
||||
|
||||
if len(recompute_queue) == 0:
|
||||
# nothing to recompute, we are done
|
||||
break
|
||||
if len(recompute_queue) == len(compute_queue):
|
||||
# could not compute anything in this iteration
|
||||
# (ie real Name errors or cyclic dependency)
|
||||
# so we stop trying
|
||||
break
|
||||
# try again
|
||||
compute_queue = recompute_queue
|
||||
recompute_queue = []
|
||||
|
||||
def declare_and_compute_period(
|
||||
self,
|
||||
kpi_matrix,
|
||||
col_key,
|
||||
col_label,
|
||||
col_description,
|
||||
aep,
|
||||
date_from,
|
||||
date_to,
|
||||
target_move,
|
||||
subkpis_filter=None,
|
||||
get_additional_move_line_filter=None,
|
||||
get_additional_query_filter=None,
|
||||
locals_dict=None,
|
||||
aml_model=None,
|
||||
no_auto_expand_accounts=False,
|
||||
):
|
||||
_logger.warning(
|
||||
"declare_and_compute_period() is deprecated, "
|
||||
"use _declare_and_compute_period() instead"
|
||||
)
|
||||
expression_evaluator = ExpressionEvaluator(
|
||||
aep,
|
||||
date_from,
|
||||
date_to,
|
||||
target_move,
|
||||
get_additional_move_line_filter()
|
||||
if get_additional_move_line_filter
|
||||
else None,
|
||||
aml_model,
|
||||
)
|
||||
return self._declare_and_compute_period(
|
||||
expression_evaluator,
|
||||
kpi_matrix,
|
||||
col_key,
|
||||
col_label,
|
||||
col_description,
|
||||
subkpis_filter,
|
||||
get_additional_query_filter,
|
||||
locals_dict,
|
||||
no_auto_expand_accounts,
|
||||
)
|
||||
|
||||
def _declare_and_compute_period(
|
||||
self,
|
||||
expression_evaluator,
|
||||
kpi_matrix,
|
||||
col_key,
|
||||
col_label,
|
||||
col_description,
|
||||
subkpis_filter=None,
|
||||
get_additional_query_filter=None,
|
||||
locals_dict=None,
|
||||
no_auto_expand_accounts=False,
|
||||
):
|
||||
"""Evaluate a report for a given period, populating a KpiMatrix.
|
||||
|
||||
:param expression_evaluator: an ExpressionEvaluator instance
|
||||
:param kpi_matrix: the KpiMatrix object to be populated created
|
||||
with prepare_kpi_matrix()
|
||||
:param col_key: the period key to use when populating the KpiMatrix
|
||||
:param subkpis_filter: a list of subkpis to include in the evaluation
|
||||
(if empty, use all subkpis)
|
||||
:param get_additional_query_filter: a bound method that takes a single
|
||||
query argument and returns a
|
||||
domain compatible with the query
|
||||
underlying model
|
||||
:param locals_dict: personalized locals dictionary used as evaluation
|
||||
context for the KPI expressions
|
||||
:param no_auto_expand_accounts: disable expansion of account details
|
||||
"""
|
||||
self.ensure_one()
|
||||
|
||||
# prepare the localsdict
|
||||
if locals_dict is None:
|
||||
locals_dict = {}
|
||||
|
||||
# Evaluate subreports
|
||||
for subreport in self.subreport_ids:
|
||||
subreport_locals_dict = subreport.subreport_id._evaluate(
|
||||
expression_evaluator, subkpis_filter, get_additional_query_filter
|
||||
)
|
||||
locals_dict[subreport.name] = AutoStruct(
|
||||
**{
|
||||
srk.name: subreport_locals_dict.get(srk.name, AccountingNone)
|
||||
for srk in subreport.subreport_id.kpi_ids
|
||||
}
|
||||
)
|
||||
|
||||
locals_dict.update(self.prepare_locals_dict())
|
||||
locals_dict["date_from"] = fields.Date.from_string(
|
||||
expression_evaluator.date_from
|
||||
)
|
||||
locals_dict["date_to"] = fields.Date.from_string(expression_evaluator.date_to)
|
||||
|
||||
# fetch non-accounting queries
|
||||
locals_dict.update(
|
||||
self._fetch_queries(
|
||||
expression_evaluator.date_from,
|
||||
expression_evaluator.date_to,
|
||||
get_additional_query_filter,
|
||||
)
|
||||
)
|
||||
|
||||
# use AEP to do the accounting queries
|
||||
expression_evaluator.aep_do_queries()
|
||||
|
||||
self._declare_and_compute_col(
|
||||
expression_evaluator,
|
||||
kpi_matrix,
|
||||
col_key,
|
||||
col_label,
|
||||
col_description,
|
||||
subkpis_filter,
|
||||
locals_dict,
|
||||
no_auto_expand_accounts,
|
||||
)
|
||||
|
||||
def get_kpis_by_account_id(self, company):
|
||||
""" Return { account_id: set(kpi) } """
|
||||
aep = self._prepare_aep(company)
|
||||
res = defaultdict(set)
|
||||
for kpi in self.kpi_ids:
|
||||
for expression in kpi.expression_ids:
|
||||
if not expression.name:
|
||||
continue
|
||||
account_ids = aep.get_account_ids_for_expr(expression.name)
|
||||
for account_id in account_ids:
|
||||
res[account_id].add(kpi)
|
||||
return res
|
||||
|
||||
def evaluate(
|
||||
self,
|
||||
aep,
|
||||
date_from,
|
||||
date_to,
|
||||
target_move="posted",
|
||||
aml_model=None,
|
||||
subkpis_filter=None,
|
||||
get_additional_move_line_filter=None,
|
||||
get_additional_query_filter=None,
|
||||
):
|
||||
"""Simplified method to evaluate a report over a time period.
|
||||
|
||||
:param aep: an AccountingExpressionProcessor instance created
|
||||
using _prepare_aep()
|
||||
:param date_from, date_to: the starting and ending date
|
||||
:param target_move: all|posted
|
||||
:param aml_model: the name of a model that is compatible with
|
||||
account.move.line
|
||||
:param subkpis_filter: a list of subkpis to include in the evaluation
|
||||
(if empty, use all subkpis)
|
||||
:param get_additional_move_line_filter: a bound method that takes
|
||||
no arguments and returns
|
||||
a domain compatible with
|
||||
account.move.line
|
||||
:param get_additional_query_filter: a bound method that takes a single
|
||||
query argument and returns a
|
||||
domain compatible with the query
|
||||
underlying model
|
||||
:return: a dictionary where keys are KPI names, and values are the
|
||||
evaluated results; some additional keys might be present:
|
||||
these should be ignored as they might be removed in
|
||||
the future.
|
||||
"""
|
||||
expression_evaluator = ExpressionEvaluator(
|
||||
aep,
|
||||
date_from,
|
||||
date_to,
|
||||
target_move,
|
||||
get_additional_move_line_filter()
|
||||
if get_additional_move_line_filter
|
||||
else None,
|
||||
aml_model,
|
||||
)
|
||||
return self._evaluate(expression_evaluator, subkpis_filter)
|
||||
|
||||
def _evaluate(
|
||||
self,
|
||||
expression_evaluator,
|
||||
subkpis_filter=None,
|
||||
get_additional_query_filter=None,
|
||||
):
|
||||
locals_dict = {}
|
||||
kpi_matrix = self.prepare_kpi_matrix()
|
||||
self._declare_and_compute_period(
|
||||
expression_evaluator,
|
||||
kpi_matrix,
|
||||
col_key=1,
|
||||
col_label="",
|
||||
col_description="",
|
||||
subkpis_filter=subkpis_filter,
|
||||
get_additional_query_filter=get_additional_query_filter,
|
||||
locals_dict=locals_dict,
|
||||
no_auto_expand_accounts=True,
|
||||
)
|
||||
return locals_dict
|
|
@ -0,0 +1,860 @@
|
|||
# Copyright 2014 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
import datetime
|
||||
import logging
|
||||
|
||||
from dateutil.relativedelta import relativedelta
|
||||
|
||||
from flectra import _, api, fields, models
|
||||
from flectra.exceptions import UserError, ValidationError
|
||||
|
||||
from .aep import AccountingExpressionProcessor as AEP
|
||||
from .expression_evaluator import ExpressionEvaluator
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
SRC_ACTUALS = "actuals"
|
||||
SRC_ACTUALS_ALT = "actuals_alt"
|
||||
SRC_CMPCOL = "cmpcol"
|
||||
SRC_SUMCOL = "sumcol"
|
||||
|
||||
MODE_NONE = "none"
|
||||
MODE_FIX = "fix"
|
||||
MODE_REL = "relative"
|
||||
|
||||
|
||||
class DateFilterRequired(ValidationError):
|
||||
pass
|
||||
|
||||
|
||||
class DateFilterForbidden(ValidationError):
|
||||
pass
|
||||
|
||||
|
||||
class MisReportInstancePeriodSum(models.Model):
|
||||
|
||||
_name = "mis.report.instance.period.sum"
|
||||
_description = "MIS Report Instance Period Sum"
|
||||
|
||||
period_id = fields.Many2one(
|
||||
comodel_name="mis.report.instance.period",
|
||||
string="Parent column",
|
||||
ondelete="cascade",
|
||||
required=True,
|
||||
)
|
||||
period_to_sum_id = fields.Many2one(
|
||||
comodel_name="mis.report.instance.period",
|
||||
string="Column",
|
||||
ondelete="restrict",
|
||||
required=True,
|
||||
)
|
||||
sign = fields.Selection([("+", "+"), ("-", "-")], required=True, default="+")
|
||||
|
||||
@api.constrains("period_id", "period_to_sum_id")
|
||||
def _check_period_to_sum(self):
|
||||
for rec in self:
|
||||
if rec.period_id == rec.period_to_sum_id:
|
||||
raise ValidationError(
|
||||
_("You cannot sum period %s with itself.") % rec.period_id.name
|
||||
)
|
||||
|
||||
|
||||
class MisReportInstancePeriod(models.Model):
|
||||
"""A MIS report instance has the logic to compute
|
||||
a report template for a given date period.
|
||||
|
||||
Periods have a duration (day, week, fiscal period) and
|
||||
are defined as an offset relative to a pivot date.
|
||||
"""
|
||||
|
||||
@api.depends(
|
||||
"report_instance_id.pivot_date",
|
||||
"report_instance_id.comparison_mode",
|
||||
"date_range_type_id",
|
||||
"type",
|
||||
"offset",
|
||||
"duration",
|
||||
"mode",
|
||||
"manual_date_from",
|
||||
"manual_date_to",
|
||||
"is_ytd",
|
||||
)
|
||||
def _compute_dates(self):
|
||||
for record in self:
|
||||
record.date_from = False
|
||||
record.date_to = False
|
||||
record.valid = False
|
||||
report = record.report_instance_id
|
||||
d = fields.Date.from_string(report.pivot_date)
|
||||
if not report.comparison_mode:
|
||||
record.date_from = report.date_from
|
||||
record.date_to = report.date_to
|
||||
record.valid = record.date_from and record.date_to
|
||||
elif record.mode == MODE_NONE:
|
||||
record.date_from = False
|
||||
record.date_to = False
|
||||
record.valid = True
|
||||
elif record.mode == MODE_FIX:
|
||||
record.date_from = record.manual_date_from
|
||||
record.date_to = record.manual_date_to
|
||||
record.valid = record.date_from and record.date_to
|
||||
elif record.mode == MODE_REL and record.type == "d":
|
||||
date_from = d + datetime.timedelta(days=record.offset)
|
||||
date_to = date_from + datetime.timedelta(days=record.duration - 1)
|
||||
record.date_from = fields.Date.to_string(date_from)
|
||||
record.date_to = fields.Date.to_string(date_to)
|
||||
record.valid = True
|
||||
elif record.mode == MODE_REL and record.type == "w":
|
||||
date_from = d - datetime.timedelta(d.weekday())
|
||||
date_from = date_from + datetime.timedelta(days=record.offset * 7)
|
||||
date_to = date_from + datetime.timedelta(days=(7 * record.duration) - 1)
|
||||
record.date_from = fields.Date.to_string(date_from)
|
||||
record.date_to = fields.Date.to_string(date_to)
|
||||
record.valid = True
|
||||
elif record.mode == MODE_REL and record.type == "m":
|
||||
date_from = d.replace(day=1)
|
||||
date_from = date_from + relativedelta(months=record.offset)
|
||||
date_to = (
|
||||
date_from
|
||||
+ relativedelta(months=record.duration - 1)
|
||||
+ relativedelta(day=31)
|
||||
)
|
||||
record.date_from = fields.Date.to_string(date_from)
|
||||
record.date_to = fields.Date.to_string(date_to)
|
||||
record.valid = True
|
||||
elif record.mode == MODE_REL and record.type == "y":
|
||||
date_from = d.replace(month=1, day=1)
|
||||
date_from = date_from + relativedelta(years=record.offset)
|
||||
date_to = date_from + relativedelta(years=record.duration - 1)
|
||||
date_to = date_to.replace(month=12, day=31)
|
||||
record.date_from = fields.Date.to_string(date_from)
|
||||
record.date_to = fields.Date.to_string(date_to)
|
||||
record.valid = True
|
||||
elif record.mode == MODE_REL and record.type == "date_range":
|
||||
date_range_obj = record.env["date.range"]
|
||||
current_periods = date_range_obj.search(
|
||||
[
|
||||
("type_id", "=", record.date_range_type_id.id),
|
||||
("date_start", "<=", d),
|
||||
("date_end", ">=", d),
|
||||
"|",
|
||||
("company_id", "=", False),
|
||||
(
|
||||
"company_id",
|
||||
"in",
|
||||
record.report_instance_id.query_company_ids.ids,
|
||||
),
|
||||
]
|
||||
)
|
||||
if current_periods:
|
||||
# TODO we take the first date range we found as current
|
||||
# this may be surprising if several companies
|
||||
# have overlapping date ranges with different dates
|
||||
current_period = current_periods[0]
|
||||
all_periods = date_range_obj.search(
|
||||
[
|
||||
("type_id", "=", current_period.type_id.id),
|
||||
("company_id", "=", current_period.company_id.id),
|
||||
],
|
||||
order="date_start",
|
||||
)
|
||||
p = all_periods.ids.index(current_period.id) + record.offset
|
||||
if p >= 0 and p + record.duration <= len(all_periods):
|
||||
periods = all_periods[p : p + record.duration]
|
||||
record.date_from = periods[0].date_start
|
||||
record.date_to = periods[-1].date_end
|
||||
record.valid = True
|
||||
if record.mode == MODE_REL and record.valid and record.is_ytd:
|
||||
record.date_from = fields.Date.from_string(record.date_to).replace(
|
||||
day=1, month=1
|
||||
)
|
||||
|
||||
_name = "mis.report.instance.period"
|
||||
_description = "MIS Report Instance Period"
|
||||
|
||||
name = fields.Char(size=32, required=True, string="Label", translate=True)
|
||||
mode = fields.Selection(
|
||||
[
|
||||
(MODE_FIX, "Fixed dates"),
|
||||
(MODE_REL, "Relative to report base date"),
|
||||
(MODE_NONE, "No date filter"),
|
||||
],
|
||||
required=True,
|
||||
default=MODE_FIX,
|
||||
)
|
||||
type = fields.Selection(
|
||||
[
|
||||
("d", _("Day")),
|
||||
("w", _("Week")),
|
||||
("m", _("Month")),
|
||||
("y", _("Year")),
|
||||
("date_range", _("Date Range")),
|
||||
],
|
||||
string="Period type",
|
||||
)
|
||||
is_ytd = fields.Boolean(
|
||||
default=False,
|
||||
string="Year to date",
|
||||
help="Forces the start date to Jan 1st of the relevant year",
|
||||
)
|
||||
date_range_type_id = fields.Many2one(
|
||||
comodel_name="date.range.type",
|
||||
string="Date Range Type",
|
||||
domain=[("allow_overlap", "=", False)],
|
||||
)
|
||||
offset = fields.Integer(
|
||||
string="Offset", help="Offset from current period", default=-1
|
||||
)
|
||||
duration = fields.Integer(string="Duration", help="Number of periods", default=1)
|
||||
date_from = fields.Date(compute="_compute_dates", string="From (computed)")
|
||||
date_to = fields.Date(compute="_compute_dates", string="To (computed)")
|
||||
manual_date_from = fields.Date(string="From")
|
||||
manual_date_to = fields.Date(string="To")
|
||||
date_range_id = fields.Many2one(comodel_name="date.range", string="Date Range")
|
||||
valid = fields.Boolean(compute="_compute_dates", type="boolean", string="Valid")
|
||||
sequence = fields.Integer(string="Sequence", default=100)
|
||||
report_instance_id = fields.Many2one(
|
||||
comodel_name="mis.report.instance",
|
||||
string="Report Instance",
|
||||
required=True,
|
||||
ondelete="cascade",
|
||||
)
|
||||
report_id = fields.Many2one(related="report_instance_id.report_id")
|
||||
normalize_factor = fields.Integer(
|
||||
string="Factor",
|
||||
help="Factor to use to normalize the period (used in comparison",
|
||||
default=1,
|
||||
)
|
||||
subkpi_ids = fields.Many2many("mis.report.subkpi", string="Sub KPI Filter")
|
||||
|
||||
source = fields.Selection(
|
||||
[
|
||||
(SRC_ACTUALS, "Actuals"),
|
||||
(SRC_ACTUALS_ALT, "Actuals (alternative)"),
|
||||
(SRC_SUMCOL, "Sum columns"),
|
||||
(SRC_CMPCOL, "Compare columns"),
|
||||
],
|
||||
default=SRC_ACTUALS,
|
||||
required=True,
|
||||
help="Actuals: current data, from accounting and other queries.\n"
|
||||
"Actuals (alternative): current data from an "
|
||||
"alternative source (eg a database view providing look-alike "
|
||||
"account move lines).\n"
|
||||
"Sum columns: summation (+/-) of other columns.\n"
|
||||
"Compare to column: compare to other column.\n",
|
||||
)
|
||||
source_aml_model_id = fields.Many2one(
|
||||
comodel_name="ir.model",
|
||||
string="Move lines source",
|
||||
domain=[
|
||||
("field_id.name", "=", "debit"),
|
||||
("field_id.name", "=", "credit"),
|
||||
("field_id.name", "=", "account_id"),
|
||||
("field_id.name", "=", "date"),
|
||||
("field_id.name", "=", "company_id"),
|
||||
("field_id.model_id.model", "!=", "account.move.line"),
|
||||
],
|
||||
help="A 'move line like' model, ie having at least debit, credit, "
|
||||
"date, account_id and company_id fields.",
|
||||
)
|
||||
source_aml_model_name = fields.Char(
|
||||
string="Move lines source model name", related="source_aml_model_id.model"
|
||||
)
|
||||
source_sumcol_ids = fields.One2many(
|
||||
comodel_name="mis.report.instance.period.sum",
|
||||
inverse_name="period_id",
|
||||
string="Columns to sum",
|
||||
)
|
||||
source_sumcol_accdet = fields.Boolean(string="Sum account details")
|
||||
source_cmpcol_from_id = fields.Many2one(
|
||||
comodel_name="mis.report.instance.period", string="versus"
|
||||
)
|
||||
source_cmpcol_to_id = fields.Many2one(
|
||||
comodel_name="mis.report.instance.period", string="Compare"
|
||||
)
|
||||
# filters
|
||||
analytic_account_id = fields.Many2one(
|
||||
comodel_name="account.analytic.account",
|
||||
string="Analytic Account",
|
||||
help=(
|
||||
"Filter column on journal entries that match this analytic account."
|
||||
"This filter is combined with a AND with the report-level filters "
|
||||
"and cannot be modified in the preview."
|
||||
),
|
||||
)
|
||||
analytic_tag_ids = fields.Many2many(
|
||||
comodel_name="account.analytic.tag",
|
||||
string="Analytic Tags",
|
||||
help=(
|
||||
"Filter column on journal entries that have all these analytic tags."
|
||||
"This filter is combined with a AND with the report-level filters "
|
||||
"and cannot be modified in the preview."
|
||||
),
|
||||
)
|
||||
|
||||
_order = "sequence, id"
|
||||
|
||||
_sql_constraints = [
|
||||
("duration", "CHECK (duration>0)", "Wrong duration, it must be positive!"),
|
||||
(
|
||||
"normalize_factor",
|
||||
"CHECK (normalize_factor>0)",
|
||||
"Wrong normalize factor, it must be positive!",
|
||||
),
|
||||
(
|
||||
"name_unique",
|
||||
"unique(name, report_instance_id)",
|
||||
"Period name should be unique by report",
|
||||
),
|
||||
]
|
||||
|
||||
@api.constrains("source_aml_model_id")
|
||||
def _check_source_aml_model_id(self):
|
||||
for record in self:
|
||||
if record.source_aml_model_id:
|
||||
record_model = record.source_aml_model_id.field_id.filtered(
|
||||
lambda r: r.name == "account_id"
|
||||
).relation
|
||||
report_account_model = record.report_id.account_model
|
||||
if record_model != report_account_model:
|
||||
raise ValidationError(
|
||||
_(
|
||||
"Actual (alternative) models used in columns must "
|
||||
"have the same account model in the Account field and must "
|
||||
"be the same defined in the "
|
||||
"report template: %s"
|
||||
)
|
||||
% report_account_model
|
||||
)
|
||||
|
||||
@api.onchange("date_range_id")
|
||||
def _onchange_date_range(self):
|
||||
if self.date_range_id:
|
||||
self.manual_date_from = self.date_range_id.date_start
|
||||
self.manual_date_to = self.date_range_id.date_end
|
||||
|
||||
@api.onchange("manual_date_from", "manual_date_to")
|
||||
def _onchange_dates(self):
|
||||
if self.date_range_id:
|
||||
if (
|
||||
self.manual_date_from != self.date_range_id.date_start
|
||||
or self.manual_date_to != self.date_range_id.date_end
|
||||
):
|
||||
self.date_range_id = False
|
||||
|
||||
@api.onchange("source")
|
||||
def _onchange_source(self):
|
||||
if self.source in (SRC_SUMCOL, SRC_CMPCOL):
|
||||
self.mode = MODE_NONE
|
||||
|
||||
def _get_aml_model_name(self):
|
||||
self.ensure_one()
|
||||
if self.source == SRC_ACTUALS:
|
||||
return self.report_id.move_lines_source.model
|
||||
elif self.source == SRC_ACTUALS_ALT:
|
||||
return self.source_aml_model_name
|
||||
return False
|
||||
|
||||
@api.model
|
||||
def _get_filter_domain_from_context(self):
|
||||
filters = []
|
||||
mis_report_filters = self.env.context.get("mis_report_filters", {})
|
||||
for filter_name, domain in mis_report_filters.items():
|
||||
if domain:
|
||||
value = domain.get("value")
|
||||
operator = domain.get("operator", "=")
|
||||
# Operator = 'all' when coming from JS widget
|
||||
if operator == "all":
|
||||
if not isinstance(value, list):
|
||||
value = [value]
|
||||
many_ids = self.report_instance_id.resolve_2many_commands(
|
||||
filter_name, value, ["id"]
|
||||
)
|
||||
for m in many_ids:
|
||||
filters.append((filter_name, "in", [m["id"]]))
|
||||
else:
|
||||
filters.append((filter_name, operator, value))
|
||||
return filters
|
||||
|
||||
def _get_additional_move_line_filter(self):
|
||||
"""Prepare a filter to apply on all move lines
|
||||
|
||||
This filter is applied with a AND operator on all
|
||||
accounting expression domains. This hook is intended
|
||||
to be inherited, and is useful to implement filtering
|
||||
on analytic dimensions or operational units.
|
||||
|
||||
The default filter is built from a ``mis_report_filters`` context
|
||||
key, which is a list set by the analytic filtering mechanism
|
||||
of the mis report widget::
|
||||
|
||||
[(field_name, {'value': value, 'operator': operator})]
|
||||
|
||||
Returns an Flectra domain expression (a python list)
|
||||
compatible with account.move.line."""
|
||||
self.ensure_one()
|
||||
domain = self._get_filter_domain_from_context()
|
||||
if (
|
||||
self._get_aml_model_name() == "account.move.line"
|
||||
and self.report_instance_id.target_move == "posted"
|
||||
):
|
||||
domain.extend([("move_id.state", "=", "posted")])
|
||||
if self.analytic_account_id:
|
||||
domain.append(("analytic_account_id", "=", self.analytic_account_id.id))
|
||||
for tag in self.analytic_tag_ids:
|
||||
domain.append(("analytic_tag_ids", "=", tag.id))
|
||||
return domain
|
||||
|
||||
def _get_additional_query_filter(self, query):
|
||||
"""Prepare an additional filter to apply on the query
|
||||
|
||||
This filter is combined to the query domain with a AND
|
||||
operator. This hook is intended
|
||||
to be inherited, and is useful to implement filtering
|
||||
on analytic dimensions or operational units.
|
||||
|
||||
Returns an Flectra domain expression (a python list)
|
||||
compatible with the model of the query."""
|
||||
self.ensure_one()
|
||||
return []
|
||||
|
||||
@api.constrains("mode", "source")
|
||||
def _check_mode_source(self):
|
||||
for rec in self:
|
||||
if rec.source in (SRC_ACTUALS, SRC_ACTUALS_ALT):
|
||||
if rec.mode == MODE_NONE:
|
||||
raise DateFilterRequired(
|
||||
_("A date filter is mandatory for this source " "in column %s.")
|
||||
% rec.name
|
||||
)
|
||||
elif rec.source in (SRC_SUMCOL, SRC_CMPCOL):
|
||||
if rec.mode != MODE_NONE:
|
||||
raise DateFilterForbidden(
|
||||
_("No date filter is allowed for this source " "in column %s.")
|
||||
% rec.name
|
||||
)
|
||||
|
||||
@api.constrains("source", "source_cmpcol_from_id", "source_cmpcol_to_id")
|
||||
def _check_source_cmpcol(self):
|
||||
for rec in self:
|
||||
if rec.source == SRC_CMPCOL:
|
||||
if not rec.source_cmpcol_from_id or not rec.source_cmpcol_to_id:
|
||||
raise ValidationError(
|
||||
_("Please provide both columns to compare in %s.") % rec.name
|
||||
)
|
||||
if rec.source_cmpcol_from_id == rec or rec.source_cmpcol_to_id == rec:
|
||||
raise ValidationError(
|
||||
_("Column %s cannot be compared to itrec.") % rec.name
|
||||
)
|
||||
if (
|
||||
rec.source_cmpcol_from_id.report_instance_id
|
||||
!= rec.report_instance_id
|
||||
or rec.source_cmpcol_to_id.report_instance_id
|
||||
!= rec.report_instance_id
|
||||
):
|
||||
raise ValidationError(
|
||||
_("Columns to compare must belong to the same report " "in %s")
|
||||
% rec.name
|
||||
)
|
||||
|
||||
|
||||
class MisReportInstance(models.Model):
|
||||
"""The MIS report instance combines everything to compute
|
||||
a MIS report template for a set of periods."""
|
||||
|
||||
@api.depends("date")
|
||||
def _compute_pivot_date(self):
|
||||
for record in self:
|
||||
if record.date:
|
||||
record.pivot_date = record.date
|
||||
else:
|
||||
record.pivot_date = fields.Date.context_today(record)
|
||||
|
||||
_name = "mis.report.instance"
|
||||
_description = "MIS Report Instance"
|
||||
|
||||
name = fields.Char(required=True, string="Name", translate=True)
|
||||
description = fields.Char(related="report_id.description", readonly=True)
|
||||
date = fields.Date(
|
||||
string="Base date", help="Report base date " "(leave empty to use current date)"
|
||||
)
|
||||
pivot_date = fields.Date(compute="_compute_pivot_date", string="Pivot date")
|
||||
report_id = fields.Many2one("mis.report", required=True, string="Report")
|
||||
period_ids = fields.One2many(
|
||||
comodel_name="mis.report.instance.period",
|
||||
inverse_name="report_instance_id",
|
||||
required=True,
|
||||
string="Periods",
|
||||
copy=True,
|
||||
)
|
||||
target_move = fields.Selection(
|
||||
[("posted", "All Posted Entries"), ("all", "All Entries")],
|
||||
string="Target Moves",
|
||||
required=True,
|
||||
default="posted",
|
||||
)
|
||||
company_id = fields.Many2one(
|
||||
comodel_name="res.company",
|
||||
string="Company",
|
||||
default=lambda self: self.env.company,
|
||||
required=True,
|
||||
)
|
||||
multi_company = fields.Boolean(
|
||||
string="Multiple companies",
|
||||
help="Check if you wish to specify "
|
||||
"children companies to be searched for data.",
|
||||
default=False,
|
||||
)
|
||||
company_ids = fields.Many2many(
|
||||
comodel_name="res.company",
|
||||
string="Companies",
|
||||
help="Select companies for which data will be searched.",
|
||||
)
|
||||
query_company_ids = fields.Many2many(
|
||||
comodel_name="res.company",
|
||||
compute="_compute_query_company_ids",
|
||||
help="Companies for which data will be searched.",
|
||||
)
|
||||
currency_id = fields.Many2one(
|
||||
comodel_name="res.currency",
|
||||
string="Currency",
|
||||
help="Select target currency for the report. "
|
||||
"Required if companies have different currencies.",
|
||||
required=False,
|
||||
)
|
||||
landscape_pdf = fields.Boolean(string="Landscape PDF")
|
||||
no_auto_expand_accounts = fields.Boolean(string="Disable account details expansion")
|
||||
display_columns_description = fields.Boolean(
|
||||
help="Display the date range details in the column headers."
|
||||
)
|
||||
comparison_mode = fields.Boolean(
|
||||
compute="_compute_comparison_mode", inverse="_inverse_comparison_mode"
|
||||
)
|
||||
date_range_id = fields.Many2one(comodel_name="date.range", string="Date Range")
|
||||
date_from = fields.Date(string="From")
|
||||
date_to = fields.Date(string="To")
|
||||
temporary = fields.Boolean(default=False)
|
||||
analytic_account_id = fields.Many2one(
|
||||
comodel_name="account.analytic.account", string="Analytic Account"
|
||||
)
|
||||
analytic_tag_ids = fields.Many2many(
|
||||
comodel_name="account.analytic.tag", string="Analytic Tags"
|
||||
)
|
||||
hide_analytic_filters = fields.Boolean(default=True)
|
||||
|
||||
@api.onchange("company_id", "multi_company")
|
||||
def _onchange_company(self):
|
||||
if self.company_id and self.multi_company:
|
||||
self.company_ids = self.env["res.company"].search(
|
||||
[("id", "child_of", self.company_id.id)]
|
||||
)
|
||||
else:
|
||||
self.company_ids = False
|
||||
|
||||
@api.depends("multi_company", "company_id", "company_ids")
|
||||
def _compute_query_company_ids(self):
|
||||
for rec in self:
|
||||
if rec.multi_company:
|
||||
rec.query_company_ids = rec.company_ids or rec.company_id
|
||||
else:
|
||||
rec.query_company_ids = rec.company_id
|
||||
|
||||
@api.model
|
||||
def get_filter_descriptions_from_context(self):
|
||||
filters = self.env.context.get("mis_report_filters", {})
|
||||
analytic_account_id = filters.get("analytic_account_id", {}).get("value")
|
||||
filter_descriptions = []
|
||||
if analytic_account_id:
|
||||
analytic_account = self.env["account.analytic.account"].browse(
|
||||
analytic_account_id
|
||||
)
|
||||
filter_descriptions.append(
|
||||
_("Analytic Account: %s") % analytic_account.display_name
|
||||
)
|
||||
analytic_tag_value = filters.get("analytic_tag_ids", {}).get("value")
|
||||
if analytic_tag_value:
|
||||
analytic_tag_names = self.resolve_2many_commands(
|
||||
"analytic_tag_ids", analytic_tag_value, ["name"]
|
||||
)
|
||||
filter_descriptions.append(
|
||||
_("Analytic Tags: %s")
|
||||
% ", ".join([rec["name"] for rec in analytic_tag_names])
|
||||
)
|
||||
return filter_descriptions
|
||||
|
||||
def save_report(self):
|
||||
self.ensure_one()
|
||||
self.write({"temporary": False})
|
||||
action = self.env.ref("mis_builder.mis_report_instance_view_action")
|
||||
res = action.read()[0]
|
||||
view = self.env.ref("mis_builder.mis_report_instance_view_form")
|
||||
res.update({"views": [(view.id, "form")], "res_id": self.id})
|
||||
return res
|
||||
|
||||
@api.model
|
||||
def _vacuum_report(self, hours=24):
|
||||
clear_date = fields.Datetime.to_string(
|
||||
datetime.datetime.now() - datetime.timedelta(hours=hours)
|
||||
)
|
||||
reports = self.search(
|
||||
[("write_date", "<", clear_date), ("temporary", "=", True)]
|
||||
)
|
||||
_logger.debug("Vacuum %s Temporary MIS Builder Report", len(reports))
|
||||
return reports.unlink()
|
||||
|
||||
def copy(self, default=None):
|
||||
self.ensure_one()
|
||||
default = dict(default or {})
|
||||
default["name"] = _("%s (copy)") % self.name
|
||||
return super(MisReportInstance, self).copy(default)
|
||||
|
||||
def _format_date(self, date):
|
||||
# format date following user language
|
||||
lang_model = self.env["res.lang"]
|
||||
lang = lang_model._lang_get(self.env.user.lang)
|
||||
date_format = lang.date_format
|
||||
return datetime.datetime.strftime(fields.Date.from_string(date), date_format)
|
||||
|
||||
@api.depends("date_from")
|
||||
def _compute_comparison_mode(self):
|
||||
for instance in self:
|
||||
instance.comparison_mode = bool(instance.period_ids) and not bool(
|
||||
instance.date_from
|
||||
)
|
||||
|
||||
def _inverse_comparison_mode(self):
|
||||
for record in self:
|
||||
if not record.comparison_mode:
|
||||
if not record.date_from:
|
||||
record.date_from = fields.Date.context_today(self)
|
||||
if not record.date_to:
|
||||
record.date_to = fields.Date.context_today(self)
|
||||
record.period_ids.unlink()
|
||||
record.write({"period_ids": [(0, 0, {"name": "Default"})]})
|
||||
else:
|
||||
record.date_from = None
|
||||
record.date_to = None
|
||||
|
||||
@api.onchange("date_range_id")
|
||||
def _onchange_date_range(self):
|
||||
if self.date_range_id:
|
||||
self.date_from = self.date_range_id.date_start
|
||||
self.date_to = self.date_range_id.date_end
|
||||
|
||||
@api.onchange("date_from", "date_to")
|
||||
def _onchange_dates(self):
|
||||
if self.date_range_id:
|
||||
if (
|
||||
self.date_from != self.date_range_id.date_start
|
||||
or self.date_to != self.date_range_id.date_end
|
||||
):
|
||||
self.date_range_id = False
|
||||
|
||||
def _add_analytic_filters_to_context(self, context):
|
||||
self.ensure_one()
|
||||
if self.analytic_account_id:
|
||||
context["mis_report_filters"]["analytic_account_id"] = {
|
||||
"value": self.analytic_account_id.id,
|
||||
"operator": "=",
|
||||
}
|
||||
if self.analytic_tag_ids:
|
||||
context["mis_report_filters"]["analytic_tag_ids"] = {
|
||||
"value": self.analytic_tag_ids.ids,
|
||||
"operator": "all",
|
||||
}
|
||||
|
||||
def _context_with_filters(self):
|
||||
self.ensure_one()
|
||||
if "mis_report_filters" in self.env.context:
|
||||
# analytic filters are already in context, do nothing
|
||||
return self.env.context
|
||||
context = dict(self.env.context, mis_report_filters={})
|
||||
self._add_analytic_filters_to_context(context)
|
||||
return context
|
||||
|
||||
def preview(self):
|
||||
self.ensure_one()
|
||||
view_id = self.env.ref("mis_builder." "mis_report_instance_result_view_form")
|
||||
return {
|
||||
"type": "ir.actions.act_window",
|
||||
"res_model": "mis.report.instance",
|
||||
"res_id": self.id,
|
||||
"view_mode": "form",
|
||||
"view_id": view_id.id,
|
||||
"target": "current",
|
||||
"context": self._context_with_filters(),
|
||||
}
|
||||
|
||||
def print_pdf(self):
|
||||
self.ensure_one()
|
||||
context = dict(self._context_with_filters(), landscape=self.landscape_pdf)
|
||||
return (
|
||||
self.env.ref("mis_builder.qweb_pdf_export")
|
||||
.with_context(context)
|
||||
.report_action(self, data=dict(dummy=True)) # required to propagate context
|
||||
)
|
||||
|
||||
def export_xls(self):
|
||||
self.ensure_one()
|
||||
context = dict(self._context_with_filters())
|
||||
return (
|
||||
self.env.ref("mis_builder.xls_export")
|
||||
.with_context(context)
|
||||
.report_action(self, data=dict(dummy=True)) # required to propagate context
|
||||
)
|
||||
|
||||
def display_settings(self):
|
||||
assert len(self.ids) <= 1
|
||||
view_id = self.env.ref("mis_builder.mis_report_instance_view_form")
|
||||
return {
|
||||
"type": "ir.actions.act_window",
|
||||
"res_model": "mis.report.instance",
|
||||
"res_id": self.id if self.id else False,
|
||||
"view_mode": "form",
|
||||
"views": [(view_id.id, "form")],
|
||||
"view_id": view_id.id,
|
||||
"target": "current",
|
||||
}
|
||||
|
||||
def _add_column_move_lines(self, aep, kpi_matrix, period, label, description):
|
||||
if not period.date_from or not period.date_to:
|
||||
raise UserError(
|
||||
_("Column %s with move lines source must have from/to dates.")
|
||||
% (period.name,)
|
||||
)
|
||||
expression_evaluator = ExpressionEvaluator(
|
||||
aep,
|
||||
period.date_from,
|
||||
period.date_to,
|
||||
None, # target_move now part of additional_move_line_filter
|
||||
period._get_additional_move_line_filter(),
|
||||
period._get_aml_model_name(),
|
||||
)
|
||||
self.report_id._declare_and_compute_period(
|
||||
expression_evaluator,
|
||||
kpi_matrix,
|
||||
period.id,
|
||||
label,
|
||||
description,
|
||||
period.subkpi_ids,
|
||||
period._get_additional_query_filter,
|
||||
no_auto_expand_accounts=self.no_auto_expand_accounts,
|
||||
)
|
||||
|
||||
def _add_column_sumcol(self, aep, kpi_matrix, period, label, description):
|
||||
kpi_matrix.declare_sum(
|
||||
period.id,
|
||||
[(c.sign, c.period_to_sum_id.id) for c in period.source_sumcol_ids],
|
||||
label,
|
||||
description,
|
||||
period.source_sumcol_accdet,
|
||||
)
|
||||
|
||||
def _add_column_cmpcol(self, aep, kpi_matrix, period, label, description):
|
||||
kpi_matrix.declare_comparison(
|
||||
period.id,
|
||||
period.source_cmpcol_to_id.id,
|
||||
period.source_cmpcol_from_id.id,
|
||||
label,
|
||||
description,
|
||||
)
|
||||
|
||||
def _add_column(self, aep, kpi_matrix, period, label, description):
|
||||
if period.source == SRC_ACTUALS:
|
||||
return self._add_column_move_lines(
|
||||
aep, kpi_matrix, period, label, description
|
||||
)
|
||||
elif period.source == SRC_ACTUALS_ALT:
|
||||
return self._add_column_move_lines(
|
||||
aep, kpi_matrix, period, label, description
|
||||
)
|
||||
elif period.source == SRC_SUMCOL:
|
||||
return self._add_column_sumcol(aep, kpi_matrix, period, label, description)
|
||||
elif period.source == SRC_CMPCOL:
|
||||
return self._add_column_cmpcol(aep, kpi_matrix, period, label, description)
|
||||
|
||||
def _compute_matrix(self):
|
||||
"""Compute a report and return a KpiMatrix.
|
||||
|
||||
The key attribute of the matrix columns (KpiMatrixCol)
|
||||
is guaranteed to be the id of the mis.report.instance.period.
|
||||
"""
|
||||
self.ensure_one()
|
||||
aep = self.report_id._prepare_aep(self.query_company_ids, self.currency_id)
|
||||
kpi_matrix = self.report_id.prepare_kpi_matrix(self.multi_company)
|
||||
for period in self.period_ids:
|
||||
description = None
|
||||
if period.mode == MODE_NONE:
|
||||
pass
|
||||
elif not self.display_columns_description:
|
||||
pass
|
||||
elif period.date_from == period.date_to and period.date_from:
|
||||
description = self._format_date(period.date_from)
|
||||
elif period.date_from and period.date_to:
|
||||
date_from = self._format_date(period.date_from)
|
||||
date_to = self._format_date(period.date_to)
|
||||
description = _("from %s to %s") % (date_from, date_to)
|
||||
self._add_column(aep, kpi_matrix, period, period.name, description)
|
||||
kpi_matrix.compute_comparisons()
|
||||
kpi_matrix.compute_sums()
|
||||
return kpi_matrix
|
||||
|
||||
def compute(self):
|
||||
self.ensure_one()
|
||||
kpi_matrix = self._compute_matrix()
|
||||
return kpi_matrix.as_dict()
|
||||
|
||||
def drilldown(self, arg):
|
||||
self.ensure_one()
|
||||
period_id = arg.get("period_id")
|
||||
expr = arg.get("expr")
|
||||
account_id = arg.get("account_id")
|
||||
if period_id and expr and AEP.has_account_var(expr):
|
||||
period = self.env["mis.report.instance.period"].browse(period_id)
|
||||
aep = AEP(
|
||||
self.query_company_ids, self.currency_id, self.report_id.account_model
|
||||
)
|
||||
aep.parse_expr(expr)
|
||||
aep.done_parsing()
|
||||
domain = aep.get_aml_domain_for_expr(
|
||||
expr,
|
||||
period.date_from,
|
||||
period.date_to,
|
||||
None, # target_move now part of additional_move_line_filter
|
||||
account_id,
|
||||
)
|
||||
domain.extend(period._get_additional_move_line_filter())
|
||||
return {
|
||||
"name": self._get_drilldown_action_name(arg),
|
||||
"domain": domain,
|
||||
"type": "ir.actions.act_window",
|
||||
"res_model": period._get_aml_model_name(),
|
||||
"views": [[False, "list"], [False, "form"]],
|
||||
"view_mode": "list",
|
||||
"target": "current",
|
||||
"context": {"active_test": False},
|
||||
}
|
||||
else:
|
||||
return False
|
||||
|
||||
def _get_drilldown_action_name(self, arg):
|
||||
kpi_id = arg.get("kpi_id")
|
||||
kpi = self.env["mis.report.kpi"].browse(kpi_id)
|
||||
period_id = arg.get("period_id")
|
||||
period = self.env["mis.report.instance.period"].browse(period_id)
|
||||
account_id = arg.get("account_id")
|
||||
|
||||
if account_id:
|
||||
account = self.env["account.account"].browse(account_id)
|
||||
return "{kpi} - {account} - {period}".format(
|
||||
kpi=kpi.description,
|
||||
account=account.display_name,
|
||||
period=period.display_name,
|
||||
)
|
||||
else:
|
||||
return "{kpi} - {period}".format(
|
||||
kpi=kpi.description,
|
||||
period=period.display_name,
|
||||
)
|
|
@ -0,0 +1,311 @@
|
|||
# Copyright 2016 Therp BV (<http://therp.nl>)
|
||||
# Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
import sys
|
||||
|
||||
from flectra import _, api, fields, models
|
||||
from flectra.exceptions import ValidationError
|
||||
|
||||
from .accounting_none import AccountingNone
|
||||
from .data_error import DataError
|
||||
|
||||
if sys.version_info.major >= 3:
|
||||
unicode = str
|
||||
|
||||
|
||||
class PropertyDict(dict):
|
||||
def __getattr__(self, name):
|
||||
return self.get(name)
|
||||
|
||||
def copy(self): # pylint: disable=copy-wo-api-one,method-required-super
|
||||
return PropertyDict(self)
|
||||
|
||||
|
||||
PROPS = [
|
||||
"color",
|
||||
"background_color",
|
||||
"font_style",
|
||||
"font_weight",
|
||||
"font_size",
|
||||
"indent_level",
|
||||
"prefix",
|
||||
"suffix",
|
||||
"dp",
|
||||
"divider",
|
||||
"hide_empty",
|
||||
"hide_always",
|
||||
]
|
||||
|
||||
TYPE_NUM = "num"
|
||||
TYPE_PCT = "pct"
|
||||
TYPE_STR = "str"
|
||||
|
||||
CMP_DIFF = "diff"
|
||||
CMP_PCT = "pct"
|
||||
CMP_NONE = "none"
|
||||
|
||||
|
||||
class MisReportKpiStyle(models.Model):
|
||||
|
||||
_name = "mis.report.style"
|
||||
_description = "MIS Report Style"
|
||||
|
||||
@api.constrains("indent_level")
|
||||
def check_positive_val(self):
|
||||
for record in self:
|
||||
if record.indent_level < 0:
|
||||
raise ValidationError(
|
||||
_("Indent level must be greater than " "or equal to 0")
|
||||
)
|
||||
|
||||
_font_style_selection = [("normal", "Normal"), ("italic", "Italic")]
|
||||
|
||||
_font_weight_selection = [("nornal", "Normal"), ("bold", "Bold")]
|
||||
|
||||
_font_size_selection = [
|
||||
("medium", "medium"),
|
||||
("xx-small", "xx-small"),
|
||||
("x-small", "x-small"),
|
||||
("small", "small"),
|
||||
("large", "large"),
|
||||
("x-large", "x-large"),
|
||||
("xx-large", "xx-large"),
|
||||
]
|
||||
|
||||
_font_size_to_xlsx_size = {
|
||||
"medium": 11,
|
||||
"xx-small": 5,
|
||||
"x-small": 7,
|
||||
"small": 9,
|
||||
"large": 13,
|
||||
"x-large": 15,
|
||||
"xx-large": 17,
|
||||
}
|
||||
|
||||
# style name
|
||||
# TODO enforce uniqueness
|
||||
name = fields.Char(string="Style name", required=True)
|
||||
|
||||
# color
|
||||
color_inherit = fields.Boolean(default=True)
|
||||
color = fields.Char(
|
||||
string="Text color",
|
||||
help="Text color in valid RGB code (from #000000 to #FFFFFF)",
|
||||
default="#000000",
|
||||
)
|
||||
background_color_inherit = fields.Boolean(default=True)
|
||||
background_color = fields.Char(
|
||||
help="Background color in valid RGB code (from #000000 to #FFFFFF)",
|
||||
default="#FFFFFF",
|
||||
)
|
||||
# font
|
||||
font_style_inherit = fields.Boolean(default=True)
|
||||
font_style = fields.Selection(selection=_font_style_selection)
|
||||
font_weight_inherit = fields.Boolean(default=True)
|
||||
font_weight = fields.Selection(selection=_font_weight_selection)
|
||||
font_size_inherit = fields.Boolean(default=True)
|
||||
font_size = fields.Selection(selection=_font_size_selection)
|
||||
# indent
|
||||
indent_level_inherit = fields.Boolean(default=True)
|
||||
indent_level = fields.Integer()
|
||||
# number format
|
||||
prefix_inherit = fields.Boolean(default=True)
|
||||
prefix = fields.Char(size=16, string="Prefix")
|
||||
suffix_inherit = fields.Boolean(default=True)
|
||||
suffix = fields.Char(size=16, string="Suffix")
|
||||
dp_inherit = fields.Boolean(default=True)
|
||||
dp = fields.Integer(string="Rounding", default=0)
|
||||
divider_inherit = fields.Boolean(default=True)
|
||||
divider = fields.Selection(
|
||||
[
|
||||
("1e-6", _("µ")),
|
||||
("1e-3", _("m")),
|
||||
("1", _("1")),
|
||||
("1e3", _("k")),
|
||||
("1e6", _("M")),
|
||||
],
|
||||
string="Factor",
|
||||
default="1",
|
||||
)
|
||||
hide_empty_inherit = fields.Boolean(default=True)
|
||||
hide_empty = fields.Boolean(default=False)
|
||||
hide_always_inherit = fields.Boolean(default=True)
|
||||
hide_always = fields.Boolean(default=False)
|
||||
|
||||
@api.model
|
||||
def merge(self, styles):
|
||||
"""Merge several styles, giving priority to the last.
|
||||
|
||||
Returns a PropertyDict of style properties.
|
||||
"""
|
||||
r = PropertyDict()
|
||||
for style in styles:
|
||||
if not style:
|
||||
continue
|
||||
if isinstance(style, dict):
|
||||
r.update(style)
|
||||
else:
|
||||
for prop in PROPS:
|
||||
inherit = getattr(style, prop + "_inherit", None)
|
||||
if not inherit:
|
||||
value = getattr(style, prop)
|
||||
r[prop] = value
|
||||
return r
|
||||
|
||||
@api.model
|
||||
def render(self, lang, style_props, type, value, sign="-"):
|
||||
if type == TYPE_NUM:
|
||||
return self.render_num(
|
||||
lang,
|
||||
value,
|
||||
style_props.divider,
|
||||
style_props.dp,
|
||||
style_props.prefix,
|
||||
style_props.suffix,
|
||||
sign=sign,
|
||||
)
|
||||
elif type == TYPE_PCT:
|
||||
return self.render_pct(lang, value, style_props.dp, sign=sign)
|
||||
else:
|
||||
return self.render_str(lang, value)
|
||||
|
||||
@api.model
|
||||
def render_num(
|
||||
self, lang, value, divider=1.0, dp=0, prefix=None, suffix=None, sign="-"
|
||||
):
|
||||
# format number following user language
|
||||
if value is None or value is AccountingNone:
|
||||
return u""
|
||||
value = round(value / float(divider or 1), dp or 0) or 0
|
||||
r = lang.format("%%%s.%df" % (sign, dp or 0), value, grouping=True)
|
||||
r = r.replace("-", u"\N{NON-BREAKING HYPHEN}")
|
||||
if prefix:
|
||||
r = prefix + u"\N{NO-BREAK SPACE}" + r
|
||||
if suffix:
|
||||
r = r + u"\N{NO-BREAK SPACE}" + suffix
|
||||
return r
|
||||
|
||||
@api.model
|
||||
def render_pct(self, lang, value, dp=1, sign="-"):
|
||||
return self.render_num(lang, value, divider=0.01, dp=dp, suffix="%", sign=sign)
|
||||
|
||||
@api.model
|
||||
def render_str(self, lang, value):
|
||||
if value is None or value is AccountingNone:
|
||||
return u""
|
||||
return unicode(value)
|
||||
|
||||
@api.model
|
||||
def compare_and_render(
|
||||
self,
|
||||
lang,
|
||||
style_props,
|
||||
type,
|
||||
compare_method,
|
||||
value,
|
||||
base_value,
|
||||
average_value=1,
|
||||
average_base_value=1,
|
||||
):
|
||||
"""
|
||||
:param lang: res.lang record
|
||||
:param style_props: PropertyDict with style properties
|
||||
:param type: num, pct or str
|
||||
:param compare_method: diff, pct, none
|
||||
:param value: value to compare (value - base_value)
|
||||
:param base_value: value compared with (value - base_value)
|
||||
:param average_value: value = value / average_value
|
||||
:param average_base_value: base_value = base_value / average_base_value
|
||||
:return: tuple with 4 elements
|
||||
- delta = comparison result (Float or AccountingNone)
|
||||
- delta_r = delta rendered in formatted string (String)
|
||||
- delta_style = PropertyDict with style properties
|
||||
- delta_type = Type of the comparison result (num or pct)
|
||||
"""
|
||||
delta = AccountingNone
|
||||
delta_r = ""
|
||||
delta_style = style_props.copy()
|
||||
delta_type = TYPE_NUM
|
||||
if isinstance(value, DataError) or isinstance(base_value, DataError):
|
||||
return AccountingNone, "", delta_style, delta_type
|
||||
if value is None:
|
||||
value = AccountingNone
|
||||
if base_value is None:
|
||||
base_value = AccountingNone
|
||||
if type == TYPE_PCT:
|
||||
delta = value - base_value
|
||||
if delta and round(delta, (style_props.dp or 0) + 2) != 0:
|
||||
delta_style.update(divider=0.01, prefix="", suffix=_("pp"))
|
||||
else:
|
||||
delta = AccountingNone
|
||||
elif type == TYPE_NUM:
|
||||
if value and average_value:
|
||||
# pylint: disable=redefined-variable-type
|
||||
value = value / float(average_value)
|
||||
if base_value and average_base_value:
|
||||
# pylint: disable=redefined-variable-type
|
||||
base_value = base_value / float(average_base_value)
|
||||
if compare_method == CMP_DIFF:
|
||||
delta = value - base_value
|
||||
if delta and round(delta, style_props.dp or 0) != 0:
|
||||
pass
|
||||
else:
|
||||
delta = AccountingNone
|
||||
elif compare_method == CMP_PCT:
|
||||
if base_value and round(base_value, style_props.dp or 0) != 0:
|
||||
delta = (value - base_value) / abs(base_value)
|
||||
if delta and round(delta, 3) != 0:
|
||||
delta_style.update(dp=1)
|
||||
delta_type = TYPE_PCT
|
||||
else:
|
||||
delta = AccountingNone
|
||||
if delta is not AccountingNone:
|
||||
delta_r = self.render(lang, delta_style, delta_type, delta, sign="+")
|
||||
return delta, delta_r, delta_style, delta_type
|
||||
|
||||
@api.model
|
||||
def to_xlsx_style(self, type, props, no_indent=False):
|
||||
xlsx_attributes = [
|
||||
("italic", props.font_style == "italic"),
|
||||
("bold", props.font_weight == "bold"),
|
||||
("size", self._font_size_to_xlsx_size.get(props.font_size, 11)),
|
||||
("font_color", props.color),
|
||||
("bg_color", props.background_color),
|
||||
]
|
||||
if type == TYPE_NUM:
|
||||
num_format = u"#,##0"
|
||||
if props.dp:
|
||||
num_format += u"."
|
||||
num_format += u"0" * props.dp
|
||||
if props.prefix:
|
||||
num_format = u'"{} "{}'.format(props.prefix, num_format)
|
||||
if props.suffix:
|
||||
num_format = u'{}" {}"'.format(num_format, props.suffix)
|
||||
xlsx_attributes.append(("num_format", num_format))
|
||||
elif type == TYPE_PCT:
|
||||
num_format = u"0"
|
||||
if props.dp:
|
||||
num_format += u"."
|
||||
num_format += u"0" * props.dp
|
||||
num_format += "%"
|
||||
xlsx_attributes.append(("num_format", num_format))
|
||||
if props.indent_level is not None and not no_indent:
|
||||
xlsx_attributes.append(("indent", props.indent_level))
|
||||
return dict([a for a in xlsx_attributes if a[1] is not None])
|
||||
|
||||
@api.model
|
||||
def to_css_style(self, props, no_indent=False):
|
||||
css_attributes = [
|
||||
("font-style", props.font_style),
|
||||
("font-weight", props.font_weight),
|
||||
("font-size", props.font_size),
|
||||
("color", props.color),
|
||||
("background-color", props.background_color),
|
||||
]
|
||||
if props.indent_level is not None and not no_indent:
|
||||
css_attributes.append(("text-indent", "{}em".format(props.indent_level)))
|
||||
return (
|
||||
"; ".join(["%s: %s" % a for a in css_attributes if a[1] is not None])
|
||||
or None
|
||||
)
|
|
@ -0,0 +1,66 @@
|
|||
# Copyright 2020 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from flectra import _, api, fields, models
|
||||
from flectra.exceptions import ValidationError
|
||||
|
||||
from flectra.addons.mis_builder.models.mis_report import _is_valid_python_var
|
||||
|
||||
|
||||
class ParentLoopError(ValidationError):
|
||||
pass
|
||||
|
||||
|
||||
class InvalidNameError(ValidationError):
|
||||
pass
|
||||
|
||||
|
||||
class MisReportSubReport(models.Model):
|
||||
_name = "mis.report.subreport"
|
||||
_description = "MIS Report - Sub Reports Relation"
|
||||
|
||||
name = fields.Char(required=True)
|
||||
report_id = fields.Many2one(comodel_name="mis.report", required=True)
|
||||
subreport_id = fields.Many2one(comodel_name="mis.report", required=True)
|
||||
|
||||
_sql_constraints = [
|
||||
(
|
||||
"name_unique",
|
||||
"unique(name, report_id)",
|
||||
"Subreport name should be unique by report",
|
||||
),
|
||||
(
|
||||
"subreport_unique",
|
||||
"unique(subreport_id, report_id)",
|
||||
"Should not include the same report more than once as sub report "
|
||||
"of a given report",
|
||||
),
|
||||
]
|
||||
|
||||
@api.constrains("name")
|
||||
def _check_name(self):
|
||||
for rec in self:
|
||||
if not _is_valid_python_var(rec.name):
|
||||
raise InvalidNameError(
|
||||
_("Subreport name ({}) must be a valid python identifier").format(
|
||||
rec.name
|
||||
)
|
||||
)
|
||||
|
||||
@api.constrains("report_id", "subreport_id")
|
||||
def _check_loop(self):
|
||||
def _has_subreport(reports, report):
|
||||
if not reports:
|
||||
return False
|
||||
if report in reports:
|
||||
return True
|
||||
return any(
|
||||
_has_subreport(r.subreport_ids.mapped("subreport_id"), report)
|
||||
for r in reports
|
||||
)
|
||||
|
||||
for rec in self:
|
||||
if _has_subreport(rec.subreport_id, rec.report_id):
|
||||
raise ParentLoopError(_("Subreport loop detected"))
|
||||
|
||||
# TODO check subkpi compatibility in subreports
|
|
@ -0,0 +1,33 @@
|
|||
# Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
import traceback
|
||||
|
||||
from flectra.tools.safe_eval import _BUILTINS, _SAFE_OPCODES, test_expr
|
||||
|
||||
from .data_error import DataError, NameDataError
|
||||
|
||||
__all__ = ["mis_safe_eval"]
|
||||
|
||||
|
||||
def mis_safe_eval(expr, locals_dict):
|
||||
"""Evaluate an expression using safe_eval
|
||||
|
||||
Returns the evaluated value or DataError.
|
||||
|
||||
Raises NameError if the evaluation depends on a variable that is not
|
||||
present in local_dict.
|
||||
"""
|
||||
try:
|
||||
c = test_expr(expr, _SAFE_OPCODES, mode="eval")
|
||||
globals_dict = {"__builtins__": _BUILTINS}
|
||||
# pylint: disable=eval-used,eval-referenced
|
||||
val = eval(c, globals_dict, locals_dict)
|
||||
except NameError:
|
||||
val = NameDataError("#NAME", traceback.format_exc())
|
||||
except ZeroDivisionError:
|
||||
# pylint: disable=redefined-variable-type
|
||||
val = DataError("#DIV/0", traceback.format_exc())
|
||||
except Exception:
|
||||
val = DataError("#ERR", traceback.format_exc())
|
||||
return val
|
|
@ -0,0 +1,96 @@
|
|||
# Copyright 2020 ACSONE SA/NV
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from flectra import _, api, fields, models
|
||||
from flectra.exceptions import UserError
|
||||
from flectra.fields import Date
|
||||
|
||||
from .mis_kpi_data import intersect_days
|
||||
|
||||
|
||||
class ProRataReadGroupMixin(models.AbstractModel):
|
||||
_name = "prorata.read_group.mixin"
|
||||
_description = "Adapt model with date_from/date_to for pro-rata temporis read_group"
|
||||
|
||||
date_from = fields.Date(required=True)
|
||||
date_to = fields.Date(required=True)
|
||||
date = fields.Date(
|
||||
compute=lambda self: None,
|
||||
search="_search_date",
|
||||
help=(
|
||||
"Dummy field that adapts searches on date "
|
||||
"to searches on date_from/date_to."
|
||||
),
|
||||
)
|
||||
|
||||
def _search_date(self, operator, value):
|
||||
if operator in (">=", ">"):
|
||||
return [("date_to", operator, value)]
|
||||
elif operator in ("<=", "<"):
|
||||
return [("date_from", operator, value)]
|
||||
raise UserError(
|
||||
_("Unsupported operator %s for searching on date") % (operator,)
|
||||
)
|
||||
|
||||
@api.model
|
||||
def _intersect_days(self, item_dt_from, item_dt_to, dt_from, dt_to):
|
||||
return intersect_days(item_dt_from, item_dt_to, dt_from, dt_to)
|
||||
|
||||
@api.model
|
||||
def read_group(
|
||||
self, domain, fields, groupby, offset=0, limit=None, orderby=False, lazy=True
|
||||
):
|
||||
"""Override read_group to perform pro-rata temporis adjustments.
|
||||
|
||||
When read_group is invoked with a domain that filters on
|
||||
a time period (date >= from and date <= to, or
|
||||
date_from <= to and date_to >= from), adjust the accumulated
|
||||
values pro-rata temporis.
|
||||
"""
|
||||
date_from = None
|
||||
date_to = None
|
||||
assert isinstance(domain, list)
|
||||
for domain_item in domain:
|
||||
if isinstance(domain_item, (list, tuple)):
|
||||
field, op, value = domain_item
|
||||
if field == "date" and op == ">=":
|
||||
date_from = value
|
||||
elif field == "date_to" and op == ">=":
|
||||
date_from = value
|
||||
elif field == "date" and op == "<=":
|
||||
date_to = value
|
||||
elif field == "date_from" and op == "<=":
|
||||
date_to = value
|
||||
if (
|
||||
date_from is not None
|
||||
and date_to is not None
|
||||
and not any(":" in f for f in fields)
|
||||
):
|
||||
dt_from = Date.from_string(date_from)
|
||||
dt_to = Date.from_string(date_to)
|
||||
res = {}
|
||||
sum_fields = set(fields) - set(groupby)
|
||||
read_fields = set(fields + ["date_from", "date_to"])
|
||||
for item in self.search(domain).read(read_fields):
|
||||
key = tuple(item[k] for k in groupby)
|
||||
if key not in res:
|
||||
res[key] = {k: item[k] for k in groupby}
|
||||
res[key].update({k: 0.0 for k in sum_fields})
|
||||
res_item = res[key]
|
||||
for sum_field in sum_fields:
|
||||
item_dt_from = Date.from_string(item["date_from"])
|
||||
item_dt_to = Date.from_string(item["date_to"])
|
||||
i_days, item_days = self._intersect_days(
|
||||
item_dt_from, item_dt_to, dt_from, dt_to
|
||||
)
|
||||
res_item[sum_field] += item[sum_field] * i_days / item_days
|
||||
return res.values()
|
||||
return super(ProRataReadGroupMixin, self).read_group(
|
||||
domain,
|
||||
fields,
|
||||
groupby,
|
||||
offset=offset,
|
||||
limit=limit,
|
||||
orderby=orderby,
|
||||
lazy=lazy,
|
||||
)
|
|
@ -0,0 +1,184 @@
|
|||
# Copyright 2014 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
""" A trivial immutable array that supports basic arithmetic operations.
|
||||
|
||||
>>> a = SimpleArray((1.0, 2.0, 3.0))
|
||||
>>> b = SimpleArray((4.0, 5.0, 6.0))
|
||||
>>> t = (4.0, 5.0, 6.0)
|
||||
>>> +a
|
||||
SimpleArray((1.0, 2.0, 3.0))
|
||||
>>> -a
|
||||
SimpleArray((-1.0, -2.0, -3.0))
|
||||
>>> a + b
|
||||
SimpleArray((5.0, 7.0, 9.0))
|
||||
>>> b + a
|
||||
SimpleArray((5.0, 7.0, 9.0))
|
||||
>>> a + t
|
||||
SimpleArray((5.0, 7.0, 9.0))
|
||||
>>> t + a
|
||||
SimpleArray((5.0, 7.0, 9.0))
|
||||
>>> a - b
|
||||
SimpleArray((-3.0, -3.0, -3.0))
|
||||
>>> a - t
|
||||
SimpleArray((-3.0, -3.0, -3.0))
|
||||
>>> t - a
|
||||
SimpleArray((3.0, 3.0, 3.0))
|
||||
>>> a * b
|
||||
SimpleArray((4.0, 10.0, 18.0))
|
||||
>>> b * a
|
||||
SimpleArray((4.0, 10.0, 18.0))
|
||||
>>> a * t
|
||||
SimpleArray((4.0, 10.0, 18.0))
|
||||
>>> t * a
|
||||
SimpleArray((4.0, 10.0, 18.0))
|
||||
>>> a / b
|
||||
SimpleArray((0.25, 0.4, 0.5))
|
||||
>>> b / a
|
||||
SimpleArray((4.0, 2.5, 2.0))
|
||||
>>> a / t
|
||||
SimpleArray((0.25, 0.4, 0.5))
|
||||
>>> t / a
|
||||
SimpleArray((4.0, 2.5, 2.0))
|
||||
>>> b / 2
|
||||
SimpleArray((2.0, 2.5, 3.0))
|
||||
>>> 2 * b
|
||||
SimpleArray((8.0, 10.0, 12.0))
|
||||
>>> 1 - b
|
||||
SimpleArray((-3.0, -4.0, -5.0))
|
||||
>>> b += 2 ; b
|
||||
SimpleArray((6.0, 7.0, 8.0))
|
||||
>>> a / ((1.0, 0.0, 1.0))
|
||||
SimpleArray((1.0, DataError('#DIV/0'), 3.0))
|
||||
>>> a / 0.0
|
||||
SimpleArray((DataError('#DIV/0'), DataError('#DIV/0'), DataError('#DIV/0')))
|
||||
>>> a * ((1.0, 'a', 1.0))
|
||||
SimpleArray((1.0, DataError('#ERR'), 3.0))
|
||||
>>> 6.0 / a
|
||||
SimpleArray((6.0, 3.0, 2.0))
|
||||
>>> Vector = named_simple_array('Vector', ('x', 'y'))
|
||||
>>> p1 = Vector((1, 2))
|
||||
>>> print(p1.x, p1.y, p1)
|
||||
1 2 Vector((1, 2))
|
||||
>>> p2 = Vector((2, 3))
|
||||
>>> print(p2.x, p2.y, p2)
|
||||
2 3 Vector((2, 3))
|
||||
>>> p3 = p1 + p2
|
||||
>>> print(p3.x, p3.y, p3)
|
||||
3 5 Vector((3, 5))
|
||||
>>> p4 = (4, 5) + p2
|
||||
>>> print(p4.x, p4.y, p4)
|
||||
6 8 Vector((6, 8))
|
||||
>>> p1 * 2
|
||||
Vector((2, 4))
|
||||
>>> 2 * p1
|
||||
Vector((2, 4))
|
||||
>>> p1 - 1
|
||||
Vector((0, 1))
|
||||
>>> 1 - p1
|
||||
Vector((0, -1))
|
||||
>>> p1 / 2.0
|
||||
Vector((0.5, 1.0))
|
||||
>>> v = 2.0 / p1
|
||||
>>> print(v.x, v.y, v)
|
||||
2.0 1.0 Vector((2.0, 1.0))
|
||||
"""
|
||||
|
||||
import itertools
|
||||
import operator
|
||||
import traceback
|
||||
|
||||
from .data_error import DataError
|
||||
|
||||
__all__ = ["SimpleArray", "named_simple_array"]
|
||||
|
||||
|
||||
class SimpleArray(tuple):
|
||||
def _op(self, op, other):
|
||||
def _o2(x, y):
|
||||
try:
|
||||
return op(x, y)
|
||||
except ZeroDivisionError:
|
||||
return DataError("#DIV/0", traceback.format_exc())
|
||||
except Exception:
|
||||
return DataError("#ERR", traceback.format_exc())
|
||||
|
||||
if isinstance(other, tuple):
|
||||
if len(other) != len(self):
|
||||
raise TypeError("tuples must have same length for %s" % op)
|
||||
return self.__class__(map(_o2, self, other))
|
||||
else:
|
||||
return self.__class__(_o2(z, other) for z in self)
|
||||
|
||||
def _cast(self, other):
|
||||
if isinstance(other, self.__class__):
|
||||
return other
|
||||
elif isinstance(other, tuple):
|
||||
return self.__class__(other)
|
||||
else:
|
||||
# other is a scalar
|
||||
return self.__class__(itertools.repeat(other, len(self)))
|
||||
|
||||
def __add__(self, other):
|
||||
return self._op(operator.add, other)
|
||||
|
||||
__radd__ = __add__
|
||||
|
||||
def __pos__(self):
|
||||
return self.__class__(map(operator.pos, self))
|
||||
|
||||
def __neg__(self):
|
||||
return self.__class__(map(operator.neg, self))
|
||||
|
||||
def __sub__(self, other):
|
||||
return self._op(operator.sub, other)
|
||||
|
||||
def __rsub__(self, other):
|
||||
return self._cast(other)._op(operator.sub, self)
|
||||
|
||||
def __mul__(self, other):
|
||||
return self._op(operator.mul, other)
|
||||
|
||||
__rmul__ = __mul__
|
||||
|
||||
def __div__(self, other):
|
||||
return self._op(operator.div, other)
|
||||
|
||||
def __floordiv__(self, other):
|
||||
return self._op(operator.floordiv, other)
|
||||
|
||||
def __truediv__(self, other):
|
||||
return self._op(operator.truediv, other)
|
||||
|
||||
def __rdiv__(self, other):
|
||||
return self._cast(other)._op(operator.div, self)
|
||||
|
||||
def __rfloordiv__(self, other):
|
||||
return self._cast(other)._op(operator.floordiv, self)
|
||||
|
||||
def __rtruediv__(self, other):
|
||||
return self._cast(other)._op(operator.truediv, self)
|
||||
|
||||
def __repr__(self):
|
||||
return "{}({})".format(self.__class__.__name__, tuple.__repr__(self))
|
||||
|
||||
|
||||
def named_simple_array(typename, field_names):
|
||||
"""Return a subclass of SimpleArray, with named properties.
|
||||
|
||||
This method is to SimpleArray what namedtuple is to tuple.
|
||||
It's less sophisticated than namedtuple so some namedtuple
|
||||
advanced use cases may not work, but it's good enough for
|
||||
our needs in mis_builder, ie referring to subkpi values
|
||||
by name.
|
||||
"""
|
||||
props = {
|
||||
field_name: property(operator.itemgetter(i))
|
||||
for i, field_name in enumerate(field_names)
|
||||
}
|
||||
return type(typename, (SimpleArray,), props)
|
||||
|
||||
|
||||
if __name__ == "__main__": # pragma: no cover
|
||||
import doctest
|
||||
|
||||
doctest.testmod()
|
|
@ -0,0 +1,5 @@
|
|||
# Copyright 2014 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from . import mis_report_instance_qweb
|
||||
from . import mis_report_instance_xlsx
|
|
@ -0,0 +1,28 @@
|
|||
# Copyright 2014 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
import logging
|
||||
|
||||
from flectra import models
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class Report(models.Model):
|
||||
_inherit = "ir.actions.report"
|
||||
|
||||
def render_qweb_pdf(self, res_ids=None, data=None):
|
||||
if self.report_name == "mis_builder.report_mis_report_instance":
|
||||
if not res_ids:
|
||||
res_ids = self.env.context.get("active_ids")
|
||||
mis_report_instance = self.env["mis.report.instance"].browse(res_ids)[0]
|
||||
context = dict(
|
||||
mis_report_instance._context_with_filters(),
|
||||
landscape=mis_report_instance.landscape_pdf,
|
||||
)
|
||||
# data=None, because it was there only to force Flectra
|
||||
# to propagate context
|
||||
return super(Report, self.with_context(context)).render_qweb_pdf(
|
||||
res_ids, data=None
|
||||
)
|
||||
return super(Report, self).render_qweb_pdf(res_ids, data)
|
|
@ -0,0 +1,116 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<flectra>
|
||||
<record id="qweb_pdf_export" model="ir.actions.report">
|
||||
<field name="name">MIS report instance QWEB PDF report</field>
|
||||
<field name="model">mis.report.instance</field>
|
||||
<field name="type">ir.actions.report</field>
|
||||
<field name="report_name">mis_builder.report_mis_report_instance</field>
|
||||
<field name="report_type">qweb-pdf</field>
|
||||
</record>
|
||||
<template id="assets_report" inherit_id="web.report_assets_common">
|
||||
<xpath expr="." position="inside">
|
||||
<link href="/mis_builder/static/src/css/report.css" rel="stylesheet" />
|
||||
</xpath>
|
||||
</template>
|
||||
<!--
|
||||
TODO we use divs with css table layout, but this has drawbacks:
|
||||
(bad layout of first column, no colspan for first header row),
|
||||
consider getting back to a plain HTML table.
|
||||
-->
|
||||
<template id="report_mis_report_instance">
|
||||
<t t-call="web.html_container">
|
||||
<t t-foreach="docs" t-as="o">
|
||||
<t t-call="web.internal_layout">
|
||||
<t t-set="matrix" t-value="o._compute_matrix()" />
|
||||
<t t-set="style_obj" t-value="o.env['mis.report.style']" />
|
||||
<div class="page">
|
||||
<h3>
|
||||
<span t-field="o.name" />
|
||||
<span>-</span>
|
||||
<t t-foreach="o.query_company_ids" t-as="company">
|
||||
<span t-field="company.name" />
|
||||
<span t-if="company != o.query_company_ids[-1]">,</span>
|
||||
</t>
|
||||
</h3>
|
||||
<p>
|
||||
<div class="mis_report_filers">
|
||||
<t
|
||||
t-foreach="o.get_filter_descriptions_from_context()"
|
||||
t-as="filter_description"
|
||||
>
|
||||
<div>
|
||||
<span t-esc="filter_description" />
|
||||
</div>
|
||||
</t>
|
||||
</div>
|
||||
</p>
|
||||
<div class="mis_table">
|
||||
<div class="mis_thead">
|
||||
<div class="mis_row">
|
||||
<div class="mis_cell mis_collabel" />
|
||||
<t t-foreach="matrix.iter_cols()" t-as="col">
|
||||
<div class="mis_cell mis_collabel">
|
||||
<t t-esc="col.label" />
|
||||
<t t-if="col.description">
|
||||
<br />
|
||||
<t t-esc="col.description" />
|
||||
</t>
|
||||
</div>
|
||||
<!-- add empty cells because we have no colspan with css tables -->
|
||||
<t
|
||||
t-foreach="list(col.iter_subcols())[1:]"
|
||||
t-as="subcol"
|
||||
>
|
||||
<div class="mis_cell mis_collabel" />
|
||||
</t>
|
||||
</t>
|
||||
</div>
|
||||
<div class="mis_row">
|
||||
<div class="mis_cell mis_collabel" />
|
||||
<t t-foreach="matrix.iter_subcols()" t-as="subcol">
|
||||
<div class="mis_cell mis_collabel">
|
||||
<t t-esc="subcol.label" />
|
||||
<t t-if="subcol.description">
|
||||
<br />
|
||||
<t t-esc="subcol.description" />
|
||||
</t>
|
||||
</div>
|
||||
</t>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mis_tbody">
|
||||
<t t-foreach="matrix.iter_rows()" t-as="row">
|
||||
<div
|
||||
t-if="not ((row.style_props.hide_empty and row.is_empty()) or row.style_props.hide_always)"
|
||||
class="mis_row"
|
||||
>
|
||||
<div
|
||||
t-att-style="style_obj.to_css_style(row.style_props)"
|
||||
class="mis_cell mis_rowlabel"
|
||||
>
|
||||
<t t-esc="row.label" />
|
||||
<t t-if="row.description">
|
||||
<br />
|
||||
<t t-esc="row.description" />
|
||||
</t>
|
||||
</div>
|
||||
<t t-foreach="row.iter_cells()" t-as="cell">
|
||||
<div
|
||||
t-att-style="cell and style_obj.to_css_style(cell.style_props) or ''"
|
||||
class="mis_cell mis_amount"
|
||||
>
|
||||
<t
|
||||
t-esc="cell and cell.val_rendered or ''"
|
||||
/>
|
||||
</div>
|
||||
</t>
|
||||
</div>
|
||||
</t>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
</template>
|
||||
</flectra>
|
|
@ -0,0 +1,174 @@
|
|||
# Copyright 2014 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
import logging
|
||||
import numbers
|
||||
from collections import defaultdict
|
||||
from datetime import datetime
|
||||
|
||||
from flectra import _, fields, models
|
||||
|
||||
from ..models.accounting_none import AccountingNone
|
||||
from ..models.data_error import DataError
|
||||
from ..models.mis_report_style import TYPE_STR
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
ROW_HEIGHT = 15 # xlsxwriter units
|
||||
COL_WIDTH = 0.9 # xlsxwriter units
|
||||
MIN_COL_WIDTH = 10 # characters
|
||||
MAX_COL_WIDTH = 50 # characters
|
||||
|
||||
|
||||
class MisBuilderXlsx(models.AbstractModel):
|
||||
_name = "report.mis_builder.mis_report_instance_xlsx"
|
||||
_description = "MIS Builder XLSX report"
|
||||
_inherit = "report.report_xlsx.abstract"
|
||||
|
||||
def generate_xlsx_report(self, workbook, data, objects):
|
||||
|
||||
# get the computed result of the report
|
||||
matrix = objects._compute_matrix()
|
||||
style_obj = self.env["mis.report.style"]
|
||||
|
||||
# create worksheet
|
||||
report_name = u"{} - {}".format(
|
||||
objects[0].name, u", ".join([a.name for a in objects[0].query_company_ids])
|
||||
)
|
||||
sheet = workbook.add_worksheet(report_name[:31])
|
||||
row_pos = 0
|
||||
col_pos = 0
|
||||
# width of the labels column
|
||||
label_col_width = MIN_COL_WIDTH
|
||||
# {col_pos: max width in characters}
|
||||
col_width = defaultdict(lambda: MIN_COL_WIDTH)
|
||||
|
||||
# document title
|
||||
bold = workbook.add_format({"bold": True})
|
||||
header_format = workbook.add_format(
|
||||
{"bold": True, "align": "center", "bg_color": "#F0EEEE"}
|
||||
)
|
||||
sheet.write(row_pos, 0, report_name, bold)
|
||||
row_pos += 2
|
||||
|
||||
# filters
|
||||
if not objects.hide_analytic_filters:
|
||||
for filter_description in objects.get_filter_descriptions_from_context():
|
||||
sheet.write(row_pos, 0, filter_description)
|
||||
row_pos += 1
|
||||
row_pos += 1
|
||||
|
||||
# column headers
|
||||
sheet.write(row_pos, 0, "", header_format)
|
||||
col_pos = 1
|
||||
for col in matrix.iter_cols():
|
||||
label = col.label
|
||||
if col.description:
|
||||
label += "\n" + col.description
|
||||
sheet.set_row(row_pos, ROW_HEIGHT * 2)
|
||||
if col.colspan > 1:
|
||||
sheet.merge_range(
|
||||
row_pos,
|
||||
col_pos,
|
||||
row_pos,
|
||||
col_pos + col.colspan - 1,
|
||||
label,
|
||||
header_format,
|
||||
)
|
||||
else:
|
||||
sheet.write(row_pos, col_pos, label, header_format)
|
||||
col_width[col_pos] = max(
|
||||
col_width[col_pos], len(col.label or ""), len(col.description or "")
|
||||
)
|
||||
col_pos += col.colspan
|
||||
row_pos += 1
|
||||
|
||||
# sub column headers
|
||||
sheet.write(row_pos, 0, "", header_format)
|
||||
col_pos = 1
|
||||
for subcol in matrix.iter_subcols():
|
||||
label = subcol.label
|
||||
if subcol.description:
|
||||
label += "\n" + subcol.description
|
||||
sheet.set_row(row_pos, ROW_HEIGHT * 2)
|
||||
sheet.write(row_pos, col_pos, label, header_format)
|
||||
col_width[col_pos] = max(
|
||||
col_width[col_pos],
|
||||
len(subcol.label or ""),
|
||||
len(subcol.description or ""),
|
||||
)
|
||||
col_pos += 1
|
||||
row_pos += 1
|
||||
|
||||
# rows
|
||||
for row in matrix.iter_rows():
|
||||
if (
|
||||
row.style_props.hide_empty and row.is_empty()
|
||||
) or row.style_props.hide_always:
|
||||
continue
|
||||
row_xlsx_style = style_obj.to_xlsx_style(TYPE_STR, row.style_props)
|
||||
row_format = workbook.add_format(row_xlsx_style)
|
||||
col_pos = 0
|
||||
label = row.label
|
||||
if row.description:
|
||||
label += "\n" + row.description
|
||||
sheet.set_row(row_pos, ROW_HEIGHT * 2)
|
||||
sheet.write(row_pos, col_pos, label, row_format)
|
||||
label_col_width = max(
|
||||
label_col_width, len(row.label or ""), len(row.description or "")
|
||||
)
|
||||
for cell in row.iter_cells():
|
||||
col_pos += 1
|
||||
if not cell or cell.val is AccountingNone:
|
||||
# TODO col/subcol format
|
||||
sheet.write(row_pos, col_pos, "", row_format)
|
||||
continue
|
||||
cell_xlsx_style = style_obj.to_xlsx_style(
|
||||
cell.val_type, cell.style_props, no_indent=True
|
||||
)
|
||||
cell_xlsx_style["align"] = "right"
|
||||
cell_format = workbook.add_format(cell_xlsx_style)
|
||||
if isinstance(cell.val, DataError):
|
||||
val = cell.val.name
|
||||
# TODO display cell.val.msg as Excel comment?
|
||||
elif cell.val is None or cell.val is AccountingNone:
|
||||
val = ""
|
||||
else:
|
||||
divider = float(cell.style_props.get("divider", 1))
|
||||
if (
|
||||
divider != 1
|
||||
and isinstance(cell.val, numbers.Number)
|
||||
and not cell.val_type == "pct"
|
||||
):
|
||||
val = cell.val / divider
|
||||
else:
|
||||
val = cell.val
|
||||
sheet.write(row_pos, col_pos, val, cell_format)
|
||||
col_width[col_pos] = max(
|
||||
col_width[col_pos], len(cell.val_rendered or "")
|
||||
)
|
||||
row_pos += 1
|
||||
|
||||
# Add date/time footer
|
||||
row_pos += 1
|
||||
footer_format = workbook.add_format(
|
||||
{"italic": True, "font_color": "#202020", "size": 9}
|
||||
)
|
||||
lang_model = self.env["res.lang"]
|
||||
lang = lang_model._lang_get(self.env.user.lang)
|
||||
|
||||
now_tz = fields.Datetime.context_timestamp(
|
||||
self.env["res.users"], datetime.now()
|
||||
)
|
||||
create_date = _("Generated on {} at {}").format(
|
||||
now_tz.strftime(lang.date_format), now_tz.strftime(lang.time_format)
|
||||
)
|
||||
sheet.write(row_pos, 0, create_date, footer_format)
|
||||
|
||||
# adjust col widths
|
||||
sheet.set_column(0, 0, min(label_col_width, MAX_COL_WIDTH) * COL_WIDTH)
|
||||
data_col_width = min(MAX_COL_WIDTH, max(col_width.values()))
|
||||
min_col_pos = min(col_width.keys())
|
||||
max_col_pos = max(col_width.keys())
|
||||
sheet.set_column(min_col_pos, max_col_pos, data_col_width * COL_WIDTH)
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<flectra>
|
||||
<record id="xls_export" model="ir.actions.report">
|
||||
<field name="name">MIS report instance XLS report</field>
|
||||
<field name="model">mis.report.instance</field>
|
||||
<field name="type">ir.actions.report</field>
|
||||
<field name="report_name">mis_builder.mis_report_instance_xlsx</field>
|
||||
<field name="report_type">xlsx</field>
|
||||
<field name="report_file">mis_report_instance</field>
|
||||
</record>
|
||||
</flectra>
|
|
@ -0,0 +1,21 @@
|
|||
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
|
||||
manage_mis_report_kpi,manage_mis_report_kpi,model_mis_report_kpi,account.group_account_manager,1,1,1,1
|
||||
access_mis_report_kpi,access_mis_report_kpi,model_mis_report_kpi,base.group_user,1,0,0,0
|
||||
manage_mis_report_query,manage_mis_report_query,model_mis_report_query,account.group_account_manager,1,1,1,1
|
||||
access_mis_report_query,access_mis_report_query,model_mis_report_query,base.group_user,1,0,0,0
|
||||
manage_mis_report,manage_mis_report,model_mis_report,account.group_account_manager,1,1,1,1
|
||||
access_mis_report,access_mis_report,model_mis_report,base.group_user,1,0,0,0
|
||||
manage_mis_report_instance_period,manage_mis_report_instance_period,model_mis_report_instance_period,account.group_account_manager,1,1,1,1
|
||||
access_mis_report_instance_period,access_mis_report_instance_period,model_mis_report_instance_period,base.group_user,1,0,0,0
|
||||
manage_mis_report_instance_period_sum,manage_mis_report_instance_period_sum,model_mis_report_instance_period_sum,account.group_account_manager,1,1,1,1
|
||||
access_mis_report_instance_period_sum,access_mis_report_instance_period_sum,model_mis_report_instance_period_sum,base.group_user,1,0,0,0
|
||||
manage_mis_report_instance,manage_mis_report_instance,model_mis_report_instance,account.group_account_manager,1,1,1,1
|
||||
access_mis_report_instance,access_mis_report_instance,model_mis_report_instance,base.group_user,1,0,0,0
|
||||
manage_mis_report_subkpi,access_mis_report_subkpi,model_mis_report_subkpi,account.group_account_manager,1,1,1,1
|
||||
access_mis_report_subkpi,access_mis_report_subkpi,model_mis_report_subkpi,base.group_user,1,0,0,0
|
||||
manage_mis_report_kpi_expression,access_mis_report_kpi_expression,model_mis_report_kpi_expression,account.group_account_manager,1,1,1,1
|
||||
access_mis_report_kpi_expression,access_mis_report_kpi_expression,model_mis_report_kpi_expression,base.group_user,1,0,0,0
|
||||
manage_mis_report_subreport,access_mis_report_subreport,model_mis_report_subreport,account.group_account_manager,1,1,1,1
|
||||
access_mis_report_subreport,access_mis_report_subreport,model_mis_report_subreport,base.group_user,1,0,0,0
|
||||
manage_mis_report_style,access_mis_report_style,model_mis_report_style,account.group_account_manager,1,1,1,1
|
||||
access_mis_report_style,access_mis_report_style,model_mis_report_style,base.group_user,1,0,0,0
|
|
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<flectra>
|
||||
<record id="mis_builder_multi_company_rule" model="ir.rule">
|
||||
<field name="name">Mis Report Instance multi company</field>
|
||||
<field name="model_id" ref="model_mis_report_instance" />
|
||||
<field name="domain_force">
|
||||
['|',('company_id','=',False),('company_id','in',company_ids)]
|
||||
</field>
|
||||
</record>
|
||||
</flectra>
|
Binary file not shown.
After Width: | Height: | Size: 94 KiB |
Binary file not shown.
After Width: | Height: | Size: 101 KiB |
Binary file not shown.
After Width: | Height: | Size: 98 KiB |
Binary file not shown.
After Width: | Height: | Size: 4.7 KiB |
|
@ -0,0 +1,912 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
|
||||
<title>MIS Builder</title>
|
||||
<style type="text/css">
|
||||
|
||||
/*
|
||||
:Author: David Goodger (goodger@python.org)
|
||||
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $
|
||||
:Copyright: This stylesheet has been placed in the public domain.
|
||||
|
||||
Default cascading style sheet for the HTML output of Docutils.
|
||||
|
||||
See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
|
||||
customize this style sheet.
|
||||
*/
|
||||
|
||||
/* used to remove borders from tables and images */
|
||||
.borderless, table.borderless td, table.borderless th {
|
||||
border: 0 }
|
||||
|
||||
table.borderless td, table.borderless th {
|
||||
/* Override padding for "table.docutils td" with "! important".
|
||||
The right padding separates the table cells. */
|
||||
padding: 0 0.5em 0 0 ! important }
|
||||
|
||||
.first {
|
||||
/* Override more specific margin styles with "! important". */
|
||||
margin-top: 0 ! important }
|
||||
|
||||
.last, .with-subtitle {
|
||||
margin-bottom: 0 ! important }
|
||||
|
||||
.hidden {
|
||||
display: none }
|
||||
|
||||
.subscript {
|
||||
vertical-align: sub;
|
||||
font-size: smaller }
|
||||
|
||||
.superscript {
|
||||
vertical-align: super;
|
||||
font-size: smaller }
|
||||
|
||||
a.toc-backref {
|
||||
text-decoration: none ;
|
||||
color: black }
|
||||
|
||||
blockquote.epigraph {
|
||||
margin: 2em 5em ; }
|
||||
|
||||
dl.docutils dd {
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Uncomment (and remove this text!) to get bold-faced definition list terms
|
||||
dl.docutils dt {
|
||||
font-weight: bold }
|
||||
*/
|
||||
|
||||
div.abstract {
|
||||
margin: 2em 5em }
|
||||
|
||||
div.abstract p.topic-title {
|
||||
font-weight: bold ;
|
||||
text-align: center }
|
||||
|
||||
div.admonition, div.attention, div.caution, div.danger, div.error,
|
||||
div.hint, div.important, div.note, div.tip, div.warning {
|
||||
margin: 2em ;
|
||||
border: medium outset ;
|
||||
padding: 1em }
|
||||
|
||||
div.admonition p.admonition-title, div.hint p.admonition-title,
|
||||
div.important p.admonition-title, div.note p.admonition-title,
|
||||
div.tip p.admonition-title {
|
||||
font-weight: bold ;
|
||||
font-family: sans-serif }
|
||||
|
||||
div.attention p.admonition-title, div.caution p.admonition-title,
|
||||
div.danger p.admonition-title, div.error p.admonition-title,
|
||||
div.warning p.admonition-title, .code .error {
|
||||
color: red ;
|
||||
font-weight: bold ;
|
||||
font-family: sans-serif }
|
||||
|
||||
/* Uncomment (and remove this text!) to get reduced vertical space in
|
||||
compound paragraphs.
|
||||
div.compound .compound-first, div.compound .compound-middle {
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
div.compound .compound-last, div.compound .compound-middle {
|
||||
margin-top: 0.5em }
|
||||
*/
|
||||
|
||||
div.dedication {
|
||||
margin: 2em 5em ;
|
||||
text-align: center ;
|
||||
font-style: italic }
|
||||
|
||||
div.dedication p.topic-title {
|
||||
font-weight: bold ;
|
||||
font-style: normal }
|
||||
|
||||
div.figure {
|
||||
margin-left: 2em ;
|
||||
margin-right: 2em }
|
||||
|
||||
div.footer, div.header {
|
||||
clear: both;
|
||||
font-size: smaller }
|
||||
|
||||
div.line-block {
|
||||
display: block ;
|
||||
margin-top: 1em ;
|
||||
margin-bottom: 1em }
|
||||
|
||||
div.line-block div.line-block {
|
||||
margin-top: 0 ;
|
||||
margin-bottom: 0 ;
|
||||
margin-left: 1.5em }
|
||||
|
||||
div.sidebar {
|
||||
margin: 0 0 0.5em 1em ;
|
||||
border: medium outset ;
|
||||
padding: 1em ;
|
||||
background-color: #ffffee ;
|
||||
width: 40% ;
|
||||
float: right ;
|
||||
clear: right }
|
||||
|
||||
div.sidebar p.rubric {
|
||||
font-family: sans-serif ;
|
||||
font-size: medium }
|
||||
|
||||
div.system-messages {
|
||||
margin: 5em }
|
||||
|
||||
div.system-messages h1 {
|
||||
color: red }
|
||||
|
||||
div.system-message {
|
||||
border: medium outset ;
|
||||
padding: 1em }
|
||||
|
||||
div.system-message p.system-message-title {
|
||||
color: red ;
|
||||
font-weight: bold }
|
||||
|
||||
div.topic {
|
||||
margin: 2em }
|
||||
|
||||
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
|
||||
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
|
||||
margin-top: 0.4em }
|
||||
|
||||
h1.title {
|
||||
text-align: center }
|
||||
|
||||
h2.subtitle {
|
||||
text-align: center }
|
||||
|
||||
hr.docutils {
|
||||
width: 75% }
|
||||
|
||||
img.align-left, .figure.align-left, object.align-left, table.align-left {
|
||||
clear: left ;
|
||||
float: left ;
|
||||
margin-right: 1em }
|
||||
|
||||
img.align-right, .figure.align-right, object.align-right, table.align-right {
|
||||
clear: right ;
|
||||
float: right ;
|
||||
margin-left: 1em }
|
||||
|
||||
img.align-center, .figure.align-center, object.align-center {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
table.align-center {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.align-left {
|
||||
text-align: left }
|
||||
|
||||
.align-center {
|
||||
clear: both ;
|
||||
text-align: center }
|
||||
|
||||
.align-right {
|
||||
text-align: right }
|
||||
|
||||
/* reset inner alignment in figures */
|
||||
div.align-right {
|
||||
text-align: inherit }
|
||||
|
||||
/* div.align-center * { */
|
||||
/* text-align: left } */
|
||||
|
||||
.align-top {
|
||||
vertical-align: top }
|
||||
|
||||
.align-middle {
|
||||
vertical-align: middle }
|
||||
|
||||
.align-bottom {
|
||||
vertical-align: bottom }
|
||||
|
||||
ol.simple, ul.simple {
|
||||
margin-bottom: 1em }
|
||||
|
||||
ol.arabic {
|
||||
list-style: decimal }
|
||||
|
||||
ol.loweralpha {
|
||||
list-style: lower-alpha }
|
||||
|
||||
ol.upperalpha {
|
||||
list-style: upper-alpha }
|
||||
|
||||
ol.lowerroman {
|
||||
list-style: lower-roman }
|
||||
|
||||
ol.upperroman {
|
||||
list-style: upper-roman }
|
||||
|
||||
p.attribution {
|
||||
text-align: right ;
|
||||
margin-left: 50% }
|
||||
|
||||
p.caption {
|
||||
font-style: italic }
|
||||
|
||||
p.credits {
|
||||
font-style: italic ;
|
||||
font-size: smaller }
|
||||
|
||||
p.label {
|
||||
white-space: nowrap }
|
||||
|
||||
p.rubric {
|
||||
font-weight: bold ;
|
||||
font-size: larger ;
|
||||
color: maroon ;
|
||||
text-align: center }
|
||||
|
||||
p.sidebar-title {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold ;
|
||||
font-size: larger }
|
||||
|
||||
p.sidebar-subtitle {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold }
|
||||
|
||||
p.topic-title {
|
||||
font-weight: bold }
|
||||
|
||||
pre.address {
|
||||
margin-bottom: 0 ;
|
||||
margin-top: 0 ;
|
||||
font: inherit }
|
||||
|
||||
pre.literal-block, pre.doctest-block, pre.math, pre.code {
|
||||
margin-left: 2em ;
|
||||
margin-right: 2em }
|
||||
|
||||
pre.code .ln { color: grey; } /* line numbers */
|
||||
pre.code, code { background-color: #eeeeee }
|
||||
pre.code .comment, code .comment { color: #5C6576 }
|
||||
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
|
||||
pre.code .literal.string, code .literal.string { color: #0C5404 }
|
||||
pre.code .name.builtin, code .name.builtin { color: #352B84 }
|
||||
pre.code .deleted, code .deleted { background-color: #DEB0A1}
|
||||
pre.code .inserted, code .inserted { background-color: #A3D289}
|
||||
|
||||
span.classifier {
|
||||
font-family: sans-serif ;
|
||||
font-style: oblique }
|
||||
|
||||
span.classifier-delimiter {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold }
|
||||
|
||||
span.interpreted {
|
||||
font-family: sans-serif }
|
||||
|
||||
span.option {
|
||||
white-space: nowrap }
|
||||
|
||||
span.pre {
|
||||
white-space: pre }
|
||||
|
||||
span.problematic {
|
||||
color: red }
|
||||
|
||||
span.section-subtitle {
|
||||
/* font-size relative to parent (h1..h6 element) */
|
||||
font-size: 80% }
|
||||
|
||||
table.citation {
|
||||
border-left: solid 1px gray;
|
||||
margin-left: 1px }
|
||||
|
||||
table.docinfo {
|
||||
margin: 2em 4em }
|
||||
|
||||
table.docutils {
|
||||
margin-top: 0.5em ;
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
table.footnote {
|
||||
border-left: solid 1px black;
|
||||
margin-left: 1px }
|
||||
|
||||
table.docutils td, table.docutils th,
|
||||
table.docinfo td, table.docinfo th {
|
||||
padding-left: 0.5em ;
|
||||
padding-right: 0.5em ;
|
||||
vertical-align: top }
|
||||
|
||||
table.docutils th.field-name, table.docinfo th.docinfo-name {
|
||||
font-weight: bold ;
|
||||
text-align: left ;
|
||||
white-space: nowrap ;
|
||||
padding-left: 0 }
|
||||
|
||||
/* "booktabs" style (no vertical lines) */
|
||||
table.docutils.booktabs {
|
||||
border: 0px;
|
||||
border-top: 2px solid;
|
||||
border-bottom: 2px solid;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
table.docutils.booktabs * {
|
||||
border: 0px;
|
||||
}
|
||||
table.docutils.booktabs th {
|
||||
border-bottom: thin solid;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
|
||||
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
|
||||
font-size: 100% }
|
||||
|
||||
ul.auto-toc {
|
||||
list-style-type: none }
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="document" id="mis-builder">
|
||||
<h1 class="title">MIS Builder</h1>
|
||||
|
||||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/mis-builder/tree/13.0/mis_builder"><img alt="OCA/mis-builder" src="https://img.shields.io/badge/github-OCA%2Fmis--builder-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/mis-builder-13-0/mis-builder-13-0-mis_builder"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/248/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||
<p>This module allows you to build Management Information Systems dashboards.
|
||||
Such style of reports presents KPI in rows and time periods in columns.
|
||||
Reports mainly fetch data from account moves, but can also combine data coming
|
||||
from arbitrary Odoo models. Reports can be exported to PDF, Excel and they
|
||||
can be added to Odoo dashboards.</p>
|
||||
<p><strong>Table of contents</strong></p>
|
||||
<div class="contents local topic" id="contents">
|
||||
<ul class="simple">
|
||||
<li><a class="reference internal" href="#installation" id="id68">Installation</a></li>
|
||||
<li><a class="reference internal" href="#usage" id="id69">Usage</a></li>
|
||||
<li><a class="reference internal" href="#development" id="id70">Development</a></li>
|
||||
<li><a class="reference internal" href="#known-issues-roadmap" id="id71">Known issues / Roadmap</a></li>
|
||||
<li><a class="reference internal" href="#changelog" id="id72">Changelog</a><ul>
|
||||
<li><a class="reference internal" href="#id1" id="id73">13.0.3.6.3 (2020-08-28)</a></li>
|
||||
<li><a class="reference internal" href="#id5" id="id74">13.0.3.6.2 (2020-04-22)</a></li>
|
||||
<li><a class="reference internal" href="#id7" id="id75">13.0.3.6.1 (2020-04-22)</a></li>
|
||||
<li><a class="reference internal" href="#id9" id="id76">13.0.3.6.0 (2020-03-28)</a></li>
|
||||
<li><a class="reference internal" href="#id12" id="id77">13.0.3.5.0 (2020-01-??)</a></li>
|
||||
<li><a class="reference internal" href="#id13" id="id78">12.0.3.5.0 (2019-10-26)</a></li>
|
||||
<li><a class="reference internal" href="#id21" id="id79">12.0.3.4.0 (2019-07-09)</a></li>
|
||||
<li><a class="reference internal" href="#id28" id="id80">12.0.3.3.0 (2019-01-26)</a></li>
|
||||
<li><a class="reference internal" href="#id38" id="id81">11.0.3.2.2 (2018-06-30)</a></li>
|
||||
<li><a class="reference internal" href="#id41" id="id82">11.0.3.2.1 (2018-05-29)</a></li>
|
||||
<li><a class="reference internal" href="#id43" id="id83">10.0.3.2.0 (2018-05-02)</a></li>
|
||||
<li><a class="reference internal" href="#id47" id="id84">11.0.3.1.2 (2018-02-04)</a></li>
|
||||
<li><a class="reference internal" href="#id49" id="id85">10.0.3.1.1 (2017-11-14)</a></li>
|
||||
<li><a class="reference internal" href="#id58" id="id86">10.0.3.0.4 (2017-10-14)</a></li>
|
||||
<li><a class="reference internal" href="#id60" id="id87">10.0.3.0.3 (2017-10-03)</a></li>
|
||||
<li><a class="reference internal" href="#id62" id="id88">10.0.3.0.2 (2017-10-01)</a></li>
|
||||
<li><a class="reference internal" href="#unreleased" id="id89">10.0.2.0.3 (unreleased)</a></li>
|
||||
<li><a class="reference internal" href="#id63" id="id90">9.0.2.0.2 (2016-09-27)</a></li>
|
||||
<li><a class="reference internal" href="#id64" id="id91">9.0.2.0.1 (2016-05-26)</a></li>
|
||||
<li><a class="reference internal" href="#id65" id="id92">9.0.2.0.0 (2016-05-24)</a></li>
|
||||
<li><a class="reference internal" href="#id66" id="id93">8.0.1.0.0 (2016-04-27)</a></li>
|
||||
<li><a class="reference internal" href="#id67" id="id94">8.0.0.2.0</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a class="reference internal" href="#bug-tracker" id="id95">Bug Tracker</a></li>
|
||||
<li><a class="reference internal" href="#credits" id="id96">Credits</a><ul>
|
||||
<li><a class="reference internal" href="#authors" id="id97">Authors</a></li>
|
||||
<li><a class="reference internal" href="#contributors" id="id98">Contributors</a></li>
|
||||
<li><a class="reference internal" href="#maintainers" id="id99">Maintainers</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="installation">
|
||||
<h1><a class="toc-backref" href="#id68">Installation</a></h1>
|
||||
<p>Your preferred way to install addons will work with MIS Builder.</p>
|
||||
<p>An easy way to install it with all its dependencies is using pip:</p>
|
||||
<ul class="simple">
|
||||
<li><tt class="docutils literal">pip install <span class="pre">--pre</span> <span class="pre">odoo12-addon-mis_builder</span></tt></li>
|
||||
<li>then restart Odoo, update the addons list in your database, and install
|
||||
the MIS Builder application.</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="usage">
|
||||
<h1><a class="toc-backref" href="#id69">Usage</a></h1>
|
||||
<p>To configure this module, you need to:</p>
|
||||
<ul class="simple">
|
||||
<li>Go to Accounting > Configuration > MIS Reporting > MIS Report Templates where
|
||||
you can create report templates by defining KPI’s. KPI’s constitute the rows of your
|
||||
reports. Such report templates are time independent.</li>
|
||||
</ul>
|
||||
<div class="figure align-center">
|
||||
<img alt="Sample report template" src="https://raw.githubusercontent.com/OCA/mis-builder/10.0/mis_builder/static/description/ex_report_template.png" style="width: 80%;" />
|
||||
</div>
|
||||
<ul class="simple">
|
||||
<li>Then in Accounting > Reports > MIS Reporting > MIS Reports you can create report instance by
|
||||
binding the templates to time periods, hence defining the columns of your reports.</li>
|
||||
</ul>
|
||||
<div class="figure align-center">
|
||||
<img alt="Sample report configuration" src="https://raw.githubusercontent.com/OCA/mis-builder/10.0/mis_builder/static/description/ex_report_settings.png" style="width: 80%;" />
|
||||
</div>
|
||||
<ul class="simple">
|
||||
<li>From the MIS Reports view, you can preview the report, add it to and Odoo dashboard,
|
||||
and export it to PDF or Excel.</li>
|
||||
</ul>
|
||||
<div class="figure align-center">
|
||||
<img alt="Sample preview" src="https://raw.githubusercontent.com/OCA/mis-builder/10.0/mis_builder/static/description/ex_report_preview.png" style="width: 80%;" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="development">
|
||||
<h1><a class="toc-backref" href="#id70">Development</a></h1>
|
||||
<p>A typical extension is to provide a mechanism to filter reports on analytic dimensions
|
||||
or operational units. To implement this, you can override _get_additional_move_line_filter
|
||||
and _get_additional_filter to further filter move lines or queries based on a user
|
||||
selection. A typical use case could be to add an analytic account field on mis.report.instance,
|
||||
or even on mis.report.instance.period if you want different columns to show different
|
||||
analytic accounts.</p>
|
||||
</div>
|
||||
<div class="section" id="known-issues-roadmap">
|
||||
<h1><a class="toc-backref" href="#id71">Known issues / Roadmap</a></h1>
|
||||
<p>The mis_builder <a class="reference external" href="https://github.com/OCA/mis-builder/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement">roadmap</a>
|
||||
and <a class="reference external" href="https://github.com/OCA/mis-builder/issues?q=is%3Aopen+is%3Aissue+label%3Abug">known issues</a> can
|
||||
be found on GitHub.</p>
|
||||
</div>
|
||||
<div class="section" id="changelog">
|
||||
<h1><a class="toc-backref" href="#id72">Changelog</a></h1>
|
||||
<div class="section" id="id1">
|
||||
<h2><a class="toc-backref" href="#id73">13.0.3.6.3 (2020-08-28)</a></h2>
|
||||
<p><strong>Bugfixes</strong></p>
|
||||
<ul class="simple">
|
||||
<li>Having a “Compare columns” added on a KPI with an associated style using a
|
||||
Factor/Divider did lead to the said factor being applied on the percentages
|
||||
when exporting to XLSX. (<a class="reference external" href="https://github.com/OCA/mis-builder/issues/300">#300</a>)</li>
|
||||
</ul>
|
||||
<p><strong>Misc</strong></p>
|
||||
<ul class="simple">
|
||||
<li><a class="reference external" href="https://github.com/OCA/mis-builder/issues/280">#280</a>, <a class="reference external" href="https://github.com/OCA/mis-builder/issues/296">#296</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="id5">
|
||||
<h2><a class="toc-backref" href="#id74">13.0.3.6.2 (2020-04-22)</a></h2>
|
||||
<p><strong>Bugfixes</strong></p>
|
||||
<ul class="simple">
|
||||
<li>The “Settings” button is now displayed for users with the “Show full accounting features” right when previewing a report. (<a class="reference external" href="https://github.com/OCA/mis-builder/issues/281">#281</a>)</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="id7">
|
||||
<h2><a class="toc-backref" href="#id75">13.0.3.6.1 (2020-04-22)</a></h2>
|
||||
<p><strong>Bugfixes</strong></p>
|
||||
<ul class="simple">
|
||||
<li>Fix <tt class="docutils literal">TypeError: 'module' object is not iterable</tt> when using
|
||||
budgets by account. (<a class="reference external" href="https://github.com/OCA/mis-builder/issues/276">#276</a>)</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="id9">
|
||||
<h2><a class="toc-backref" href="#id76">13.0.3.6.0 (2020-03-28)</a></h2>
|
||||
<p><strong>Features</strong></p>
|
||||
<ul class="simple">
|
||||
<li>Add column-level filters on analytic account and analytic tags.
|
||||
These filters are combined with a AND with the report-level filters
|
||||
and cannot be modified in the preview. (<a class="reference external" href="https://github.com/OCA/mis-builder/issues/138">#138</a>)</li>
|
||||
<li>Access to KPI from other reports in KPI expressions, aka subreports. In a
|
||||
report template, one can list named “subreports” (other report templates). When
|
||||
evaluating expressions, you can access KPI’s of subreports with a dot-prefix
|
||||
notation. Example: you can define a MIS Report for a “Balance Sheet”, and then
|
||||
have another MIS Report “Balance Sheet Ratios” that fetches KPI’s from “Balance
|
||||
Sheet” to create new KPI’s for the ratios (e.g. balance_sheet.current_assets /
|
||||
balance_sheet.total_assets). (<a class="reference external" href="https://github.com/OCA/mis-builder/issues/155">#155</a>)</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="id12">
|
||||
<h2><a class="toc-backref" href="#id77">13.0.3.5.0 (2020-01-??)</a></h2>
|
||||
<p>Migration to odoo 13.0.</p>
|
||||
</div>
|
||||
<div class="section" id="id13">
|
||||
<h2><a class="toc-backref" href="#id78">12.0.3.5.0 (2019-10-26)</a></h2>
|
||||
<p><strong>Features</strong></p>
|
||||
<ul class="simple">
|
||||
<li>The <tt class="docutils literal">account_id</tt> field of the model selected in ‘Move lines source’
|
||||
in the Period form can now be a Many2one
|
||||
relationship with any model that has a <tt class="docutils literal">code</tt> field (not only with
|
||||
<tt class="docutils literal">account.account</tt> model). To this end, the model to be used for Actuals
|
||||
move lines can be configured on the report template. It can be something else
|
||||
than move lines and the only constraint is that its <tt class="docutils literal">account_id</tt> field
|
||||
as a <tt class="docutils literal">code</tt> field. (<a class="reference external" href="https://github.com/oca/mis-builder/issues/149">#149</a>)</li>
|
||||
<li>Add <tt class="docutils literal">source_aml_model_name</tt> field so extension modules providing
|
||||
alternative data sources can more easily customize their data source. (<a class="reference external" href="https://github.com/oca/mis-builder/issues/214">#214</a>)</li>
|
||||
<li>Support analytic tag filters in the backend view and preview widget.
|
||||
Selecting several tags in the filter means filtering on move lines which
|
||||
have <em>all</em> these tags set. This is to support the most common use case of
|
||||
using tags for different dimensions. The filter also makes a AND with the
|
||||
analytic account filter. (<a class="reference external" href="https://github.com/oca/mis-builder/issues/228">#228</a>)</li>
|
||||
<li>Display company in account details rows in multi-company mode. (<a class="reference external" href="https://github.com/oca/mis-builder/issues/242">#242</a>)</li>
|
||||
</ul>
|
||||
<p><strong>Bugfixes</strong></p>
|
||||
<ul class="simple">
|
||||
<li>Propagate context to xlsx report, so the analytic account filter
|
||||
works when exporting to xslx too. This also requires a fix to
|
||||
<tt class="docutils literal">report_xlsx</tt> (see <a class="reference external" href="https://github.com/OCA/reporting-engine/pull/259">https://github.com/OCA/reporting-engine/pull/259</a>). (<a class="reference external" href="https://github.com/oca/mis-builder/issues/178">#178</a>)</li>
|
||||
<li>In columns of type Sum, preserve styles for KPIs that are not summable
|
||||
(eg percentage values). Before this fix, such cells were displayed without
|
||||
style. (<a class="reference external" href="https://github.com/oca/mis-builder/issues/219">#219</a>)</li>
|
||||
<li>In Excel export, keep the percentage point suffix (pp) instead of replacing it with %. (<a class="reference external" href="https://github.com/oca/mis-builder/issues/220">#220</a>)</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="id21">
|
||||
<h2><a class="toc-backref" href="#id79">12.0.3.4.0 (2019-07-09)</a></h2>
|
||||
<p><strong>Features</strong></p>
|
||||
<ul class="simple">
|
||||
<li>New year-to-date mode for defining periods. (<a class="reference external" href="https://github.com/oca/mis-builder/issues/165">#165</a>)</li>
|
||||
<li>Add support for move lines with negative debit or credit.
|
||||
Used by some for storno accounting. Not officially supported. (<a class="reference external" href="https://github.com/oca/mis-builder/issues/175">#175</a>)</li>
|
||||
<li>In Excel export, use a number format with thousands separator. The
|
||||
specific separator used depends on the Excel configuration (eg regional
|
||||
settings). (<a class="reference external" href="https://github.com/oca/mis-builder/issues/190">#190</a>)</li>
|
||||
<li>Add generation date/time at the end of the XLS export. (<a class="reference external" href="https://github.com/oca/mis-builder/issues/191">#191</a>)</li>
|
||||
<li>In presence of Sub KPIs, report more informative user errors when
|
||||
non-multi expressions yield tuples of incorrect lenght. (<a class="reference external" href="https://github.com/oca/mis-builder/issues/196">#196</a>)</li>
|
||||
</ul>
|
||||
<p><strong>Bugfixes</strong></p>
|
||||
<ul class="simple">
|
||||
<li>Fix rendering of percentage types in Excel export. (<a class="reference external" href="https://github.com/oca/mis-builder/issues/192">#192</a>)</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="id28">
|
||||
<h2><a class="toc-backref" href="#id80">12.0.3.3.0 (2019-01-26)</a></h2>
|
||||
<p><strong>Features</strong></p>
|
||||
<p><em>Dynamic analytic filters in report preview are not yet available in 11,
|
||||
this requires an update to the JS widget that proved difficult to implement
|
||||
so far. Help welcome.</em></p>
|
||||
<ul class="simple">
|
||||
<li>Analytic account filters. On a report, an analytic
|
||||
account can be selected for filtering. The filter will
|
||||
be applied to move lines queries. A filter box is also
|
||||
available in the widget to let the user select the analytic
|
||||
account during report preview. (<a class="reference external" href="https://github.com/oca/mis-builder/issues/15">#15</a>)</li>
|
||||
<li>Control visibility of analytic filter combo box in widget.
|
||||
This is useful to hide the analytic filters on reports where
|
||||
they do not make sense, such as balance sheet reports. (<a class="reference external" href="https://github.com/oca/mis-builder/issues/42">#42</a>)</li>
|
||||
<li>Display analytic filters in the header of exported pdf and xls. (<a class="reference external" href="https://github.com/oca/mis-builder/issues/44">#44</a>)</li>
|
||||
<li>Replace the last old gtk icons with fontawesome icons. (<a class="reference external" href="https://github.com/oca/mis-builder/issues/104">#104</a>)</li>
|
||||
<li>Use active_test=False in AEP queries.
|
||||
This is important for reports involving inactive taxes.
|
||||
This should not negatively effect existing reports, because
|
||||
an accounting report must take into account all existing move lines
|
||||
even if they reference objects such as taxes, journals, accounts types
|
||||
that have been deactivated since their creation. (<a class="reference external" href="https://github.com/oca/mis-builder/issues/107">#107</a>)</li>
|
||||
<li>int(), float() and round() support for AccountingNone. (<a class="reference external" href="https://github.com/oca/mis-builder/issues/108">#108</a>)</li>
|
||||
<li>Allow referencing subkpis by name by writing <cite>kpi_x.subkpi_y</cite> in expressions. (<a class="reference external" href="https://github.com/oca/mis-builder/issues/114">#114</a>)</li>
|
||||
<li>Add an option to control the display of the start/end dates in the
|
||||
column headers. It is disabled by default (this is a change compared
|
||||
to previous behaviour). (<a class="reference external" href="https://github.com/oca/mis-builder/issues/118">#118</a>)</li>
|
||||
<li>Add evaluate method to mis.report. This is a simplified
|
||||
method to evaluate kpis of a report over a time period,
|
||||
without creating a mis.report.instance. (<a class="reference external" href="https://github.com/oca/mis-builder/issues/123">#123</a>)</li>
|
||||
</ul>
|
||||
<p><strong>Bugs</strong></p>
|
||||
<ul class="simple">
|
||||
<li>In the style form, hide the “Hide always” checkbox when “Hide always inherit”
|
||||
is checked, as for all other syle elements. (<cite>#121 <https://github.com/OCA/mis-builder/pull/121>_</cite>)</li>
|
||||
</ul>
|
||||
<p><strong>Upgrading from 3.2 (breaking changes)</strong></p>
|
||||
<p>If you use <tt class="docutils literal">Actuals (alternative)</tt> data source in combination with analytic
|
||||
filters, the underlying model must now have an <tt class="docutils literal">analytic_account_id</tt> field.</p>
|
||||
</div>
|
||||
<div class="section" id="id38">
|
||||
<h2><a class="toc-backref" href="#id81">11.0.3.2.2 (2018-06-30)</a></h2>
|
||||
<ul class="simple">
|
||||
<li>[FIX] Fix bug in company_default_get call returning
|
||||
id instead of recordset
|
||||
(<a class="reference external" href="https://github.com/OCA/mis-builder/pull/103">#103</a>)</li>
|
||||
<li>[IMP] add “hide always” style property to make hidden KPI’s
|
||||
(for KPI that serve as basis for other formulas, but do not
|
||||
need to be displayed).
|
||||
(<a class="reference external" href="https://github.com/OCA/mis-builder/issues/46">#46</a>)</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="id41">
|
||||
<h2><a class="toc-backref" href="#id82">11.0.3.2.1 (2018-05-29)</a></h2>
|
||||
<ul class="simple">
|
||||
<li>[FIX] Missing comparison operator for AccountingNone
|
||||
leading to errors in pbal computations
|
||||
(<a class="reference external" href="https://github.com/OCA/mis-builder/issue/93">#93</a>)</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="id43">
|
||||
<h2><a class="toc-backref" href="#id83">10.0.3.2.0 (2018-05-02)</a></h2>
|
||||
<ul class="simple">
|
||||
<li>[FIX] make subkpi ordering deterministic
|
||||
(<a class="reference external" href="https://github.com/OCA/mis-builder/issues/71">#71</a>)</li>
|
||||
<li>[ADD] report instance level option to disable account expansion,
|
||||
enabling the creation of detailed templates while deferring the decision
|
||||
of rendering the details or not to the report instance
|
||||
(<a class="reference external" href="https://github.com/OCA/mis-builder/issues/74">#74</a>)</li>
|
||||
<li>[ADD] pbal and nbal accounting expressions, to sum positive
|
||||
and negative balances respectively (ie ignoring accounts with negative,
|
||||
resp positive balances)
|
||||
(<a class="reference external" href="https://github.com/OCA/mis-builder/issues/86">#86</a>)</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="id47">
|
||||
<h2><a class="toc-backref" href="#id84">11.0.3.1.2 (2018-02-04)</a></h2>
|
||||
<p>Migration to Odoo 11. No new feature.
|
||||
(<a class="reference external" href="https://github.com/OCA/mis-builder/pull/67">#67</a>)</p>
|
||||
</div>
|
||||
<div class="section" id="id49">
|
||||
<h2><a class="toc-backref" href="#id85">10.0.3.1.1 (2017-11-14)</a></h2>
|
||||
<p>New features:</p>
|
||||
<ul class="simple">
|
||||
<li>[ADD] month and year relative periods, easier to use than
|
||||
date ranges for the most common case.
|
||||
(<a class="reference external" href="https://github.com/OCA/mis-builder/issues/2">#2</a>)</li>
|
||||
<li>[ADD] multi-company consolidation support, with currency conversion
|
||||
(the conversion rate date is the end of the reporting period)
|
||||
(<a class="reference external" href="https://github.com/OCA/mis-builder/issues/7">#7</a>,
|
||||
<a class="reference external" href="https://github.com/OCA/mis-builder/issues/3">#3</a>)</li>
|
||||
<li>[ADD] provide ref, datetime, dateutil, time, user in the evaluation
|
||||
context of move line domains; among other things, this allows using
|
||||
references to xml ids (such as account types or tax tags) when
|
||||
querying move lines
|
||||
(<a class="reference external" href="https://github.com/OCA/mis-builder/issues/26">#26</a>).</li>
|
||||
<li>[ADD] extended account selectors: you can now select accounts using
|
||||
any domain on account.account, not only account codes
|
||||
<tt class="docutils literal"><span class="pre">balp[('user_type_id',</span> <span class="pre">'=',</span> <span class="pre">ref('account.data_account_type_receivable').id)]</span></tt>
|
||||
(<a class="reference external" href="https://github.com/OCA/mis-builder/issues/4">#4</a>).</li>
|
||||
<li>[IMP] in the report instance configuration form, the filters are
|
||||
now grouped in a notebook page, this improves readability and
|
||||
extensibility
|
||||
(<a class="reference external" href="https://github.com/OCA/mis-builder/issues/39">#39</a>).</li>
|
||||
</ul>
|
||||
<p>Bug fixes:</p>
|
||||
<ul class="simple">
|
||||
<li>[FIX] fix error when saving periods in comparison mode on newly
|
||||
created (not yet saved) report instances.
|
||||
<a class="reference external" href="https://github.com/OCA/mis-builder/pull/50">#50</a></li>
|
||||
<li>[FIX] improve display of Base Date report instance view.
|
||||
<a class="reference external" href="https://github.com/OCA/mis-builder/pull/51">#51</a></li>
|
||||
</ul>
|
||||
<p>Upgrading from 3.0 (breaking changes):</p>
|
||||
<ul class="simple">
|
||||
<li>Alternative move line data sources must have a company_id field.</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="id58">
|
||||
<h2><a class="toc-backref" href="#id86">10.0.3.0.4 (2017-10-14)</a></h2>
|
||||
<p>Bug fix:</p>
|
||||
<ul class="simple">
|
||||
<li>[FIX] issue with initial balance rounding.
|
||||
<a class="reference external" href="https://github.com/OCA/mis-builder/issues/30">#30</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="id60">
|
||||
<h2><a class="toc-backref" href="#id87">10.0.3.0.3 (2017-10-03)</a></h2>
|
||||
<p>Bug fix:</p>
|
||||
<ul class="simple">
|
||||
<li>[FIX] fix error saving KPI on newly created reports.
|
||||
<a class="reference external" href="https://github.com/OCA/mis-builder/issues/18">#18</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="id62">
|
||||
<h2><a class="toc-backref" href="#id88">10.0.3.0.2 (2017-10-01)</a></h2>
|
||||
<p>New features:</p>
|
||||
<ul class="simple">
|
||||
<li>[ADD] Alternative move line source per report column.
|
||||
This makes mis buidler accounting expressions work on any model
|
||||
that has debit, credit, account_id and date fields. Provided you can
|
||||
expose, say, committed purchases, or your budget as a view with
|
||||
debit, credit and account_id, this opens up a lot of possibilities</li>
|
||||
<li>[ADD] Comparison column source (more flexible than the previous,
|
||||
now deprecated, comparison mechanism).
|
||||
CAVEAT: there is no automated migration to the new mechanism.</li>
|
||||
<li>[ADD] Sum column source, to create columns that add/subtract
|
||||
other columns.</li>
|
||||
<li>[ADD] mis.kpi.data abstract model as a basis for manual KPI values
|
||||
supporting automatic ajustment to the reporting time period (the basis
|
||||
for budget item, but could also server other purposes, such as manually
|
||||
entering some KPI values, such as number of employee)</li>
|
||||
<li>[ADD] mis_builder_budget module providing a new budget data source</li>
|
||||
<li>[ADD] new “hide empty” style property</li>
|
||||
<li>[IMP] new AEP method to get accounts involved in an expression
|
||||
(this is useful to find which KPI relate to a given P&L
|
||||
acount, to implement budget control)</li>
|
||||
<li>[IMP] many UI improvements</li>
|
||||
<li>[IMP] many code style improvements and some refactoring</li>
|
||||
<li>[IMP] add the column date_from, date_to in expression evaluation context,
|
||||
as well as time, datetime and dateutil modules</li>
|
||||
</ul>
|
||||
<p>Main bug fixes:</p>
|
||||
<ul class="simple">
|
||||
<li>[FIX] deletion of templates and reports (cascade and retricts)
|
||||
(<a class="reference external" href="https://github.com/OCA/account-financial-reporting/issues/281">https://github.com/OCA/account-financial-reporting/issues/281</a>)</li>
|
||||
<li>[FIX] copy of reports
|
||||
(<a class="reference external" href="https://github.com/OCA/account-financial-reporting/issues/282">https://github.com/OCA/account-financial-reporting/issues/282</a>)</li>
|
||||
<li>[FIX] better error message when periods have wrong/missing dates
|
||||
(<a class="reference external" href="https://github.com/OCA/account-financial-reporting/issues/283">https://github.com/OCA/account-financial-reporting/issues/283</a>)</li>
|
||||
<li>[FIX] xlsx export of string types KPI
|
||||
(<a class="reference external" href="https://github.com/OCA/account-financial-reporting/issues/285">https://github.com/OCA/account-financial-reporting/issues/285</a>)</li>
|
||||
<li>[FIX] sorting of detail by account</li>
|
||||
<li>[FIX] computation bug in detail by account when multiple accounting
|
||||
expressions were used in a KPI</li>
|
||||
<li>[FIX] permission issue when adding report to dashboard with non admin user</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="unreleased">
|
||||
<h2><a class="toc-backref" href="#id89">10.0.2.0.3 (unreleased)</a></h2>
|
||||
<ul class="simple">
|
||||
<li>[IMP] more robust behaviour in presence of missing expressions</li>
|
||||
<li>[FIX] indent style</li>
|
||||
<li>[FIX] local variable ‘ctx’ referenced before assignment when generating
|
||||
reports with no objects</li>
|
||||
<li>[IMP] use fontawesome icons</li>
|
||||
<li>[MIG] migrate to 10.0</li>
|
||||
<li>[FIX] unicode error when exporting to Excel</li>
|
||||
<li>[IMP] provide full access to mis builder style for group Adviser.</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="id63">
|
||||
<h2><a class="toc-backref" href="#id90">9.0.2.0.2 (2016-09-27)</a></h2>
|
||||
<ul class="simple">
|
||||
<li>[IMP] Add refresh button in mis report preview.</li>
|
||||
<li>[IMP] Widget code changes to allow to add fields in the widget more easily.</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="id64">
|
||||
<h2><a class="toc-backref" href="#id91">9.0.2.0.1 (2016-05-26)</a></h2>
|
||||
<ul class="simple">
|
||||
<li>[IMP] remove unused argument in declare_and_compute_period()
|
||||
for a cleaner API. This is a breaking API changing merged in
|
||||
urgency before it is used by other modules.</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="id65">
|
||||
<h2><a class="toc-backref" href="#id92">9.0.2.0.0 (2016-05-24)</a></h2>
|
||||
<p>Part of the work for this release has been done at the Sorrento sprint
|
||||
April 26-29, 2016. The rest (ie a major refactoring) has been done in
|
||||
the weeks after.</p>
|
||||
<ul class="simple">
|
||||
<li>[IMP] hide button box in edit mode on the report instance settings form</li>
|
||||
<li>[FIX] Fix sum aggregation of non-stored fields
|
||||
(<a class="reference external" href="https://github.com/OCA/account-financial-reporting/issues/178">https://github.com/OCA/account-financial-reporting/issues/178</a>)</li>
|
||||
<li>[IMP] There is now a default style at the report level</li>
|
||||
<li>[CHG] Number display properties (rounding, prefix, suffix, factor) are
|
||||
now defined in styles</li>
|
||||
<li>[CHG] Percentage difference are rounded to 1 digit instead of the kpi’s
|
||||
rounding, as the KPI rounding does not make sense in this case</li>
|
||||
<li>[CHG] The divider suffix (k, M, etc) is not inserted automatically anymore
|
||||
because it is inconsistent when working with prefixes; you need to add it
|
||||
manually in the suffix</li>
|
||||
<li>[IMP] AccountingExpressionProcessor now supports ‘balu’ expressions
|
||||
to obtain the unallocated profit/loss of previous fiscal years;
|
||||
get_unallocated_pl is the corresponding convenience method</li>
|
||||
<li>[IMP] AccountingExpressionProcessor now has easy methods to obtain
|
||||
balances by account: get_balances_initial, get_balances_end,
|
||||
get_balances_variation</li>
|
||||
<li>[IMP] there is now an auto-expand feature to automatically display
|
||||
a detail by account for selected kpis</li>
|
||||
<li>[IMP] the kpi and period lists are now manipulated through forms instead
|
||||
of directly in the tree views</li>
|
||||
<li>[IMP] it is now possible to create a report through a wizard, such
|
||||
reports are deemed temporary and available through a “Last Reports Generated”
|
||||
menu, they are garbaged collected automatically, unless saved permanently,
|
||||
which can be done using a Save button</li>
|
||||
<li>[IMP] there is now a beginner mode to configure simple reports with
|
||||
only one period</li>
|
||||
<li>[IMP] it is now easier to configure periods with fixed start/end dates</li>
|
||||
<li>[IMP] the new sub-kpi mechanism allows the creation of columns
|
||||
with multiple values, or columns with different values</li>
|
||||
<li>[IMP] thanks to the new style model, the Excel export is now styled</li>
|
||||
<li>[IMP] a new style model is now used to centralize style configuration</li>
|
||||
<li>[FIX] use =like instead of like to search for accounts, because
|
||||
the % are added by the user in the expressions</li>
|
||||
<li>[FIX] Correctly compute the initial balance of income and expense account
|
||||
based on the start of the fiscal year</li>
|
||||
<li>[IMP] Support date ranges (from OCA/server-tools/date_range) as a more
|
||||
flexible alternative to fiscal periods</li>
|
||||
<li>v9 migration: fiscal periods are removed, account charts are removed,
|
||||
consolidation accounts have been removed</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="id66">
|
||||
<h2><a class="toc-backref" href="#id93">8.0.1.0.0 (2016-04-27)</a></h2>
|
||||
<ul class="simple">
|
||||
<li>The copy of a MIS Report Instance now copies period.
|
||||
<a class="reference external" href="https://github.com/OCA/account-financial-reporting/pull/181">https://github.com/OCA/account-financial-reporting/pull/181</a></li>
|
||||
<li>The copy of a MIS Report Template now copies KPIs and queries.
|
||||
<a class="reference external" href="https://github.com/OCA/account-financial-reporting/pull/177">https://github.com/OCA/account-financial-reporting/pull/177</a></li>
|
||||
<li>Usability: the default view for MIS Report instances is now the rendered preview,
|
||||
and the settings are accessible through a gear icon in the list view and
|
||||
a button in the preview.
|
||||
<a class="reference external" href="https://github.com/OCA/account-financial-reporting/pull/170">https://github.com/OCA/account-financial-reporting/pull/170</a></li>
|
||||
<li>Display blank cells instead of 0.0 when there is no data.
|
||||
<a class="reference external" href="https://github.com/OCA/account-financial-reporting/pull/169">https://github.com/OCA/account-financial-reporting/pull/169</a></li>
|
||||
<li>Usability: better layout of the MIS Report periods settings on small screens.
|
||||
<a class="reference external" href="https://github.com/OCA/account-financial-reporting/pull/167">https://github.com/OCA/account-financial-reporting/pull/167</a></li>
|
||||
<li>Include the download buttons inside the MIS Builder widget, and refactor
|
||||
the widget to open the door to analytic filtering in the previews.
|
||||
<a class="reference external" href="https://github.com/OCA/account-financial-reporting/pull/151">https://github.com/OCA/account-financial-reporting/pull/151</a></li>
|
||||
<li>Add KPI rendering prefixes (so you can print $ in front of the value).
|
||||
<a class="reference external" href="https://github.com/OCA/account-financial-reporting/pull/158">https://github.com/OCA/account-financial-reporting/pull/158</a></li>
|
||||
<li>Add hooks for analytic filtering.
|
||||
<a class="reference external" href="https://github.com/OCA/account-financial-reporting/pull/128">https://github.com/OCA/account-financial-reporting/pull/128</a>
|
||||
<a class="reference external" href="https://github.com/OCA/account-financial-reporting/pull/131">https://github.com/OCA/account-financial-reporting/pull/131</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="id67">
|
||||
<h2><a class="toc-backref" href="#id94">8.0.0.2.0</a></h2>
|
||||
<p>Pre-history. Or rather, you need to look at the git log.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="bug-tracker">
|
||||
<h1><a class="toc-backref" href="#id95">Bug Tracker</a></h1>
|
||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/mis-builder/issues">GitHub Issues</a>.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||
<a class="reference external" href="https://github.com/OCA/mis-builder/issues/new?body=module:%20mis_builder%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||
</div>
|
||||
<div class="section" id="credits">
|
||||
<h1><a class="toc-backref" href="#id96">Credits</a></h1>
|
||||
<div class="section" id="authors">
|
||||
<h2><a class="toc-backref" href="#id97">Authors</a></h2>
|
||||
<ul class="simple">
|
||||
<li>ACSONE SA/NV</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="contributors">
|
||||
<h2><a class="toc-backref" href="#id98">Contributors</a></h2>
|
||||
<ul class="simple">
|
||||
<li>Stéphane Bidoul <<a class="reference external" href="mailto:stephane.bidoul@acsone.eu">stephane.bidoul@acsone.eu</a>></li>
|
||||
<li>Laetitia Gangloff <<a class="reference external" href="mailto:laetitia.gangloff@acsone.eu">laetitia.gangloff@acsone.eu</a>></li>
|
||||
<li>Adrien Peiffer <<a class="reference external" href="mailto:adrien.peiffer@acsone.eu">adrien.peiffer@acsone.eu</a>></li>
|
||||
<li>Alexis de Lattre <<a class="reference external" href="mailto:alexis.delattre@akretion.com">alexis.delattre@akretion.com</a>></li>
|
||||
<li>Alexandre Fayolle <<a class="reference external" href="mailto:alexandre.fayolle@camptocamp.com">alexandre.fayolle@camptocamp.com</a>></li>
|
||||
<li>Jordi Ballester <<a class="reference external" href="mailto:jordi.ballester@eficent.com">jordi.ballester@eficent.com</a>></li>
|
||||
<li>Thomas Binsfeld <<a class="reference external" href="mailto:thomas.binsfeld@gmail.com">thomas.binsfeld@gmail.com</a>></li>
|
||||
<li>Giovanni Capalbo <<a class="reference external" href="mailto:giovanni@therp.nl">giovanni@therp.nl</a>></li>
|
||||
<li>Marco Calcagni <<a class="reference external" href="mailto:mcalcagni@dinamicheaziendali.it">mcalcagni@dinamicheaziendali.it</a>></li>
|
||||
<li>Sébastien Beau <<a class="reference external" href="mailto:sebastien.beau@akretion.com">sebastien.beau@akretion.com</a>></li>
|
||||
<li>Laurent Mignon <<a class="reference external" href="mailto:laurent.mignon@acsone.eu">laurent.mignon@acsone.eu</a>></li>
|
||||
<li>Luc De Meyer <<a class="reference external" href="mailto:luc.demeyer@noviat.com">luc.demeyer@noviat.com</a>></li>
|
||||
<li>Benjamin Willig <<a class="reference external" href="mailto:benjamin.willig@acsone.eu">benjamin.willig@acsone.eu</a>></li>
|
||||
<li>Martronic SA <<a class="reference external" href="mailto:info@martronic.ch">info@martronic.ch</a>></li>
|
||||
<li>nicomacr <<a class="reference external" href="mailto:nmr@adhoc.com.ar">nmr@adhoc.com.ar</a>></li>
|
||||
<li>Juan Jose Scarafia <<a class="reference external" href="mailto:jjs@adhoc.com.ar">jjs@adhoc.com.ar</a>></li>
|
||||
<li>Richard deMeester <<a class="reference external" href="mailto:richard@willowit.com.au">richard@willowit.com.au</a>></li>
|
||||
<li>Eric Caudal <<a class="reference external" href="mailto:eric.caudal@elico-corp.com">eric.caudal@elico-corp.com</a>></li>
|
||||
<li>Andrea Stirpe <<a class="reference external" href="mailto:a.stirpe@onestein.nl">a.stirpe@onestein.nl</a>></li>
|
||||
<li>Maxence Groine <<a class="reference external" href="mailto:mgroine@fiefmanage.ch">mgroine@fiefmanage.ch</a>></li>
|
||||
<li>Arnaud Pineux <<a class="reference external" href="mailto:arnaud.pineux@acsone.eu">arnaud.pineux@acsone.eu</a>></li>
|
||||
<li>Ernesto Tejeda <<a class="reference external" href="mailto:ernesto.tejeda@tecnativa.com">ernesto.tejeda@tecnativa.com</a>></li>
|
||||
<li>Pedro M. Baeza <<a class="reference external" href="mailto:pedro.baeza@tecnativa.com">pedro.baeza@tecnativa.com</a>></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="maintainers">
|
||||
<h2><a class="toc-backref" href="#id99">Maintainers</a></h2>
|
||||
<p>This module is maintained by the OCA.</p>
|
||||
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
|
||||
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||
mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.</p>
|
||||
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
|
||||
<p><a class="reference external" href="https://github.com/sbidoul"><img alt="sbidoul" src="https://github.com/sbidoul.png?size=40px" /></a></p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/mis-builder/tree/13.0/mis_builder">OCA/mis-builder</a> project on GitHub.</p>
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,29 @@
|
|||
.o_web_client .mis_builder_amount {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.o_web_client .mis_builder_collabel {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.o_web_client .mis_builder_rowlabel {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.o_web_client .mis_builder a {
|
||||
/* we don't want the link color, to respect user styles */
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.o_web_client .mis_builder a:hover {
|
||||
/* underline links on hover to give a visual cue */
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.oe_mis_builder_content {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.oe_mis_builder_analytic_filter_box {
|
||||
padding-bottom: 10px;
|
||||
}
|
|
@ -0,0 +1,46 @@
|
|||
.mis_table {
|
||||
display: table;
|
||||
width: 100%;
|
||||
table-layout: fixed;
|
||||
}
|
||||
.mis_row {
|
||||
display: table-row;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
.mis_cell {
|
||||
display: table-cell;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
.mis_thead {
|
||||
display: table-header-group;
|
||||
}
|
||||
.mis_tbody {
|
||||
display: table-row-group;
|
||||
}
|
||||
.mis_table,
|
||||
.mis_table .mis_row {
|
||||
border-left: 0px;
|
||||
border-right: 0px;
|
||||
text-align: left;
|
||||
padding-right: 3px;
|
||||
padding-left: 3px;
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
.mis_table .mis_row {
|
||||
border-color: grey;
|
||||
border-bottom: 1px solid lightGrey;
|
||||
}
|
||||
.mis_table .mis_cell.mis_collabel {
|
||||
font-weight: bold;
|
||||
background-color: #f0f0f0;
|
||||
text-align: center;
|
||||
}
|
||||
.mis_table .mis_cell.mis_rowlabel {
|
||||
text-align: left;
|
||||
/*white-space: nowrap;*/
|
||||
}
|
||||
.mis_table .mis_cell.mis_amount {
|
||||
text-align: right;
|
||||
}
|
|
@ -0,0 +1,406 @@
|
|||
/* Copyright 2014-2019 ACSONE SA/NV (<http://acsone.eu>)
|
||||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). */
|
||||
|
||||
flectra.define("mis_builder.widget", function (require) {
|
||||
"use strict";
|
||||
|
||||
var AbstractField = require("web.AbstractField");
|
||||
var StandaloneFieldManagerMixin = require("web.StandaloneFieldManagerMixin");
|
||||
var field_registry = require("web.field_registry");
|
||||
var relational_fields = require("web.relational_fields");
|
||||
var BasicModel = require("web.BasicModel");
|
||||
|
||||
var core = require("web.core");
|
||||
var session = require("web.session");
|
||||
|
||||
var _t = core._t;
|
||||
|
||||
var MisReportWidget = AbstractField.extend(StandaloneFieldManagerMixin, {
|
||||
template: "MisReportWidgetTemplate",
|
||||
|
||||
events: _.extend({}, AbstractField.prototype.events, {
|
||||
"click .mis_builder_drilldown": "drilldown",
|
||||
"click .oe_mis_builder_print": "printPdf",
|
||||
"click .oe_mis_builder_export": "exportXls",
|
||||
"click .oe_mis_builder_settings": "displaySettings",
|
||||
"click .oe_mis_builder_refresh": "refresh",
|
||||
}),
|
||||
|
||||
init: function () {
|
||||
var self = this;
|
||||
self._super.apply(self, arguments);
|
||||
StandaloneFieldManagerMixin.init.call(self);
|
||||
self.model = new BasicModel(self); // For FieldManagerMixin
|
||||
self.analytic_account_id_domain = []; // TODO unused for now
|
||||
self.analytic_account_id_label = _t("Analytic Account Filter");
|
||||
self.analytic_account_id_m2o = undefined; // Field widget
|
||||
self.analytic_tag_ids_domain = []; // TODO unused for now
|
||||
self.analytic_tag_ids_label = _t("Analytic Tags Filter");
|
||||
self.analytic_tag_ids_m2m = undefined; // Field widget
|
||||
self.mis_report_data = undefined;
|
||||
self.show_settings = false;
|
||||
self.has_group_analytic_accounting = false;
|
||||
self.has_group_analytic_tags = false;
|
||||
self.hide_analytic_filters = false;
|
||||
},
|
||||
|
||||
_getFilterValue: function (name) {
|
||||
var filters = this.getParent().state.context.mis_report_filters || {};
|
||||
var filter = filters[name] || {};
|
||||
return filter.value;
|
||||
},
|
||||
|
||||
_setFilterValue: function (name, value, operator) {
|
||||
var context = this.getParent().state.context;
|
||||
var filters = undefined;
|
||||
if (context.mis_report_filters === undefined) {
|
||||
filters = {};
|
||||
context.mis_report_filters = filters;
|
||||
} else {
|
||||
filters = context.mis_report_filters;
|
||||
}
|
||||
if (value === undefined) {
|
||||
filters[name] = {};
|
||||
return;
|
||||
}
|
||||
filters[name] = {
|
||||
value: value,
|
||||
operator: operator,
|
||||
};
|
||||
},
|
||||
|
||||
/**
|
||||
* Return the id of the mis.report.instance to which the widget is
|
||||
* bound.
|
||||
*
|
||||
* @returns int
|
||||
*/
|
||||
_instanceId: function () {
|
||||
if (this.value) {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
/*
|
||||
* This trick is needed because in a dashboard the view does
|
||||
* not seem to be bound to an instance: it seems to be a limitation
|
||||
* of Flectra dashboards that are not designed to contain forms but
|
||||
* rather tree views or charts.
|
||||
*/
|
||||
var context = this.getParent().state.context;
|
||||
if (context.active_model === "mis.report.instance") {
|
||||
return context.active_id;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Method called between @see init and @see start. Performs asynchronous
|
||||
* calls required by the rendering and the start method.
|
||||
*
|
||||
* @returns Promise
|
||||
*/
|
||||
willStart: function () {
|
||||
var self = this;
|
||||
var context = self.getParent().state.context;
|
||||
|
||||
var def1 = self
|
||||
._rpc({
|
||||
model: "mis.report.instance",
|
||||
method: "compute",
|
||||
args: [self._instanceId()],
|
||||
context: context,
|
||||
})
|
||||
.then(function (result) {
|
||||
self.mis_report_data = result;
|
||||
});
|
||||
|
||||
var def2 = session
|
||||
.user_has_group("account.group_account_user")
|
||||
.then(function (result) {
|
||||
self.show_settings = result;
|
||||
});
|
||||
|
||||
var def3 = session
|
||||
.user_has_group("analytic.group_analytic_accounting")
|
||||
.then(function (result) {
|
||||
self.has_group_analytic_accounting = result;
|
||||
});
|
||||
|
||||
var def4 = session
|
||||
.user_has_group("analytic.group_analytic_tags")
|
||||
.then(function (result) {
|
||||
self.has_group_analytic_tags = result;
|
||||
});
|
||||
|
||||
var def5 = self
|
||||
._rpc({
|
||||
model: "mis.report.instance",
|
||||
method: "read",
|
||||
args: [self._instanceId(), ["hide_analytic_filters"]],
|
||||
context: context,
|
||||
})
|
||||
.then(function (result) {
|
||||
self.hide_analytic_filters = result[0].hide_analytic_filters;
|
||||
});
|
||||
|
||||
return $.when(
|
||||
this._super.apply(this, arguments),
|
||||
def1,
|
||||
def2,
|
||||
def3,
|
||||
def4,
|
||||
def5
|
||||
);
|
||||
},
|
||||
|
||||
start: function () {
|
||||
var self = this;
|
||||
self._super.apply(self, arguments);
|
||||
self._addAnalyticFilters();
|
||||
},
|
||||
|
||||
/**
|
||||
* Create list of field descriptors to be provided
|
||||
* to BasicModel.makeRecord.
|
||||
*
|
||||
* @returns list of objects
|
||||
*/
|
||||
_getFilterFields: function () {
|
||||
var self = this;
|
||||
var fields = [];
|
||||
if (self.has_group_analytic_accounting) {
|
||||
fields.push({
|
||||
relation: "account.analytic.account",
|
||||
type: "many2one",
|
||||
name: "filter_analytic_account_id",
|
||||
value: self._getFilterValue("analytic_account_id"),
|
||||
});
|
||||
}
|
||||
if (self.has_group_analytic_tags) {
|
||||
fields.push({
|
||||
relation: "account.analytic.tag",
|
||||
type: "many2many",
|
||||
name: "filter_analytic_tag_ids",
|
||||
value: self._getFilterValue("analytic_tag_ids"),
|
||||
});
|
||||
}
|
||||
return fields;
|
||||
},
|
||||
|
||||
/**
|
||||
* Create fieldInfo structure to be provided
|
||||
* to BasicModel.makeRecord.
|
||||
*
|
||||
* @returns object
|
||||
*/
|
||||
_getFilterFieldInfo: function () {
|
||||
return {};
|
||||
},
|
||||
|
||||
/**
|
||||
* Create analytic filter widgets and add them in the filter box.
|
||||
*
|
||||
* @param {Object} record @see BasicModel.makeRecord
|
||||
*/
|
||||
_makeFilterFieldWidgets: function (record) {
|
||||
var self = this;
|
||||
|
||||
if (self.has_group_analytic_accounting) {
|
||||
self.analytic_account_id_m2o = new relational_fields.FieldMany2One(
|
||||
self,
|
||||
"filter_analytic_account_id",
|
||||
record,
|
||||
{
|
||||
mode: "edit",
|
||||
attrs: {
|
||||
placeholder: self.analytic_account_id_label,
|
||||
options: {
|
||||
no_create: "True",
|
||||
no_open: "True",
|
||||
},
|
||||
},
|
||||
}
|
||||
);
|
||||
self._registerWidget(
|
||||
record.id,
|
||||
self.analytic_account_id_m2o.name,
|
||||
self.analytic_account_id_m2o
|
||||
);
|
||||
self.analytic_account_id_m2o.appendTo(self.getMisBuilderFilterBox());
|
||||
}
|
||||
|
||||
if (self.has_group_analytic_tags) {
|
||||
self.analytic_tag_ids_m2m = new relational_fields.FieldMany2ManyTags(
|
||||
self,
|
||||
"filter_analytic_tag_ids",
|
||||
record,
|
||||
{
|
||||
mode: "edit",
|
||||
attrs: {
|
||||
placeholder: self.analytic_tag_ids_label,
|
||||
options: {
|
||||
no_create: "True",
|
||||
no_open: "True",
|
||||
},
|
||||
},
|
||||
}
|
||||
);
|
||||
self._registerWidget(
|
||||
record.id,
|
||||
self.analytic_tag_ids_m2m.name,
|
||||
self.analytic_tag_ids_m2m
|
||||
);
|
||||
self.analytic_tag_ids_m2m.appendTo(self.getMisBuilderFilterBox());
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Hack to work around Flectra not fetching display name for
|
||||
* x2many used with makeRecord.
|
||||
*
|
||||
* @returns a list of deferred
|
||||
* to be awaited before creating the widgets.
|
||||
*
|
||||
* @param {Object} record @see BasicModel.makeRecord
|
||||
*/
|
||||
_beforeCreateWidgets: function (record) {
|
||||
var self = this;
|
||||
var defs = [];
|
||||
|
||||
if (self.has_group_analytic_tags) {
|
||||
var dataPoint = record.data.filter_analytic_tag_ids;
|
||||
dataPoint.fieldsInfo.default.display_name = {};
|
||||
defs.push(self.model.reload(dataPoint.id));
|
||||
}
|
||||
|
||||
return defs;
|
||||
},
|
||||
|
||||
/**
|
||||
* Populate the analytic filters box.
|
||||
* This method is not meant to be overridden.
|
||||
*/
|
||||
_addAnalyticFilters: function () {
|
||||
var self = this;
|
||||
if (self.hide_analytic_filters) {
|
||||
return;
|
||||
}
|
||||
self.model
|
||||
.makeRecord(
|
||||
"dummy.model",
|
||||
self._getFilterFields(),
|
||||
self._getFilterFieldInfo()
|
||||
)
|
||||
.then(function (recordId) {
|
||||
var record = self.model.get(recordId);
|
||||
var defs = self._beforeCreateWidgets(record);
|
||||
$.when.apply($, defs).then(function () {
|
||||
record = self.model.get(record.id);
|
||||
self._makeFilterFieldWidgets(record);
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
_confirmChange: function () {
|
||||
var self = this;
|
||||
var result = StandaloneFieldManagerMixin._confirmChange.apply(
|
||||
self,
|
||||
arguments
|
||||
);
|
||||
|
||||
if (self.analytic_account_id_m2o !== undefined) {
|
||||
if (self.analytic_account_id_m2o.value) {
|
||||
self._setFilterValue(
|
||||
"analytic_account_id",
|
||||
self.analytic_account_id_m2o.value.res_id,
|
||||
"="
|
||||
);
|
||||
} else {
|
||||
self._setFilterValue("analytic_account_id", undefined);
|
||||
}
|
||||
}
|
||||
|
||||
if (self.analytic_tag_ids_m2m !== undefined) {
|
||||
if (
|
||||
self.analytic_tag_ids_m2m.value &&
|
||||
self.analytic_tag_ids_m2m.value.res_ids.length > 0
|
||||
) {
|
||||
self._setFilterValue(
|
||||
"analytic_tag_ids",
|
||||
self.analytic_tag_ids_m2m.value.res_ids,
|
||||
"all"
|
||||
);
|
||||
} else {
|
||||
self._setFilterValue("analytic_tag_ids", undefined);
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
},
|
||||
|
||||
refresh: function () {
|
||||
this.replace();
|
||||
},
|
||||
|
||||
printPdf: function () {
|
||||
var self = this;
|
||||
var context = self.getParent().state.context;
|
||||
this._rpc({
|
||||
model: "mis.report.instance",
|
||||
method: "print_pdf",
|
||||
args: [this._instanceId()],
|
||||
context: context,
|
||||
}).then(function (result) {
|
||||
self.do_action(result);
|
||||
});
|
||||
},
|
||||
|
||||
exportXls: function () {
|
||||
var self = this;
|
||||
var context = self.getParent().state.context;
|
||||
this._rpc({
|
||||
model: "mis.report.instance",
|
||||
method: "export_xls",
|
||||
args: [this._instanceId()],
|
||||
context: context,
|
||||
}).then(function (result) {
|
||||
self.do_action(result);
|
||||
});
|
||||
},
|
||||
|
||||
displaySettings: function () {
|
||||
var self = this;
|
||||
var context = self.getParent().state.context;
|
||||
this._rpc({
|
||||
model: "mis.report.instance",
|
||||
method: "display_settings",
|
||||
args: [this._instanceId()],
|
||||
context: context,
|
||||
}).then(function (result) {
|
||||
self.do_action(result);
|
||||
});
|
||||
},
|
||||
|
||||
drilldown: function (event) {
|
||||
var self = this;
|
||||
var context = self.getParent().state.context;
|
||||
var drilldown = $(event.target).data("drilldown");
|
||||
this._rpc({
|
||||
model: "mis.report.instance",
|
||||
method: "drilldown",
|
||||
args: [this._instanceId(), drilldown],
|
||||
context: context,
|
||||
}).then(function (result) {
|
||||
self.do_action(result);
|
||||
});
|
||||
},
|
||||
|
||||
getMisBuilderFilterBox: function () {
|
||||
var self = this;
|
||||
return self.$(".oe_mis_builder_analytic_filter_box");
|
||||
},
|
||||
});
|
||||
|
||||
field_registry.add("mis_report_widget", MisReportWidget);
|
||||
|
||||
return MisReportWidget;
|
||||
});
|
|
@ -0,0 +1,98 @@
|
|||
<template>
|
||||
<t t-name="MisReportWidgetTemplate">
|
||||
<div class="oe_mis_builder_content">
|
||||
<t t-if="widget.mis_report_data">
|
||||
<h2 t-if="widget.mis_report_data.report_name">
|
||||
<t t-esc="widget.mis_report_data.report_name" />
|
||||
</h2>
|
||||
<div>
|
||||
<div
|
||||
class="oe_mis_builder_analytic_filter_box oe_left o_form_view o_form_editable"
|
||||
style="position: relative; display: inline-block;"
|
||||
/>
|
||||
<div class="oe_mis_builder_buttons oe_right oe_button_box">
|
||||
<button class="oe_mis_builder_refresh btn btn-sm oe_button">
|
||||
<span class="fa fa-refresh" />
|
||||
Refresh
|
||||
</button>
|
||||
<button class="oe_mis_builder_print btn btn-sm oe_button">
|
||||
<span class="fa fa-print" />
|
||||
Print
|
||||
</button>
|
||||
<button class="oe_mis_builder_export btn btn-sm oe_button">
|
||||
<span class="fa fa-download" />
|
||||
Export
|
||||
</button>
|
||||
<button
|
||||
t-if="widget.show_settings"
|
||||
class="oe_mis_builder_settings btn btn-sm oe_button"
|
||||
>
|
||||
<span class="fa fa-cog" />
|
||||
Settings
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<table
|
||||
class="oe_list_content o_list_view table table-condensed table-striped mis_builder"
|
||||
>
|
||||
<thead>
|
||||
<tr
|
||||
t-foreach="widget.mis_report_data.header"
|
||||
t-as="row"
|
||||
class="oe_list_header_columns"
|
||||
>
|
||||
<th class="oe_list_header_char">
|
||||
|
||||
</th>
|
||||
<th
|
||||
t-foreach="row.cols"
|
||||
t-as="col"
|
||||
class="oe_list_header_char mis_builder_collabel"
|
||||
t-att-colspan="col.colspan"
|
||||
>
|
||||
<t t-esc="col.label" />
|
||||
<t t-if="col.description">
|
||||
<br />
|
||||
<t t-esc="col.description" />
|
||||
</t>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr t-foreach="widget.mis_report_data.body" t-as="row">
|
||||
<td t-att="{'style': row.style}">
|
||||
<t t-esc="row.label" />
|
||||
<t t-if="row.description">
|
||||
<br />
|
||||
<t t-esc="row.description" />
|
||||
</t>
|
||||
</td>
|
||||
<td
|
||||
t-foreach="row.cells"
|
||||
t-as="cell"
|
||||
t-att="{'style': cell.style, 'title': cell.val_c}"
|
||||
class="mis_builder_amount"
|
||||
>
|
||||
<t t-if="cell.drilldown_arg">
|
||||
<a
|
||||
href="javascript:void(0)"
|
||||
class="mis_builder_drilldown"
|
||||
t-att-data-drilldown="JSON.stringify(cell.drilldown_arg)"
|
||||
>
|
||||
<t t-esc="cell.val_r" />
|
||||
</a>
|
||||
</t>
|
||||
<t t-if="!cell.drilldown_arg">
|
||||
<t t-esc="cell.val_r" />
|
||||
</t>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr />
|
||||
</tfoot>
|
||||
</table>
|
||||
</t>
|
||||
</div>
|
||||
</t>
|
||||
</template>
|
|
@ -0,0 +1,16 @@
|
|||
# Copyright 2014 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from . import test_accounting_none
|
||||
from . import test_analytic_filters
|
||||
from . import test_aep
|
||||
from . import test_multi_company_aep
|
||||
from . import test_aggregate
|
||||
from . import test_data_sources
|
||||
from . import test_kpi_data
|
||||
from . import test_mis_report_instance
|
||||
from . import test_mis_safe_eval
|
||||
from . import test_period_dates
|
||||
from . import test_render
|
||||
from . import test_simple_array
|
||||
from . import test_utc_midnight
|
|
@ -0,0 +1,80 @@
|
|||
# Copyright 2017 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
import doctest
|
||||
|
||||
from flectra.tests import BaseCase, tagged
|
||||
|
||||
|
||||
def setup_test_model(env, model_cls):
|
||||
model_cls._build_model(env.registry, env.cr)
|
||||
env.registry.setup_models(env.cr)
|
||||
env.registry.init_models(
|
||||
env.cr, [model_cls._name], dict(env.context, update_custom_fields=True)
|
||||
)
|
||||
|
||||
|
||||
def teardown_test_model(env, model_cls):
|
||||
del env.registry.models[model_cls._name]
|
||||
env.registry.setup_models(env.cr)
|
||||
|
||||
|
||||
def _zip(iter1, iter2):
|
||||
i = 0
|
||||
iter1 = iter(iter1)
|
||||
iter2 = iter(iter2)
|
||||
while True:
|
||||
i1 = next(iter1, None)
|
||||
i2 = next(iter2, None)
|
||||
if i1 is None and i2 is None:
|
||||
return
|
||||
yield i, i1, i2
|
||||
i += 1
|
||||
|
||||
|
||||
def assert_matrix(matrix, expected):
|
||||
for i, row, expected_row in _zip(matrix.iter_rows(), expected):
|
||||
if row is None and expected_row is not None:
|
||||
raise AssertionError("not enough rows")
|
||||
if row is not None and expected_row is None:
|
||||
raise AssertionError("too many rows")
|
||||
for j, cell, expected_val in _zip(row.iter_cells(), expected_row):
|
||||
assert (
|
||||
cell and cell.val
|
||||
) == expected_val, "{} != {} in row {} col {}".format(
|
||||
cell and cell.val, expected_val, i, j
|
||||
)
|
||||
|
||||
|
||||
@tagged("doctest")
|
||||
class FlectraDocTestCase(BaseCase):
|
||||
"""
|
||||
We need a custom DocTestCase class in order to:
|
||||
- define test_tags to run as part of standard tests
|
||||
- output a more meaningful test name than default "DocTestCase.runTest"
|
||||
"""
|
||||
|
||||
__qualname__ = "doctests for "
|
||||
|
||||
def __init__(self, test):
|
||||
self.__test = test
|
||||
self.__name = test._dt_test.name
|
||||
super().__init__(self.__name)
|
||||
|
||||
def __getattr__(self, item):
|
||||
if item == self.__name:
|
||||
return self.__test
|
||||
|
||||
|
||||
def load_doctests(module):
|
||||
"""
|
||||
Generates a tests loading method for the doctests of the given module
|
||||
https://docs.python.org/3/library/unittest.html#load-tests-protocol
|
||||
"""
|
||||
|
||||
def load_tests(loader, tests, ignore):
|
||||
for test in doctest.DocTestSuite(module):
|
||||
tests.addTest(FlectraDocTestCase(test))
|
||||
return tests
|
||||
|
||||
return load_tests
|
|
@ -0,0 +1,8 @@
|
|||
# Copyright 2014 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
|
||||
from ..models import accounting_none
|
||||
from .common import load_doctests
|
||||
|
||||
load_tests = load_doctests(accounting_none)
|
|
@ -0,0 +1,416 @@
|
|||
# Copyright 2014 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
import datetime
|
||||
import time
|
||||
|
||||
import flectra.tests.common as common
|
||||
from flectra import fields
|
||||
from flectra.tools.safe_eval import safe_eval
|
||||
|
||||
from ..models.accounting_none import AccountingNone
|
||||
from ..models.aep import AccountingExpressionProcessor as AEP, _is_domain
|
||||
|
||||
|
||||
class TestAEP(common.TransactionCase):
|
||||
def setUp(self):
|
||||
super(TestAEP, self).setUp()
|
||||
self.res_company = self.env["res.company"]
|
||||
self.account_model = self.env["account.account"]
|
||||
self.move_model = self.env["account.move"]
|
||||
self.journal_model = self.env["account.journal"]
|
||||
self.curr_year = datetime.date.today().year
|
||||
self.prev_year = self.curr_year - 1
|
||||
# create company
|
||||
self.company = self.res_company.create({"name": "AEP Company"})
|
||||
# create receivable bs account
|
||||
type_ar = self.browse_ref("account.data_account_type_receivable")
|
||||
self.account_ar = self.account_model.create(
|
||||
{
|
||||
"company_id": self.company.id,
|
||||
"code": "400AR",
|
||||
"name": "Receivable",
|
||||
"user_type_id": type_ar.id,
|
||||
"reconcile": True,
|
||||
}
|
||||
)
|
||||
# create income pl account
|
||||
type_in = self.browse_ref("account.data_account_type_revenue")
|
||||
self.account_in = self.account_model.create(
|
||||
{
|
||||
"company_id": self.company.id,
|
||||
"code": "700IN",
|
||||
"name": "Income",
|
||||
"user_type_id": type_in.id,
|
||||
}
|
||||
)
|
||||
# create journal
|
||||
self.journal = self.journal_model.create(
|
||||
{
|
||||
"company_id": self.company.id,
|
||||
"name": "Sale journal",
|
||||
"code": "VEN",
|
||||
"type": "sale",
|
||||
}
|
||||
)
|
||||
# create move in December last year
|
||||
self._create_move(
|
||||
date=datetime.date(self.prev_year, 12, 1),
|
||||
amount=100,
|
||||
debit_acc=self.account_ar,
|
||||
credit_acc=self.account_in,
|
||||
)
|
||||
# create move in January this year
|
||||
self._create_move(
|
||||
date=datetime.date(self.curr_year, 1, 1),
|
||||
amount=300,
|
||||
debit_acc=self.account_ar,
|
||||
credit_acc=self.account_in,
|
||||
)
|
||||
# create move in March this year
|
||||
self._create_move(
|
||||
date=datetime.date(self.curr_year, 3, 1),
|
||||
amount=500,
|
||||
debit_acc=self.account_ar,
|
||||
credit_acc=self.account_in,
|
||||
)
|
||||
# create the AEP, and prepare the expressions we'll need
|
||||
self.aep = AEP(self.company)
|
||||
self.aep.parse_expr("bali[]")
|
||||
self.aep.parse_expr("bale[]")
|
||||
self.aep.parse_expr("balp[]")
|
||||
self.aep.parse_expr("balu[]")
|
||||
self.aep.parse_expr("bali[700IN]")
|
||||
self.aep.parse_expr("bale[700IN]")
|
||||
self.aep.parse_expr("balp[700IN]")
|
||||
self.aep.parse_expr("bali[400AR]")
|
||||
self.aep.parse_expr("bale[400AR]")
|
||||
self.aep.parse_expr("balp[400AR]")
|
||||
self.aep.parse_expr("debp[400A%]")
|
||||
self.aep.parse_expr("crdp[700I%]")
|
||||
self.aep.parse_expr("bali[400%]")
|
||||
self.aep.parse_expr("bale[700%]")
|
||||
self.aep.parse_expr("balp[]" "[('account_id.code', '=', '400AR')]")
|
||||
self.aep.parse_expr(
|
||||
"balp[]"
|
||||
"[('account_id.user_type_id', '=', "
|
||||
" ref('account.data_account_type_receivable').id)]"
|
||||
)
|
||||
self.aep.parse_expr(
|
||||
"balp[('user_type_id', '=', "
|
||||
" ref('account.data_account_type_receivable').id)]"
|
||||
)
|
||||
self.aep.parse_expr(
|
||||
"balp['&', "
|
||||
" ('user_type_id', '=', "
|
||||
" ref('account.data_account_type_receivable').id), "
|
||||
" ('code', '=', '400AR')]"
|
||||
)
|
||||
self.aep.parse_expr("bal_700IN") # deprecated
|
||||
self.aep.parse_expr("bals[700IN]") # deprecated
|
||||
|
||||
def _create_move(self, date, amount, debit_acc, credit_acc, post=True):
|
||||
move = self.move_model.create(
|
||||
{
|
||||
"journal_id": self.journal.id,
|
||||
"date": fields.Date.to_string(date),
|
||||
"line_ids": [
|
||||
(0, 0, {"name": "/", "debit": amount, "account_id": debit_acc.id}),
|
||||
(
|
||||
0,
|
||||
0,
|
||||
{"name": "/", "credit": amount, "account_id": credit_acc.id},
|
||||
),
|
||||
],
|
||||
}
|
||||
)
|
||||
if post:
|
||||
move.post()
|
||||
return move
|
||||
|
||||
def _do_queries(self, date_from, date_to):
|
||||
self.aep.do_queries(
|
||||
date_from=fields.Date.to_string(date_from),
|
||||
date_to=fields.Date.to_string(date_to),
|
||||
target_move="posted",
|
||||
)
|
||||
|
||||
def _eval(self, expr):
|
||||
eval_dict = {"AccountingNone": AccountingNone}
|
||||
return safe_eval(self.aep.replace_expr(expr), eval_dict)
|
||||
|
||||
def _eval_by_account_id(self, expr):
|
||||
res = {}
|
||||
eval_dict = {"AccountingNone": AccountingNone}
|
||||
for account_id, replaced_exprs in self.aep.replace_exprs_by_account_id([expr]):
|
||||
res[account_id] = safe_eval(replaced_exprs[0], eval_dict)
|
||||
return res
|
||||
|
||||
def test_sanity_check(self):
|
||||
self.assertEquals(self.company.fiscalyear_last_day, 31)
|
||||
self.assertEquals(self.company.fiscalyear_last_month, "12")
|
||||
|
||||
def test_aep_basic(self):
|
||||
self.aep.done_parsing()
|
||||
# let's query for december
|
||||
self._do_queries(
|
||||
datetime.date(self.prev_year, 12, 1), datetime.date(self.prev_year, 12, 31)
|
||||
)
|
||||
# initial balance must be None
|
||||
self.assertIs(self._eval("bali[400AR]"), AccountingNone)
|
||||
self.assertIs(self._eval("bali[700IN]"), AccountingNone)
|
||||
# check variation
|
||||
self.assertEquals(self._eval("balp[400AR]"), 100)
|
||||
self.assertEquals(self._eval("balp[][('account_id.code', '=', '400AR')]"), 100)
|
||||
self.assertEquals(
|
||||
self._eval(
|
||||
"balp[]"
|
||||
"[('account_id.user_type_id', '=', "
|
||||
" ref('account.data_account_type_receivable').id)]"
|
||||
),
|
||||
100,
|
||||
)
|
||||
self.assertEquals(
|
||||
self._eval(
|
||||
"balp[('user_type_id', '=', "
|
||||
" ref('account.data_account_type_receivable').id)]"
|
||||
),
|
||||
100,
|
||||
)
|
||||
self.assertEquals(
|
||||
self._eval(
|
||||
"balp['&', "
|
||||
" ('user_type_id', '=', "
|
||||
" ref('account.data_account_type_receivable').id), "
|
||||
" ('code', '=', '400AR')]"
|
||||
),
|
||||
100,
|
||||
)
|
||||
self.assertEquals(self._eval("balp[700IN]"), -100)
|
||||
# check ending balance
|
||||
self.assertEquals(self._eval("bale[400AR]"), 100)
|
||||
self.assertEquals(self._eval("bale[700IN]"), -100)
|
||||
|
||||
# let's query for January
|
||||
self._do_queries(
|
||||
datetime.date(self.curr_year, 1, 1), datetime.date(self.curr_year, 1, 31)
|
||||
)
|
||||
# initial balance is None for income account (it's not carried over)
|
||||
self.assertEquals(self._eval("bali[400AR]"), 100)
|
||||
self.assertIs(self._eval("bali[700IN]"), AccountingNone)
|
||||
# check variation
|
||||
self.assertEquals(self._eval("balp[400AR]"), 300)
|
||||
self.assertEquals(self._eval("balp[700IN]"), -300)
|
||||
# check ending balance
|
||||
self.assertEquals(self._eval("bale[400AR]"), 400)
|
||||
self.assertEquals(self._eval("bale[700IN]"), -300)
|
||||
|
||||
# let's query for March
|
||||
self._do_queries(
|
||||
datetime.date(self.curr_year, 3, 1), datetime.date(self.curr_year, 3, 31)
|
||||
)
|
||||
# initial balance is the ending balance fo January
|
||||
self.assertEquals(self._eval("bali[400AR]"), 400)
|
||||
self.assertEquals(self._eval("bali[700IN]"), -300)
|
||||
self.assertEquals(self._eval("pbali[400AR]"), 400)
|
||||
self.assertEquals(self._eval("nbali[400AR]"), 0)
|
||||
self.assertEquals(self._eval("nbali[700IN]"), -300)
|
||||
self.assertEquals(self._eval("pbali[700IN]"), 0)
|
||||
# check variation
|
||||
self.assertEquals(self._eval("balp[400AR]"), 500)
|
||||
self.assertEquals(self._eval("balp[700IN]"), -500)
|
||||
self.assertEquals(self._eval("nbalp[400AR]"), 0)
|
||||
self.assertEquals(self._eval("pbalp[400AR]"), 500)
|
||||
self.assertEquals(self._eval("nbalp[700IN]"), -500)
|
||||
self.assertEquals(self._eval("pbalp[700IN]"), 0)
|
||||
# check ending balance
|
||||
self.assertEquals(self._eval("bale[400AR]"), 900)
|
||||
self.assertEquals(self._eval("nbale[400AR]"), 0)
|
||||
self.assertEquals(self._eval("pbale[400AR]"), 900)
|
||||
self.assertEquals(self._eval("bale[700IN]"), -800)
|
||||
self.assertEquals(self._eval("nbale[700IN]"), -800)
|
||||
self.assertEquals(self._eval("pbale[700IN]"), 0)
|
||||
# check some variant expressions, for coverage
|
||||
self.assertEquals(self._eval("crdp[700I%]"), 500)
|
||||
self.assertEquals(self._eval("debp[400A%]"), 500)
|
||||
self.assertEquals(self._eval("bal_700IN"), -500)
|
||||
self.assertEquals(self._eval("bals[700IN]"), -800)
|
||||
|
||||
# unallocated p&l from previous year
|
||||
self.assertEquals(self._eval("balu[]"), -100)
|
||||
|
||||
# TODO allocate profits, and then...
|
||||
|
||||
def test_aep_by_account(self):
|
||||
self.aep.done_parsing()
|
||||
self._do_queries(
|
||||
datetime.date(self.curr_year, 3, 1), datetime.date(self.curr_year, 3, 31)
|
||||
)
|
||||
variation = self._eval_by_account_id("balp[]")
|
||||
self.assertEquals(
|
||||
variation, {self.account_ar.id: 500, self.account_in.id: -500}
|
||||
)
|
||||
variation = self._eval_by_account_id("pbalp[]")
|
||||
self.assertEquals(
|
||||
variation, {self.account_ar.id: 500, self.account_in.id: AccountingNone}
|
||||
)
|
||||
variation = self._eval_by_account_id("nbalp[]")
|
||||
self.assertEquals(
|
||||
variation, {self.account_ar.id: AccountingNone, self.account_in.id: -500}
|
||||
)
|
||||
variation = self._eval_by_account_id("balp[700IN]")
|
||||
self.assertEquals(variation, {self.account_in.id: -500})
|
||||
variation = self._eval_by_account_id("crdp[700IN] - debp[400AR]")
|
||||
self.assertEquals(
|
||||
variation, {self.account_ar.id: -500, self.account_in.id: 500}
|
||||
)
|
||||
end = self._eval_by_account_id("bale[]")
|
||||
self.assertEquals(end, {self.account_ar.id: 900, self.account_in.id: -800})
|
||||
|
||||
def test_aep_convenience_methods(self):
|
||||
initial = AEP.get_balances_initial(
|
||||
self.company, time.strftime("%Y") + "-03-01", "posted"
|
||||
)
|
||||
self.assertEquals(
|
||||
initial, {self.account_ar.id: (400, 0), self.account_in.id: (0, 300)}
|
||||
)
|
||||
variation = AEP.get_balances_variation(
|
||||
self.company,
|
||||
time.strftime("%Y") + "-03-01",
|
||||
time.strftime("%Y") + "-03-31",
|
||||
"posted",
|
||||
)
|
||||
self.assertEquals(
|
||||
variation, {self.account_ar.id: (500, 0), self.account_in.id: (0, 500)}
|
||||
)
|
||||
end = AEP.get_balances_end(
|
||||
self.company, time.strftime("%Y") + "-03-31", "posted"
|
||||
)
|
||||
self.assertEquals(
|
||||
end, {self.account_ar.id: (900, 0), self.account_in.id: (0, 800)}
|
||||
)
|
||||
unallocated = AEP.get_unallocated_pl(
|
||||
self.company, time.strftime("%Y") + "-03-15", "posted"
|
||||
)
|
||||
self.assertEquals(unallocated, (0, 100))
|
||||
|
||||
def test_float_is_zero(self):
|
||||
dp = self.company.currency_id.decimal_places
|
||||
self.assertEqual(dp, 2)
|
||||
# make initial balance at Jan 1st equal to 0.01
|
||||
self._create_move(
|
||||
date=datetime.date(self.prev_year, 12, 1),
|
||||
amount=100.01,
|
||||
debit_acc=self.account_in,
|
||||
credit_acc=self.account_ar,
|
||||
)
|
||||
initial = AEP.get_balances_initial(
|
||||
self.company, time.strftime("%Y") + "-01-01", "posted"
|
||||
)
|
||||
self.assertEquals(initial, {self.account_ar.id: (100.00, 100.01)})
|
||||
# make initial balance at Jan 1st equal to 0.001
|
||||
self._create_move(
|
||||
date=datetime.date(self.prev_year, 12, 1),
|
||||
amount=0.009,
|
||||
debit_acc=self.account_ar,
|
||||
credit_acc=self.account_in,
|
||||
)
|
||||
initial = AEP.get_balances_initial(
|
||||
self.company, time.strftime("%Y") + "-01-01", "posted"
|
||||
)
|
||||
# epsilon initial balances is reported as empty
|
||||
self.assertEquals(initial, {})
|
||||
|
||||
def test_get_account_ids_for_expr(self):
|
||||
self.aep.done_parsing()
|
||||
expr = "balp[700IN]"
|
||||
account_ids = self.aep.get_account_ids_for_expr(expr)
|
||||
self.assertEquals(account_ids, {self.account_in.id})
|
||||
expr = "balp[700%]"
|
||||
account_ids = self.aep.get_account_ids_for_expr(expr)
|
||||
self.assertEquals(account_ids, {self.account_in.id})
|
||||
expr = "bali[400%], bale[700%]" # subkpis combined expression
|
||||
account_ids = self.aep.get_account_ids_for_expr(expr)
|
||||
self.assertEquals(account_ids, {self.account_in.id, self.account_ar.id})
|
||||
|
||||
def test_get_aml_domain_for_expr(self):
|
||||
self.aep.done_parsing()
|
||||
expr = "balp[700IN]"
|
||||
domain = self.aep.get_aml_domain_for_expr(
|
||||
expr, "2017-01-01", "2017-03-31", target_move="posted"
|
||||
)
|
||||
self.assertEqual(
|
||||
domain,
|
||||
[
|
||||
("account_id", "in", (self.account_in.id,)),
|
||||
"&",
|
||||
"&",
|
||||
("date", ">=", "2017-01-01"),
|
||||
("date", "<=", "2017-03-31"),
|
||||
("move_id.state", "=", "posted"),
|
||||
],
|
||||
)
|
||||
expr = "debi[700IN] - crdi[400AR]"
|
||||
domain = self.aep.get_aml_domain_for_expr(
|
||||
expr, "2017-02-01", "2017-03-31", target_move="draft"
|
||||
)
|
||||
self.assertEqual(
|
||||
domain,
|
||||
[
|
||||
"|",
|
||||
# debi[700IN]
|
||||
"&",
|
||||
("account_id", "in", (self.account_in.id,)),
|
||||
("debit", "<>", 0.0),
|
||||
# crdi[400AR]
|
||||
"&",
|
||||
("account_id", "in", (self.account_ar.id,)),
|
||||
("credit", "<>", 0.0),
|
||||
"&",
|
||||
# for P&L accounts, only after fy start
|
||||
"|",
|
||||
("date", ">=", "2017-01-01"),
|
||||
("account_id.user_type_id.include_initial_balance", "=", True),
|
||||
# everything must be before from_date for initial balance
|
||||
("date", "<", "2017-02-01"),
|
||||
],
|
||||
)
|
||||
|
||||
def test_is_domain(self):
|
||||
self.assertTrue(_is_domain("('a', '=' 1)"))
|
||||
self.assertTrue(_is_domain("'&', ('a', '=' 1), ('b', '=', 1)"))
|
||||
self.assertTrue(_is_domain("'|', ('a', '=' 1), ('b', '=', 1)"))
|
||||
self.assertTrue(_is_domain("'!', ('a', '=' 1), ('b', '=', 1)"))
|
||||
self.assertTrue(_is_domain("\"&\", ('a', '=' 1), ('b', '=', 1)"))
|
||||
self.assertTrue(_is_domain("\"|\", ('a', '=' 1), ('b', '=', 1)"))
|
||||
self.assertTrue(_is_domain("\"!\", ('a', '=' 1), ('b', '=', 1)"))
|
||||
self.assertFalse(_is_domain("123%"))
|
||||
self.assertFalse(_is_domain("123%,456"))
|
||||
self.assertFalse(_is_domain(""))
|
||||
|
||||
def test_inactive_tax(self):
|
||||
expr = 'balp[][("tax_ids.name", "=", "test tax")]'
|
||||
self.aep.parse_expr(expr)
|
||||
self.aep.done_parsing()
|
||||
|
||||
tax = self.env["account.tax"].create(
|
||||
dict(name="test tax", active=True, amount=0)
|
||||
)
|
||||
move = self._create_move(
|
||||
date=datetime.date(self.prev_year, 12, 1),
|
||||
amount=100,
|
||||
debit_acc=self.account_ar,
|
||||
credit_acc=self.account_in,
|
||||
post=False,
|
||||
)
|
||||
for ml in move.line_ids:
|
||||
if ml.credit:
|
||||
ml.write(dict(tax_ids=[(6, 0, [tax.id])]))
|
||||
tax.active = False
|
||||
move.post()
|
||||
# let's query for december 1st
|
||||
self._do_queries(
|
||||
datetime.date(self.prev_year, 12, 1), datetime.date(self.prev_year, 12, 1)
|
||||
)
|
||||
# let's see if there was a match
|
||||
self.assertEqual(self._eval(expr), -100)
|
|
@ -0,0 +1,7 @@
|
|||
# Copyright 2014 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from ..models import aggregate
|
||||
from .common import load_doctests
|
||||
|
||||
load_tests = load_doctests(aggregate)
|
|
@ -0,0 +1,65 @@
|
|||
# Copyright 2019 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from flectra.tests.common import TransactionCase
|
||||
|
||||
|
||||
class TestAnalyticFilters(TransactionCase):
|
||||
def test_context_with_filters(self):
|
||||
aaa = self.env["account.analytic.account"].search([], limit=1)
|
||||
mri = self.env["mis.report.instance"].new()
|
||||
mri.analytic_account_id = False
|
||||
assert mri._context_with_filters().get("mis_report_filters") == {}
|
||||
mri.analytic_account_id = aaa
|
||||
assert mri._context_with_filters().get("mis_report_filters") == {
|
||||
"analytic_account_id": {"value": aaa.id, "operator": "="}
|
||||
}
|
||||
# test _context_with_filters does nothing is a filter is already
|
||||
# in the context
|
||||
mri.with_context(mis_report_filters={"f": 1})._context_with_filters().get(
|
||||
"mis_report_filters"
|
||||
) == {"f": 1}
|
||||
|
||||
def _check_get_filter_domain_from_context(
|
||||
self, mis_report_filters, expected_domain
|
||||
):
|
||||
domain = (
|
||||
self.env["mis.report.instance.period"]
|
||||
.with_context(mis_report_filters=mis_report_filters)
|
||||
._get_filter_domain_from_context()
|
||||
)
|
||||
assert domain == expected_domain
|
||||
|
||||
def test_get_filter_domain_from_context_1(self):
|
||||
# no filter, no domain
|
||||
self._check_get_filter_domain_from_context({}, [])
|
||||
# the most basic analytic account filter (default operator is =)
|
||||
self._check_get_filter_domain_from_context(
|
||||
{"analytic_account_id": {"value": 1}}, [("analytic_account_id", "=", 1)]
|
||||
)
|
||||
# custom operator
|
||||
self._check_get_filter_domain_from_context(
|
||||
{"analytic_account_id": {"value": 1, "operator": "!="}},
|
||||
[("analytic_account_id", "!=", 1)],
|
||||
)
|
||||
# any field name works
|
||||
self._check_get_filter_domain_from_context(
|
||||
{"some_field": {"value": "x"}}, [("some_field", "=", "x")]
|
||||
)
|
||||
# filter name without value => no domain
|
||||
self._check_get_filter_domain_from_context({"some_field": None}, [])
|
||||
# "is not set" filter must work
|
||||
self._check_get_filter_domain_from_context(
|
||||
{"analytic_account_id": {"value": False}},
|
||||
[("analytic_account_id", "=", False)],
|
||||
)
|
||||
# Filter from analytic account filter widget
|
||||
self._check_get_filter_domain_from_context(
|
||||
{"analytic_account_id": {"value": 1, "operator": "all"}},
|
||||
[("analytic_account_id", "in", [1])],
|
||||
)
|
||||
# Filter from analytic tags filter widget
|
||||
self._check_get_filter_domain_from_context(
|
||||
{"analytic_tag_ids": {"value": [1, 2], "operator": "all"}},
|
||||
[("analytic_tag_ids", "in", [1]), ("analytic_tag_ids", "in", [2])],
|
||||
)
|
|
@ -0,0 +1,221 @@
|
|||
# Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
import flectra.tests.common as common
|
||||
|
||||
from ..models.accounting_none import AccountingNone
|
||||
from ..models.mis_report import CMP_DIFF
|
||||
from ..models.mis_report_instance import (
|
||||
MODE_NONE,
|
||||
SRC_ACTUALS_ALT,
|
||||
SRC_CMPCOL,
|
||||
SRC_SUMCOL,
|
||||
)
|
||||
from .common import assert_matrix
|
||||
|
||||
|
||||
class TestMisReportInstanceDataSources(common.TransactionCase):
|
||||
"""Test sum and comparison data source."""
|
||||
|
||||
def _create_move(self, date, amount, debit_acc, credit_acc):
|
||||
move = self.move_model.create(
|
||||
{
|
||||
"journal_id": self.journal.id,
|
||||
"date": date,
|
||||
"line_ids": [
|
||||
(0, 0, {"name": "/", "debit": amount, "account_id": debit_acc.id}),
|
||||
(
|
||||
0,
|
||||
0,
|
||||
{"name": "/", "credit": amount, "account_id": credit_acc.id},
|
||||
),
|
||||
],
|
||||
}
|
||||
)
|
||||
move.post()
|
||||
return move
|
||||
|
||||
def setUp(self):
|
||||
super(TestMisReportInstanceDataSources, self).setUp()
|
||||
self.account_model = self.env["account.account"]
|
||||
self.move_model = self.env["account.move"]
|
||||
self.journal_model = self.env["account.journal"]
|
||||
# create receivable bs account
|
||||
type_ar = self.browse_ref("account.data_account_type_receivable")
|
||||
self.account_ar = self.account_model.create(
|
||||
{
|
||||
"company_id": self.env.user.company_id.id,
|
||||
"code": "400AR",
|
||||
"name": "Receivable",
|
||||
"user_type_id": type_ar.id,
|
||||
"reconcile": True,
|
||||
}
|
||||
)
|
||||
# create income account
|
||||
type_in = self.browse_ref("account.data_account_type_revenue")
|
||||
self.account_in = self.account_model.create(
|
||||
{
|
||||
"company_id": self.env.user.company_id.id,
|
||||
"code": "700IN",
|
||||
"name": "Income",
|
||||
"user_type_id": type_in.id,
|
||||
}
|
||||
)
|
||||
self.account_in2 = self.account_model.create(
|
||||
{
|
||||
"company_id": self.env.user.company_id.id,
|
||||
"code": "700IN2",
|
||||
"name": "Income",
|
||||
"user_type_id": type_in.id,
|
||||
}
|
||||
)
|
||||
# create journal
|
||||
self.journal = self.journal_model.create(
|
||||
{
|
||||
"company_id": self.env.user.company_id.id,
|
||||
"name": "Sale journal",
|
||||
"code": "VEN",
|
||||
"type": "sale",
|
||||
}
|
||||
)
|
||||
# create move
|
||||
self._create_move(
|
||||
date="2017-01-01",
|
||||
amount=11,
|
||||
debit_acc=self.account_ar,
|
||||
credit_acc=self.account_in,
|
||||
)
|
||||
# create move
|
||||
self._create_move(
|
||||
date="2017-02-01",
|
||||
amount=13,
|
||||
debit_acc=self.account_ar,
|
||||
credit_acc=self.account_in,
|
||||
)
|
||||
self._create_move(
|
||||
date="2017-02-01",
|
||||
amount=17,
|
||||
debit_acc=self.account_ar,
|
||||
credit_acc=self.account_in2,
|
||||
)
|
||||
# create report
|
||||
self.report = self.env["mis.report"].create(dict(name="test report"))
|
||||
self.kpi1 = self.env["mis.report.kpi"].create(
|
||||
dict(
|
||||
report_id=self.report.id,
|
||||
name="k1",
|
||||
description="kpi 1",
|
||||
expression="-balp[700IN]",
|
||||
compare_method=CMP_DIFF,
|
||||
)
|
||||
)
|
||||
self.expr1 = self.kpi1.expression_ids[0]
|
||||
self.kpi2 = self.env["mis.report.kpi"].create(
|
||||
dict(
|
||||
report_id=self.report.id,
|
||||
name="k2",
|
||||
description="kpi 2",
|
||||
expression="-balp[700%]",
|
||||
compare_method=CMP_DIFF,
|
||||
auto_expand_accounts=True,
|
||||
)
|
||||
)
|
||||
self.instance = self.env["mis.report.instance"].create(
|
||||
dict(name="test instance", report_id=self.report.id, comparison_mode=True)
|
||||
)
|
||||
self.p1 = self.env["mis.report.instance.period"].create(
|
||||
dict(
|
||||
name="p1",
|
||||
report_instance_id=self.instance.id,
|
||||
manual_date_from="2017-01-01",
|
||||
manual_date_to="2017-01-31",
|
||||
)
|
||||
)
|
||||
self.p2 = self.env["mis.report.instance.period"].create(
|
||||
dict(
|
||||
name="p2",
|
||||
report_instance_id=self.instance.id,
|
||||
manual_date_from="2017-02-01",
|
||||
manual_date_to="2017-02-28",
|
||||
)
|
||||
)
|
||||
|
||||
def test_sum(self):
|
||||
self.psum = self.env["mis.report.instance.period"].create(
|
||||
dict(
|
||||
name="psum",
|
||||
report_instance_id=self.instance.id,
|
||||
mode=MODE_NONE,
|
||||
source=SRC_SUMCOL,
|
||||
source_sumcol_ids=[
|
||||
(0, 0, dict(period_to_sum_id=self.p1.id, sign="+")),
|
||||
(0, 0, dict(period_to_sum_id=self.p2.id, sign="+")),
|
||||
],
|
||||
)
|
||||
)
|
||||
matrix = self.instance._compute_matrix()
|
||||
# None in last col because account details are not summed by default
|
||||
assert_matrix(
|
||||
matrix,
|
||||
[
|
||||
[11, 13, 24],
|
||||
[11, 30, 41],
|
||||
[11, 13, AccountingNone],
|
||||
[AccountingNone, 17, AccountingNone],
|
||||
],
|
||||
)
|
||||
|
||||
def test_sum_diff(self):
|
||||
self.psum = self.env["mis.report.instance.period"].create(
|
||||
dict(
|
||||
name="psum",
|
||||
report_instance_id=self.instance.id,
|
||||
mode=MODE_NONE,
|
||||
source=SRC_SUMCOL,
|
||||
source_sumcol_ids=[
|
||||
(0, 0, dict(period_to_sum_id=self.p1.id, sign="+")),
|
||||
(0, 0, dict(period_to_sum_id=self.p2.id, sign="-")),
|
||||
],
|
||||
source_sumcol_accdet=True,
|
||||
)
|
||||
)
|
||||
matrix = self.instance._compute_matrix()
|
||||
assert_matrix(
|
||||
matrix,
|
||||
[[11, 13, -2], [11, 30, -19], [11, 13, -2], [AccountingNone, 17, -17]],
|
||||
)
|
||||
|
||||
def test_cmp(self):
|
||||
self.pcmp = self.env["mis.report.instance.period"].create(
|
||||
dict(
|
||||
name="pcmp",
|
||||
report_instance_id=self.instance.id,
|
||||
mode=MODE_NONE,
|
||||
source=SRC_CMPCOL,
|
||||
source_cmpcol_from_id=self.p1.id,
|
||||
source_cmpcol_to_id=self.p2.id,
|
||||
)
|
||||
)
|
||||
matrix = self.instance._compute_matrix()
|
||||
assert_matrix(
|
||||
matrix, [[11, 13, 2], [11, 30, 19], [11, 13, 2], [AccountingNone, 17, 17]]
|
||||
)
|
||||
|
||||
def test_actuals(self):
|
||||
matrix = self.instance._compute_matrix()
|
||||
assert_matrix(matrix, [[11, 13], [11, 30], [11, 13], [AccountingNone, 17]])
|
||||
|
||||
def test_actuals_disable_auto_expand_accounts(self):
|
||||
self.instance.no_auto_expand_accounts = True
|
||||
matrix = self.instance._compute_matrix()
|
||||
assert_matrix(matrix, [[11, 13], [11, 30]])
|
||||
|
||||
def test_actuals_alt(self):
|
||||
aml_model = self.env["ir.model"].search([("name", "=", "account.move.line")])
|
||||
self.kpi2.auto_expand_accounts = False
|
||||
self.p1.source = SRC_ACTUALS_ALT
|
||||
self.p1.source_aml_model_id = aml_model.id
|
||||
self.p2.source = SRC_ACTUALS_ALT
|
||||
self.p1.source_aml_model_id = aml_model.id
|
||||
matrix = self.instance._compute_matrix()
|
||||
assert_matrix(matrix, [[11, 13], [11, 30]])
|
|
@ -0,0 +1,142 @@
|
|||
# Copyright 2017 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from flectra import models
|
||||
from flectra.tests.common import SavepointCase
|
||||
|
||||
from ..models.mis_kpi_data import ACC_AVG, ACC_SUM
|
||||
from .common import setup_test_model, teardown_test_model
|
||||
|
||||
|
||||
class TestKpiData(SavepointCase):
|
||||
class MisKpiDataTestItem(models.Model):
|
||||
|
||||
_name = "mis.kpi.data.test.item"
|
||||
_inherit = "mis.kpi.data"
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super(TestKpiData, cls).setUpClass()
|
||||
setup_test_model(cls.env, cls.MisKpiDataTestItem)
|
||||
|
||||
report = cls.env["mis.report"].create(dict(name="test report"))
|
||||
cls.kpi1 = cls.env["mis.report.kpi"].create(
|
||||
dict(
|
||||
report_id=report.id,
|
||||
name="k1",
|
||||
description="kpi 1",
|
||||
expression="AccountingNone",
|
||||
)
|
||||
)
|
||||
cls.expr1 = cls.kpi1.expression_ids[0]
|
||||
cls.kpi2 = cls.env["mis.report.kpi"].create(
|
||||
dict(
|
||||
report_id=report.id,
|
||||
name="k2",
|
||||
description="kpi 2",
|
||||
expression="AccountingNone",
|
||||
)
|
||||
)
|
||||
cls.expr2 = cls.kpi2.expression_ids[0]
|
||||
cls.kd11 = cls.env["mis.kpi.data.test.item"].create(
|
||||
dict(
|
||||
kpi_expression_id=cls.expr1.id,
|
||||
date_from="2017-05-01",
|
||||
date_to="2017-05-10",
|
||||
amount=10,
|
||||
)
|
||||
)
|
||||
cls.kd12 = cls.env["mis.kpi.data.test.item"].create(
|
||||
dict(
|
||||
kpi_expression_id=cls.expr1.id,
|
||||
date_from="2017-05-11",
|
||||
date_to="2017-05-20",
|
||||
amount=20,
|
||||
)
|
||||
)
|
||||
cls.kd13 = cls.env["mis.kpi.data.test.item"].create(
|
||||
dict(
|
||||
kpi_expression_id=cls.expr1.id,
|
||||
date_from="2017-05-21",
|
||||
date_to="2017-05-25",
|
||||
amount=30,
|
||||
)
|
||||
)
|
||||
cls.kd21 = cls.env["mis.kpi.data.test.item"].create(
|
||||
dict(
|
||||
kpi_expression_id=cls.expr2.id,
|
||||
date_from="2017-06-01",
|
||||
date_to="2017-06-30",
|
||||
amount=3,
|
||||
)
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
teardown_test_model(cls.env, cls.MisKpiDataTestItem)
|
||||
super(TestKpiData, cls).tearDownClass()
|
||||
|
||||
def test_kpi_data_name(self):
|
||||
self.assertEqual(self.kd11.name, "k1: 2017-05-01 - 2017-05-10")
|
||||
self.assertEqual(self.kd12.name, "k1: 2017-05-11 - 2017-05-20")
|
||||
|
||||
def test_kpi_data_sum(self):
|
||||
self.assertEqual(self.kpi1.accumulation_method, ACC_SUM)
|
||||
# one full
|
||||
r = self.env["mis.kpi.data.test.item"]._query_kpi_data(
|
||||
"2017-05-01", "2017-05-10", []
|
||||
)
|
||||
self.assertEqual(r, {self.expr1: 10})
|
||||
# one half
|
||||
r = self.env["mis.kpi.data.test.item"]._query_kpi_data(
|
||||
"2017-05-01", "2017-05-05", []
|
||||
)
|
||||
self.assertEqual(r, {self.expr1: 5})
|
||||
# two full
|
||||
r = self.env["mis.kpi.data.test.item"]._query_kpi_data(
|
||||
"2017-05-01", "2017-05-20", []
|
||||
)
|
||||
self.assertEqual(r, {self.expr1: 30})
|
||||
# two half
|
||||
r = self.env["mis.kpi.data.test.item"]._query_kpi_data(
|
||||
"2017-05-06", "2017-05-15", []
|
||||
)
|
||||
self.assertEqual(r, {self.expr1: 15})
|
||||
# more than covered range
|
||||
r = self.env["mis.kpi.data.test.item"]._query_kpi_data(
|
||||
"2017-01-01", "2017-05-31", []
|
||||
)
|
||||
self.assertEqual(r, {self.expr1: 60})
|
||||
# two kpis
|
||||
r = self.env["mis.kpi.data.test.item"]._query_kpi_data(
|
||||
"2017-05-21", "2017-06-30", []
|
||||
)
|
||||
self.assertEqual(r, {self.expr1: 30, self.expr2: 3})
|
||||
|
||||
def test_kpi_data_avg(self):
|
||||
self.kpi1.accumulation_method = ACC_AVG
|
||||
# one full
|
||||
r = self.env["mis.kpi.data.test.item"]._query_kpi_data(
|
||||
"2017-05-01", "2017-05-10", []
|
||||
)
|
||||
self.assertEqual(r, {self.expr1: 10})
|
||||
# one half
|
||||
r = self.env["mis.kpi.data.test.item"]._query_kpi_data(
|
||||
"2017-05-01", "2017-05-05", []
|
||||
)
|
||||
self.assertEqual(r, {self.expr1: 10})
|
||||
# two full
|
||||
r = self.env["mis.kpi.data.test.item"]._query_kpi_data(
|
||||
"2017-05-01", "2017-05-20", []
|
||||
)
|
||||
self.assertEqual(r, {self.expr1: (10 * 10 + 20 * 10) / 20})
|
||||
# two half
|
||||
r = self.env["mis.kpi.data.test.item"]._query_kpi_data(
|
||||
"2017-05-06", "2017-05-15", []
|
||||
)
|
||||
self.assertEqual(r, {self.expr1: (10 * 5 + 20 * 5) / 10})
|
||||
# more than covered range
|
||||
r = self.env["mis.kpi.data.test.item"]._query_kpi_data(
|
||||
"2017-01-01", "2017-05-31", []
|
||||
)
|
||||
self.assertEqual(r, {self.expr1: (10 * 10 + 20 * 10 + 30 * 5) / 25})
|
|
@ -0,0 +1,556 @@
|
|||
# Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
import flectra.tests.common as common
|
||||
from flectra.tools import test_reports
|
||||
|
||||
from ..models.accounting_none import AccountingNone
|
||||
from ..models.mis_report import TYPE_STR, SubKPITupleLengthError, SubKPIUnknownTypeError
|
||||
|
||||
|
||||
class TestMisReportInstance(common.HttpCase):
|
||||
"""Basic integration test to exercise mis.report.instance.
|
||||
|
||||
We don't check the actual results here too much as computation correctness
|
||||
should be covered by lower level unit tests.
|
||||
"""
|
||||
|
||||
def setUp(self):
|
||||
super(TestMisReportInstance, self).setUp()
|
||||
partner_model_id = self.env.ref("base.model_res_partner").id
|
||||
partner_create_date_field_id = self.env.ref(
|
||||
"base.field_res_partner__create_date"
|
||||
).id
|
||||
partner_debit_field_id = self.env.ref("account.field_res_partner__debit").id
|
||||
# create a report with 2 subkpis and one query
|
||||
self.report = self.env["mis.report"].create(
|
||||
dict(
|
||||
name="test report",
|
||||
subkpi_ids=[
|
||||
(0, 0, dict(name="sk1", description="subkpi 1", sequence=1)),
|
||||
(0, 0, dict(name="sk2", description="subkpi 2", sequence=2)),
|
||||
],
|
||||
query_ids=[
|
||||
(
|
||||
0,
|
||||
0,
|
||||
dict(
|
||||
name="partner",
|
||||
model_id=partner_model_id,
|
||||
field_ids=[(4, partner_debit_field_id, None)],
|
||||
date_field=partner_create_date_field_id,
|
||||
aggregate="sum",
|
||||
),
|
||||
)
|
||||
],
|
||||
)
|
||||
)
|
||||
# create another report with 2 subkpis, no query
|
||||
self.report_2 = self.env["mis.report"].create(
|
||||
dict(
|
||||
name="another test report",
|
||||
subkpi_ids=[
|
||||
(
|
||||
0,
|
||||
0,
|
||||
dict(
|
||||
name="subkpi1_report2",
|
||||
description="subkpi 1, report 2",
|
||||
sequence=1,
|
||||
),
|
||||
),
|
||||
(
|
||||
0,
|
||||
0,
|
||||
dict(
|
||||
name="subkpi2_report2",
|
||||
description="subkpi 2, report 2",
|
||||
sequence=2,
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
)
|
||||
# Third report, 2 subkpis, no query
|
||||
self.report_3 = self.env["mis.report"].create(
|
||||
dict(
|
||||
name="test report 3",
|
||||
subkpi_ids=[
|
||||
(
|
||||
0,
|
||||
0,
|
||||
dict(
|
||||
name="subkpi1_report3",
|
||||
description="subkpi 1, report 3",
|
||||
sequence=1,
|
||||
),
|
||||
),
|
||||
(
|
||||
0,
|
||||
0,
|
||||
dict(
|
||||
name="subkpi2_report3",
|
||||
description="subkpi 2, report 3",
|
||||
sequence=2,
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
)
|
||||
# kpi with accounting formulas
|
||||
self.kpi1 = self.env["mis.report.kpi"].create(
|
||||
dict(
|
||||
report_id=self.report.id,
|
||||
description="kpi 1",
|
||||
name="k1",
|
||||
multi=True,
|
||||
expression_ids=[
|
||||
(
|
||||
0,
|
||||
0,
|
||||
dict(name="bale[200%]", subkpi_id=self.report.subkpi_ids[0].id),
|
||||
),
|
||||
(
|
||||
0,
|
||||
0,
|
||||
dict(name="balp[200%]", subkpi_id=self.report.subkpi_ids[1].id),
|
||||
),
|
||||
],
|
||||
)
|
||||
)
|
||||
# kpi with accounting formula and query
|
||||
self.kpi2 = self.env["mis.report.kpi"].create(
|
||||
dict(
|
||||
report_id=self.report.id,
|
||||
description="kpi 2",
|
||||
name="k2",
|
||||
multi=True,
|
||||
expression_ids=[
|
||||
(
|
||||
0,
|
||||
0,
|
||||
dict(name="balp[200%]", subkpi_id=self.report.subkpi_ids[0].id),
|
||||
),
|
||||
(
|
||||
0,
|
||||
0,
|
||||
dict(
|
||||
name="partner.debit", subkpi_id=self.report.subkpi_ids[1].id
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
)
|
||||
# kpi with a simple expression summing other multi-valued kpis
|
||||
self.env["mis.report.kpi"].create(
|
||||
dict(
|
||||
report_id=self.report.id,
|
||||
description="kpi 4",
|
||||
name="k4",
|
||||
multi=False,
|
||||
expression="k1 + k2 + k3",
|
||||
)
|
||||
)
|
||||
# kpi with 2 constants
|
||||
self.env["mis.report.kpi"].create(
|
||||
dict(
|
||||
report_id=self.report.id,
|
||||
description="kpi 3",
|
||||
name="k3",
|
||||
multi=True,
|
||||
expression_ids=[
|
||||
(
|
||||
0,
|
||||
0,
|
||||
dict(
|
||||
name="AccountingNone",
|
||||
subkpi_id=self.report.subkpi_ids[0].id,
|
||||
),
|
||||
),
|
||||
(0, 0, dict(name="1.0", subkpi_id=self.report.subkpi_ids[1].id)),
|
||||
],
|
||||
)
|
||||
)
|
||||
# kpi with a NameError (x not defined)
|
||||
self.env["mis.report.kpi"].create(
|
||||
dict(
|
||||
report_id=self.report.id,
|
||||
description="kpi 5",
|
||||
name="k5",
|
||||
multi=True,
|
||||
expression_ids=[
|
||||
(0, 0, dict(name="x", subkpi_id=self.report.subkpi_ids[0].id)),
|
||||
(0, 0, dict(name="1.0", subkpi_id=self.report.subkpi_ids[1].id)),
|
||||
],
|
||||
)
|
||||
)
|
||||
# string-type kpi
|
||||
self.env["mis.report.kpi"].create(
|
||||
dict(
|
||||
report_id=self.report.id,
|
||||
description="kpi 6",
|
||||
name="k6",
|
||||
multi=True,
|
||||
type=TYPE_STR,
|
||||
expression_ids=[
|
||||
(0, 0, dict(name='"bla"', subkpi_id=self.report.subkpi_ids[0].id)),
|
||||
(
|
||||
0,
|
||||
0,
|
||||
dict(name='"blabla"', subkpi_id=self.report.subkpi_ids[1].id),
|
||||
),
|
||||
],
|
||||
)
|
||||
)
|
||||
# kpi that references another subkpi by name
|
||||
self.env["mis.report.kpi"].create(
|
||||
dict(
|
||||
report_id=self.report.id,
|
||||
description="kpi 7",
|
||||
name="k7",
|
||||
multi=True,
|
||||
expression_ids=[
|
||||
(0, 0, dict(name="k3.sk1", subkpi_id=self.report.subkpi_ids[0].id)),
|
||||
(0, 0, dict(name="k3.sk2", subkpi_id=self.report.subkpi_ids[1].id)),
|
||||
],
|
||||
)
|
||||
)
|
||||
# Report 2 : kpi with AccountingNone value
|
||||
self.env["mis.report.kpi"].create(
|
||||
dict(
|
||||
report_id=self.report_2.id,
|
||||
description="AccountingNone kpi",
|
||||
name="AccountingNoneKPI",
|
||||
multi=False,
|
||||
)
|
||||
)
|
||||
# Report 2 : 'classic' kpi with values for each sub-KPI
|
||||
self.env["mis.report.kpi"].create(
|
||||
dict(
|
||||
report_id=self.report_2.id,
|
||||
description="Classic kpi",
|
||||
name="classic_kpi_r2",
|
||||
multi=True,
|
||||
expression_ids=[
|
||||
(
|
||||
0,
|
||||
0,
|
||||
dict(
|
||||
name="bale[200%]", subkpi_id=self.report_2.subkpi_ids[0].id
|
||||
),
|
||||
),
|
||||
(
|
||||
0,
|
||||
0,
|
||||
dict(
|
||||
name="balp[200%]", subkpi_id=self.report_2.subkpi_ids[1].id
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
)
|
||||
# Report 3 : kpi with wrong tuple length
|
||||
self.env["mis.report.kpi"].create(
|
||||
dict(
|
||||
report_id=self.report_3.id,
|
||||
description="Wrong tuple length kpi",
|
||||
name="wrongTupleLen",
|
||||
multi=False,
|
||||
expression="('hello', 'does', 'this', 'work')",
|
||||
)
|
||||
)
|
||||
# Report 3 : 'classic' kpi
|
||||
self.env["mis.report.kpi"].create(
|
||||
dict(
|
||||
report_id=self.report_3.id,
|
||||
description="Classic kpi",
|
||||
name="classic_kpi_r2",
|
||||
multi=True,
|
||||
expression_ids=[
|
||||
(
|
||||
0,
|
||||
0,
|
||||
dict(
|
||||
name="bale[200%]", subkpi_id=self.report_3.subkpi_ids[0].id
|
||||
),
|
||||
),
|
||||
(
|
||||
0,
|
||||
0,
|
||||
dict(
|
||||
name="balp[200%]", subkpi_id=self.report_3.subkpi_ids[1].id
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
)
|
||||
# create a report instance
|
||||
self.report_instance = self.env["mis.report.instance"].create(
|
||||
dict(
|
||||
name="test instance",
|
||||
report_id=self.report.id,
|
||||
company_id=self.env.ref("base.main_company").id,
|
||||
period_ids=[
|
||||
(
|
||||
0,
|
||||
0,
|
||||
dict(
|
||||
name="p1",
|
||||
mode="relative",
|
||||
type="d",
|
||||
subkpi_ids=[(4, self.report.subkpi_ids[0].id, None)],
|
||||
),
|
||||
),
|
||||
(
|
||||
0,
|
||||
0,
|
||||
dict(
|
||||
name="p2",
|
||||
mode="fix",
|
||||
manual_date_from="2014-01-01",
|
||||
manual_date_to="2014-12-31",
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
)
|
||||
self.report_instance.period_ids[1].comparison_column_ids = [
|
||||
(4, self.report_instance.period_ids[0].id, None)
|
||||
]
|
||||
# same for report 2
|
||||
self.report_instance_2 = self.env["mis.report.instance"].create(
|
||||
dict(
|
||||
name="test instance 2",
|
||||
report_id=self.report_2.id,
|
||||
company_id=self.env.ref("base.main_company").id,
|
||||
period_ids=[
|
||||
(
|
||||
0,
|
||||
0,
|
||||
dict(
|
||||
name="p3",
|
||||
mode="fix",
|
||||
manual_date_from="2019-01-01",
|
||||
manual_date_to="2019-12-31",
|
||||
),
|
||||
)
|
||||
],
|
||||
)
|
||||
)
|
||||
# and for report 3
|
||||
self.report_instance_3 = self.env["mis.report.instance"].create(
|
||||
dict(
|
||||
name="test instance 3",
|
||||
report_id=self.report_3.id,
|
||||
company_id=self.env.ref("base.main_company").id,
|
||||
period_ids=[
|
||||
(
|
||||
0,
|
||||
0,
|
||||
dict(
|
||||
name="p4",
|
||||
mode="fix",
|
||||
manual_date_from="2019-01-01",
|
||||
manual_date_to="2019-12-31",
|
||||
),
|
||||
)
|
||||
],
|
||||
)
|
||||
)
|
||||
|
||||
def test_compute(self):
|
||||
matrix = self.report_instance._compute_matrix()
|
||||
for row in matrix.iter_rows():
|
||||
vals = [c.val for c in row.iter_cells()]
|
||||
if row.kpi.name == "k3":
|
||||
# k3 is constant
|
||||
self.assertEquals(vals, [AccountingNone, AccountingNone, 1.0])
|
||||
elif row.kpi.name == "k6":
|
||||
# k6 is a string kpi
|
||||
self.assertEquals(vals, ["bla", "bla", "blabla"])
|
||||
elif row.kpi.name == "k7":
|
||||
# k7 references k3 via subkpi names
|
||||
self.assertEquals(vals, [AccountingNone, AccountingNone, 1.0])
|
||||
|
||||
def test_multi_company_compute(self):
|
||||
self.report_instance.write(
|
||||
{
|
||||
"multi_company": True,
|
||||
"company_ids": [(6, 0, self.report_instance.company_id.ids)],
|
||||
}
|
||||
)
|
||||
self.report_instance.report_id.kpi_ids.write({"auto_expand_accounts": True})
|
||||
matrix = self.report_instance._compute_matrix()
|
||||
for row in matrix.iter_rows():
|
||||
if row.account_id:
|
||||
account = self.env["account.account"].browse(row.account_id)
|
||||
self.assertEqual(
|
||||
row.label,
|
||||
"%s %s [%s]"
|
||||
% (account.code, account.name, account.company_id.name),
|
||||
)
|
||||
self.report_instance.write({"multi_company": False})
|
||||
matrix = self.report_instance._compute_matrix()
|
||||
for row in matrix.iter_rows():
|
||||
if row.account_id:
|
||||
account = self.env["account.account"].browse(row.account_id)
|
||||
self.assertEqual(row.label, "{} {}".format(account.code, account.name))
|
||||
|
||||
def test_evaluate(self):
|
||||
company = self.env.ref("base.main_company")
|
||||
aep = self.report._prepare_aep(company)
|
||||
r = self.report.evaluate(aep, date_from="2014-01-01", date_to="2014-12-31")
|
||||
self.assertEqual(r["k3"], (AccountingNone, 1.0))
|
||||
self.assertEqual(r["k6"], ("bla", "blabla"))
|
||||
self.assertEqual(r["k7"], (AccountingNone, 1.0))
|
||||
|
||||
def test_json(self):
|
||||
self.report_instance.compute()
|
||||
|
||||
def test_drilldown(self):
|
||||
action = self.report_instance.drilldown(
|
||||
dict(expr="balp[200%]", period_id=self.report_instance.period_ids[0].id)
|
||||
)
|
||||
account_ids = (
|
||||
self.env["account.account"].search([("code", "=like", "200%")]).ids
|
||||
)
|
||||
self.assertTrue(("account_id", "in", tuple(account_ids)) in action["domain"])
|
||||
self.assertEqual(action["res_model"], "account.move.line")
|
||||
|
||||
def test_drilldown_action_name_with_account(self):
|
||||
period = self.report_instance.period_ids[0]
|
||||
account = self.env["account.account"].search([], limit=1)
|
||||
args = {
|
||||
"period_id": period.id,
|
||||
"kpi_id": self.kpi1.id,
|
||||
"account_id": account.id,
|
||||
}
|
||||
action_name = self.report_instance._get_drilldown_action_name(args)
|
||||
expected_name = "{kpi} - {account} - {period}".format(
|
||||
kpi=self.kpi1.description,
|
||||
account=account.display_name,
|
||||
period=period.display_name,
|
||||
)
|
||||
assert action_name == expected_name
|
||||
|
||||
def test_drilldown_action_name_without_account(self):
|
||||
period = self.report_instance.period_ids[0]
|
||||
args = {
|
||||
"period_id": period.id,
|
||||
"kpi_id": self.kpi1.id,
|
||||
}
|
||||
action_name = self.report_instance._get_drilldown_action_name(args)
|
||||
expected_name = "{kpi} - {period}".format(
|
||||
kpi=self.kpi1.description,
|
||||
period=period.display_name,
|
||||
)
|
||||
assert action_name == expected_name
|
||||
|
||||
def test_qweb(self):
|
||||
self.report_instance.print_pdf() # get action
|
||||
test_reports.try_report(
|
||||
self.env.cr,
|
||||
self.env.uid,
|
||||
"mis_builder.report_mis_report_instance",
|
||||
[self.report_instance.id],
|
||||
report_type="qweb-pdf",
|
||||
)
|
||||
|
||||
def test_xlsx(self):
|
||||
self.report_instance.export_xls() # get action
|
||||
test_reports.try_report(
|
||||
self.env.cr,
|
||||
self.env.uid,
|
||||
"mis_builder.mis_report_instance_xlsx",
|
||||
[self.report_instance.id],
|
||||
report_type="xlsx",
|
||||
)
|
||||
|
||||
def test_get_kpis_by_account_id(self):
|
||||
account_ids = (
|
||||
self.env["account.account"].search([("code", "=like", "200%")]).mapped("id")
|
||||
)
|
||||
kpi200 = {self.kpi1, self.kpi2}
|
||||
res = self.report.get_kpis_by_account_id(self.env.ref("base.main_company"))
|
||||
for account_id in account_ids:
|
||||
self.assertTrue(account_id in res)
|
||||
self.assertEquals(res[account_id], kpi200)
|
||||
|
||||
def test_kpi_name_get_name_search(self):
|
||||
r = self.env["mis.report.kpi"].name_search("k1")
|
||||
self.assertEqual(len(r), 1)
|
||||
self.assertEqual(r[0][0], self.kpi1.id)
|
||||
self.assertEqual(r[0][1], "kpi 1 (k1)")
|
||||
r = self.env["mis.report.kpi"].name_search("kpi 1")
|
||||
self.assertEqual(len(r), 1)
|
||||
self.assertEqual(r[0][0], self.kpi1.id)
|
||||
self.assertEqual(r[0][1], "kpi 1 (k1)")
|
||||
|
||||
def test_kpi_expr_name_get_name_search(self):
|
||||
r = self.env["mis.report.kpi.expression"].name_search("k1")
|
||||
self.assertEqual(
|
||||
[i[1] for i in r],
|
||||
["kpi 1 / subkpi 1 (k1.sk1)", "kpi 1 / subkpi 2 (k1.sk2)"],
|
||||
)
|
||||
r = self.env["mis.report.kpi.expression"].name_search("k1.sk1")
|
||||
self.assertEqual([i[1] for i in r], ["kpi 1 / subkpi 1 (k1.sk1)"])
|
||||
r = self.env["mis.report.kpi.expression"].name_search("k4")
|
||||
self.assertEqual([i[1] for i in r], ["kpi 4 (k4)"])
|
||||
|
||||
def test_multi_company_onchange(self):
|
||||
# not multi company
|
||||
self.assertTrue(self.report_instance.company_id)
|
||||
self.assertFalse(self.report_instance.multi_company)
|
||||
self.assertFalse(self.report_instance.company_ids)
|
||||
self.assertEqual(
|
||||
self.report_instance.query_company_ids[0], self.report_instance.company_id
|
||||
)
|
||||
# create a child company
|
||||
self.env["res.company"].create(
|
||||
dict(name="company 2", parent_id=self.report_instance.company_id.id)
|
||||
)
|
||||
companies = self.env["res.company"].search(
|
||||
[("id", "child_of", self.report_instance.company_id.id)]
|
||||
)
|
||||
self.report_instance.multi_company = True
|
||||
# multi company, company_ids not set
|
||||
self.assertEqual(
|
||||
self.report_instance.query_company_ids[0], self.report_instance.company_id
|
||||
)
|
||||
# set company_ids
|
||||
self.report_instance._onchange_company()
|
||||
self.assertTrue(self.report_instance.multi_company)
|
||||
self.assertEqual(self.report_instance.company_ids, companies)
|
||||
self.assertEqual(self.report_instance.query_company_ids, companies)
|
||||
# reset single company mode
|
||||
self.report_instance.multi_company = False
|
||||
self.assertEqual(
|
||||
self.report_instance.query_company_ids[0], self.report_instance.company_id
|
||||
)
|
||||
self.report_instance._onchange_company()
|
||||
self.assertFalse(self.report_instance.company_ids)
|
||||
|
||||
def test_mis_report_analytic_filters(self):
|
||||
# Check that matrix has no values when using a filter with a non
|
||||
# existing account
|
||||
matrix = self.report_instance.with_context(
|
||||
mis_report_filters={"analytic_account_id": {"value": 999}}
|
||||
)._compute_matrix()
|
||||
for row in matrix.iter_rows():
|
||||
vals = [c.val for c in row.iter_cells()]
|
||||
if row.kpi.name == "k1":
|
||||
self.assertEquals(
|
||||
vals, [AccountingNone, AccountingNone, AccountingNone]
|
||||
)
|
||||
elif row.kpi.name == "k2":
|
||||
self.assertEquals(vals, [AccountingNone, AccountingNone, None])
|
||||
elif row.kpi.name == "k4":
|
||||
self.assertEquals(vals, [AccountingNone, AccountingNone, 1.0])
|
||||
|
||||
def test_raise_when_unknown_kpi_value_type(self):
|
||||
with self.assertRaises(SubKPIUnknownTypeError):
|
||||
self.report_instance_2.compute()
|
||||
|
||||
def test_raise_when_wrong_tuple_length_with_subkpis(self):
|
||||
with self.assertRaises(SubKPITupleLengthError):
|
||||
self.report_instance_3.compute()
|
|
@ -0,0 +1,25 @@
|
|||
# Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
import flectra.tests.common as common
|
||||
|
||||
from ..models.mis_safe_eval import DataError, NameDataError, mis_safe_eval
|
||||
|
||||
|
||||
class TestMisSafeEval(common.TransactionCase):
|
||||
def test_nominal(self):
|
||||
val = mis_safe_eval("a + 1", {"a": 1})
|
||||
self.assertEqual(val, 2)
|
||||
|
||||
def test_exceptions(self):
|
||||
val = mis_safe_eval("1/0", {}) # division by zero
|
||||
self.assertTrue(isinstance(val, DataError))
|
||||
self.assertEqual(val.name, "#DIV/0")
|
||||
val = mis_safe_eval("1a", {}) # syntax error
|
||||
self.assertTrue(isinstance(val, DataError))
|
||||
self.assertEqual(val.name, "#ERR")
|
||||
|
||||
def test_name_error(self):
|
||||
val = mis_safe_eval("a + 1", {})
|
||||
self.assertTrue(isinstance(val, NameDataError))
|
||||
self.assertEqual(val.name, "#NAME")
|
|
@ -0,0 +1,207 @@
|
|||
# Copyright 2014 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
import datetime
|
||||
|
||||
import flectra.tests.common as common
|
||||
from flectra import fields
|
||||
from flectra.tools.safe_eval import safe_eval
|
||||
|
||||
from ..models.accounting_none import AccountingNone
|
||||
from ..models.aep import AccountingExpressionProcessor as AEP
|
||||
|
||||
|
||||
class TestMultiCompanyAEP(common.TransactionCase):
|
||||
def setUp(self):
|
||||
super(TestMultiCompanyAEP, self).setUp()
|
||||
self.res_company = self.env["res.company"]
|
||||
self.account_model = self.env["account.account"]
|
||||
self.move_model = self.env["account.move"]
|
||||
self.journal_model = self.env["account.journal"]
|
||||
self.currency_model = self.env["res.currency"]
|
||||
self.curr_year = datetime.date.today().year
|
||||
self.prev_year = self.curr_year - 1
|
||||
self.usd = self.currency_model.search([("name", "=", "USD")])
|
||||
self.eur = self.currency_model.search([("name", "=", "EUR")])
|
||||
# create company A and B
|
||||
self.company_eur = self.res_company.create(
|
||||
{"name": "CYEUR", "currency_id": self.eur.id}
|
||||
)
|
||||
self.company_usd = self.res_company.create(
|
||||
{"name": "CYUSD", "currency_id": self.usd.id}
|
||||
)
|
||||
self.env["res.currency.rate"].search([]).unlink()
|
||||
type_ar = self.browse_ref("account.data_account_type_receivable")
|
||||
type_in = self.browse_ref("account.data_account_type_revenue")
|
||||
for company, divider in [(self.company_eur, 1.0), (self.company_usd, 2.0)]:
|
||||
# create receivable bs account
|
||||
company_key = company.name
|
||||
setattr(
|
||||
self,
|
||||
"account_ar_" + company_key,
|
||||
self.account_model.create(
|
||||
{
|
||||
"company_id": company.id,
|
||||
"code": "400AR",
|
||||
"name": "Receivable",
|
||||
"user_type_id": type_ar.id,
|
||||
"reconcile": True,
|
||||
}
|
||||
),
|
||||
)
|
||||
# create income pl account
|
||||
setattr(
|
||||
self,
|
||||
"account_in_" + company_key,
|
||||
self.account_model.create(
|
||||
{
|
||||
"company_id": company.id,
|
||||
"code": "700IN",
|
||||
"name": "Income",
|
||||
"user_type_id": type_in.id,
|
||||
}
|
||||
),
|
||||
)
|
||||
# create journal
|
||||
setattr(
|
||||
self,
|
||||
"journal" + company_key,
|
||||
self.journal_model.create(
|
||||
{
|
||||
"company_id": company.id,
|
||||
"name": "Sale journal",
|
||||
"code": "VEN",
|
||||
"type": "sale",
|
||||
}
|
||||
),
|
||||
)
|
||||
# create move in december last year
|
||||
self._create_move(
|
||||
journal=getattr(self, "journal" + company_key),
|
||||
date=datetime.date(self.prev_year, 12, 1),
|
||||
amount=100 / divider,
|
||||
debit_acc=getattr(self, "account_ar_" + company_key),
|
||||
credit_acc=getattr(self, "account_in_" + company_key),
|
||||
)
|
||||
# create move in january this year
|
||||
self._create_move(
|
||||
journal=getattr(self, "journal" + company_key),
|
||||
date=datetime.date(self.curr_year, 1, 1),
|
||||
amount=300 / divider,
|
||||
debit_acc=getattr(self, "account_ar_" + company_key),
|
||||
credit_acc=getattr(self, "account_in_" + company_key),
|
||||
)
|
||||
# create move in february this year
|
||||
self._create_move(
|
||||
journal=getattr(self, "journal" + company_key),
|
||||
date=datetime.date(self.curr_year, 3, 1),
|
||||
amount=500 / divider,
|
||||
debit_acc=getattr(self, "account_ar_" + company_key),
|
||||
credit_acc=getattr(self, "account_in_" + company_key),
|
||||
)
|
||||
|
||||
def _create_move(self, journal, date, amount, debit_acc, credit_acc):
|
||||
move = self.move_model.create(
|
||||
{
|
||||
"journal_id": journal.id,
|
||||
"date": fields.Date.to_string(date),
|
||||
"line_ids": [
|
||||
(0, 0, {"name": "/", "debit": amount, "account_id": debit_acc.id}),
|
||||
(
|
||||
0,
|
||||
0,
|
||||
{"name": "/", "credit": amount, "account_id": credit_acc.id},
|
||||
),
|
||||
],
|
||||
}
|
||||
)
|
||||
move.post()
|
||||
return move
|
||||
|
||||
def _do_queries(self, companies, currency, date_from, date_to):
|
||||
# create the AEP, and prepare the expressions we'll need
|
||||
aep = AEP(companies, currency)
|
||||
aep.parse_expr("bali[]")
|
||||
aep.parse_expr("bale[]")
|
||||
aep.parse_expr("balp[]")
|
||||
aep.parse_expr("balu[]")
|
||||
aep.parse_expr("bali[700IN]")
|
||||
aep.parse_expr("bale[700IN]")
|
||||
aep.parse_expr("balp[700IN]")
|
||||
aep.parse_expr("bali[400AR]")
|
||||
aep.parse_expr("bale[400AR]")
|
||||
aep.parse_expr("balp[400AR]")
|
||||
aep.parse_expr("debp[400A%]")
|
||||
aep.parse_expr("crdp[700I%]")
|
||||
aep.parse_expr("bali[400%]")
|
||||
aep.parse_expr("bale[700%]")
|
||||
aep.done_parsing()
|
||||
aep.do_queries(
|
||||
date_from=fields.Date.to_string(date_from),
|
||||
date_to=fields.Date.to_string(date_to),
|
||||
target_move="posted",
|
||||
)
|
||||
return aep
|
||||
|
||||
def _eval(self, aep, expr):
|
||||
eval_dict = {"AccountingNone": AccountingNone}
|
||||
return safe_eval(aep.replace_expr(expr), eval_dict)
|
||||
|
||||
def _eval_by_account_id(self, aep, expr):
|
||||
res = {}
|
||||
eval_dict = {"AccountingNone": AccountingNone}
|
||||
for account_id, replaced_exprs in aep.replace_exprs_by_account_id([expr]):
|
||||
res[account_id] = safe_eval(replaced_exprs[0], eval_dict)
|
||||
return res
|
||||
|
||||
def test_aep_basic(self):
|
||||
# let's query for december, one company
|
||||
aep = self._do_queries(
|
||||
self.company_eur,
|
||||
None,
|
||||
datetime.date(self.prev_year, 12, 1),
|
||||
datetime.date(self.prev_year, 12, 31),
|
||||
)
|
||||
self.assertEqual(self._eval(aep, "balp[700IN]"), -100)
|
||||
aep = self._do_queries(
|
||||
self.company_usd,
|
||||
None,
|
||||
datetime.date(self.prev_year, 12, 1),
|
||||
datetime.date(self.prev_year, 12, 31),
|
||||
)
|
||||
self.assertEqual(self._eval(aep, "balp[700IN]"), -50)
|
||||
# let's query for december, two companies
|
||||
aep = self._do_queries(
|
||||
self.company_eur | self.company_usd,
|
||||
self.eur,
|
||||
datetime.date(self.prev_year, 12, 1),
|
||||
datetime.date(self.prev_year, 12, 31),
|
||||
)
|
||||
self.assertEqual(self._eval(aep, "balp[700IN]"), -150)
|
||||
|
||||
def test_aep_multi_currency(self):
|
||||
date_from = datetime.date(self.prev_year, 12, 1)
|
||||
date_to = datetime.date(self.prev_year, 12, 31)
|
||||
today = datetime.date.today()
|
||||
self.env["res.currency.rate"].create(
|
||||
dict(currency_id=self.usd.id, name=date_to, rate=1.1)
|
||||
)
|
||||
self.env["res.currency.rate"].create(
|
||||
dict(currency_id=self.usd.id, name=today, rate=1.2)
|
||||
)
|
||||
# let's query for december, one company, default currency = eur
|
||||
aep = self._do_queries(self.company_eur, None, date_from, date_to)
|
||||
self.assertEqual(self._eval(aep, "balp[700IN]"), -100)
|
||||
# let's query for december, two companies
|
||||
aep = self._do_queries(
|
||||
self.company_eur | self.company_usd, self.eur, date_from, date_to
|
||||
)
|
||||
self.assertAlmostEqual(self._eval(aep, "balp[700IN]"), -100 - 50 / 1.1)
|
||||
# let's query for december, one company, currency = usd
|
||||
aep = self._do_queries(self.company_eur, self.usd, date_from, date_to)
|
||||
self.assertAlmostEqual(self._eval(aep, "balp[700IN]"), -100 * 1.1)
|
||||
# let's query for december, two companies, currency = usd
|
||||
aep = self._do_queries(
|
||||
self.company_eur | self.company_usd, self.usd, date_from, date_to
|
||||
)
|
||||
self.assertAlmostEqual(self._eval(aep, "balp[700IN]"), -100 * 1.1 - 50)
|
|
@ -0,0 +1,159 @@
|
|||
# Copyright 2017 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
import flectra.tests.common as common
|
||||
from flectra import fields
|
||||
|
||||
from ..models.mis_report_instance import (
|
||||
MODE_FIX,
|
||||
MODE_NONE,
|
||||
MODE_REL,
|
||||
SRC_SUMCOL,
|
||||
DateFilterForbidden,
|
||||
DateFilterRequired,
|
||||
)
|
||||
from .common import assert_matrix
|
||||
|
||||
|
||||
class TestPeriodDates(common.TransactionCase):
|
||||
def setUp(self):
|
||||
super(TestPeriodDates, self).setUp()
|
||||
self.report_obj = self.env["mis.report"]
|
||||
self.instance_obj = self.env["mis.report.instance"]
|
||||
self.period_obj = self.env["mis.report.instance.period"]
|
||||
self.report = self.report_obj.create(dict(name="test-report"))
|
||||
self.instance = self.instance_obj.create(
|
||||
dict(name="test-instance", report_id=self.report.id, comparison_mode=False)
|
||||
)
|
||||
self.assertEqual(len(self.instance.period_ids), 1)
|
||||
self.period = self.instance.period_ids[0]
|
||||
|
||||
def assertDateEqual(self, first, second, msg=None):
|
||||
self.assertEqual(first, fields.Date.from_string(second), msg)
|
||||
|
||||
def test_date_filter_constraints(self):
|
||||
self.instance.comparison_mode = True
|
||||
with self.assertRaises(DateFilterRequired):
|
||||
self.period.write(dict(mode=MODE_NONE))
|
||||
with self.assertRaises(DateFilterForbidden):
|
||||
self.period.write(dict(mode=MODE_FIX, source=SRC_SUMCOL))
|
||||
|
||||
def test_simple_mode(self):
|
||||
# not comparison_mode
|
||||
self.assertFalse(self.instance.comparison_mode)
|
||||
period = self.instance.period_ids[0]
|
||||
self.assertEqual(period.date_from, self.instance.date_from)
|
||||
self.assertEqual(period.date_to, self.instance.date_to)
|
||||
|
||||
def tests_mode_none(self):
|
||||
self.instance.comparison_mode = True
|
||||
self.period.write(dict(mode=MODE_NONE, source=SRC_SUMCOL))
|
||||
self.assertFalse(self.period.date_from)
|
||||
self.assertFalse(self.period.date_to)
|
||||
self.assertTrue(self.period.valid)
|
||||
|
||||
def tests_mode_fix(self):
|
||||
self.instance.comparison_mode = True
|
||||
self.period.write(
|
||||
dict(
|
||||
mode=MODE_FIX,
|
||||
manual_date_from="2017-01-01",
|
||||
manual_date_to="2017-12-31",
|
||||
)
|
||||
)
|
||||
self.assertDateEqual(self.period.date_from, "2017-01-01")
|
||||
self.assertDateEqual(self.period.date_to, "2017-12-31")
|
||||
self.assertTrue(self.period.valid)
|
||||
|
||||
def test_rel_day(self):
|
||||
self.instance.write(dict(comparison_mode=True, date="2017-01-01"))
|
||||
self.period.write(dict(mode=MODE_REL, type="d", offset="-2"))
|
||||
self.assertDateEqual(self.period.date_from, "2016-12-30")
|
||||
self.assertDateEqual(self.period.date_to, "2016-12-30")
|
||||
self.assertTrue(self.period.valid)
|
||||
|
||||
def test_rel_day_ytd(self):
|
||||
self.instance.write(dict(comparison_mode=True, date="2019-05-03"))
|
||||
self.period.write(dict(mode=MODE_REL, type="d", offset="-2", is_ytd=True))
|
||||
self.assertDateEqual(self.period.date_from, "2019-01-01")
|
||||
self.assertDateEqual(self.period.date_to, "2019-05-01")
|
||||
self.assertTrue(self.period.valid)
|
||||
|
||||
def test_rel_week(self):
|
||||
self.instance.write(dict(comparison_mode=True, date="2016-12-30"))
|
||||
self.period.write(dict(mode=MODE_REL, type="w", offset="1", duration=2))
|
||||
# from Monday to Sunday, the week after 2016-12-30
|
||||
self.assertDateEqual(self.period.date_from, "2017-01-02")
|
||||
self.assertDateEqual(self.period.date_to, "2017-01-15")
|
||||
self.assertTrue(self.period.valid)
|
||||
|
||||
def test_rel_week_ytd(self):
|
||||
self.instance.write(dict(comparison_mode=True, date="2019-05-27"))
|
||||
self.period.write(
|
||||
dict(mode=MODE_REL, type="w", offset="1", duration=2, is_ytd=True)
|
||||
)
|
||||
self.assertDateEqual(self.period.date_from, "2019-01-01")
|
||||
self.assertDateEqual(self.period.date_to, "2019-06-16")
|
||||
self.assertTrue(self.period.valid)
|
||||
|
||||
def test_rel_month(self):
|
||||
self.instance.write(dict(comparison_mode=True, date="2017-01-05"))
|
||||
self.period.write(dict(mode=MODE_REL, type="m", offset="1"))
|
||||
self.assertDateEqual(self.period.date_from, "2017-02-01")
|
||||
self.assertDateEqual(self.period.date_to, "2017-02-28")
|
||||
self.assertTrue(self.period.valid)
|
||||
|
||||
def test_rel_month_ytd(self):
|
||||
self.instance.write(dict(comparison_mode=True, date="2019-05-15"))
|
||||
self.period.write(dict(mode=MODE_REL, type="m", offset="-1", is_ytd=True))
|
||||
self.assertDateEqual(self.period.date_from, "2019-01-01")
|
||||
self.assertDateEqual(self.period.date_to, "2019-04-30")
|
||||
self.assertTrue(self.period.valid)
|
||||
|
||||
def test_rel_year(self):
|
||||
self.instance.write(dict(comparison_mode=True, date="2017-05-06"))
|
||||
self.period.write(dict(mode=MODE_REL, type="y", offset="1"))
|
||||
self.assertDateEqual(self.period.date_from, "2018-01-01")
|
||||
self.assertDateEqual(self.period.date_to, "2018-12-31")
|
||||
self.assertTrue(self.period.valid)
|
||||
|
||||
def test_rel_date_range(self):
|
||||
# create a few date ranges
|
||||
date_range_type = self.env["date.range.type"].create(dict(name="Year"))
|
||||
for year in (2016, 2017, 2018):
|
||||
self.env["date.range"].create(
|
||||
dict(
|
||||
type_id=date_range_type.id,
|
||||
name="%d" % year,
|
||||
date_start="%d-01-01" % year,
|
||||
date_end="%d-12-31" % year,
|
||||
company_id=False,
|
||||
)
|
||||
)
|
||||
self.instance.write(dict(comparison_mode=True, date="2017-06-15"))
|
||||
self.period.write(
|
||||
dict(
|
||||
mode=MODE_REL,
|
||||
type="date_range",
|
||||
date_range_type_id=date_range_type.id,
|
||||
offset="-1",
|
||||
duration=3,
|
||||
)
|
||||
)
|
||||
self.assertDateEqual(self.period.date_from, "2016-01-01")
|
||||
self.assertDateEqual(self.period.date_to, "2018-12-31")
|
||||
self.assertTrue(self.period.valid)
|
||||
|
||||
def test_dates_in_expr(self):
|
||||
self.env["mis.report.kpi"].create(
|
||||
dict(
|
||||
report_id=self.report.id,
|
||||
name="k1",
|
||||
description="kpi 1",
|
||||
expression="(date_to - date_from).days + 1",
|
||||
)
|
||||
)
|
||||
self.instance.date_from = "2017-01-01"
|
||||
self.instance.date_to = "2017-01-31"
|
||||
matrix = self.instance._compute_matrix()
|
||||
assert_matrix(matrix, [[31]])
|
|
@ -0,0 +1,321 @@
|
|||
# Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
import flectra.tests.common as common
|
||||
|
||||
from ..models.accounting_none import AccountingNone
|
||||
from ..models.data_error import DataError
|
||||
from ..models.mis_report_style import CMP_DIFF, CMP_PCT, TYPE_NUM, TYPE_PCT, TYPE_STR
|
||||
|
||||
|
||||
class TestRendering(common.TransactionCase):
|
||||
def setUp(self):
|
||||
super(TestRendering, self).setUp()
|
||||
self.style_obj = self.env["mis.report.style"]
|
||||
self.kpi_obj = self.env["mis.report.kpi"]
|
||||
self.style = self.style_obj.create(dict(name="teststyle"))
|
||||
self.lang = (
|
||||
self.env["res.lang"]
|
||||
.with_context(active_test=False)
|
||||
.search([("code", "=", "en_US")])[0]
|
||||
)
|
||||
|
||||
def _render(self, value, type=TYPE_NUM):
|
||||
style_props = self.style_obj.merge([self.style])
|
||||
return self.style_obj.render(self.lang, style_props, type, value)
|
||||
|
||||
def _compare_and_render(
|
||||
self, value, base_value, type=TYPE_NUM, compare_method=CMP_PCT
|
||||
):
|
||||
style_props = self.style_obj.merge([self.style])
|
||||
r = self.style_obj.compare_and_render(
|
||||
self.lang, style_props, type, compare_method, value, base_value
|
||||
)[:2]
|
||||
if r[0]:
|
||||
return (round(r[0], 8), r[1])
|
||||
else:
|
||||
return r
|
||||
|
||||
def test_render(self):
|
||||
self.assertEquals(u"1", self._render(1))
|
||||
self.assertEquals(u"1", self._render(1.1))
|
||||
self.assertEquals(u"2", self._render(1.6))
|
||||
self.style.dp_inherit = False
|
||||
self.style.dp = 2
|
||||
self.assertEquals(u"1.00", self._render(1))
|
||||
self.assertEquals(u"1.10", self._render(1.1))
|
||||
self.assertEquals(u"1.60", self._render(1.6))
|
||||
self.assertEquals(u"1.61", self._render(1.606))
|
||||
self.assertEquals(u"12,345.67", self._render(12345.67))
|
||||
|
||||
def test_render_negative(self):
|
||||
# non breaking hyphen
|
||||
self.assertEquals(u"\u20111", self._render(-1))
|
||||
|
||||
def test_render_zero(self):
|
||||
self.assertEquals(u"0", self._render(0))
|
||||
self.assertEquals(u"", self._render(None))
|
||||
self.assertEquals(u"", self._render(AccountingNone))
|
||||
|
||||
def test_render_suffix(self):
|
||||
self.style.suffix_inherit = False
|
||||
self.style.suffix = u"€"
|
||||
self.assertEquals(u"1\xa0€", self._render(1))
|
||||
self.style.suffix = u"k€"
|
||||
self.style.divider_inherit = False
|
||||
self.style.divider = "1e3"
|
||||
self.assertEquals(u"1\xa0k€", self._render(1000))
|
||||
|
||||
def test_render_prefix(self):
|
||||
self.style.prefix_inherit = False
|
||||
self.style.prefix = u"$"
|
||||
self.assertEquals(u"$\xa01", self._render(1))
|
||||
self.style.prefix = u"k$"
|
||||
self.style.divider_inherit = False
|
||||
self.style.divider = "1e3"
|
||||
self.assertEquals(u"k$\xa01", self._render(1000))
|
||||
|
||||
def test_render_divider(self):
|
||||
self.style.divider_inherit = False
|
||||
self.style.divider = "1e3"
|
||||
self.style.dp_inherit = False
|
||||
self.style.dp = 0
|
||||
self.assertEquals(u"1", self._render(1000))
|
||||
self.style.divider = "1e6"
|
||||
self.style.dp = 3
|
||||
self.assertEquals(u"0.001", self._render(1000))
|
||||
self.style.divider = "1e-3"
|
||||
self.style.dp = 0
|
||||
self.assertEquals(u"1,000", self._render(1))
|
||||
self.style.divider = "1e-6"
|
||||
self.style.dp = 0
|
||||
self.assertEquals(u"1,000,000", self._render(1))
|
||||
|
||||
def test_render_pct(self):
|
||||
self.assertEquals(u"100\xa0%", self._render(1, TYPE_PCT))
|
||||
self.assertEquals(u"50\xa0%", self._render(0.5, TYPE_PCT))
|
||||
self.style.dp_inherit = False
|
||||
self.style.dp = 2
|
||||
self.assertEquals(u"51.23\xa0%", self._render(0.5123, TYPE_PCT))
|
||||
|
||||
def test_render_string(self):
|
||||
self.assertEquals(u"", self._render("", TYPE_STR))
|
||||
self.assertEquals(u"", self._render(None, TYPE_STR))
|
||||
self.assertEquals(u"abcdé", self._render(u"abcdé", TYPE_STR))
|
||||
|
||||
def test_compare_num_pct(self):
|
||||
self.assertEquals((1.0, u"+100.0\xa0%"), self._compare_and_render(100, 50))
|
||||
self.assertEquals((0.5, u"+50.0\xa0%"), self._compare_and_render(75, 50))
|
||||
self.assertEquals((0.5, u"+50.0\xa0%"), self._compare_and_render(-25, -50))
|
||||
self.assertEquals((1.0, u"+100.0\xa0%"), self._compare_and_render(0, -50))
|
||||
self.assertEquals((2.0, u"+200.0\xa0%"), self._compare_and_render(50, -50))
|
||||
self.assertEquals((-0.5, u"\u201150.0\xa0%"), self._compare_and_render(25, 50))
|
||||
self.assertEquals((-1.0, u"\u2011100.0\xa0%"), self._compare_and_render(0, 50))
|
||||
self.assertEquals(
|
||||
(-2.0, u"\u2011200.0\xa0%"), self._compare_and_render(-50, 50)
|
||||
)
|
||||
self.assertEquals(
|
||||
(-0.5, u"\u201150.0\xa0%"), self._compare_and_render(-75, -50)
|
||||
)
|
||||
self.assertEquals(
|
||||
(AccountingNone, u""), self._compare_and_render(50, AccountingNone)
|
||||
)
|
||||
self.assertEquals((AccountingNone, u""), self._compare_and_render(50, None))
|
||||
self.assertEquals((AccountingNone, u""), self._compare_and_render(50, 50))
|
||||
self.assertEquals((0.002, u"+0.2\xa0%"), self._compare_and_render(50.1, 50))
|
||||
self.assertEquals((AccountingNone, u""), self._compare_and_render(50.01, 50))
|
||||
self.assertEquals(
|
||||
(-1.0, u"\u2011100.0\xa0%"), self._compare_and_render(AccountingNone, 50)
|
||||
)
|
||||
self.assertEquals(
|
||||
(-1.0, u"\u2011100.0\xa0%"), self._compare_and_render(None, 50)
|
||||
)
|
||||
self.assertEquals(
|
||||
(AccountingNone, u""), self._compare_and_render(DataError("#ERR", "."), 1)
|
||||
)
|
||||
self.assertEquals(
|
||||
(AccountingNone, u""), self._compare_and_render(1, DataError("#ERR", "."))
|
||||
)
|
||||
|
||||
def test_compare_num_diff(self):
|
||||
self.assertEquals(
|
||||
(25, u"+25"), self._compare_and_render(75, 50, TYPE_NUM, CMP_DIFF)
|
||||
)
|
||||
self.assertEquals(
|
||||
(-25, u"\u201125"), self._compare_and_render(25, 50, TYPE_NUM, CMP_DIFF)
|
||||
)
|
||||
self.style.suffix_inherit = False
|
||||
self.style.suffix = u"€"
|
||||
self.assertEquals(
|
||||
(-25, u"\u201125\xa0€"),
|
||||
self._compare_and_render(25, 50, TYPE_NUM, CMP_DIFF),
|
||||
)
|
||||
self.style.suffix = u""
|
||||
self.assertEquals(
|
||||
(50.0, u"+50"),
|
||||
self._compare_and_render(50, AccountingNone, TYPE_NUM, CMP_DIFF),
|
||||
)
|
||||
self.assertEquals(
|
||||
(50.0, u"+50"), self._compare_and_render(50, None, TYPE_NUM, CMP_DIFF)
|
||||
)
|
||||
self.assertEquals(
|
||||
(-50.0, u"\u201150"),
|
||||
self._compare_and_render(AccountingNone, 50, TYPE_NUM, CMP_DIFF),
|
||||
)
|
||||
self.assertEquals(
|
||||
(-50.0, u"\u201150"), self._compare_and_render(None, 50, TYPE_NUM, CMP_DIFF)
|
||||
)
|
||||
self.style.dp_inherit = False
|
||||
self.style.dp = 2
|
||||
self.assertEquals(
|
||||
(0.1, u"+0.10"), self._compare_and_render(1.1, 1.0, TYPE_NUM, CMP_DIFF)
|
||||
)
|
||||
self.assertEquals(
|
||||
(AccountingNone, u""),
|
||||
self._compare_and_render(1.001, 1.0, TYPE_NUM, CMP_DIFF),
|
||||
)
|
||||
|
||||
def test_compare_pct(self):
|
||||
self.assertEquals(
|
||||
(0.25, u"+25\xa0pp"), self._compare_and_render(0.75, 0.50, TYPE_PCT)
|
||||
)
|
||||
self.assertEquals(
|
||||
(AccountingNone, u""), self._compare_and_render(0.751, 0.750, TYPE_PCT)
|
||||
)
|
||||
|
||||
def test_compare_pct_result_type(self):
|
||||
style_props = self.style_obj.merge([self.style])
|
||||
result = self.style_obj.compare_and_render(
|
||||
self.lang, style_props, TYPE_PCT, CMP_DIFF, 0.75, 0.50
|
||||
)
|
||||
self.assertEquals(result[3], TYPE_NUM)
|
||||
|
||||
def test_merge(self):
|
||||
self.style.color = "#FF0000"
|
||||
self.style.color_inherit = False
|
||||
style_props = self.style_obj.merge([self.style])
|
||||
self.assertEquals(style_props, {"color": "#FF0000"})
|
||||
style_dict = {"color": "#00FF00", "dp": 0}
|
||||
style_props = self.style_obj.merge([self.style, style_dict])
|
||||
self.assertEquals(style_props, {"color": "#00FF00", "dp": 0})
|
||||
style2 = self.style_obj.create(
|
||||
dict(
|
||||
name="teststyle2",
|
||||
dp_inherit=False,
|
||||
dp=1,
|
||||
# color_inherit=True: will not be applied
|
||||
color="#0000FF",
|
||||
)
|
||||
)
|
||||
style_props = self.style_obj.merge([self.style, style_dict, style2])
|
||||
self.assertEquals(style_props, {"color": "#00FF00", "dp": 1})
|
||||
|
||||
def test_css(self):
|
||||
self.style.color_inherit = False
|
||||
self.style.color = "#FF0000"
|
||||
self.style.background_color_inherit = False
|
||||
self.style.background_color = "#0000FF"
|
||||
self.style.suffix_inherit = False
|
||||
self.style.suffix = "s"
|
||||
self.style.prefix_inherit = False
|
||||
self.style.prefix = "p"
|
||||
self.style.font_style_inherit = False
|
||||
self.style.font_style = "italic"
|
||||
self.style.font_weight_inherit = False
|
||||
self.style.font_weight = "bold"
|
||||
self.style.font_size_inherit = False
|
||||
self.style.font_size = "small"
|
||||
self.style.indent_level_inherit = False
|
||||
self.style.indent_level = 2
|
||||
style_props = self.style_obj.merge([self.style])
|
||||
css = self.style_obj.to_css_style(style_props)
|
||||
self.assertEquals(
|
||||
css,
|
||||
"font-style: italic; "
|
||||
"font-weight: bold; "
|
||||
"font-size: small; "
|
||||
"color: #FF0000; "
|
||||
"background-color: #0000FF; "
|
||||
"text-indent: 2em",
|
||||
)
|
||||
css = self.style_obj.to_css_style(style_props, no_indent=True)
|
||||
self.assertEquals(
|
||||
css,
|
||||
"font-style: italic; "
|
||||
"font-weight: bold; "
|
||||
"font-size: small; "
|
||||
"color: #FF0000; "
|
||||
"background-color: #0000FF",
|
||||
)
|
||||
|
||||
def test_xslx(self):
|
||||
self.style.color_inherit = False
|
||||
self.style.color = "#FF0000"
|
||||
self.style.background_color_inherit = False
|
||||
self.style.background_color = "#0000FF"
|
||||
self.style.suffix_inherit = False
|
||||
self.style.suffix = "s"
|
||||
self.style.prefix_inherit = False
|
||||
self.style.prefix = "p"
|
||||
self.style.dp_inherit = False
|
||||
self.style.dp = 2
|
||||
self.style.font_style_inherit = False
|
||||
self.style.font_style = "italic"
|
||||
self.style.font_weight_inherit = False
|
||||
self.style.font_weight = "bold"
|
||||
self.style.font_size_inherit = False
|
||||
self.style.font_size = "small"
|
||||
self.style.indent_level_inherit = False
|
||||
self.style.indent_level = 2
|
||||
style_props = self.style_obj.merge([self.style])
|
||||
xlsx = self.style_obj.to_xlsx_style(TYPE_NUM, style_props)
|
||||
self.assertEquals(
|
||||
xlsx,
|
||||
{
|
||||
"italic": True,
|
||||
"bold": True,
|
||||
"size": 9,
|
||||
"font_color": u"#FF0000",
|
||||
"bg_color": u"#0000FF",
|
||||
"num_format": u'"p "#,##0.00" s"',
|
||||
"indent": 2,
|
||||
},
|
||||
)
|
||||
xlsx = self.style_obj.to_xlsx_style(TYPE_NUM, style_props, no_indent=True)
|
||||
self.assertEquals(
|
||||
xlsx,
|
||||
{
|
||||
"italic": True,
|
||||
"bold": True,
|
||||
"size": 9,
|
||||
"font_color": u"#FF0000",
|
||||
"bg_color": u"#0000FF",
|
||||
"num_format": u'"p "#,##0.00" s"',
|
||||
},
|
||||
)
|
||||
# percent type ignore prefix and suffix
|
||||
xlsx = self.style_obj.to_xlsx_style(TYPE_PCT, style_props, no_indent=True)
|
||||
self.assertEquals(
|
||||
xlsx,
|
||||
{
|
||||
"italic": True,
|
||||
"bold": True,
|
||||
"size": 9,
|
||||
"font_color": u"#FF0000",
|
||||
"bg_color": u"#0000FF",
|
||||
"num_format": u"0.00%",
|
||||
},
|
||||
)
|
||||
|
||||
# str type have no num_format style
|
||||
xlsx = self.style_obj.to_xlsx_style(TYPE_STR, style_props, no_indent=True)
|
||||
self.assertEquals(
|
||||
xlsx,
|
||||
{
|
||||
"italic": True,
|
||||
"bold": True,
|
||||
"size": 9,
|
||||
"font_color": u"#FF0000",
|
||||
"bg_color": u"#0000FF",
|
||||
},
|
||||
)
|
|
@ -0,0 +1,7 @@
|
|||
# Copyright 2014 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from ..models import simple_array
|
||||
from .common import load_doctests
|
||||
|
||||
load_tests = load_doctests(simple_array)
|
|
@ -0,0 +1,96 @@
|
|||
# Copyright 2020 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from flectra.tests.common import SavepointCase
|
||||
|
||||
from flectra.addons.mis_builder.models.expression_evaluator import ExpressionEvaluator
|
||||
from flectra.addons.mis_builder.models.mis_report_subreport import (
|
||||
InvalidNameError,
|
||||
ParentLoopError,
|
||||
)
|
||||
|
||||
|
||||
class TestMisSubreport(SavepointCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super(TestMisSubreport, cls).setUpClass()
|
||||
# create report
|
||||
cls.subreport = cls.env["mis.report"].create(dict(name="test subreport"))
|
||||
cls.subreport_kpi1 = cls.env["mis.report.kpi"].create(
|
||||
dict(
|
||||
report_id=cls.subreport.id,
|
||||
name="sk1",
|
||||
description="subreport kpi 1",
|
||||
expression="11",
|
||||
)
|
||||
)
|
||||
cls.report = cls.env["mis.report"].create(
|
||||
dict(
|
||||
name="test report",
|
||||
subreport_ids=[
|
||||
(0, 0, dict(name="subreport", subreport_id=cls.subreport.id))
|
||||
],
|
||||
)
|
||||
)
|
||||
cls.report_kpi1 = cls.env["mis.report.kpi"].create(
|
||||
dict(
|
||||
report_id=cls.report.id,
|
||||
name="k1",
|
||||
description="report kpi 1",
|
||||
expression="subreport.sk1 + 1",
|
||||
)
|
||||
)
|
||||
cls.parent_report = cls.env["mis.report"].create(
|
||||
dict(
|
||||
name="parent report",
|
||||
subreport_ids=[(0, 0, dict(name="report", subreport_id=cls.report.id))],
|
||||
)
|
||||
)
|
||||
cls.parent_report_kpi1 = cls.env["mis.report.kpi"].create(
|
||||
dict(
|
||||
report_id=cls.parent_report.id,
|
||||
name="pk1",
|
||||
description="parent report kpi 1",
|
||||
expression="report.k1 + 1",
|
||||
)
|
||||
)
|
||||
|
||||
def test_basic(self):
|
||||
ee = ExpressionEvaluator(aep=None, date_from="2017-01-01", date_to="2017-01-16")
|
||||
d = self.report._evaluate(ee)
|
||||
assert d["k1"] == 12
|
||||
|
||||
def test_two_levels(self):
|
||||
ee = ExpressionEvaluator(aep=None, date_from="2017-01-01", date_to="2017-01-16")
|
||||
d = self.parent_report._evaluate(ee)
|
||||
assert d["pk1"] == 13
|
||||
|
||||
def test_detect_loop(self):
|
||||
with self.assertRaises(ParentLoopError):
|
||||
self.report.write(
|
||||
dict(
|
||||
subreport_ids=[
|
||||
(
|
||||
0,
|
||||
0,
|
||||
dict(name="preport1", subreport_id=self.parent_report.id),
|
||||
)
|
||||
]
|
||||
)
|
||||
)
|
||||
with self.assertRaises(ParentLoopError):
|
||||
self.report.write(
|
||||
dict(
|
||||
subreport_ids=[
|
||||
(
|
||||
0,
|
||||
0,
|
||||
dict(name="preport2", subreport_id=self.report.id),
|
||||
)
|
||||
]
|
||||
)
|
||||
)
|
||||
|
||||
def test_invalid_name(self):
|
||||
with self.assertRaises(InvalidNameError):
|
||||
self.report.subreport_ids[0].name = "ab c"
|
|
@ -0,0 +1,19 @@
|
|||
# Copyright 2014 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
import flectra.tests.common as common
|
||||
|
||||
from ..models.mis_report import _utc_midnight
|
||||
|
||||
|
||||
class TestUtcMidnight(common.TransactionCase):
|
||||
def test_utc_midnight(self):
|
||||
date_to_convert = "2014-07-05"
|
||||
date_time_convert = _utc_midnight(date_to_convert, "Europe/Brussels")
|
||||
self.assertEqual(date_time_convert, "2014-07-04 22:00:00")
|
||||
date_time_convert = _utc_midnight(date_to_convert, "Europe/Brussels", add_day=1)
|
||||
self.assertEqual(date_time_convert, "2014-07-05 22:00:00")
|
||||
date_time_convert = _utc_midnight(date_to_convert, "US/Pacific")
|
||||
self.assertEqual(date_time_convert, "2014-07-05 07:00:00")
|
||||
date_time_convert = _utc_midnight(date_to_convert, "US/Pacific", add_day=1)
|
||||
self.assertEqual(date_time_convert, "2014-07-06 07:00:00")
|
|
@ -0,0 +1,321 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<flectra>
|
||||
<record model="ir.ui.view" id="mis_report_view_tree">
|
||||
<field name="name">mis.report.view.tree</field>
|
||||
<field name="model">mis.report</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="MIS Reports">
|
||||
<field name="name" />
|
||||
<field name="description" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="mis_report_view_form">
|
||||
<field name="name">mis.report.view.form</field>
|
||||
<field name="model">mis.report</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="MIS Report">
|
||||
<sheet>
|
||||
<group col="2">
|
||||
<field name="name" />
|
||||
<field name="description" />
|
||||
<field name="style_id" />
|
||||
<field name="move_lines_source" options="{'no_open': true}" />
|
||||
</group>
|
||||
<notebook>
|
||||
<page string="KPI's">
|
||||
<field
|
||||
name="kpi_ids"
|
||||
nolabel="1"
|
||||
colspan="2"
|
||||
context="{'default_report_id': id}"
|
||||
>
|
||||
<tree string="KPI's">
|
||||
<field name="sequence" widget="handle" />
|
||||
<field name="description" />
|
||||
<field name="name" />
|
||||
<field name="type" />
|
||||
<field
|
||||
name="compare_method"
|
||||
attrs="{'invisible': [('type', '=', 'str')]}"
|
||||
/>
|
||||
<field
|
||||
name="accumulation_method"
|
||||
attrs="{'invisible': [('type', '=', 'str')]}"
|
||||
/>
|
||||
<field name="expression" />
|
||||
</tree>
|
||||
</field>
|
||||
</page>
|
||||
<page string="Queries">
|
||||
<field
|
||||
name="query_ids"
|
||||
nolabel="1"
|
||||
colspan="2"
|
||||
context="{'default_report_id': id}"
|
||||
>
|
||||
<tree string="Queries" editable="bottom">
|
||||
<field name="name" />
|
||||
<field name="model_id" />
|
||||
<field
|
||||
name="field_ids"
|
||||
domain="[('model_id', '=', model_id)]"
|
||||
widget="many2many_tags"
|
||||
/>
|
||||
<field name="field_names" />
|
||||
<field name="aggregate" />
|
||||
<field
|
||||
name="date_field"
|
||||
domain="[('model_id', '=', model_id), ('ttype', 'in', ('date', 'datetime'))]"
|
||||
/>
|
||||
<field name="domain" />
|
||||
</tree>
|
||||
</field>
|
||||
</page>
|
||||
<page string="Sub KPI's">
|
||||
<field name="subkpi_ids" nolabel="1" colspan="2">
|
||||
<tree string="Sub KPI's" editable="bottom">
|
||||
<field name="sequence" widget="handle" />
|
||||
<field name="description" />
|
||||
<field name="name" />
|
||||
</tree>
|
||||
</field>
|
||||
</page>
|
||||
<page string="Sub Reports">
|
||||
<field
|
||||
name="subreport_ids"
|
||||
nolabel="1"
|
||||
colspan="2"
|
||||
context="{'default_report_id': id}"
|
||||
>
|
||||
<tree string="Sub Reports" editable="bottom">
|
||||
<field name="name" />
|
||||
<field
|
||||
name="subreport_id"
|
||||
domain="[('id', '!=', parent.id)]"
|
||||
/>
|
||||
</tree>
|
||||
</field>
|
||||
</page>
|
||||
</notebook>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record id="mis_report_view_kpi_form" model="ir.ui.view">
|
||||
<field name="name">mis.report.view.kpi.form</field>
|
||||
<field name="model">mis.report.kpi</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="MIS Report KPI">
|
||||
<group col="4">
|
||||
<field name="description" />
|
||||
<field name="name" />
|
||||
<field name="type" />
|
||||
<newline />
|
||||
<field name="compare_method" />
|
||||
<field name="accumulation_method" />
|
||||
<field name="style_id" />
|
||||
<field name="style_expression" />
|
||||
<field name='id' invisible='1' />
|
||||
<field
|
||||
name="report_id"
|
||||
invisible="1"
|
||||
attrs="{'required': [('id', '!=', False)]}"
|
||||
/>
|
||||
</group>
|
||||
<notebook>
|
||||
<page string="Expressions">
|
||||
<group col="2">
|
||||
<field name="multi" />
|
||||
<newline />
|
||||
<field
|
||||
name="expression_ids"
|
||||
colspan="2"
|
||||
nolabel="1"
|
||||
attrs="{'invisible': [('multi', '=', False)]}"
|
||||
>
|
||||
<tree editable="bottom">
|
||||
<field
|
||||
name="subkpi_id"
|
||||
domain="[('report_id', '=', parent.report_id)]"
|
||||
/>
|
||||
<field name="name" />
|
||||
</tree>
|
||||
</field>
|
||||
<field
|
||||
name="expression"
|
||||
colspan="2"
|
||||
nolabel="1"
|
||||
attrs="{'invisible': [('multi', '=', True)],
|
||||
'readonly': [('multi', '=', True)]}"
|
||||
placeholder="Enter expression here, for example balp[70%]. See also help tab."
|
||||
/>
|
||||
</group>
|
||||
<group col="4" string="Auto expand">
|
||||
<field name="auto_expand_accounts" />
|
||||
<field
|
||||
name="auto_expand_accounts_style_id"
|
||||
attrs="{'invisible': [('auto_expand_accounts', '!=', True)]}"
|
||||
/>
|
||||
</group>
|
||||
</page>
|
||||
<page string="Help (for KPI expressions)">
|
||||
<group>
|
||||
<group>
|
||||
<div>
|
||||
<p>
|
||||
Expressions can be any valid python expressions.
|
||||
</p>
|
||||
<p>
|
||||
The following special elements are recognized in
|
||||
the expressions to compute accounting data:
|
||||
<code>
|
||||
{bal|crd|deb|pbal|nbal}{pieu}[account
|
||||
selector][journal items domain]
|
||||
</code>
|
||||
.
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
<b>bal, crd, deb, pbal, nbal</b>
|
||||
: balance, debit, credit, positive balance,
|
||||
negative balance.
|
||||
</li>
|
||||
<li>
|
||||
<b>p, i, e</b>
|
||||
: respectively variation over the period,
|
||||
initial balance, ending balance
|
||||
</li>
|
||||
<li>
|
||||
The
|
||||
<b>account selector</b>
|
||||
is a like expression on the account code (eg
|
||||
70%, etc).
|
||||
</li>
|
||||
<li>
|
||||
The
|
||||
<b>journal items domain</b>
|
||||
is an Flectra domain filter on journal items.
|
||||
</li>
|
||||
<li>
|
||||
<b>balu[]</b>
|
||||
: (u for unallocated) is a special
|
||||
expression that shows the unallocated
|
||||
profit/loss of previous
|
||||
fiscal years.
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
Expressions can involve other KPI, sub KPI and
|
||||
query results by name (eg kpi1 + kpi2,
|
||||
kpi2.subkpi1, query1.field1).
|
||||
</p>
|
||||
<p>
|
||||
Additionally following variables are available
|
||||
in the evaluation context:
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
<b>sum, min, max, len, avg</b>
|
||||
: behave as expected, very similar to the
|
||||
python builtins.
|
||||
</li>
|
||||
<li>
|
||||
<b>datetime, datetime, dateutil</b>
|
||||
: the python modules.
|
||||
</li>
|
||||
<li>
|
||||
<b>date_from, date_to</b>
|
||||
: beginning and end date of the period.
|
||||
</li>
|
||||
<li>
|
||||
<b>AccountingNone</b>
|
||||
: a null value that behaves as 0 in
|
||||
arithmetic operations.
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</group>
|
||||
<group>
|
||||
<div>
|
||||
<p>Examples:</p>
|
||||
<ul>
|
||||
<li>
|
||||
<b>bal[70]</b>
|
||||
: variation of the balance of account 70
|
||||
over the period (it is the same as balp[70].
|
||||
</li>
|
||||
<li>
|
||||
<b>bali[70,60]</b>
|
||||
: initial balance of accounts 70 and 60.
|
||||
</li>
|
||||
<li>
|
||||
<b>bale[1%%]</b>
|
||||
: balance of accounts starting with 1 at end
|
||||
of period.
|
||||
</li>
|
||||
<li>
|
||||
<b>crdp[40%]</b>
|
||||
: sum of all credits on accounts starting
|
||||
with 40 during the period.
|
||||
</li>
|
||||
<li>
|
||||
<b>
|
||||
debp[55%][('journal_id.code', '=',
|
||||
'BNK1')]
|
||||
</b>
|
||||
: sum of all debits on accounts 55 and
|
||||
journal BNK1 during the period.
|
||||
</li>
|
||||
<li>
|
||||
<b>
|
||||
balp[('user_type_id', '=',
|
||||
ref('account.
|
||||
data_account_type_receivable').id)][]
|
||||
</b>
|
||||
: variation of the balance of all receivable
|
||||
accounts over the period.
|
||||
</li>
|
||||
<li>
|
||||
<b>
|
||||
balp[][('tax_line_id.tag_ids', '=',
|
||||
ref('l10n_be.tax_tag_56').id)]
|
||||
</b>
|
||||
: balance of move lines related to tax grid
|
||||
56.
|
||||
</li>
|
||||
<li>
|
||||
<b>pbale[55%]</b>
|
||||
: sum of all ending balances of accounts
|
||||
starting with 55 whose
|
||||
ending balance is positive.
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</group>
|
||||
</group>
|
||||
</page>
|
||||
</notebook>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window" id="mis_report_view_action">
|
||||
<field name="name">MIS Report Templates</field>
|
||||
<field name="view_id" ref="mis_report_view_tree" />
|
||||
<field name="res_model">mis.report</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
<menuitem
|
||||
id="mis_report_conf_menu"
|
||||
parent="account.menu_finance_configuration"
|
||||
name="MIS Reporting"
|
||||
sequence="90"
|
||||
/>
|
||||
<menuitem
|
||||
id="mis_report_view_menu"
|
||||
parent="mis_report_conf_menu"
|
||||
name="MIS Report Templates"
|
||||
action="mis_report_view_action"
|
||||
sequence="21"
|
||||
/>
|
||||
</flectra>
|
|
@ -0,0 +1,402 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<flectra>
|
||||
<template id="assets_backend" name="mis_builder" inherit_id="web.assets_backend">
|
||||
<xpath expr="." position="inside">
|
||||
<link rel="stylesheet" href="/mis_builder/static/src/css/custom.css" />
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="/mis_builder/static/src/js/mis_report_widget.js"
|
||||
/>
|
||||
</xpath>
|
||||
</template>
|
||||
<record model="ir.ui.view" id="mis_report_instance_result_view_form">
|
||||
<field name="name">mis.report.instance.result.view.form</field>
|
||||
<field name="model">mis.report.instance</field>
|
||||
<field name="priority" eval="20 " />
|
||||
<field name="arch" type="xml">
|
||||
<form string="MIS Report Result" edit="false" create="false" delete="false">
|
||||
<group colspan="4">
|
||||
<field name="id" widget="mis_report_widget" nolabel="1" />
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="mis_report_instance_view_tree">
|
||||
<field name="name">mis.report.instance.view.tree</field>
|
||||
<field name="model">mis.report.instance</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="MIS Report Instances">
|
||||
<button
|
||||
type="object"
|
||||
name="preview"
|
||||
string="Preview"
|
||||
icon="fa-search"
|
||||
/>
|
||||
<button type="object" name="print_pdf" string="Print" icon="fa-print" />
|
||||
<button
|
||||
type="object"
|
||||
name="export_xls"
|
||||
string="Export"
|
||||
icon="fa-download"
|
||||
/>
|
||||
<field name="name" />
|
||||
<field name="report_id" string="Template" />
|
||||
<field name="company_id" groups="base.group_multi_company" />
|
||||
<field name="multi_company" groups="base.group_multi_company" />
|
||||
<field name="currency_id" groups="base.group_multi_currency" />
|
||||
<field name="target_move" />
|
||||
<field name="pivot_date" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="mis_report_instance_view_form">
|
||||
<field name="name">mis.report.instance.view.form</field>
|
||||
<field name="model">mis.report.instance</field>
|
||||
<field name="priority" eval="15" />
|
||||
<field name="arch" type="xml">
|
||||
<form string="MIS Report Instance">
|
||||
<sheet>
|
||||
<field name="temporary" invisible="1" />
|
||||
<div class="oe_read_only oe_right oe_button_box" name="buttons">
|
||||
<button
|
||||
type="object"
|
||||
name="preview"
|
||||
string="Preview"
|
||||
icon="fa-search"
|
||||
/>
|
||||
<button
|
||||
type="object"
|
||||
name="print_pdf"
|
||||
string="Print"
|
||||
icon="fa-print"
|
||||
/>
|
||||
<button
|
||||
type="object"
|
||||
name="export_xls"
|
||||
string="Export"
|
||||
icon="fa-download"
|
||||
/>
|
||||
<button
|
||||
type="action"
|
||||
name="%(mis_report_instance_add_to_dashboard_action)d"
|
||||
string="Add to dashboard"
|
||||
icon="fa-plus"
|
||||
attrs="{'invisible': [('temporary', '=', True)]}"
|
||||
/>
|
||||
<button
|
||||
type="object"
|
||||
name="save_report"
|
||||
string="Save"
|
||||
icon="fa-save"
|
||||
attrs="{'invisible': [('temporary', '=', False)]}"
|
||||
/>
|
||||
</div>
|
||||
<div class="oe_title">
|
||||
<div class="oe_edit_only">
|
||||
<label for="name" />
|
||||
</div>
|
||||
<h1>
|
||||
<field name="name" placeholder="Name" />
|
||||
</h1>
|
||||
<field name="description" />
|
||||
</div>
|
||||
<group>
|
||||
<group>
|
||||
<field name="report_id" string="Template" />
|
||||
<field
|
||||
name="currency_id"
|
||||
groups="base.group_multi_currency"
|
||||
/>
|
||||
<field name="comparison_mode" />
|
||||
</group>
|
||||
<group>
|
||||
<group
|
||||
name="simple_mode"
|
||||
attrs="{'invisible': [('comparison_mode', '=', True)]}"
|
||||
colspan="4"
|
||||
>
|
||||
<field name="date_range_id" />
|
||||
<field
|
||||
name="date_from"
|
||||
attrs="{'required': [('comparison_mode', '=', False)]}"
|
||||
/>
|
||||
<field
|
||||
name="date_to"
|
||||
attrs="{'required': [('comparison_mode', '=', False)]}"
|
||||
/>
|
||||
</group>
|
||||
</group>
|
||||
</group>
|
||||
<notebook>
|
||||
<page
|
||||
string="Columns"
|
||||
attrs="{'invisible': [('comparison_mode', '=', False)]}"
|
||||
>
|
||||
<group>
|
||||
<group>
|
||||
<field name="date" />
|
||||
</group>
|
||||
<group>
|
||||
|
||||
</group>
|
||||
<field
|
||||
name="period_ids"
|
||||
nolabel="1"
|
||||
colspan="4"
|
||||
attrs="{'required': [('comparison_mode', '=', True)]}"
|
||||
context="{'default_report_instance_id': id}"
|
||||
>
|
||||
<tree decoration-danger="not valid">
|
||||
<field name="sequence" widget="handle" />
|
||||
<field name="name" />
|
||||
<field name="source" />
|
||||
<field name="date_from" />
|
||||
<field name="date_to" />
|
||||
<field name="valid" invisible="1" />
|
||||
</tree>
|
||||
</field>
|
||||
</group>
|
||||
</page>
|
||||
<page string="Filters">
|
||||
<group name="filters">
|
||||
<field name="target_move" widget="radio" />
|
||||
<field
|
||||
name="company_id"
|
||||
groups="base.group_multi_company"
|
||||
/>
|
||||
<field
|
||||
name="multi_company"
|
||||
groups="base.group_multi_company"
|
||||
/>
|
||||
<field
|
||||
name="company_ids"
|
||||
groups="base.group_multi_company"
|
||||
widget="many2many_tags"
|
||||
domain="[('id', 'child_of', company_id)]"
|
||||
attrs="{'invisible': [('multi_company', '=', False)]}"
|
||||
/>
|
||||
<field
|
||||
name="analytic_account_id"
|
||||
groups="analytic.group_analytic_accounting"
|
||||
/>
|
||||
<field
|
||||
name="analytic_tag_ids"
|
||||
groups="analytic.group_analytic_tags"
|
||||
widget="many2many_tags"
|
||||
/>
|
||||
</group>
|
||||
</page>
|
||||
<page string="Layout">
|
||||
<group name="layout">
|
||||
<field name="landscape_pdf" />
|
||||
<field name="no_auto_expand_accounts" />
|
||||
<field name="display_columns_description" />
|
||||
<field name="hide_analytic_filters" />
|
||||
</group>
|
||||
</page>
|
||||
</notebook>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window" id="mis_report_instance_view_action">
|
||||
<field name="name">MIS Reports</field>
|
||||
<field name="view_id" ref="mis_report_instance_view_tree" />
|
||||
<field name="res_model">mis.report.instance</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="domain">[('temporary', '=', False)]</field>
|
||||
</record>
|
||||
<menuitem
|
||||
id="mis_report_finance_menu"
|
||||
parent="account.menu_finance_reports"
|
||||
name="MIS Reporting"
|
||||
sequence="101"
|
||||
/>
|
||||
<menuitem
|
||||
id="mis_report_instance_view_menu"
|
||||
parent="mis_report_finance_menu"
|
||||
name="MIS Reports"
|
||||
action="mis_report_instance_view_action"
|
||||
sequence="10"
|
||||
/>
|
||||
<record id="wizard_mis_report_instance_view_form" model="ir.ui.view">
|
||||
<field name="model">mis.report.instance</field>
|
||||
<field name="inherit_id" ref="mis_builder.mis_report_instance_view_form" />
|
||||
<field name="mode">primary</field>
|
||||
<field name="arch" type="xml">
|
||||
<field name="name" position="attributes">
|
||||
<attribute name="readonly">1</attribute>
|
||||
</field>
|
||||
<label for="name" position="replace" />
|
||||
<field name="report_id" position="attributes">
|
||||
<attribute name="invisible">1</attribute>
|
||||
</field>
|
||||
<div name="buttons" position="attributes">
|
||||
<attribute name="invisible">1</attribute>
|
||||
</div>
|
||||
<sheet position="after">
|
||||
<footer>
|
||||
<button
|
||||
type="object"
|
||||
name="save_report"
|
||||
string="Save"
|
||||
icon="fa-save"
|
||||
/>
|
||||
<button
|
||||
type="object"
|
||||
name="preview"
|
||||
string="Preview"
|
||||
icon="fa-search"
|
||||
/>
|
||||
<button
|
||||
type="object"
|
||||
name="print_pdf"
|
||||
string="Print"
|
||||
icon="fa-print"
|
||||
/>
|
||||
<button
|
||||
type="object"
|
||||
name="export_xls"
|
||||
string="Export"
|
||||
icon="fa-download"
|
||||
/>
|
||||
or
|
||||
<button string="Cancel" class="oe_link" special="cancel" />
|
||||
</footer>
|
||||
</sheet>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window" id="last_mis_report_instance_view_action">
|
||||
<field name="name">Last Reports Generated</field>
|
||||
<field name="view_id" ref="mis_report_instance_view_tree" />
|
||||
<field name="res_model">mis.report.instance</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="domain">[('temporary', '=', True)]</field>
|
||||
</record>
|
||||
<menuitem
|
||||
id="last_wizard_mis_report_instance_view_menu"
|
||||
parent="mis_report_finance_menu"
|
||||
name="Last Reports Generated"
|
||||
action="last_mis_report_instance_view_action"
|
||||
sequence="20"
|
||||
/>
|
||||
<record model="ir.ui.view" id="mis_report_instance_period_view_form">
|
||||
<field name="model">mis.report.instance.period</field>
|
||||
<field name="priority" eval="16" />
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<group col="4">
|
||||
<field name="name" placeholder="Name" />
|
||||
<field
|
||||
name="subkpi_ids"
|
||||
domain="[('report_id', '=', parent.report_id)]"
|
||||
widget="many2many_tags"
|
||||
options="{'no_create': True}"
|
||||
/>
|
||||
<field name="valid" invisible="1" />
|
||||
<field
|
||||
name="report_instance_id"
|
||||
invisible="1"
|
||||
attrs="{'required': [('id', '!=', False)]}"
|
||||
/>
|
||||
<field name="report_id" invisible="1" />
|
||||
<field name="id" invisible="1" />
|
||||
</group>
|
||||
<group string="Source" col="4">
|
||||
<group colspan="2" name="source">
|
||||
<field name="source" />
|
||||
</group>
|
||||
<group col="2" colspan="2" name="source_data">
|
||||
<field
|
||||
name="source_aml_model_id"
|
||||
attrs="{'invisible': [('source', '!=', 'actuals_alt')], 'required': [('source', '==', 'actuals_alt')]}"
|
||||
/>
|
||||
<field name="source_aml_model_name" invisible="1" />
|
||||
<field
|
||||
name="source_sumcol_ids"
|
||||
attrs="{'invisible': [('source', '!=', 'sumcol')]}"
|
||||
nolabel="1"
|
||||
colspan="2"
|
||||
>
|
||||
<tree editable="bottom">
|
||||
<field name="sign" />
|
||||
<field
|
||||
name="period_to_sum_id"
|
||||
domain="[('report_instance_id', '=', parent.report_instance_id), ('id', '!=', parent.id)]"
|
||||
options="{'no_create': True, 'no_open': True}"
|
||||
/>
|
||||
</tree>
|
||||
</field>
|
||||
<field
|
||||
name="source_sumcol_accdet"
|
||||
attrs="{'invisible': [('source', '!=', 'sumcol')]}"
|
||||
/>
|
||||
<field
|
||||
name="source_cmpcol_to_id"
|
||||
attrs="{'invisible': [('source', '!=', 'cmpcol')], 'required': [('source', '=', 'cmpcol')]}"
|
||||
domain="[('report_instance_id', '=', report_instance_id), ('id', '!=', id)]"
|
||||
options="{'no_create': True, 'no_open': True}"
|
||||
/>
|
||||
<field
|
||||
name="source_cmpcol_from_id"
|
||||
attrs="{'invisible': [('source', '!=', 'cmpcol')], 'required': [('source', '=', 'cmpcol')]}"
|
||||
domain="[('report_instance_id', '=', report_instance_id), ('id', '!=', id)]"
|
||||
options="{'no_create': True, 'no_open': True}"
|
||||
/>
|
||||
</group>
|
||||
</group>
|
||||
<group string="Dates">
|
||||
<group colspan="4">
|
||||
<field name="mode" widget="radio" />
|
||||
</group>
|
||||
<group
|
||||
name="relative"
|
||||
attrs="{'invisible': [('mode', '!=', 'relative')]}"
|
||||
colspan="4"
|
||||
>
|
||||
<group>
|
||||
<field
|
||||
name="type"
|
||||
attrs="{'required': [('mode', '=', 'relative')]}"
|
||||
/>
|
||||
<field name="is_ytd" />
|
||||
<field
|
||||
name="date_range_type_id"
|
||||
attrs="{'invisible': [('type', '!=', 'date_range')], 'required': [('type', '=', 'date_range'), ('mode', '=', 'relative')]}"
|
||||
/>
|
||||
<field name="offset" />
|
||||
<field name="duration" />
|
||||
</group>
|
||||
<group>
|
||||
<field name="date_from" />
|
||||
<field name="date_to" />
|
||||
</group>
|
||||
</group>
|
||||
<group
|
||||
name="fix"
|
||||
attrs="{'invisible': [('mode', '!=', 'fix')]}"
|
||||
colspan="4"
|
||||
>
|
||||
<group>
|
||||
<field name="date_range_id" />
|
||||
</group>
|
||||
<group>
|
||||
<field
|
||||
name="manual_date_from"
|
||||
attrs="{'required': [('mode', '=', 'fix')]}"
|
||||
/>
|
||||
<field
|
||||
name="manual_date_to"
|
||||
attrs="{'required': [('mode', '=', 'fix')]}"
|
||||
/>
|
||||
</group>
|
||||
</group>
|
||||
</group>
|
||||
<group string="Filters">
|
||||
<field name="analytic_account_id" />
|
||||
<field name="analytic_tag_ids" widget="many2many_tags" />
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
</flectra>
|
|
@ -0,0 +1,110 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<flectra>
|
||||
<record model="ir.ui.view" id="mis_report_style_view_tree">
|
||||
<field name="name">mis.report.style.view.tree</field>
|
||||
<field name="model">mis.report.style</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="MIS Report Styles">
|
||||
<field name="name" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
<record id="mis_report_style_view_form" model="ir.ui.view">
|
||||
<field name="name">mis.report.style.view.form</field>
|
||||
<field name="model">mis.report.style</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="MIS Report Style">
|
||||
<sheet>
|
||||
<group string="Style" col="2">
|
||||
<field name="name" />
|
||||
</group>
|
||||
<group string="Number" col="4">
|
||||
<field name="dp_inherit" string="Rounding inherit" />
|
||||
<field
|
||||
name="dp"
|
||||
attrs="{'invisible': [('dp_inherit', '=', True)]}"
|
||||
/>
|
||||
<field name="divider_inherit" string="Factor inherit" />
|
||||
<field
|
||||
name="divider"
|
||||
attrs="{'invisible': [('divider_inherit', '=', True)]}"
|
||||
/>
|
||||
<field name="prefix_inherit" />
|
||||
<field
|
||||
name="prefix"
|
||||
attrs="{'invisible': [('prefix_inherit', '=', True)]}"
|
||||
/>
|
||||
<field name="suffix_inherit" />
|
||||
<field
|
||||
name="suffix"
|
||||
attrs="{'invisible': [('suffix_inherit', '=', True)]}"
|
||||
/>
|
||||
</group>
|
||||
<group string="Color" col="4">
|
||||
<field name="color_inherit" />
|
||||
<field
|
||||
name="color"
|
||||
attrs="{'invisible': [('color_inherit', '=', True)]}"
|
||||
widget="color"
|
||||
/>
|
||||
<field name="background_color_inherit" />
|
||||
<field
|
||||
name="background_color"
|
||||
attrs="{'invisible': [('background_color_inherit', '=', True)]}"
|
||||
widget="color"
|
||||
/>
|
||||
</group>
|
||||
<group string="Font" col="4">
|
||||
<field name="font_style_inherit" />
|
||||
<field
|
||||
name="font_style"
|
||||
attrs="{'invisible': [('font_style_inherit', '=', True)]}"
|
||||
/>
|
||||
<field name="font_weight_inherit" />
|
||||
<field
|
||||
name="font_weight"
|
||||
attrs="{'invisible': [('font_weight_inherit', '=', True)]}"
|
||||
/>
|
||||
<field name="font_size_inherit" />
|
||||
<field
|
||||
name="font_size"
|
||||
attrs="{'invisible': [('font_size_inherit', '=', True)]}"
|
||||
/>
|
||||
</group>
|
||||
<group string="Indent" col="4">
|
||||
<field name="indent_level_inherit" />
|
||||
<field
|
||||
name="indent_level"
|
||||
attrs="{'invisible': [('indent_level_inherit', '=', True)]}"
|
||||
/>
|
||||
</group>
|
||||
<group string="Visibility" col="4">
|
||||
<field name="hide_empty_inherit" />
|
||||
<field
|
||||
name="hide_empty"
|
||||
attrs="{'invisible': [('hide_empty_inherit', '=', True)]}"
|
||||
/>
|
||||
<field name="hide_always_inherit" />
|
||||
<field
|
||||
name="hide_always"
|
||||
attrs="{'invisible': [('hide_always_inherit', '=', True)]}"
|
||||
/>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window" id="mis_report_style_view_action">
|
||||
<field name="name">MIS Report Styles</field>
|
||||
<field name="view_id" ref="mis_report_style_view_tree" />
|
||||
<field name="res_model">mis.report.style</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
<menuitem
|
||||
id="mis_report_style_view_menu"
|
||||
parent="mis_report_conf_menu"
|
||||
name="MIS Report Styles"
|
||||
action="mis_report_style_view_action"
|
||||
sequence="22"
|
||||
/>
|
||||
</flectra>
|
|
@ -0,0 +1,4 @@
|
|||
# Copyright 2014 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from . import mis_builder_dashboard
|
|
@ -0,0 +1,92 @@
|
|||
# Copyright 2014 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from lxml import etree
|
||||
|
||||
from flectra import api, fields, models
|
||||
|
||||
|
||||
class AddMisReportInstanceDashboard(models.TransientModel):
|
||||
_name = "add.mis.report.instance.dashboard.wizard"
|
||||
_description = "MIS Report Add to Dashboard Wizard"
|
||||
|
||||
name = fields.Char("Name", size=32, required=True)
|
||||
|
||||
dashboard_id = fields.Many2one(
|
||||
"ir.actions.act_window",
|
||||
string="Dashboard",
|
||||
required=True,
|
||||
domain="[('res_model', '=', " "'board.board')]",
|
||||
)
|
||||
|
||||
@api.model
|
||||
def default_get(self, fields_list):
|
||||
res = {}
|
||||
if self.env.context.get("active_id", False):
|
||||
res = super(AddMisReportInstanceDashboard, self).default_get(fields_list)
|
||||
# get report instance name
|
||||
res["name"] = (
|
||||
self.env["mis.report.instance"]
|
||||
.browse(self.env.context["active_id"])
|
||||
.name
|
||||
)
|
||||
return res
|
||||
|
||||
def action_add_to_dashboard(self):
|
||||
active_model = self.env.context.get("active_model")
|
||||
assert active_model == "mis.report.instance"
|
||||
active_id = self.env.context.get("active_id")
|
||||
assert active_id
|
||||
mis_report_instance = self.env[active_model].browse(active_id)
|
||||
# create the act_window corresponding to this report
|
||||
self.env.ref("mis_builder.mis_report_instance_result_view_form")
|
||||
view = self.env.ref("mis_builder.mis_report_instance_result_view_form")
|
||||
report_result = (
|
||||
self.env["ir.actions.act_window"]
|
||||
.sudo()
|
||||
.create(
|
||||
{
|
||||
"name": "mis.report.instance.result.view.action.%d"
|
||||
% self.env.context["active_id"],
|
||||
"res_model": active_model,
|
||||
"res_id": active_id,
|
||||
"target": "current",
|
||||
"view_mode": "form",
|
||||
"view_id": view.id,
|
||||
"context": mis_report_instance._context_with_filters(),
|
||||
}
|
||||
)
|
||||
)
|
||||
# add this result in the selected dashboard
|
||||
last_customization = self.env["ir.ui.view.custom"].search(
|
||||
[
|
||||
("user_id", "=", self.env.uid),
|
||||
("ref_id", "=", self.dashboard_id.view_id.id),
|
||||
],
|
||||
limit=1,
|
||||
)
|
||||
arch = self.dashboard_id.view_id.arch
|
||||
if last_customization:
|
||||
arch = self.env["ir.ui.view.custom"].browse(last_customization[0].id).arch
|
||||
new_arch = etree.fromstring(arch)
|
||||
column = new_arch.xpath("//column")[0]
|
||||
column.append(
|
||||
etree.Element(
|
||||
"action",
|
||||
{
|
||||
"context": str(self.env.context),
|
||||
"name": str(report_result.id),
|
||||
"string": self.name,
|
||||
"view_mode": "form",
|
||||
},
|
||||
)
|
||||
)
|
||||
self.env["ir.ui.view.custom"].create(
|
||||
{
|
||||
"user_id": self.env.uid,
|
||||
"ref_id": self.dashboard_id.view_id.id,
|
||||
"arch": etree.tostring(new_arch, pretty_print=True),
|
||||
}
|
||||
)
|
||||
|
||||
return {"type": "ir.actions.act_window_close"}
|
|
@ -0,0 +1,36 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<flectra>
|
||||
<record model="ir.ui.view" id="mis_report_instance_add_to_dashboard_form_view">
|
||||
<field name="name">add.mis.report.instance.dashboard.wizard.view</field>
|
||||
<field name="model">add.mis.report.instance.dashboard.wizard</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Add to dashboard">
|
||||
<group>
|
||||
<field name="name" />
|
||||
<field name="dashboard_id" />
|
||||
</group>
|
||||
<footer>
|
||||
<button
|
||||
name="action_add_to_dashboard"
|
||||
string="Add to dashboard"
|
||||
type="object"
|
||||
default_focus="1"
|
||||
class="oe_highlight"
|
||||
/>
|
||||
or
|
||||
<button string="Cancel" class="oe_link" special="cancel" />
|
||||
</footer>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record
|
||||
model="ir.actions.act_window"
|
||||
id="mis_report_instance_add_to_dashboard_action"
|
||||
>
|
||||
<field name="name">Add to dashboard</field>
|
||||
<field name="res_model">add.mis.report.instance.dashboard.wizard</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="mis_report_instance_add_to_dashboard_form_view" />
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
</flectra>
|
|
@ -0,0 +1,21 @@
|
|||
Most of the files are
|
||||
|
||||
:Copyright: This stylesheet has been placed in the public domain.
|
||||
<!-- Copyright 2017 ACSONE SA/NV
|
||||
<!-- Copyright 2017-2018 ACSONE SA/NV
|
||||
<!-- Copyright 2017-2020 ACSONE SA/NV
|
||||
Copyright 2017 ACSONE SA/NV
|
||||
Copyright 2017 ACSONE SA/NV (<http://acsone.eu>)
|
||||
Copyright 2017-2018 ACSONE SA/NV
|
||||
Copyright 2017-2020 ACSONE SA/NV
|
||||
Copyright 2018 Flectra Community
|
||||
|
||||
Many files also contain contributions from third
|
||||
parties. In this case the original copyright of
|
||||
the contributions can be traced through the
|
||||
history of the source version control system.
|
||||
|
||||
When that is not the case, the files contain a prominent
|
||||
notice stating the original copyright and applicable
|
||||
license, or come with their own dedicated COPYRIGHT
|
||||
and/or LICENSE file.
|
|
@ -0,0 +1,663 @@
|
|||
For copyright information, please see the COPYRIGHT file.
|
||||
|
||||
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
Version 3, 19 November 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 Affero General Public License is a free, copyleft license for
|
||||
software and other kinds of works, specifically designed to ensure
|
||||
cooperation with the community in the case of network server software.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
our General Public Licenses are 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.
|
||||
|
||||
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.
|
||||
|
||||
Developers that use our General Public Licenses protect your rights
|
||||
with two steps: (1) assert copyright on the software, and (2) offer
|
||||
you this License which gives you legal permission to copy, distribute
|
||||
and/or modify the software.
|
||||
|
||||
A secondary benefit of defending all users' freedom is that
|
||||
improvements made in alternate versions of the program, if they
|
||||
receive widespread use, become available for other developers to
|
||||
incorporate. Many developers of free software are heartened and
|
||||
encouraged by the resulting cooperation. However, in the case of
|
||||
software used on network servers, this result may fail to come about.
|
||||
The GNU General Public License permits making a modified version and
|
||||
letting the public access it on a server without ever releasing its
|
||||
source code to the public.
|
||||
|
||||
The GNU Affero General Public License is designed specifically to
|
||||
ensure that, in such cases, the modified source code becomes available
|
||||
to the community. It requires the operator of a network server to
|
||||
provide the source code of the modified version running there to the
|
||||
users of that server. Therefore, public use of a modified version, on
|
||||
a publicly accessible server, gives the public access to the source
|
||||
code of the modified version.
|
||||
|
||||
An older license, called the Affero General Public License and
|
||||
published by Affero, was designed to accomplish similar goals. This is
|
||||
a different license, not a version of the Affero GPL, but Affero has
|
||||
released a new version of the Affero GPL which permits relicensing under
|
||||
this license.
|
||||
|
||||
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 Affero 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. Remote Network Interaction; Use with the GNU General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, if you modify the
|
||||
Program, your modified version must prominently offer all users
|
||||
interacting with it remotely through a computer network (if your version
|
||||
supports such interaction) an opportunity to receive the Corresponding
|
||||
Source of your version by providing access to the Corresponding Source
|
||||
from a network server at no charge, through some standard or customary
|
||||
means of facilitating copying of software. This Corresponding Source
|
||||
shall include the Corresponding Source for any work covered by version 3
|
||||
of the GNU General Public License that is incorporated pursuant to the
|
||||
following paragraph.
|
||||
|
||||
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 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 work with which it is combined will remain governed by version
|
||||
3 of the GNU General Public License.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU Affero 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 Affero 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 Affero 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 Affero 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 Affero 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 Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero 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 your software can interact with users remotely through a computer
|
||||
network, you should also make sure that it provides a way for users to
|
||||
get its source. For example, if your program is a web application, its
|
||||
interface could display a "Source" link that leads users to an archive
|
||||
of the code. There are many ways you could offer source, and different
|
||||
solutions will be better for different programs; see section 13 for the
|
||||
specific requirements.
|
||||
|
||||
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 AGPL, see
|
||||
<http://www.gnu.org/licenses/>.
|
|
@ -0,0 +1,203 @@
|
|||
==================
|
||||
MIS Builder Budget
|
||||
==================
|
||||
|
||||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
|
||||
:target: https://odoo-community.org/page/development-status
|
||||
:alt: Production/Stable
|
||||
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
|
||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||
:alt: License: AGPL-3
|
||||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmis--builder-lightgray.png?logo=github
|
||||
:target: https://github.com/OCA/mis-builder/tree/13.0/mis_builder_budget
|
||||
:alt: OCA/mis-builder
|
||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
||||
:target: https://translation.odoo-community.org/projects/mis-builder-13-0/mis-builder-13-0-mis_builder_budget
|
||||
:alt: Translate me on Weblate
|
||||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
|
||||
:target: https://runbot.odoo-community.org/runbot/248/13.0
|
||||
:alt: Try me on Runbot
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
|
||||
Create budgets for MIS reports.
|
||||
|
||||
This module lets you create budgets for any MIS report. Several budgets can be
|
||||
created for a given report template (ie one budget per year). Budget figures
|
||||
are provided by KPI or by GL account, with different time periods. A budget can
|
||||
then be selected as a data source for a MIS report column, and the report will
|
||||
show the budgeted values for each KPI, adjusted for the period of the column.
|
||||
|
||||
**Table of contents**
|
||||
|
||||
.. contents::
|
||||
:local:
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
There are two ways to use this module: create budgets by KPI or budgets by
|
||||
GL accounts. Currently, the two methods cannot be combined in the same budget.
|
||||
|
||||
**Budget by KPIs**
|
||||
|
||||
To use this this mode, you first need to flag at least some KPI in a MIS report
|
||||
to be budgetable. You also need to configure the accumulation method on the KPI
|
||||
according to their type.
|
||||
|
||||
The accumulation method determines how budgeted values spanning over a
|
||||
time period are transformed to match the reporting period.
|
||||
|
||||
* Sum: values of shorter period are added, values of longest or partially overlapping
|
||||
periods are adjusted pro-rata temporis (eg monetary amount such as revenue).
|
||||
* Average: values of included period are averaged with a pro-rata temporis weight.
|
||||
Typically used for values that do not accumulate over time (eg a number of employees).
|
||||
|
||||
When KPI are configured, you need to create a budget, using the MIS Budget (by
|
||||
KPIs) menu, then click on the budget items button to create or import the
|
||||
budgeted amounts for all your KPI and time periods.
|
||||
|
||||
**Budget by GL accounts**
|
||||
|
||||
You can also create budgets by GL accounts. In this case, the budget is
|
||||
populated with one line per GL account (and optionally analytic account and/or
|
||||
tags) and time period.
|
||||
|
||||
**Add budget columns to report instances**
|
||||
|
||||
Finally, a column (aka period) must be added to a MIS report instance,
|
||||
selecting your newly created budget as a data source. The data will be adjusted
|
||||
to the reporting period when displayed. Columns can be compared by adding a
|
||||
column of type "comparison" or "sum".
|
||||
|
||||
Known issues / Roadmap
|
||||
======================
|
||||
|
||||
The mis_builder `roadmap <https://github.com/OCA/mis-builder/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement>`_
|
||||
and `known issues <https://github.com/OCA/mis-builder/issues?q=is%3Aopen+is%3Aissue+label%3Abug>`_ can
|
||||
be found on GitHub.
|
||||
|
||||
Changelog
|
||||
=========
|
||||
|
||||
13.0.3.5.0 (2020-03-28)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
**Features**
|
||||
|
||||
- Budget by GL account: allow budgeting by GL account in addition to the
|
||||
existing mechanism to budget by KPI. Budget items have a begin and end
|
||||
date, and when reporting a pro-rata temporis adjustment is made to match
|
||||
the reporting period. (`#259 <https://github.com/OCA/mis-builder/issues/259>`_)
|
||||
|
||||
|
||||
13.0.3.4.0 (2020-01-??)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Migration to odoo 13.0.
|
||||
|
||||
12.0.3.4.0 (2019-10-26)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
**Bugfixes**
|
||||
|
||||
- Consider analytic tags too when detecting overlapping budget items.
|
||||
Previously only analytic account was considered, and this overlap detection
|
||||
mechanism was overlooked when analytic tags were added to budget items. (`#241 <https://github.com/oca/mis-builder/issues/241>`_)
|
||||
|
||||
|
||||
11.0.3.3.0 (2019-01-13)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
**Features**
|
||||
|
||||
- Support analytic filters. (`#15 <https://github.com/oca/mis-builder/issues/15>`_)
|
||||
|
||||
|
||||
11.0.3.2.1 (2018-06-30)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
- [IMP] Support analytic tags in budget items
|
||||
(`#100 <https://github.com/OCA/mis-builder/pull/100>`_)
|
||||
|
||||
11.0.3.2.0 (2018-05-02)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
- [FIX] #NAME error in out-of-order computation of non
|
||||
budgetable items in budget columns
|
||||
(`#68 <https://github.com/OCA/mis-builder/pull/69>`_)
|
||||
|
||||
11.0.3.1.1 (2018-02-04)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Migration to Odoo 11. No new feature.
|
||||
(`#67 <https://github.com/OCA/mis-builder/pull/67>`_)
|
||||
|
||||
10.0.3.1.0 (2017-11-14)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
New features:
|
||||
|
||||
- [ADD] multi-company record rule for MIS Budgets
|
||||
(`#27 <https://github.com/OCA/mis-builder/issues/27>`_)
|
||||
|
||||
10.0.1.1.1 (2017-10-01)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
First version.
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
|
||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/mis-builder/issues>`_.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||
`feedback <https://github.com/OCA/mis-builder/issues/new?body=module:%20mis_builder_budget%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
|
||||
Do not contact contributors directly about support or help with technical issues.
|
||||
|
||||
Credits
|
||||
=======
|
||||
|
||||
Authors
|
||||
~~~~~~~
|
||||
|
||||
* ACSONE SA/NV
|
||||
|
||||
Contributors
|
||||
~~~~~~~~~~~~
|
||||
|
||||
* Stéphane Bidoul <stephane.bidoul@acsone.eu>
|
||||
* Adrien Peiffer <adrien.peiffer@acsone.eu>
|
||||
* Benjamin Willig <benjamin.willig@acsone.eu>
|
||||
* Artem Kostyuk <a.kostyuk@mobilunity.com>
|
||||
|
||||
Maintainers
|
||||
~~~~~~~~~~~
|
||||
|
||||
This module is maintained by the OCA.
|
||||
|
||||
.. image:: https://odoo-community.org/logo.png
|
||||
:alt: Odoo Community Association
|
||||
:target: https://odoo-community.org
|
||||
|
||||
OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||
mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.
|
||||
|
||||
.. |maintainer-sbidoul| image:: https://github.com/sbidoul.png?size=40px
|
||||
:target: https://github.com/sbidoul
|
||||
:alt: sbidoul
|
||||
|
||||
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|
||||
|
||||
|maintainer-sbidoul|
|
||||
|
||||
This module is part of the `OCA/mis-builder <https://github.com/OCA/mis-builder/tree/13.0/mis_builder_budget>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
|
@ -0,0 +1 @@
|
|||
from . import models
|
|
@ -0,0 +1,28 @@
|
|||
# Copyright 2017-2018 ACSONE SA/NV
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
{
|
||||
"name": "MIS Builder Budget",
|
||||
"summary": """
|
||||
Create budgets for MIS reports""",
|
||||
"version": "2.0.3.5.0",
|
||||
"license": "AGPL-3",
|
||||
"author": "ACSONE SA/NV, " "Odoo Community Association (OCA)",
|
||||
"website": "https://gitlab.com/flectra-community/mis-builder",
|
||||
"depends": ["mis_builder", "account"],
|
||||
"data": [
|
||||
"views/mis_report_instance_period.xml",
|
||||
"views/mis_report.xml",
|
||||
"security/mis_budget_item.xml",
|
||||
"views/mis_budget_item.xml",
|
||||
"security/mis_budget.xml",
|
||||
"views/mis_budget.xml",
|
||||
"security/mis_budget_by_account_item.xml",
|
||||
"views/mis_budget_by_account_item.xml",
|
||||
"security/mis_budget_by_account.xml",
|
||||
"views/mis_budget_by_account.xml",
|
||||
],
|
||||
"installable": False,
|
||||
"development_status": "Production/Stable",
|
||||
"maintainers": ["sbidoul"],
|
||||
}
|
|
@ -0,0 +1,611 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * mis_builder_budget
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 11.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2020-08-31 13:00+0000\n"
|
||||
"Last-Translator: brendapaniagua <brenda.paniagua@qubiq.es>\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: ca\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 3.10\n"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s (copy)"
|
||||
msgstr "%s (còpia)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s is not within budget %s date range."
|
||||
msgstr "%s no és dins del rang de dates del pressupost %s."
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s overlaps %s in budget %s"
|
||||
msgstr "%s superposa %s en el pressupost %s"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s start date must not be after end date"
|
||||
msgstr "La data d'inici de %s no pot ser posterior a la data de finalització"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__account_id
|
||||
msgid "Account"
|
||||
msgstr "Compte"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_needaction
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_needaction
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_needaction
|
||||
msgid "Action Needed"
|
||||
msgstr "Acció necessària"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_report_instance_period__source
|
||||
msgid ""
|
||||
"Actuals: current data, from accounting and other queries.\n"
|
||||
"Actuals (alternative): current data from an alternative source (eg a "
|
||||
"database view providing look-alike account move lines).\n"
|
||||
"Sum columns: summation (+/-) of other columns.\n"
|
||||
"Compare to column: compare to other column.\n"
|
||||
msgstr ""
|
||||
"Actualitat: dades actuals, de comptabilitat i altres consultes.\n"
|
||||
"Actualitat (alternativa): dades actuals d’una font alternativa (per exemple, "
|
||||
"una vista de base de dades que ofereix línies de desplaçament del compte "
|
||||
"semblants).\n"
|
||||
"Suma columnes: suma (+/-) d'altres columnes.\n"
|
||||
"Compara amb columna: compara amb una altra columna.\n"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__amount
|
||||
msgid "Amount"
|
||||
msgstr "Import"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__analytic_tag_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__analytic_tag_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__analytic_tag_ids
|
||||
msgid "Analytic Tags"
|
||||
msgstr "Etiquetes analítiques"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__analytic_account_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__analytic_account_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__analytic_account_id
|
||||
msgid "Analytic account"
|
||||
msgstr "Compte analític"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_attachment_count
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_attachment_count
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_attachment_count
|
||||
msgid "Attachment Count"
|
||||
msgstr "Nombre d’adjunts"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__balance
|
||||
msgid "Balance"
|
||||
msgstr "Equilibri"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_id
|
||||
msgid "Budget"
|
||||
msgstr "Pressupost"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_date_from
|
||||
msgid "Budget Date From"
|
||||
msgstr "Data pressupostària de"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_date_to
|
||||
msgid "Budget Date To"
|
||||
msgstr "Data del pressupost a"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source_mis_budget_by_account_id
|
||||
msgid "Budget by Account"
|
||||
msgstr "Pressupost per compte"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source_mis_budget_id
|
||||
msgid "Budget by KPI"
|
||||
msgstr "Pressupost per KPI"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Budget items"
|
||||
msgstr "Elements de pressupost"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_kpi__budgetable
|
||||
msgid "Budgetable"
|
||||
msgstr "Pressupostable"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Cancel"
|
||||
msgstr "Cancel·lar"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__cancelled
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__cancelled
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__cancelled
|
||||
msgid "Cancelled"
|
||||
msgstr "Cancel·lat"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__company_id
|
||||
msgid "Company"
|
||||
msgstr "Companyia"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__company_currency_id
|
||||
msgid "Company Currency"
|
||||
msgstr "Moneda de l'empresa"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Confirm"
|
||||
msgstr "Confirmar"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__confirmed
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__confirmed
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__confirmed
|
||||
msgid "Confirmed"
|
||||
msgstr "Confirmat"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__create_uid
|
||||
msgid "Created by"
|
||||
msgstr "Creat per"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__create_date
|
||||
msgid "Created on"
|
||||
msgstr "Creat el"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__credit
|
||||
msgid "Credit"
|
||||
msgstr "Crèdit"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date
|
||||
msgid "Date"
|
||||
msgstr "Data"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_range_id
|
||||
msgid "Date range"
|
||||
msgstr "Rang de data"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__debit
|
||||
msgid "Debit"
|
||||
msgstr "Dèbit"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__description
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__description
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__description
|
||||
msgid "Description"
|
||||
msgstr "Descripció"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Nom mostrat"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__draft
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__draft
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__draft
|
||||
msgid "Draft"
|
||||
msgstr "Esborrany"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account_item__date
|
||||
msgid ""
|
||||
"Dummy field that adapts searches on date to searches on date_from/date_to."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_follower_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_follower_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_follower_ids
|
||||
msgid "Followers"
|
||||
msgstr "Seguidors"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_channel_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_channel_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_channel_ids
|
||||
msgid "Followers (Channels)"
|
||||
msgstr "Seguidors (canals)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_partner_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_partner_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_partner_ids
|
||||
msgid "Followers (Partners)"
|
||||
msgstr "Seguidors (socis)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_from
|
||||
msgid "From"
|
||||
msgstr "Des del"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__id
|
||||
msgid "ID"
|
||||
msgstr "ID"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_unread
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_unread
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_unread
|
||||
msgid "If checked, new messages require your attention."
|
||||
msgstr "Si es marca, els missatges nous requereixen la vostra atenció."
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_sms_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_sms_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_sms_error
|
||||
msgid "If checked, some messages have a delivery error."
|
||||
msgstr "Si es marca, alguns missatges tenen un error de lliurament."
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_is_follower
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_is_follower
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_is_follower
|
||||
msgid "Is Follower"
|
||||
msgstr "És seguidor"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__item_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__item_ids
|
||||
msgid "Item"
|
||||
msgstr "Objecte"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__kpi_expression_id
|
||||
msgid "KPI"
|
||||
msgstr "KPI"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__seq1
|
||||
msgid "KPI Sequence"
|
||||
msgstr "Seqüència de KPI"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Última modificació el"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr "Última actualització per"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr "Última actualització el"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_abstract
|
||||
msgid "MIS Budget (Abstract Base Class)"
|
||||
msgstr "Pressupost MIS (classe base abstracta)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_item_abstract
|
||||
msgid "MIS Budget Item (Abstract Base Class)"
|
||||
msgstr "Partida pressupostària MIS (classe base abstracta)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_by_account_item
|
||||
msgid "MIS Budget Item (by Account)"
|
||||
msgstr "Element del pressupost de MIS (per compte)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_item
|
||||
msgid "MIS Budget Item (by KPI)"
|
||||
msgstr "Punt del pressupost de MIS (per KPI)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_item_act_window
|
||||
msgid "MIS Budget Items (by KPIs)"
|
||||
msgstr "Partides del pressupost de MIS (per KPIs)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_by_account_item_act_window
|
||||
msgid "MIS Budget Items (by accounts)"
|
||||
msgstr "Partides pressupostàries MIS (per comptes)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_by_account
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_report_instance_period__source__mis_budget_by_account
|
||||
msgid "MIS Budget by Account"
|
||||
msgstr "Pressupost MIS per compte"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_report_instance_period__source__mis_budget
|
||||
msgid "MIS Budget by KPI"
|
||||
msgstr "Pressupost de MIS per KPI"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_act_window
|
||||
#: model:ir.ui.menu,name:mis_builder_budget.mis_budget_menu
|
||||
msgid "MIS Budgets (by KPIs)"
|
||||
msgstr "Pressupostos de MIS (per KPIs)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_by_account_act_window
|
||||
#: model:ir.ui.menu,name:mis_builder_budget.mis_budget_by_account_menu
|
||||
msgid "MIS Budgets (by accounts)"
|
||||
msgstr "Pressupostos MIS (per comptes)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_instance
|
||||
msgid "MIS Report Instance"
|
||||
msgstr "Informe MIS Instància"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_instance_period
|
||||
msgid "MIS Report Instance Period"
|
||||
msgstr "Informe MIS Període d’instància"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_kpi
|
||||
msgid "MIS Report KPI"
|
||||
msgstr "Informe de MIS KPI"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_kpi_expression
|
||||
msgid "MIS Report KPI Expression"
|
||||
msgstr "Expressió KPI Informe MIS"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__report_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__report_id
|
||||
msgid "MIS Report Template"
|
||||
msgstr "Plantilla de pressupost MIS"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_main_attachment_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_main_attachment_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_main_attachment_id
|
||||
msgid "Main Attachment"
|
||||
msgstr "Adjunt principal"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_error
|
||||
msgid "Message Delivery error"
|
||||
msgstr "Error de lliurament de missatges"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_ids
|
||||
msgid "Messages"
|
||||
msgstr "Missatges"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__name
|
||||
msgid "Name"
|
||||
msgstr "Nom"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_needaction_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_needaction_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_needaction_counter
|
||||
msgid "Number of Actions"
|
||||
msgstr "Nombre d’accions"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_error_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_error_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_error_counter
|
||||
msgid "Number of errors"
|
||||
msgstr "Nombre d’errors"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_needaction_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_needaction_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_needaction_counter
|
||||
msgid "Number of messages which requires an action"
|
||||
msgstr "Nombre de missatges que requereixen una acció"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_error_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_error_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_error_counter
|
||||
msgid "Number of messages with delivery error"
|
||||
msgstr "Nombre de missatges amb error de publicació"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_unread_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_unread_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_unread_counter
|
||||
msgid "Number of unread messages"
|
||||
msgstr "Nombre de missatges sense llegir"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_sms_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_sms_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_sms_error
|
||||
msgid "SMS Delivery error"
|
||||
msgstr "Error de lliurament de SMS"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Set draft"
|
||||
msgstr "Canviar a esborrany"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source
|
||||
msgid "Source"
|
||||
msgstr "Font"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__state
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__state
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__state
|
||||
msgid "State"
|
||||
msgstr "Estat"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__seq2
|
||||
msgid "Sub-KPI Sequence"
|
||||
msgstr "Seqüencia sub-KPI"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_to
|
||||
msgid "To"
|
||||
msgstr "a"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_unread
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_unread
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_unread
|
||||
msgid "Unread Messages"
|
||||
msgstr "Missatges sense llegir"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_unread_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_unread_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_unread_counter
|
||||
msgid "Unread Messages Counter"
|
||||
msgstr "Contador de missatges sense llegir"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account_item__company_currency_id
|
||||
msgid "Utility field to express amount currency"
|
||||
msgstr "Camp d’utilitat per expressar la quantitat de moneda"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__website_message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__website_message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__website_message_ids
|
||||
msgid "Website Messages"
|
||||
msgstr "Missatges del lloc web"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__website_message_ids
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__website_message_ids
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__website_message_ids
|
||||
msgid "Website communication history"
|
||||
msgstr "Historial de comunicacions de llocs web"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.constraint,message:mis_builder_budget.constraint_mis_budget_by_account_item_credit_debit2
|
||||
msgid ""
|
||||
"Wrong credit or debit value in budget item! Credit and debit should be "
|
||||
"positive."
|
||||
msgstr ""
|
||||
"Valor de crèdit o dèbit incorrecte a la partida pressupostària. El crèdit i "
|
||||
"el dèbit han de ser positius."
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.constraint,message:mis_builder_budget.constraint_mis_budget_by_account_item_credit_debit1
|
||||
msgid ""
|
||||
"Wrong credit or debit value in budget item! Credit or debit should be zero."
|
||||
msgstr ""
|
||||
"Valor de crèdit o de dèbit incorrecte a la partida pressupostària. El crèdit "
|
||||
"o el dèbit han de ser nuls."
|
||||
|
||||
#~ msgid "MIS Budget"
|
||||
#~ msgstr "Pressupost MIS"
|
||||
|
||||
#~ msgid "MIS Budgets"
|
||||
#~ msgstr "Pressupostos MIS"
|
||||
|
||||
#~ msgid "mis.report.instance"
|
||||
#~ msgstr "mis.report.instance"
|
||||
|
||||
#~ msgid "mis.report.kpi"
|
||||
#~ msgstr "mis.report.kpi"
|
||||
|
||||
#~ msgid "mis.report.kpi.expression"
|
||||
#~ msgstr "mis.report.kpi.expression"
|
|
@ -0,0 +1,588 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * mis_builder_budget
|
||||
#
|
||||
# Translators:
|
||||
# Rudolf Schnapka <rs@techno-flex.de>, 2018
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 11.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-02-05 01:43+0000\n"
|
||||
"PO-Revision-Date: 2018-02-05 01:43+0000\n"
|
||||
"Last-Translator: Rudolf Schnapka <rs@techno-flex.de>, 2018\n"
|
||||
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
|
||||
"Language: de\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s (copy)"
|
||||
msgstr "%s (Kopie)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s is not within budget %s date range."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s overlaps %s in budget %s"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s start date must not be after end date"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__account_id
|
||||
msgid "Account"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_needaction
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_needaction
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_needaction
|
||||
msgid "Action Needed"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_report_instance_period__source
|
||||
msgid ""
|
||||
"Actuals: current data, from accounting and other queries.\n"
|
||||
"Actuals (alternative): current data from an alternative source (eg a "
|
||||
"database view providing look-alike account move lines).\n"
|
||||
"Sum columns: summation (+/-) of other columns.\n"
|
||||
"Compare to column: compare to other column.\n"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__amount
|
||||
msgid "Amount"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__analytic_tag_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__analytic_tag_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__analytic_tag_ids
|
||||
msgid "Analytic Tags"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__analytic_account_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__analytic_account_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__analytic_account_id
|
||||
msgid "Analytic account"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_attachment_count
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_attachment_count
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_attachment_count
|
||||
msgid "Attachment Count"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__balance
|
||||
msgid "Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_id
|
||||
msgid "Budget"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_date_from
|
||||
msgid "Budget Date From"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_date_to
|
||||
msgid "Budget Date To"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source_mis_budget_by_account_id
|
||||
msgid "Budget by Account"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source_mis_budget_id
|
||||
msgid "Budget by KPI"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Budget items"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_kpi__budgetable
|
||||
msgid "Budgetable"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Cancel"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__cancelled
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__cancelled
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__cancelled
|
||||
msgid "Cancelled"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__company_id
|
||||
msgid "Company"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__company_currency_id
|
||||
msgid "Company Currency"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Confirm"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__confirmed
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__confirmed
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__confirmed
|
||||
msgid "Confirmed"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__create_uid
|
||||
msgid "Created by"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__create_date
|
||||
msgid "Created on"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__credit
|
||||
msgid "Credit"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_range_id
|
||||
msgid "Date range"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__debit
|
||||
msgid "Debit"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__description
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__description
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__description
|
||||
msgid "Description"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__display_name
|
||||
msgid "Display Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__draft
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__draft
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__draft
|
||||
msgid "Draft"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account_item__date
|
||||
msgid ""
|
||||
"Dummy field that adapts searches on date to searches on date_from/date_to."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_follower_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_follower_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_follower_ids
|
||||
msgid "Followers"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_channel_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_channel_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_channel_ids
|
||||
msgid "Followers (Channels)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_partner_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_partner_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_partner_ids
|
||||
msgid "Followers (Partners)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_from
|
||||
msgid "From"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_unread
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_unread
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_unread
|
||||
msgid "If checked, new messages require your attention."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_sms_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_sms_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_sms_error
|
||||
msgid "If checked, some messages have a delivery error."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_is_follower
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_is_follower
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_is_follower
|
||||
msgid "Is Follower"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__item_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__item_ids
|
||||
msgid "Item"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__kpi_expression_id
|
||||
msgid "KPI"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__seq1
|
||||
msgid "KPI Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_abstract
|
||||
msgid "MIS Budget (Abstract Base Class)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_item_abstract
|
||||
msgid "MIS Budget Item (Abstract Base Class)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_by_account_item
|
||||
msgid "MIS Budget Item (by Account)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_item
|
||||
msgid "MIS Budget Item (by KPI)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_item_act_window
|
||||
msgid "MIS Budget Items (by KPIs)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_by_account_item_act_window
|
||||
msgid "MIS Budget Items (by accounts)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_by_account
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_report_instance_period__source__mis_budget_by_account
|
||||
msgid "MIS Budget by Account"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_report_instance_period__source__mis_budget
|
||||
msgid "MIS Budget by KPI"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_act_window
|
||||
#: model:ir.ui.menu,name:mis_builder_budget.mis_budget_menu
|
||||
msgid "MIS Budgets (by KPIs)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_by_account_act_window
|
||||
#: model:ir.ui.menu,name:mis_builder_budget.mis_budget_by_account_menu
|
||||
msgid "MIS Budgets (by accounts)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_instance
|
||||
msgid "MIS Report Instance"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_instance_period
|
||||
msgid "MIS Report Instance Period"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_kpi
|
||||
msgid "MIS Report KPI"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_kpi_expression
|
||||
msgid "MIS Report KPI Expression"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__report_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__report_id
|
||||
msgid "MIS Report Template"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_main_attachment_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_main_attachment_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_main_attachment_id
|
||||
msgid "Main Attachment"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_error
|
||||
msgid "Message Delivery error"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_ids
|
||||
msgid "Messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__name
|
||||
msgid "Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_needaction_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_needaction_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_needaction_counter
|
||||
msgid "Number of Actions"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_error_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_error_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_error_counter
|
||||
msgid "Number of errors"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_needaction_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_needaction_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_needaction_counter
|
||||
msgid "Number of messages which requires an action"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_error_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_error_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_error_counter
|
||||
msgid "Number of messages with delivery error"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_unread_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_unread_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_unread_counter
|
||||
msgid "Number of unread messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_sms_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_sms_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_sms_error
|
||||
msgid "SMS Delivery error"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Set draft"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source
|
||||
msgid "Source"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__state
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__state
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__state
|
||||
msgid "State"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__seq2
|
||||
msgid "Sub-KPI Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_to
|
||||
msgid "To"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_unread
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_unread
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_unread
|
||||
msgid "Unread Messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_unread_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_unread_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_unread_counter
|
||||
msgid "Unread Messages Counter"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account_item__company_currency_id
|
||||
msgid "Utility field to express amount currency"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__website_message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__website_message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__website_message_ids
|
||||
msgid "Website Messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__website_message_ids
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__website_message_ids
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__website_message_ids
|
||||
msgid "Website communication history"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.constraint,message:mis_builder_budget.constraint_mis_budget_by_account_item_credit_debit2
|
||||
msgid ""
|
||||
"Wrong credit or debit value in budget item! Credit and debit should be "
|
||||
"positive."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.constraint,message:mis_builder_budget.constraint_mis_budget_by_account_item_credit_debit1
|
||||
msgid ""
|
||||
"Wrong credit or debit value in budget item! Credit or debit should be zero."
|
||||
msgstr ""
|
|
@ -0,0 +1,616 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * mis_builder_budget
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2018
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 11.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-01-13 15:37+0000\n"
|
||||
"PO-Revision-Date: 2020-07-27 10:19+0000\n"
|
||||
"Last-Translator: Daniel Martinez Vila <daniel.martinez@qubiq.es>\n"
|
||||
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
|
||||
"Language: es\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 3.10\n"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s (copy)"
|
||||
msgstr "%s(copia)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s is not within budget %s date range."
|
||||
msgstr "%s no está dentro del rango de fechas del presupuesto %s."
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s overlaps %s in budget %s"
|
||||
msgstr "%s superpone %s en el presupuesto %s"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s start date must not be after end date"
|
||||
msgstr "La fecha de inicio de %s no puede ser posterior a la fecha de fin"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__account_id
|
||||
msgid "Account"
|
||||
msgstr "Cuenta"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_needaction
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_needaction
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_needaction
|
||||
msgid "Action Needed"
|
||||
msgstr "Acción Necesaria"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_report_instance_period__source
|
||||
msgid ""
|
||||
"Actuals: current data, from accounting and other queries.\n"
|
||||
"Actuals (alternative): current data from an alternative source (eg a "
|
||||
"database view providing look-alike account move lines).\n"
|
||||
"Sum columns: summation (+/-) of other columns.\n"
|
||||
"Compare to column: compare to other column.\n"
|
||||
msgstr ""
|
||||
"Datos reales: datos actuales, de contabilidad y otras consultas.\n"
|
||||
"Datos reales (alternativa): datos actuales de una fuente alternativa (por "
|
||||
"ejemplo, una vista de base de datos que proporciona líneas de movimiento de "
|
||||
"cuenta similares).\n"
|
||||
"Columnas de suma: suma (+/-) de otras columnas.\n"
|
||||
"Comparar con columna: comparar con otra columna.\n"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__amount
|
||||
msgid "Amount"
|
||||
msgstr "Importe"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__analytic_tag_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__analytic_tag_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__analytic_tag_ids
|
||||
msgid "Analytic Tags"
|
||||
msgstr "Etiquetas analíticas"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__analytic_account_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__analytic_account_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__analytic_account_id
|
||||
msgid "Analytic account"
|
||||
msgstr "Cuenta analítica"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_attachment_count
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_attachment_count
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_attachment_count
|
||||
msgid "Attachment Count"
|
||||
msgstr "Cuenta de archivos adjuntos"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__balance
|
||||
msgid "Balance"
|
||||
msgstr "Equilibrar"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_id
|
||||
msgid "Budget"
|
||||
msgstr "Presupuesto"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_date_from
|
||||
msgid "Budget Date From"
|
||||
msgstr "Fecha de presupuesto desde"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_date_to
|
||||
msgid "Budget Date To"
|
||||
msgstr "Fecha de presupuesto hasta"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source_mis_budget_by_account_id
|
||||
msgid "Budget by Account"
|
||||
msgstr "Presupuesto por cuenta"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source_mis_budget_id
|
||||
msgid "Budget by KPI"
|
||||
msgstr "Presupuesto por KPI"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Budget items"
|
||||
msgstr "Elementos del presupuesto"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_kpi__budgetable
|
||||
msgid "Budgetable"
|
||||
msgstr "Presupuestable"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Cancel"
|
||||
msgstr "Cancelar"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__cancelled
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__cancelled
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__cancelled
|
||||
msgid "Cancelled"
|
||||
msgstr "Cancelado"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__company_id
|
||||
msgid "Company"
|
||||
msgstr "Compañía"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__company_currency_id
|
||||
msgid "Company Currency"
|
||||
msgstr "Moneda de la empresa"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Confirm"
|
||||
msgstr "Confirmar"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__confirmed
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__confirmed
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__confirmed
|
||||
msgid "Confirmed"
|
||||
msgstr "Confirmado"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__create_uid
|
||||
msgid "Created by"
|
||||
msgstr "Creado por"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__create_date
|
||||
msgid "Created on"
|
||||
msgstr "Creado en"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__credit
|
||||
msgid "Credit"
|
||||
msgstr "Crédito"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date
|
||||
msgid "Date"
|
||||
msgstr "Fecha"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_range_id
|
||||
msgid "Date range"
|
||||
msgstr "Rango de fecha"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__debit
|
||||
msgid "Debit"
|
||||
msgstr "Debe"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__description
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__description
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__description
|
||||
msgid "Description"
|
||||
msgstr "Descripción"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Nombre mostrado"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__draft
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__draft
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__draft
|
||||
msgid "Draft"
|
||||
msgstr "Borrador"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account_item__date
|
||||
msgid ""
|
||||
"Dummy field that adapts searches on date to searches on date_from/date_to."
|
||||
msgstr ""
|
||||
"Campo ficticio que adapta las búsquedas en fecha a búsquedas en date_from / "
|
||||
"date_to."
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_follower_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_follower_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_follower_ids
|
||||
msgid "Followers"
|
||||
msgstr "Seguidores"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_channel_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_channel_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_channel_ids
|
||||
msgid "Followers (Channels)"
|
||||
msgstr "Seguidores (Canales)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_partner_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_partner_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_partner_ids
|
||||
msgid "Followers (Partners)"
|
||||
msgstr "Seguidores (Socios)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_from
|
||||
msgid "From"
|
||||
msgstr "Desde"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__id
|
||||
msgid "ID"
|
||||
msgstr "ID"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_unread
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_unread
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_unread
|
||||
msgid "If checked, new messages require your attention."
|
||||
msgstr "Si está marcado, los nuevos mensajes requieren su atención."
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_sms_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_sms_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_sms_error
|
||||
msgid "If checked, some messages have a delivery error."
|
||||
msgstr "Si está marcado, algunos mensajes tienen un error en la entrega."
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_is_follower
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_is_follower
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_is_follower
|
||||
msgid "Is Follower"
|
||||
msgstr "Es seguidor"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__item_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__item_ids
|
||||
msgid "Item"
|
||||
msgstr "Objeto"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__kpi_expression_id
|
||||
msgid "KPI"
|
||||
msgstr "KPI"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__seq1
|
||||
msgid "KPI Sequence"
|
||||
msgstr "KPI de Secuencia"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Última modificación en"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr "Última actualización por"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr "Última actualización en"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_abstract
|
||||
msgid "MIS Budget (Abstract Base Class)"
|
||||
msgstr "Presupuesto MIS (Clase base abstracta)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_item_abstract
|
||||
msgid "MIS Budget Item (Abstract Base Class)"
|
||||
msgstr "Partida presupuestaria MIS (clase base abstracta)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_by_account_item
|
||||
msgid "MIS Budget Item (by Account)"
|
||||
msgstr "Partida presupuestaria de MIS (por cuenta)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_item
|
||||
msgid "MIS Budget Item (by KPI)"
|
||||
msgstr "Partida presupuestaria MIS (por KPI)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_item_act_window
|
||||
msgid "MIS Budget Items (by KPIs)"
|
||||
msgstr "Partidas presupuestarias de MIS (por KPI)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_by_account_item_act_window
|
||||
msgid "MIS Budget Items (by accounts)"
|
||||
msgstr "Partidas presupuestarias de MIS (por cuentas)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_by_account
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_report_instance_period__source__mis_budget_by_account
|
||||
msgid "MIS Budget by Account"
|
||||
msgstr "Presupuesto MIS por cuenta"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_report_instance_period__source__mis_budget
|
||||
msgid "MIS Budget by KPI"
|
||||
msgstr "Presupuesto MIS por KPI"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_act_window
|
||||
#: model:ir.ui.menu,name:mis_builder_budget.mis_budget_menu
|
||||
msgid "MIS Budgets (by KPIs)"
|
||||
msgstr "Presupuestos de MIS (por KPIs)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_by_account_act_window
|
||||
#: model:ir.ui.menu,name:mis_builder_budget.mis_budget_by_account_menu
|
||||
msgid "MIS Budgets (by accounts)"
|
||||
msgstr "Presupuestos MIS (por cuentas)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_instance
|
||||
msgid "MIS Report Instance"
|
||||
msgstr "Instancia de informe MIS"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_instance_period
|
||||
msgid "MIS Report Instance Period"
|
||||
msgstr "Período de instancia del informe MIS"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_kpi
|
||||
msgid "MIS Report KPI"
|
||||
msgstr "KPI de informe MIS"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_kpi_expression
|
||||
msgid "MIS Report KPI Expression"
|
||||
msgstr "Informe MIS - KPI Expresión"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__report_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__report_id
|
||||
msgid "MIS Report Template"
|
||||
msgstr "Plantilla de presupuesto MIS"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_main_attachment_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_main_attachment_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_main_attachment_id
|
||||
msgid "Main Attachment"
|
||||
msgstr "Adjunto principal"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_error
|
||||
msgid "Message Delivery error"
|
||||
msgstr "Mensaje de error en la entrega"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_ids
|
||||
msgid "Messages"
|
||||
msgstr "Mensajes"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__name
|
||||
msgid "Name"
|
||||
msgstr "Nombre"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_needaction_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_needaction_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_needaction_counter
|
||||
msgid "Number of Actions"
|
||||
msgstr "Número de acciones"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_error_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_error_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_error_counter
|
||||
msgid "Number of errors"
|
||||
msgstr "Número de errores"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_needaction_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_needaction_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_needaction_counter
|
||||
msgid "Number of messages which requires an action"
|
||||
msgstr "Número de mensajes que requieren una acción"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_error_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_error_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_error_counter
|
||||
msgid "Number of messages with delivery error"
|
||||
msgstr "Número de mensajes con error en la entrega"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_unread_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_unread_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_unread_counter
|
||||
msgid "Number of unread messages"
|
||||
msgstr "Número de mensajes no leídos"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_sms_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_sms_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_sms_error
|
||||
msgid "SMS Delivery error"
|
||||
msgstr "SMS de error en la entrega"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Set draft"
|
||||
msgstr "Cambiar a borrador"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source
|
||||
msgid "Source"
|
||||
msgstr "Origen"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__state
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__state
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__state
|
||||
msgid "State"
|
||||
msgstr "Estado"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__seq2
|
||||
msgid "Sub-KPI Sequence"
|
||||
msgstr "Sub-KPI Secuencia"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_to
|
||||
msgid "To"
|
||||
msgstr "a"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_unread
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_unread
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_unread
|
||||
msgid "Unread Messages"
|
||||
msgstr "Mensajes no leídos"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_unread_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_unread_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_unread_counter
|
||||
msgid "Unread Messages Counter"
|
||||
msgstr "Contador de mensajes no leídos"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account_item__company_currency_id
|
||||
msgid "Utility field to express amount currency"
|
||||
msgstr "Campo de utilidad para expresar la cantidad de moneda"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__website_message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__website_message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__website_message_ids
|
||||
msgid "Website Messages"
|
||||
msgstr "Mensajes del sitio web"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__website_message_ids
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__website_message_ids
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__website_message_ids
|
||||
msgid "Website communication history"
|
||||
msgstr "Historial de comunicación del sitio web"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.constraint,message:mis_builder_budget.constraint_mis_budget_by_account_item_credit_debit2
|
||||
msgid ""
|
||||
"Wrong credit or debit value in budget item! Credit and debit should be "
|
||||
"positive."
|
||||
msgstr ""
|
||||
"¡Valor de crédito o débito incorrecto en la partida presupuestaria! El "
|
||||
"crédito y el débito deben ser positivos."
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.constraint,message:mis_builder_budget.constraint_mis_budget_by_account_item_credit_debit1
|
||||
msgid ""
|
||||
"Wrong credit or debit value in budget item! Credit or debit should be zero."
|
||||
msgstr ""
|
||||
"¡Valor de crédito o débito incorrecto en la partida presupuestaria! El "
|
||||
"crédito o débito debe ser cero."
|
||||
|
||||
#~ msgid "MIS Budget"
|
||||
#~ msgstr "Presupuesto MIS"
|
||||
|
||||
#~ msgid "MIS Budgets"
|
||||
#~ msgstr "Presupuestos MIS"
|
||||
|
||||
#~ msgid "mis.report.instance"
|
||||
#~ msgstr "mis.report.instance"
|
||||
|
||||
#~ msgid "mis.report.kpi"
|
||||
#~ msgstr "mis.report.kpi"
|
||||
|
||||
#~ msgid "mis.report.kpi.expression"
|
||||
#~ msgstr "mis.report.kpi.expression"
|
|
@ -0,0 +1,614 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * mis_builder_budget
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2018
|
||||
# Nicolas JEUDY <njeudy@panda-chi.io>, 2018
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 11.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-02-10 07:59+0000\n"
|
||||
"PO-Revision-Date: 2020-09-23 17:00+0000\n"
|
||||
"Last-Translator: Régis Pirard (ACSONE) <regis.pirard@acsone.eu>\n"
|
||||
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
|
||||
"Language: fr\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
||||
"X-Generator: Weblate 3.10\n"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s (copy)"
|
||||
msgstr "%s (copie)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s is not within budget %s date range."
|
||||
msgstr "%s n'est pas dans les limites de la période budgétaire %s."
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s overlaps %s in budget %s"
|
||||
msgstr "%s chevauche %s dans le budget %s"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s start date must not be after end date"
|
||||
msgstr "la date de début de %s ne doit pas être après la date de fin"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__account_id
|
||||
msgid "Account"
|
||||
msgstr "Compte"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_needaction
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_needaction
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_needaction
|
||||
msgid "Action Needed"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_report_instance_period__source
|
||||
msgid ""
|
||||
"Actuals: current data, from accounting and other queries.\n"
|
||||
"Actuals (alternative): current data from an alternative source (eg a "
|
||||
"database view providing look-alike account move lines).\n"
|
||||
"Sum columns: summation (+/-) of other columns.\n"
|
||||
"Compare to column: compare to other column.\n"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__amount
|
||||
msgid "Amount"
|
||||
msgstr "Montant"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__analytic_tag_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__analytic_tag_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__analytic_tag_ids
|
||||
msgid "Analytic Tags"
|
||||
msgstr "Étiquettes analytiques"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__analytic_account_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__analytic_account_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__analytic_account_id
|
||||
msgid "Analytic account"
|
||||
msgstr "Compte analytique"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_attachment_count
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_attachment_count
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_attachment_count
|
||||
msgid "Attachment Count"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__balance
|
||||
msgid "Balance"
|
||||
msgstr "Montant"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_id
|
||||
msgid "Budget"
|
||||
msgstr "Budget"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_date_from
|
||||
#, fuzzy
|
||||
msgid "Budget Date From"
|
||||
msgstr "Lignes de budget"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_date_to
|
||||
#, fuzzy
|
||||
msgid "Budget Date To"
|
||||
msgstr "Lignes de budget"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source_mis_budget_by_account_id
|
||||
msgid "Budget by Account"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source_mis_budget_id
|
||||
#, fuzzy
|
||||
msgid "Budget by KPI"
|
||||
msgstr "Budget"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Budget items"
|
||||
msgstr "Lignes de budget"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_kpi__budgetable
|
||||
msgid "Budgetable"
|
||||
msgstr "Peut être associé à un budget"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Cancel"
|
||||
msgstr "Annuler"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__cancelled
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__cancelled
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__cancelled
|
||||
msgid "Cancelled"
|
||||
msgstr "Annulé"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__company_id
|
||||
msgid "Company"
|
||||
msgstr "Société"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__company_currency_id
|
||||
#, fuzzy
|
||||
msgid "Company Currency"
|
||||
msgstr "Société"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Confirm"
|
||||
msgstr "Confirmer"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__confirmed
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__confirmed
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__confirmed
|
||||
msgid "Confirmed"
|
||||
msgstr "Confirmé"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__create_uid
|
||||
msgid "Created by"
|
||||
msgstr "Créé par"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__create_date
|
||||
msgid "Created on"
|
||||
msgstr "Créé le"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__credit
|
||||
msgid "Credit"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_range_id
|
||||
msgid "Date range"
|
||||
msgstr "Période"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__debit
|
||||
msgid "Debit"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__description
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__description
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__description
|
||||
msgid "Description"
|
||||
msgstr "Description"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Nom affiché"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__draft
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__draft
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__draft
|
||||
msgid "Draft"
|
||||
msgstr "Brouillon"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account_item__date
|
||||
msgid ""
|
||||
"Dummy field that adapts searches on date to searches on date_from/date_to."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_follower_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_follower_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_follower_ids
|
||||
msgid "Followers"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_channel_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_channel_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_channel_ids
|
||||
msgid "Followers (Channels)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_partner_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_partner_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_partner_ids
|
||||
msgid "Followers (Partners)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_from
|
||||
msgid "From"
|
||||
msgstr "De"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__id
|
||||
msgid "ID"
|
||||
msgstr "ID"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_unread
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_unread
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_unread
|
||||
msgid "If checked, new messages require your attention."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_sms_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_sms_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_sms_error
|
||||
msgid "If checked, some messages have a delivery error."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_is_follower
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_is_follower
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_is_follower
|
||||
msgid "Is Follower"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__item_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__item_ids
|
||||
msgid "Item"
|
||||
msgstr "Element"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__kpi_expression_id
|
||||
msgid "KPI"
|
||||
msgstr "KPI"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__seq1
|
||||
msgid "KPI Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Dernière modification le"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr "Dernière mise à jour par"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr "Dernière mise à jour le"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_abstract
|
||||
msgid "MIS Budget (Abstract Base Class)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_item_abstract
|
||||
msgid "MIS Budget Item (Abstract Base Class)"
|
||||
msgstr "MIS lignes de budget (Classe abstraite)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_by_account_item
|
||||
msgid "MIS Budget Item (by Account)"
|
||||
msgstr "MIS ligne de budget (par compte)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_item
|
||||
msgid "MIS Budget Item (by KPI)"
|
||||
msgstr "MIS ligne de budget (par KPI)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_item_act_window
|
||||
msgid "MIS Budget Items (by KPIs)"
|
||||
msgstr "MIS Budget (par KPI)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_by_account_item_act_window
|
||||
msgid "MIS Budget Items (by accounts)"
|
||||
msgstr "MIS Budget (par compte)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_by_account
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_report_instance_period__source__mis_budget_by_account
|
||||
#, fuzzy
|
||||
msgid "MIS Budget by Account"
|
||||
msgstr "MIS ligne de budget"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_report_instance_period__source__mis_budget
|
||||
#, fuzzy
|
||||
msgid "MIS Budget by KPI"
|
||||
msgstr "MIS ligne de budget"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_act_window
|
||||
#: model:ir.ui.menu,name:mis_builder_budget.mis_budget_menu
|
||||
msgid "MIS Budgets (by KPIs)"
|
||||
msgstr "MIS Budget (par KPI)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_by_account_act_window
|
||||
#: model:ir.ui.menu,name:mis_builder_budget.mis_budget_by_account_menu
|
||||
msgid "MIS Budgets (by accounts)"
|
||||
msgstr "MIS Budget (par compte)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_instance
|
||||
#, fuzzy
|
||||
msgid "MIS Report Instance"
|
||||
msgstr "MIS Modèle de rapport"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_instance_period
|
||||
#, fuzzy
|
||||
msgid "MIS Report Instance Period"
|
||||
msgstr "mis.report.instance.period"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_kpi
|
||||
#, fuzzy
|
||||
msgid "MIS Report KPI"
|
||||
msgstr "MIS Modèle de rapport"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_kpi_expression
|
||||
msgid "MIS Report KPI Expression"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__report_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__report_id
|
||||
msgid "MIS Report Template"
|
||||
msgstr "MIS Modèle de rapport"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_main_attachment_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_main_attachment_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_main_attachment_id
|
||||
msgid "Main Attachment"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_error
|
||||
msgid "Message Delivery error"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_ids
|
||||
msgid "Messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__name
|
||||
msgid "Name"
|
||||
msgstr "Nom"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_needaction_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_needaction_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_needaction_counter
|
||||
msgid "Number of Actions"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_error_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_error_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_error_counter
|
||||
msgid "Number of errors"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_needaction_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_needaction_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_needaction_counter
|
||||
msgid "Number of messages which requires an action"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_error_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_error_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_error_counter
|
||||
msgid "Number of messages with delivery error"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_unread_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_unread_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_unread_counter
|
||||
msgid "Number of unread messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_sms_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_sms_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_sms_error
|
||||
msgid "SMS Delivery error"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Set draft"
|
||||
msgstr "Passer en brouillon"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source
|
||||
msgid "Source"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__state
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__state
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__state
|
||||
msgid "State"
|
||||
msgstr "Etat"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__seq2
|
||||
msgid "Sub-KPI Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_to
|
||||
msgid "To"
|
||||
msgstr "À"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_unread
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_unread
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_unread
|
||||
msgid "Unread Messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_unread_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_unread_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_unread_counter
|
||||
msgid "Unread Messages Counter"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account_item__company_currency_id
|
||||
msgid "Utility field to express amount currency"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__website_message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__website_message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__website_message_ids
|
||||
msgid "Website Messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__website_message_ids
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__website_message_ids
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__website_message_ids
|
||||
msgid "Website communication history"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.constraint,message:mis_builder_budget.constraint_mis_budget_by_account_item_credit_debit2
|
||||
msgid ""
|
||||
"Wrong credit or debit value in budget item! Credit and debit should be "
|
||||
"positive."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.constraint,message:mis_builder_budget.constraint_mis_budget_by_account_item_credit_debit1
|
||||
msgid ""
|
||||
"Wrong credit or debit value in budget item! Credit or debit should be zero."
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "MIS Budget"
|
||||
#~ msgstr "MIS Budget"
|
||||
|
||||
#~ msgid "MIS Budgets"
|
||||
#~ msgstr "MIS Budgets"
|
||||
|
||||
#~ msgid "mis.report.instance"
|
||||
#~ msgstr "mis.report.instance"
|
||||
|
||||
#~ msgid "mis.report.kpi"
|
||||
#~ msgstr "mis.report.kpi"
|
||||
|
||||
#~ msgid "mis.report.kpi.expression"
|
||||
#~ msgstr "mis.report.kpi.expression"
|
|
@ -0,0 +1,585 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * mis_builder_budget
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 12.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"Last-Translator: Automatically generated\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: hr\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s (copy)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s is not within budget %s date range."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s overlaps %s in budget %s"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s start date must not be after end date"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__account_id
|
||||
msgid "Account"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_needaction
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_needaction
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_needaction
|
||||
msgid "Action Needed"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_report_instance_period__source
|
||||
msgid ""
|
||||
"Actuals: current data, from accounting and other queries.\n"
|
||||
"Actuals (alternative): current data from an alternative source (eg a "
|
||||
"database view providing look-alike account move lines).\n"
|
||||
"Sum columns: summation (+/-) of other columns.\n"
|
||||
"Compare to column: compare to other column.\n"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__amount
|
||||
msgid "Amount"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__analytic_tag_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__analytic_tag_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__analytic_tag_ids
|
||||
msgid "Analytic Tags"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__analytic_account_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__analytic_account_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__analytic_account_id
|
||||
msgid "Analytic account"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_attachment_count
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_attachment_count
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_attachment_count
|
||||
msgid "Attachment Count"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__balance
|
||||
msgid "Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_id
|
||||
msgid "Budget"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_date_from
|
||||
msgid "Budget Date From"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_date_to
|
||||
msgid "Budget Date To"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source_mis_budget_by_account_id
|
||||
msgid "Budget by Account"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source_mis_budget_id
|
||||
msgid "Budget by KPI"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Budget items"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_kpi__budgetable
|
||||
msgid "Budgetable"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Cancel"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__cancelled
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__cancelled
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__cancelled
|
||||
msgid "Cancelled"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__company_id
|
||||
msgid "Company"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__company_currency_id
|
||||
msgid "Company Currency"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Confirm"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__confirmed
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__confirmed
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__confirmed
|
||||
msgid "Confirmed"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__create_uid
|
||||
msgid "Created by"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__create_date
|
||||
msgid "Created on"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__credit
|
||||
msgid "Credit"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_range_id
|
||||
msgid "Date range"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__debit
|
||||
msgid "Debit"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__description
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__description
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__description
|
||||
msgid "Description"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__display_name
|
||||
msgid "Display Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__draft
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__draft
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__draft
|
||||
msgid "Draft"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account_item__date
|
||||
msgid ""
|
||||
"Dummy field that adapts searches on date to searches on date_from/date_to."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_follower_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_follower_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_follower_ids
|
||||
msgid "Followers"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_channel_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_channel_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_channel_ids
|
||||
msgid "Followers (Channels)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_partner_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_partner_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_partner_ids
|
||||
msgid "Followers (Partners)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_from
|
||||
msgid "From"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_unread
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_unread
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_unread
|
||||
msgid "If checked, new messages require your attention."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_sms_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_sms_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_sms_error
|
||||
msgid "If checked, some messages have a delivery error."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_is_follower
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_is_follower
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_is_follower
|
||||
msgid "Is Follower"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__item_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__item_ids
|
||||
msgid "Item"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__kpi_expression_id
|
||||
msgid "KPI"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__seq1
|
||||
msgid "KPI Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_abstract
|
||||
msgid "MIS Budget (Abstract Base Class)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_item_abstract
|
||||
msgid "MIS Budget Item (Abstract Base Class)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_by_account_item
|
||||
msgid "MIS Budget Item (by Account)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_item
|
||||
msgid "MIS Budget Item (by KPI)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_item_act_window
|
||||
msgid "MIS Budget Items (by KPIs)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_by_account_item_act_window
|
||||
msgid "MIS Budget Items (by accounts)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_by_account
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_report_instance_period__source__mis_budget_by_account
|
||||
msgid "MIS Budget by Account"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_report_instance_period__source__mis_budget
|
||||
msgid "MIS Budget by KPI"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_act_window
|
||||
#: model:ir.ui.menu,name:mis_builder_budget.mis_budget_menu
|
||||
msgid "MIS Budgets (by KPIs)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_by_account_act_window
|
||||
#: model:ir.ui.menu,name:mis_builder_budget.mis_budget_by_account_menu
|
||||
msgid "MIS Budgets (by accounts)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_instance
|
||||
msgid "MIS Report Instance"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_instance_period
|
||||
msgid "MIS Report Instance Period"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_kpi
|
||||
msgid "MIS Report KPI"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_kpi_expression
|
||||
msgid "MIS Report KPI Expression"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__report_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__report_id
|
||||
msgid "MIS Report Template"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_main_attachment_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_main_attachment_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_main_attachment_id
|
||||
msgid "Main Attachment"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_error
|
||||
msgid "Message Delivery error"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_ids
|
||||
msgid "Messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__name
|
||||
msgid "Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_needaction_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_needaction_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_needaction_counter
|
||||
msgid "Number of Actions"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_error_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_error_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_error_counter
|
||||
msgid "Number of errors"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_needaction_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_needaction_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_needaction_counter
|
||||
msgid "Number of messages which requires an action"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_error_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_error_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_error_counter
|
||||
msgid "Number of messages with delivery error"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_unread_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_unread_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_unread_counter
|
||||
msgid "Number of unread messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_sms_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_sms_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_sms_error
|
||||
msgid "SMS Delivery error"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Set draft"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source
|
||||
msgid "Source"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__state
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__state
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__state
|
||||
msgid "State"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__seq2
|
||||
msgid "Sub-KPI Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_to
|
||||
msgid "To"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_unread
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_unread
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_unread
|
||||
msgid "Unread Messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_unread_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_unread_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_unread_counter
|
||||
msgid "Unread Messages Counter"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account_item__company_currency_id
|
||||
msgid "Utility field to express amount currency"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__website_message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__website_message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__website_message_ids
|
||||
msgid "Website Messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__website_message_ids
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__website_message_ids
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__website_message_ids
|
||||
msgid "Website communication history"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.constraint,message:mis_builder_budget.constraint_mis_budget_by_account_item_credit_debit2
|
||||
msgid ""
|
||||
"Wrong credit or debit value in budget item! Credit and debit should be "
|
||||
"positive."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.constraint,message:mis_builder_budget.constraint_mis_budget_by_account_item_credit_debit1
|
||||
msgid ""
|
||||
"Wrong credit or debit value in budget item! Credit or debit should be zero."
|
||||
msgstr ""
|
|
@ -0,0 +1,592 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * mis_builder_budget
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2018
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 11.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-01-13 15:37+0000\n"
|
||||
"PO-Revision-Date: 2018-01-13 15:37+0000\n"
|
||||
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2018\n"
|
||||
"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/"
|
||||
"hr_HR/)\n"
|
||||
"Language: hr_HR\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s (copy)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s is not within budget %s date range."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s overlaps %s in budget %s"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s start date must not be after end date"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__account_id
|
||||
msgid "Account"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_needaction
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_needaction
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_needaction
|
||||
msgid "Action Needed"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_report_instance_period__source
|
||||
msgid ""
|
||||
"Actuals: current data, from accounting and other queries.\n"
|
||||
"Actuals (alternative): current data from an alternative source (eg a "
|
||||
"database view providing look-alike account move lines).\n"
|
||||
"Sum columns: summation (+/-) of other columns.\n"
|
||||
"Compare to column: compare to other column.\n"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__amount
|
||||
msgid "Amount"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__analytic_tag_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__analytic_tag_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__analytic_tag_ids
|
||||
msgid "Analytic Tags"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__analytic_account_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__analytic_account_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__analytic_account_id
|
||||
msgid "Analytic account"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_attachment_count
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_attachment_count
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_attachment_count
|
||||
msgid "Attachment Count"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__balance
|
||||
#, fuzzy
|
||||
msgid "Balance"
|
||||
msgstr "Otkaži"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_id
|
||||
msgid "Budget"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_date_from
|
||||
msgid "Budget Date From"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_date_to
|
||||
msgid "Budget Date To"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source_mis_budget_by_account_id
|
||||
msgid "Budget by Account"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source_mis_budget_id
|
||||
msgid "Budget by KPI"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Budget items"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_kpi__budgetable
|
||||
msgid "Budgetable"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Cancel"
|
||||
msgstr "Otkaži"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__cancelled
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__cancelled
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__cancelled
|
||||
msgid "Cancelled"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__company_id
|
||||
msgid "Company"
|
||||
msgstr "Tvrtka"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__company_currency_id
|
||||
#, fuzzy
|
||||
msgid "Company Currency"
|
||||
msgstr "Tvrtka"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Confirm"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__confirmed
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__confirmed
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__confirmed
|
||||
msgid "Confirmed"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__create_uid
|
||||
msgid "Created by"
|
||||
msgstr "Kreirao"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__create_date
|
||||
msgid "Created on"
|
||||
msgstr "Kreirano"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__credit
|
||||
msgid "Credit"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_range_id
|
||||
msgid "Date range"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__debit
|
||||
msgid "Debit"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__description
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__description
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__description
|
||||
msgid "Description"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Naziv "
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__draft
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__draft
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__draft
|
||||
msgid "Draft"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account_item__date
|
||||
msgid ""
|
||||
"Dummy field that adapts searches on date to searches on date_from/date_to."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_follower_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_follower_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_follower_ids
|
||||
msgid "Followers"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_channel_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_channel_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_channel_ids
|
||||
msgid "Followers (Channels)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_partner_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_partner_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_partner_ids
|
||||
msgid "Followers (Partners)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_from
|
||||
msgid "From"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__id
|
||||
msgid "ID"
|
||||
msgstr "ID"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_unread
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_unread
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_unread
|
||||
msgid "If checked, new messages require your attention."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_sms_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_sms_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_sms_error
|
||||
msgid "If checked, some messages have a delivery error."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_is_follower
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_is_follower
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_is_follower
|
||||
msgid "Is Follower"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__item_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__item_ids
|
||||
msgid "Item"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__kpi_expression_id
|
||||
msgid "KPI"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__seq1
|
||||
msgid "KPI Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_abstract
|
||||
msgid "MIS Budget (Abstract Base Class)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_item_abstract
|
||||
msgid "MIS Budget Item (Abstract Base Class)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_by_account_item
|
||||
msgid "MIS Budget Item (by Account)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_item
|
||||
msgid "MIS Budget Item (by KPI)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_item_act_window
|
||||
msgid "MIS Budget Items (by KPIs)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_by_account_item_act_window
|
||||
msgid "MIS Budget Items (by accounts)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_by_account
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_report_instance_period__source__mis_budget_by_account
|
||||
msgid "MIS Budget by Account"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_report_instance_period__source__mis_budget
|
||||
msgid "MIS Budget by KPI"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_act_window
|
||||
#: model:ir.ui.menu,name:mis_builder_budget.mis_budget_menu
|
||||
msgid "MIS Budgets (by KPIs)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_by_account_act_window
|
||||
#: model:ir.ui.menu,name:mis_builder_budget.mis_budget_by_account_menu
|
||||
msgid "MIS Budgets (by accounts)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_instance
|
||||
msgid "MIS Report Instance"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_instance_period
|
||||
msgid "MIS Report Instance Period"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_kpi
|
||||
msgid "MIS Report KPI"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_kpi_expression
|
||||
msgid "MIS Report KPI Expression"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__report_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__report_id
|
||||
msgid "MIS Report Template"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_main_attachment_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_main_attachment_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_main_attachment_id
|
||||
msgid "Main Attachment"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_error
|
||||
msgid "Message Delivery error"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_ids
|
||||
msgid "Messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__name
|
||||
msgid "Name"
|
||||
msgstr "Naziv"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_needaction_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_needaction_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_needaction_counter
|
||||
msgid "Number of Actions"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_error_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_error_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_error_counter
|
||||
msgid "Number of errors"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_needaction_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_needaction_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_needaction_counter
|
||||
msgid "Number of messages which requires an action"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_error_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_error_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_error_counter
|
||||
msgid "Number of messages with delivery error"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_unread_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_unread_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_unread_counter
|
||||
msgid "Number of unread messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_sms_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_sms_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_sms_error
|
||||
msgid "SMS Delivery error"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Set draft"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source
|
||||
msgid "Source"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__state
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__state
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__state
|
||||
msgid "State"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__seq2
|
||||
msgid "Sub-KPI Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_to
|
||||
msgid "To"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_unread
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_unread
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_unread
|
||||
msgid "Unread Messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_unread_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_unread_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_unread_counter
|
||||
msgid "Unread Messages Counter"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account_item__company_currency_id
|
||||
msgid "Utility field to express amount currency"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__website_message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__website_message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__website_message_ids
|
||||
msgid "Website Messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__website_message_ids
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__website_message_ids
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__website_message_ids
|
||||
msgid "Website communication history"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.constraint,message:mis_builder_budget.constraint_mis_budget_by_account_item_credit_debit2
|
||||
msgid ""
|
||||
"Wrong credit or debit value in budget item! Credit and debit should be "
|
||||
"positive."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.constraint,message:mis_builder_budget.constraint_mis_budget_by_account_item_credit_debit1
|
||||
msgid ""
|
||||
"Wrong credit or debit value in budget item! Credit or debit should be zero."
|
||||
msgstr ""
|
|
@ -0,0 +1,582 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * mis_builder_budget
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 13.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s (copy)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s is not within budget %s date range."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s overlaps %s in budget %s"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s start date must not be after end date"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__account_id
|
||||
msgid "Account"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_needaction
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_needaction
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_needaction
|
||||
msgid "Action Needed"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_report_instance_period__source
|
||||
msgid ""
|
||||
"Actuals: current data, from accounting and other queries.\n"
|
||||
"Actuals (alternative): current data from an alternative source (eg a database view providing look-alike account move lines).\n"
|
||||
"Sum columns: summation (+/-) of other columns.\n"
|
||||
"Compare to column: compare to other column.\n"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__amount
|
||||
msgid "Amount"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__analytic_tag_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__analytic_tag_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__analytic_tag_ids
|
||||
msgid "Analytic Tags"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__analytic_account_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__analytic_account_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__analytic_account_id
|
||||
msgid "Analytic account"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_attachment_count
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_attachment_count
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_attachment_count
|
||||
msgid "Attachment Count"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__balance
|
||||
msgid "Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_id
|
||||
msgid "Budget"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_date_from
|
||||
msgid "Budget Date From"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_date_to
|
||||
msgid "Budget Date To"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source_mis_budget_by_account_id
|
||||
msgid "Budget by Account"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source_mis_budget_id
|
||||
msgid "Budget by KPI"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Budget items"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_kpi__budgetable
|
||||
msgid "Budgetable"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Cancel"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__cancelled
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__cancelled
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__cancelled
|
||||
msgid "Cancelled"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__company_id
|
||||
msgid "Company"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__company_currency_id
|
||||
msgid "Company Currency"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Confirm"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__confirmed
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__confirmed
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__confirmed
|
||||
msgid "Confirmed"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__create_uid
|
||||
msgid "Created by"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__create_date
|
||||
msgid "Created on"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__credit
|
||||
msgid "Credit"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_range_id
|
||||
msgid "Date range"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__debit
|
||||
msgid "Debit"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__description
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__description
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__description
|
||||
msgid "Description"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__display_name
|
||||
msgid "Display Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__draft
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__draft
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__draft
|
||||
msgid "Draft"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account_item__date
|
||||
msgid ""
|
||||
"Dummy field that adapts searches on date to searches on date_from/date_to."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_follower_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_follower_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_follower_ids
|
||||
msgid "Followers"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_channel_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_channel_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_channel_ids
|
||||
msgid "Followers (Channels)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_partner_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_partner_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_partner_ids
|
||||
msgid "Followers (Partners)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_from
|
||||
msgid "From"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_unread
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_unread
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_unread
|
||||
msgid "If checked, new messages require your attention."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_sms_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_sms_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_sms_error
|
||||
msgid "If checked, some messages have a delivery error."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_is_follower
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_is_follower
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_is_follower
|
||||
msgid "Is Follower"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__item_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__item_ids
|
||||
msgid "Item"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__kpi_expression_id
|
||||
msgid "KPI"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__seq1
|
||||
msgid "KPI Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_abstract
|
||||
msgid "MIS Budget (Abstract Base Class)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_item_abstract
|
||||
msgid "MIS Budget Item (Abstract Base Class)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_by_account_item
|
||||
msgid "MIS Budget Item (by Account)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_item
|
||||
msgid "MIS Budget Item (by KPI)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_item_act_window
|
||||
msgid "MIS Budget Items (by KPIs)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_by_account_item_act_window
|
||||
msgid "MIS Budget Items (by accounts)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_by_account
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_report_instance_period__source__mis_budget_by_account
|
||||
msgid "MIS Budget by Account"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_report_instance_period__source__mis_budget
|
||||
msgid "MIS Budget by KPI"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_act_window
|
||||
#: model:ir.ui.menu,name:mis_builder_budget.mis_budget_menu
|
||||
msgid "MIS Budgets (by KPIs)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_by_account_act_window
|
||||
#: model:ir.ui.menu,name:mis_builder_budget.mis_budget_by_account_menu
|
||||
msgid "MIS Budgets (by accounts)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_instance
|
||||
msgid "MIS Report Instance"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_instance_period
|
||||
msgid "MIS Report Instance Period"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_kpi
|
||||
msgid "MIS Report KPI"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_kpi_expression
|
||||
msgid "MIS Report KPI Expression"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__report_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__report_id
|
||||
msgid "MIS Report Template"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_main_attachment_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_main_attachment_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_main_attachment_id
|
||||
msgid "Main Attachment"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_error
|
||||
msgid "Message Delivery error"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_ids
|
||||
msgid "Messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__name
|
||||
msgid "Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_needaction_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_needaction_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_needaction_counter
|
||||
msgid "Number of Actions"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_error_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_error_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_error_counter
|
||||
msgid "Number of errors"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_needaction_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_needaction_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_needaction_counter
|
||||
msgid "Number of messages which requires an action"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_error_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_error_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_error_counter
|
||||
msgid "Number of messages with delivery error"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_unread_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_unread_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_unread_counter
|
||||
msgid "Number of unread messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_sms_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_sms_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_sms_error
|
||||
msgid "SMS Delivery error"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Set draft"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source
|
||||
msgid "Source"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__state
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__state
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__state
|
||||
msgid "State"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__seq2
|
||||
msgid "Sub-KPI Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_to
|
||||
msgid "To"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_unread
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_unread
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_unread
|
||||
msgid "Unread Messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_unread_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_unread_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_unread_counter
|
||||
msgid "Unread Messages Counter"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account_item__company_currency_id
|
||||
msgid "Utility field to express amount currency"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__website_message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__website_message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__website_message_ids
|
||||
msgid "Website Messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__website_message_ids
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__website_message_ids
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__website_message_ids
|
||||
msgid "Website communication history"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.constraint,message:mis_builder_budget.constraint_mis_budget_by_account_item_credit_debit2
|
||||
msgid ""
|
||||
"Wrong credit or debit value in budget item! Credit and debit should be "
|
||||
"positive."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.constraint,message:mis_builder_budget.constraint_mis_budget_by_account_item_credit_debit1
|
||||
msgid ""
|
||||
"Wrong credit or debit value in budget item! Credit or debit should be zero."
|
||||
msgstr ""
|
|
@ -0,0 +1,601 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * mis_builder_budget
|
||||
#
|
||||
# Translators:
|
||||
# Frank Schellenberg <opensource@schellenberg.nl>, 2018
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 11.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-01-13 15:37+0000\n"
|
||||
"PO-Revision-Date: 2018-01-13 15:37+0000\n"
|
||||
"Last-Translator: Frank Schellenberg <opensource@schellenberg.nl>, 2018\n"
|
||||
"Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n"
|
||||
"Language: nl\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s (copy)"
|
||||
msgstr "%s (kopie)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s is not within budget %s date range."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s overlaps %s in budget %s"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s start date must not be after end date"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__account_id
|
||||
msgid "Account"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_needaction
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_needaction
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_needaction
|
||||
msgid "Action Needed"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_report_instance_period__source
|
||||
msgid ""
|
||||
"Actuals: current data, from accounting and other queries.\n"
|
||||
"Actuals (alternative): current data from an alternative source (eg a "
|
||||
"database view providing look-alike account move lines).\n"
|
||||
"Sum columns: summation (+/-) of other columns.\n"
|
||||
"Compare to column: compare to other column.\n"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__amount
|
||||
msgid "Amount"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__analytic_tag_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__analytic_tag_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__analytic_tag_ids
|
||||
msgid "Analytic Tags"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__analytic_account_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__analytic_account_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__analytic_account_id
|
||||
msgid "Analytic account"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_attachment_count
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_attachment_count
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_attachment_count
|
||||
msgid "Attachment Count"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__balance
|
||||
#, fuzzy
|
||||
msgid "Balance"
|
||||
msgstr "Annuleer"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_id
|
||||
msgid "Budget"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_date_from
|
||||
msgid "Budget Date From"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_date_to
|
||||
msgid "Budget Date To"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source_mis_budget_by_account_id
|
||||
msgid "Budget by Account"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source_mis_budget_id
|
||||
msgid "Budget by KPI"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Budget items"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_kpi__budgetable
|
||||
msgid "Budgetable"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Cancel"
|
||||
msgstr "Annuleer"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__cancelled
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__cancelled
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__cancelled
|
||||
msgid "Cancelled"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__company_id
|
||||
msgid "Company"
|
||||
msgstr "Bedrijf"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__company_currency_id
|
||||
#, fuzzy
|
||||
msgid "Company Currency"
|
||||
msgstr "Bedrijf"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Confirm"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__confirmed
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__confirmed
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__confirmed
|
||||
msgid "Confirmed"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__create_uid
|
||||
msgid "Created by"
|
||||
msgstr "Aangemaakt door"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__create_date
|
||||
msgid "Created on"
|
||||
msgstr "Aangemaakt op"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__credit
|
||||
msgid "Credit"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_range_id
|
||||
msgid "Date range"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__debit
|
||||
msgid "Debit"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__description
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__description
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__description
|
||||
msgid "Description"
|
||||
msgstr "Omschrijving"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Weergavenaam"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__draft
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__draft
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__draft
|
||||
msgid "Draft"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account_item__date
|
||||
msgid ""
|
||||
"Dummy field that adapts searches on date to searches on date_from/date_to."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_follower_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_follower_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_follower_ids
|
||||
msgid "Followers"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_channel_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_channel_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_channel_ids
|
||||
msgid "Followers (Channels)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_partner_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_partner_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_partner_ids
|
||||
msgid "Followers (Partners)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_from
|
||||
msgid "From"
|
||||
msgstr "Van"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__id
|
||||
msgid "ID"
|
||||
msgstr "ID"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_unread
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_unread
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_unread
|
||||
msgid "If checked, new messages require your attention."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_sms_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_sms_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_sms_error
|
||||
msgid "If checked, some messages have a delivery error."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_is_follower
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_is_follower
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_is_follower
|
||||
msgid "Is Follower"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__item_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__item_ids
|
||||
msgid "Item"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__kpi_expression_id
|
||||
msgid "KPI"
|
||||
msgstr "KPI"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__seq1
|
||||
msgid "KPI Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Voor het laatst aangepast op"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr "Voor het laatst geüpdatet door"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr "Voor het laatst geüpdatet op"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_abstract
|
||||
msgid "MIS Budget (Abstract Base Class)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_item_abstract
|
||||
msgid "MIS Budget Item (Abstract Base Class)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_by_account_item
|
||||
msgid "MIS Budget Item (by Account)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_item
|
||||
msgid "MIS Budget Item (by KPI)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_item_act_window
|
||||
msgid "MIS Budget Items (by KPIs)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_by_account_item_act_window
|
||||
msgid "MIS Budget Items (by accounts)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_by_account
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_report_instance_period__source__mis_budget_by_account
|
||||
#, fuzzy
|
||||
msgid "MIS Budget by Account"
|
||||
msgstr "MIS Budgetten"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_report_instance_period__source__mis_budget
|
||||
#, fuzzy
|
||||
msgid "MIS Budget by KPI"
|
||||
msgstr "MIS Budgetten"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_act_window
|
||||
#: model:ir.ui.menu,name:mis_builder_budget.mis_budget_menu
|
||||
#, fuzzy
|
||||
msgid "MIS Budgets (by KPIs)"
|
||||
msgstr "MIS Budgetten"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_by_account_act_window
|
||||
#: model:ir.ui.menu,name:mis_builder_budget.mis_budget_by_account_menu
|
||||
msgid "MIS Budgets (by accounts)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_instance
|
||||
#, fuzzy
|
||||
msgid "MIS Report Instance"
|
||||
msgstr "mis.report.instance"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_instance_period
|
||||
#, fuzzy
|
||||
msgid "MIS Report Instance Period"
|
||||
msgstr "mis.report.instance.period"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_kpi
|
||||
msgid "MIS Report KPI"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_kpi_expression
|
||||
msgid "MIS Report KPI Expression"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__report_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__report_id
|
||||
msgid "MIS Report Template"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_main_attachment_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_main_attachment_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_main_attachment_id
|
||||
msgid "Main Attachment"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_error
|
||||
msgid "Message Delivery error"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_ids
|
||||
msgid "Messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__name
|
||||
msgid "Name"
|
||||
msgstr "Naam"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_needaction_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_needaction_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_needaction_counter
|
||||
msgid "Number of Actions"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_error_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_error_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_error_counter
|
||||
msgid "Number of errors"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_needaction_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_needaction_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_needaction_counter
|
||||
msgid "Number of messages which requires an action"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_error_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_error_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_error_counter
|
||||
msgid "Number of messages with delivery error"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_unread_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_unread_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_unread_counter
|
||||
msgid "Number of unread messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_sms_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_sms_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_sms_error
|
||||
msgid "SMS Delivery error"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Set draft"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source
|
||||
msgid "Source"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__state
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__state
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__state
|
||||
msgid "State"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__seq2
|
||||
msgid "Sub-KPI Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_to
|
||||
msgid "To"
|
||||
msgstr "Tot"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_unread
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_unread
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_unread
|
||||
msgid "Unread Messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_unread_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_unread_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_unread_counter
|
||||
msgid "Unread Messages Counter"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account_item__company_currency_id
|
||||
msgid "Utility field to express amount currency"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__website_message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__website_message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__website_message_ids
|
||||
msgid "Website Messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__website_message_ids
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__website_message_ids
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__website_message_ids
|
||||
msgid "Website communication history"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.constraint,message:mis_builder_budget.constraint_mis_budget_by_account_item_credit_debit2
|
||||
msgid ""
|
||||
"Wrong credit or debit value in budget item! Credit and debit should be "
|
||||
"positive."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.constraint,message:mis_builder_budget.constraint_mis_budget_by_account_item_credit_debit1
|
||||
msgid ""
|
||||
"Wrong credit or debit value in budget item! Credit or debit should be zero."
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "mis.report.kpi"
|
||||
#~ msgstr "mis.report.kpi"
|
||||
|
||||
#~ msgid "mis.report.kpi.expression"
|
||||
#~ msgstr "mis.report.kpi.expression"
|
|
@ -0,0 +1,624 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * mis_builder_budget
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2018
|
||||
# Frank Schellenberg <opensource@schellenberg.nl>, 2018
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 11.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-01-13 15:37+0000\n"
|
||||
"PO-Revision-Date: 2018-01-13 15:37+0000\n"
|
||||
"Last-Translator: Frank Schellenberg <opensource@schellenberg.nl>, 2018\n"
|
||||
"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/"
|
||||
"teams/23907/nl_NL/)\n"
|
||||
"Language: nl_NL\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s (copy)"
|
||||
msgstr "%s (kopie)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s is not within budget %s date range."
|
||||
msgstr "%s valt niet binnen het datumbereik van begroting %s."
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s overlaps %s in budget %s"
|
||||
msgstr "%s overlapt %s in begroting %s"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s start date must not be after end date"
|
||||
msgstr "%s start datum moet voor de einddatum liggen"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__account_id
|
||||
#, fuzzy
|
||||
msgid "Account"
|
||||
msgstr "Analytische rekening"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_needaction
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_needaction
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_needaction
|
||||
msgid "Action Needed"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_report_instance_period__source
|
||||
msgid ""
|
||||
"Actuals: current data, from accounting and other queries.\n"
|
||||
"Actuals (alternative): current data from an alternative source (eg a "
|
||||
"database view providing look-alike account move lines).\n"
|
||||
"Sum columns: summation (+/-) of other columns.\n"
|
||||
"Compare to column: compare to other column.\n"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__amount
|
||||
msgid "Amount"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__analytic_tag_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__analytic_tag_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__analytic_tag_ids
|
||||
#, fuzzy
|
||||
msgid "Analytic Tags"
|
||||
msgstr "Analytische rekening"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__analytic_account_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__analytic_account_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__analytic_account_id
|
||||
msgid "Analytic account"
|
||||
msgstr "Analytische rekening"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_attachment_count
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_attachment_count
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_attachment_count
|
||||
msgid "Attachment Count"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__balance
|
||||
#, fuzzy
|
||||
msgid "Balance"
|
||||
msgstr "Annuleer"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_id
|
||||
msgid "Budget"
|
||||
msgstr "Begroting"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_date_from
|
||||
#, fuzzy
|
||||
msgid "Budget Date From"
|
||||
msgstr "Begrotingsitems"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_date_to
|
||||
#, fuzzy
|
||||
msgid "Budget Date To"
|
||||
msgstr "Begrotingsitems"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source_mis_budget_by_account_id
|
||||
msgid "Budget by Account"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source_mis_budget_id
|
||||
#, fuzzy
|
||||
msgid "Budget by KPI"
|
||||
msgstr "Begroting"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Budget items"
|
||||
msgstr "Begrotingsitems"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_kpi__budgetable
|
||||
msgid "Budgetable"
|
||||
msgstr "Begrootbaar"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Cancel"
|
||||
msgstr "Annuleer"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__cancelled
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__cancelled
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__cancelled
|
||||
msgid "Cancelled"
|
||||
msgstr "Geannuleerd"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__company_id
|
||||
msgid "Company"
|
||||
msgstr "Bedrijf"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__company_currency_id
|
||||
#, fuzzy
|
||||
msgid "Company Currency"
|
||||
msgstr "Bedrijf"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Confirm"
|
||||
msgstr "Bevestig"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__confirmed
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__confirmed
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__confirmed
|
||||
msgid "Confirmed"
|
||||
msgstr "Bevestigd"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__create_uid
|
||||
msgid "Created by"
|
||||
msgstr "Aangemaakt door"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__create_date
|
||||
msgid "Created on"
|
||||
msgstr "Aangemaakt op"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__credit
|
||||
msgid "Credit"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_range_id
|
||||
msgid "Date range"
|
||||
msgstr "Datumbereik"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__debit
|
||||
msgid "Debit"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__description
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__description
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__description
|
||||
msgid "Description"
|
||||
msgstr "Omschrijving"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Weergavenaam"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__draft
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__draft
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__draft
|
||||
msgid "Draft"
|
||||
msgstr "Concept"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account_item__date
|
||||
msgid ""
|
||||
"Dummy field that adapts searches on date to searches on date_from/date_to."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_follower_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_follower_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_follower_ids
|
||||
msgid "Followers"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_channel_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_channel_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_channel_ids
|
||||
msgid "Followers (Channels)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_partner_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_partner_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_partner_ids
|
||||
msgid "Followers (Partners)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_from
|
||||
msgid "From"
|
||||
msgstr "Van"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__id
|
||||
msgid "ID"
|
||||
msgstr "ID"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_unread
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_unread
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_unread
|
||||
msgid "If checked, new messages require your attention."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_sms_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_sms_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_sms_error
|
||||
msgid "If checked, some messages have a delivery error."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_is_follower
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_is_follower
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_is_follower
|
||||
msgid "Is Follower"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__item_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__item_ids
|
||||
msgid "Item"
|
||||
msgstr "Item"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__kpi_expression_id
|
||||
msgid "KPI"
|
||||
msgstr "KPI"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__seq1
|
||||
msgid "KPI Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Voor het laatst aangepast op"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr "Voor het laatst geüpdatet door"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr "Voor het laatst geüpdatet op"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_abstract
|
||||
msgid "MIS Budget (Abstract Base Class)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_item_abstract
|
||||
#, fuzzy
|
||||
msgid "MIS Budget Item (Abstract Base Class)"
|
||||
msgstr "MIS Begrotingsitems"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_by_account_item
|
||||
#, fuzzy
|
||||
msgid "MIS Budget Item (by Account)"
|
||||
msgstr "MIS Begrotingsitem"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_item
|
||||
#, fuzzy
|
||||
msgid "MIS Budget Item (by KPI)"
|
||||
msgstr "MIS Begrotingsitem"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_item_act_window
|
||||
#, fuzzy
|
||||
msgid "MIS Budget Items (by KPIs)"
|
||||
msgstr "MIS Begrotingsitems"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_by_account_item_act_window
|
||||
#, fuzzy
|
||||
msgid "MIS Budget Items (by accounts)"
|
||||
msgstr "MIS Begrotingsitems"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_by_account
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_report_instance_period__source__mis_budget_by_account
|
||||
#, fuzzy
|
||||
msgid "MIS Budget by Account"
|
||||
msgstr "MIS Begrotingsitem"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_report_instance_period__source__mis_budget
|
||||
#, fuzzy
|
||||
msgid "MIS Budget by KPI"
|
||||
msgstr "MIS Begrotingsitem"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_act_window
|
||||
#: model:ir.ui.menu,name:mis_builder_budget.mis_budget_menu
|
||||
#, fuzzy
|
||||
msgid "MIS Budgets (by KPIs)"
|
||||
msgstr "MIS Begrotingsitems"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_by_account_act_window
|
||||
#: model:ir.ui.menu,name:mis_builder_budget.mis_budget_by_account_menu
|
||||
#, fuzzy
|
||||
msgid "MIS Budgets (by accounts)"
|
||||
msgstr "MIS Begrotingsitems"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_instance
|
||||
#, fuzzy
|
||||
msgid "MIS Report Instance"
|
||||
msgstr "MIS Rapport Template"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_instance_period
|
||||
#, fuzzy
|
||||
msgid "MIS Report Instance Period"
|
||||
msgstr "mis.report.instance.period"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_kpi
|
||||
#, fuzzy
|
||||
msgid "MIS Report KPI"
|
||||
msgstr "MIS Rapport Template"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_kpi_expression
|
||||
msgid "MIS Report KPI Expression"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__report_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__report_id
|
||||
msgid "MIS Report Template"
|
||||
msgstr "MIS Rapport Template"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_main_attachment_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_main_attachment_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_main_attachment_id
|
||||
msgid "Main Attachment"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_error
|
||||
msgid "Message Delivery error"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_ids
|
||||
msgid "Messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__name
|
||||
msgid "Name"
|
||||
msgstr "Naam"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_needaction_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_needaction_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_needaction_counter
|
||||
msgid "Number of Actions"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_error_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_error_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_error_counter
|
||||
msgid "Number of errors"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_needaction_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_needaction_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_needaction_counter
|
||||
msgid "Number of messages which requires an action"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_error_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_error_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_error_counter
|
||||
msgid "Number of messages with delivery error"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_unread_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_unread_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_unread_counter
|
||||
msgid "Number of unread messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_sms_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_sms_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_sms_error
|
||||
msgid "SMS Delivery error"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Set draft"
|
||||
msgstr "Set concept in"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source
|
||||
msgid "Source"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__state
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__state
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__state
|
||||
msgid "State"
|
||||
msgstr "Status"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__seq2
|
||||
msgid "Sub-KPI Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_to
|
||||
msgid "To"
|
||||
msgstr "Tot"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_unread
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_unread
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_unread
|
||||
msgid "Unread Messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_unread_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_unread_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_unread_counter
|
||||
msgid "Unread Messages Counter"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account_item__company_currency_id
|
||||
msgid "Utility field to express amount currency"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__website_message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__website_message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__website_message_ids
|
||||
msgid "Website Messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__website_message_ids
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__website_message_ids
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__website_message_ids
|
||||
msgid "Website communication history"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.constraint,message:mis_builder_budget.constraint_mis_budget_by_account_item_credit_debit2
|
||||
msgid ""
|
||||
"Wrong credit or debit value in budget item! Credit and debit should be "
|
||||
"positive."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.constraint,message:mis_builder_budget.constraint_mis_budget_by_account_item_credit_debit1
|
||||
msgid ""
|
||||
"Wrong credit or debit value in budget item! Credit or debit should be zero."
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "MIS Budget"
|
||||
#~ msgstr "MIS Budgetten"
|
||||
|
||||
#~ msgid "MIS Budgets"
|
||||
#~ msgstr "MIS Begrotingen"
|
||||
|
||||
#~ msgid "mis.report.instance"
|
||||
#~ msgstr "mis.report.instance"
|
||||
|
||||
#~ msgid "mis.report.kpi"
|
||||
#~ msgstr "mis.report.kpi"
|
||||
|
||||
#~ msgid "mis.report.kpi.expression"
|
||||
#~ msgstr "mis.report.kpi.expression"
|
|
@ -0,0 +1,590 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * mis_builder_budget
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2018
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 11.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-01-13 15:37+0000\n"
|
||||
"PO-Revision-Date: 2018-01-13 15:37+0000\n"
|
||||
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2018\n"
|
||||
"Language-Team: Portuguese (https://www.transifex.com/oca/teams/23907/pt/)\n"
|
||||
"Language: pt\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s (copy)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s is not within budget %s date range."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s overlaps %s in budget %s"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s start date must not be after end date"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__account_id
|
||||
msgid "Account"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_needaction
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_needaction
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_needaction
|
||||
msgid "Action Needed"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_report_instance_period__source
|
||||
msgid ""
|
||||
"Actuals: current data, from accounting and other queries.\n"
|
||||
"Actuals (alternative): current data from an alternative source (eg a "
|
||||
"database view providing look-alike account move lines).\n"
|
||||
"Sum columns: summation (+/-) of other columns.\n"
|
||||
"Compare to column: compare to other column.\n"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__amount
|
||||
msgid "Amount"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__analytic_tag_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__analytic_tag_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__analytic_tag_ids
|
||||
msgid "Analytic Tags"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__analytic_account_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__analytic_account_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__analytic_account_id
|
||||
msgid "Analytic account"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_attachment_count
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_attachment_count
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_attachment_count
|
||||
msgid "Attachment Count"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__balance
|
||||
#, fuzzy
|
||||
msgid "Balance"
|
||||
msgstr "Cancelar"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_id
|
||||
msgid "Budget"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_date_from
|
||||
msgid "Budget Date From"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_date_to
|
||||
msgid "Budget Date To"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source_mis_budget_by_account_id
|
||||
msgid "Budget by Account"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source_mis_budget_id
|
||||
msgid "Budget by KPI"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Budget items"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_kpi__budgetable
|
||||
msgid "Budgetable"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Cancel"
|
||||
msgstr "Cancelar"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__cancelled
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__cancelled
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__cancelled
|
||||
msgid "Cancelled"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__company_id
|
||||
msgid "Company"
|
||||
msgstr "Empresa"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__company_currency_id
|
||||
#, fuzzy
|
||||
msgid "Company Currency"
|
||||
msgstr "Empresa"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Confirm"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__confirmed
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__confirmed
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__confirmed
|
||||
msgid "Confirmed"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__create_uid
|
||||
msgid "Created by"
|
||||
msgstr "Criado por"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__create_date
|
||||
msgid "Created on"
|
||||
msgstr "Criado em"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__credit
|
||||
msgid "Credit"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_range_id
|
||||
msgid "Date range"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__debit
|
||||
msgid "Debit"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__description
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__description
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__description
|
||||
msgid "Description"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Nome a exibir"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__draft
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__draft
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__draft
|
||||
msgid "Draft"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account_item__date
|
||||
msgid ""
|
||||
"Dummy field that adapts searches on date to searches on date_from/date_to."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_follower_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_follower_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_follower_ids
|
||||
msgid "Followers"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_channel_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_channel_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_channel_ids
|
||||
msgid "Followers (Channels)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_partner_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_partner_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_partner_ids
|
||||
msgid "Followers (Partners)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_from
|
||||
msgid "From"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__id
|
||||
msgid "ID"
|
||||
msgstr "ID"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_unread
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_unread
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_unread
|
||||
msgid "If checked, new messages require your attention."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_sms_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_sms_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_sms_error
|
||||
msgid "If checked, some messages have a delivery error."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_is_follower
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_is_follower
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_is_follower
|
||||
msgid "Is Follower"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__item_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__item_ids
|
||||
msgid "Item"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__kpi_expression_id
|
||||
msgid "KPI"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__seq1
|
||||
msgid "KPI Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Última Modificação em"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr "Última atualização por"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr "Última atualização em"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_abstract
|
||||
msgid "MIS Budget (Abstract Base Class)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_item_abstract
|
||||
msgid "MIS Budget Item (Abstract Base Class)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_by_account_item
|
||||
msgid "MIS Budget Item (by Account)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_item
|
||||
msgid "MIS Budget Item (by KPI)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_item_act_window
|
||||
msgid "MIS Budget Items (by KPIs)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_by_account_item_act_window
|
||||
msgid "MIS Budget Items (by accounts)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_by_account
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_report_instance_period__source__mis_budget_by_account
|
||||
msgid "MIS Budget by Account"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_report_instance_period__source__mis_budget
|
||||
msgid "MIS Budget by KPI"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_act_window
|
||||
#: model:ir.ui.menu,name:mis_builder_budget.mis_budget_menu
|
||||
msgid "MIS Budgets (by KPIs)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_by_account_act_window
|
||||
#: model:ir.ui.menu,name:mis_builder_budget.mis_budget_by_account_menu
|
||||
msgid "MIS Budgets (by accounts)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_instance
|
||||
msgid "MIS Report Instance"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_instance_period
|
||||
msgid "MIS Report Instance Period"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_kpi
|
||||
msgid "MIS Report KPI"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_kpi_expression
|
||||
msgid "MIS Report KPI Expression"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__report_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__report_id
|
||||
msgid "MIS Report Template"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_main_attachment_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_main_attachment_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_main_attachment_id
|
||||
msgid "Main Attachment"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_error
|
||||
msgid "Message Delivery error"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_ids
|
||||
msgid "Messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__name
|
||||
msgid "Name"
|
||||
msgstr "Nome"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_needaction_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_needaction_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_needaction_counter
|
||||
msgid "Number of Actions"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_error_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_error_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_error_counter
|
||||
msgid "Number of errors"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_needaction_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_needaction_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_needaction_counter
|
||||
msgid "Number of messages which requires an action"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_error_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_error_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_error_counter
|
||||
msgid "Number of messages with delivery error"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_unread_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_unread_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_unread_counter
|
||||
msgid "Number of unread messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_sms_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_sms_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_sms_error
|
||||
msgid "SMS Delivery error"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Set draft"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source
|
||||
msgid "Source"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__state
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__state
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__state
|
||||
msgid "State"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__seq2
|
||||
msgid "Sub-KPI Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_to
|
||||
msgid "To"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_unread
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_unread
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_unread
|
||||
msgid "Unread Messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_unread_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_unread_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_unread_counter
|
||||
msgid "Unread Messages Counter"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account_item__company_currency_id
|
||||
msgid "Utility field to express amount currency"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__website_message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__website_message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__website_message_ids
|
||||
msgid "Website Messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__website_message_ids
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__website_message_ids
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__website_message_ids
|
||||
msgid "Website communication history"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.constraint,message:mis_builder_budget.constraint_mis_budget_by_account_item_credit_debit2
|
||||
msgid ""
|
||||
"Wrong credit or debit value in budget item! Credit and debit should be "
|
||||
"positive."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.constraint,message:mis_builder_budget.constraint_mis_budget_by_account_item_credit_debit1
|
||||
msgid ""
|
||||
"Wrong credit or debit value in budget item! Credit or debit should be zero."
|
||||
msgstr ""
|
|
@ -0,0 +1,628 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * mis_builder_budget
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 12.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2019-12-20 04:05+0000\n"
|
||||
"Last-Translator: Eder Brito <britoederr@gmail.com>\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: pt_BR\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
||||
"X-Generator: Weblate 3.9.1\n"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s (copy)"
|
||||
msgstr "%s (cópia)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s is not within budget %s date range."
|
||||
msgstr "%s não está dentro do período %s do orçamento."
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s overlaps %s in budget %s"
|
||||
msgstr "%s sobreposto %s no orçamento %s"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: code:addons/mis_builder_budget/models/mis_budget_item_abstract.py:0
|
||||
#, python-format
|
||||
msgid "%s start date must not be after end date"
|
||||
msgstr "%s data inicial não deve ser após a data final"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__account_id
|
||||
#, fuzzy
|
||||
msgid "Account"
|
||||
msgstr "Montante"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_needaction
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_needaction
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_needaction
|
||||
msgid "Action Needed"
|
||||
msgstr "Ação Necessária"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_report_instance_period__source
|
||||
msgid ""
|
||||
"Actuals: current data, from accounting and other queries.\n"
|
||||
"Actuals (alternative): current data from an alternative source (eg a "
|
||||
"database view providing look-alike account move lines).\n"
|
||||
"Sum columns: summation (+/-) of other columns.\n"
|
||||
"Compare to column: compare to other column.\n"
|
||||
msgstr ""
|
||||
"Reais: dados atuais, da contabilidade e outras consultas.\n"
|
||||
"Reais (alternativa): dados atuais de um recurso alternativo (ex: uma uma "
|
||||
"visualização do banco de dados que fornece linhas de movimentação de contas "
|
||||
"semelhantes).\n"
|
||||
"Soma colunas: somatório (+/-) de outras colunas.\n"
|
||||
"Comparar à coluna: comparar com outra coluna.\n"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__amount
|
||||
msgid "Amount"
|
||||
msgstr "Montante"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__analytic_tag_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__analytic_tag_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__analytic_tag_ids
|
||||
msgid "Analytic Tags"
|
||||
msgstr "Marcadores Analíticos"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__analytic_account_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__analytic_account_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__analytic_account_id
|
||||
msgid "Analytic account"
|
||||
msgstr "Conta analítica"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_attachment_count
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_attachment_count
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_attachment_count
|
||||
msgid "Attachment Count"
|
||||
msgstr "Contar Anexo"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__balance
|
||||
#, fuzzy
|
||||
msgid "Balance"
|
||||
msgstr "Cancelar"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_id
|
||||
msgid "Budget"
|
||||
msgstr "Orçamento"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_date_from
|
||||
msgid "Budget Date From"
|
||||
msgstr "Data do Orçamento A Partir de"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__budget_date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__budget_date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__budget_date_to
|
||||
msgid "Budget Date To"
|
||||
msgstr "Data do Orçamento Até"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source_mis_budget_by_account_id
|
||||
msgid "Budget by Account"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source_mis_budget_id
|
||||
#, fuzzy
|
||||
msgid "Budget by KPI"
|
||||
msgstr "Orçamento"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Budget items"
|
||||
msgstr "Itens do Orçamento"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_kpi__budgetable
|
||||
msgid "Budgetable"
|
||||
msgstr "Orçamento"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Cancel"
|
||||
msgstr "Cancelar"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__cancelled
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__cancelled
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__cancelled
|
||||
msgid "Cancelled"
|
||||
msgstr "Cancelado"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__company_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__company_id
|
||||
msgid "Company"
|
||||
msgstr "Empresa"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__company_currency_id
|
||||
#, fuzzy
|
||||
msgid "Company Currency"
|
||||
msgstr "Empresa"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Confirm"
|
||||
msgstr "Confirmar"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__confirmed
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__confirmed
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__confirmed
|
||||
msgid "Confirmed"
|
||||
msgstr "Confirmado"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__create_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__create_uid
|
||||
msgid "Created by"
|
||||
msgstr "Criado por"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__create_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__create_date
|
||||
msgid "Created on"
|
||||
msgstr "Criado em"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__credit
|
||||
msgid "Credit"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_range_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_range_id
|
||||
msgid "Date range"
|
||||
msgstr "Período"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__debit
|
||||
msgid "Debit"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__description
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__description
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__description
|
||||
msgid "Description"
|
||||
msgstr "Descrição"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__display_name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Nome de Exibição"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget__state__draft
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_abstract__state__draft
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_budget_by_account__state__draft
|
||||
msgid "Draft"
|
||||
msgstr "Rascunho"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account_item__date
|
||||
msgid ""
|
||||
"Dummy field that adapts searches on date to searches on date_from/date_to."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_follower_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_follower_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_follower_ids
|
||||
msgid "Followers"
|
||||
msgstr "Seguidores"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_channel_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_channel_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_channel_ids
|
||||
msgid "Followers (Channels)"
|
||||
msgstr "Seguidores (Canais)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_partner_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_partner_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_partner_ids
|
||||
msgid "Followers (Partners)"
|
||||
msgstr "Seguidores (Parceiros)"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_from
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_from
|
||||
msgid "From"
|
||||
msgstr "De"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__id
|
||||
msgid "ID"
|
||||
msgstr "ID"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_unread
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_unread
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_needaction
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_unread
|
||||
msgid "If checked, new messages require your attention."
|
||||
msgstr "Se selecionado, novas mensagens exigirão sua atenção."
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_sms_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_sms_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_error
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_sms_error
|
||||
msgid "If checked, some messages have a delivery error."
|
||||
msgstr "Se selecionado, algumas mensagens terão um erro de entrega."
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_is_follower
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_is_follower
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_is_follower
|
||||
msgid "Is Follower"
|
||||
msgstr "É Seguidor"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__item_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__item_ids
|
||||
msgid "Item"
|
||||
msgstr "Item"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__kpi_expression_id
|
||||
msgid "KPI"
|
||||
msgstr "KPI"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__seq1
|
||||
msgid "KPI Sequence"
|
||||
msgstr "Sequência KPI"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item____last_update
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Última Modificação em"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__write_uid
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr "Última Atualização por"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__write_date
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr "Última Atualização em"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_abstract
|
||||
msgid "MIS Budget (Abstract Base Class)"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_item_abstract
|
||||
#, fuzzy
|
||||
msgid "MIS Budget Item (Abstract Base Class)"
|
||||
msgstr "Itens do Orçamento SIG"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_by_account_item
|
||||
#, fuzzy
|
||||
msgid "MIS Budget Item (by Account)"
|
||||
msgstr "Item do Orçamento SIG"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_item
|
||||
#, fuzzy
|
||||
msgid "MIS Budget Item (by KPI)"
|
||||
msgstr "Item do Orçamento SIG"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_item_act_window
|
||||
#, fuzzy
|
||||
msgid "MIS Budget Items (by KPIs)"
|
||||
msgstr "Itens do Orçamento SIG"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_by_account_item_act_window
|
||||
#, fuzzy
|
||||
msgid "MIS Budget Items (by accounts)"
|
||||
msgstr "Itens do Orçamento SIG"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget_by_account
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_report_instance_period__source__mis_budget_by_account
|
||||
#, fuzzy
|
||||
msgid "MIS Budget by Account"
|
||||
msgstr "Item do Orçamento SIG"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_budget
|
||||
#: model:ir.model.fields.selection,name:mis_builder_budget.selection__mis_report_instance_period__source__mis_budget
|
||||
#, fuzzy
|
||||
msgid "MIS Budget by KPI"
|
||||
msgstr "Item do Orçamento SIG"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_act_window
|
||||
#: model:ir.ui.menu,name:mis_builder_budget.mis_budget_menu
|
||||
#, fuzzy
|
||||
msgid "MIS Budgets (by KPIs)"
|
||||
msgstr "Itens do Orçamento SIG"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.actions.act_window,name:mis_builder_budget.mis_budget_by_account_act_window
|
||||
#: model:ir.ui.menu,name:mis_builder_budget.mis_budget_by_account_menu
|
||||
#, fuzzy
|
||||
msgid "MIS Budgets (by accounts)"
|
||||
msgstr "Itens do Orçamento SIG"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_instance
|
||||
msgid "MIS Report Instance"
|
||||
msgstr "Instância de Relatório SIG"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_instance_period
|
||||
msgid "MIS Report Instance Period"
|
||||
msgstr "Período da Instância do Relatório SIG"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_kpi
|
||||
msgid "MIS Report KPI"
|
||||
msgstr "Relatório KPI SIG"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model,name:mis_builder_budget.model_mis_report_kpi_expression
|
||||
msgid "MIS Report KPI Expression"
|
||||
msgstr "Expressão de KPI do relatório SIG"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__report_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__report_id
|
||||
msgid "MIS Report Template"
|
||||
msgstr "Modelo do Relatório SIG"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_main_attachment_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_main_attachment_id
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_main_attachment_id
|
||||
msgid "Main Attachment"
|
||||
msgstr "Anexo Principal"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_error
|
||||
msgid "Message Delivery error"
|
||||
msgstr "Erro de Entrega de Mensagem"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_ids
|
||||
msgid "Messages"
|
||||
msgstr "Mensagens"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__name
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__name
|
||||
msgid "Name"
|
||||
msgstr "Nome"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_needaction_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_needaction_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_needaction_counter
|
||||
msgid "Number of Actions"
|
||||
msgstr "Número de Ações"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_error_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_error_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_error_counter
|
||||
#, fuzzy
|
||||
msgid "Number of errors"
|
||||
msgstr "Número de erro"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_needaction_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_needaction_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_needaction_counter
|
||||
msgid "Number of messages which requires an action"
|
||||
msgstr "Número de mensagens que exigem uma atenção"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_has_error_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_has_error_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_has_error_counter
|
||||
msgid "Number of messages with delivery error"
|
||||
msgstr "Número de mensagens com erro de entrega"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__message_unread_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__message_unread_counter
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__message_unread_counter
|
||||
msgid "Number of unread messages"
|
||||
msgstr "Número de mensagens não lidas"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_has_sms_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_has_sms_error
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_has_sms_error
|
||||
#, fuzzy
|
||||
msgid "SMS Delivery error"
|
||||
msgstr "Erro de Entrega de Mensagem"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_by_account_form_view
|
||||
#: model_terms:ir.ui.view,arch_db:mis_builder_budget.mis_budget_form_view
|
||||
msgid "Set draft"
|
||||
msgstr "Definir rascunho"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_report_instance_period__source
|
||||
msgid "Source"
|
||||
msgstr "Fonte"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__state
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__state
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__state
|
||||
msgid "State"
|
||||
msgstr "Estado"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__seq2
|
||||
msgid "Sub-KPI Sequence"
|
||||
msgstr "Sequência Sub-KPI"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item__date_to
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_item_abstract__date_to
|
||||
msgid "To"
|
||||
msgstr "Para"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_unread
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_unread
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_unread
|
||||
msgid "Unread Messages"
|
||||
msgstr "Mensagens não lidas"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_unread_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__message_unread_counter
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__message_unread_counter
|
||||
msgid "Unread Messages Counter"
|
||||
msgstr "Contagem de Mensagens Não Lidas"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account_item__company_currency_id
|
||||
msgid "Utility field to express amount currency"
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__website_message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_abstract__website_message_ids
|
||||
#: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account__website_message_ids
|
||||
msgid "Website Messages"
|
||||
msgstr "Mensagens do Site"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget__website_message_ids
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_abstract__website_message_ids
|
||||
#: model:ir.model.fields,help:mis_builder_budget.field_mis_budget_by_account__website_message_ids
|
||||
msgid "Website communication history"
|
||||
msgstr "Histórico de Comunicação do Site"
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.constraint,message:mis_builder_budget.constraint_mis_budget_by_account_item_credit_debit2
|
||||
msgid ""
|
||||
"Wrong credit or debit value in budget item! Credit and debit should be "
|
||||
"positive."
|
||||
msgstr ""
|
||||
|
||||
#. module: mis_builder_budget
|
||||
#: model:ir.model.constraint,message:mis_builder_budget.constraint_mis_budget_by_account_item_credit_debit1
|
||||
msgid ""
|
||||
"Wrong credit or debit value in budget item! Credit or debit should be zero."
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "Actuals"
|
||||
#~ msgstr "Reais"
|
||||
|
||||
#~ msgid "Actuals (alternative)"
|
||||
#~ msgstr "Reais (alternativa)"
|
||||
|
||||
#~ msgid "Compare columns"
|
||||
#~ msgstr "Comparar colunas"
|
||||
|
||||
#~ msgid "If checked new messages require your attention."
|
||||
#~ msgstr "Se selecionado novas mensagens exigirão sua atenção."
|
||||
|
||||
#~ msgid "MIS Budget"
|
||||
#~ msgstr "Orçamento SIG"
|
||||
|
||||
#~ msgid "MIS Budgets"
|
||||
#~ msgstr "Orçamentos SIG"
|
||||
|
||||
#~ msgid "Sum columns"
|
||||
#~ msgstr "Somar colunas"
|
|
@ -0,0 +1,10 @@
|
|||
from . import mis_budget_abstract
|
||||
from . import mis_budget_item_abstract
|
||||
from . import mis_budget
|
||||
from . import mis_budget_item
|
||||
from . import mis_budget_by_account
|
||||
from . import mis_budget_by_account_item
|
||||
from . import mis_report_kpi
|
||||
from . import mis_report_instance
|
||||
from . import mis_report_instance_period
|
||||
from . import mis_report_kpi_expression
|
|
@ -0,0 +1,18 @@
|
|||
# Copyright 2017 ACSONE SA/NV
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from flectra import fields, models
|
||||
|
||||
|
||||
class MisBudget(models.Model):
|
||||
|
||||
_name = "mis.budget"
|
||||
_description = "MIS Budget by KPI"
|
||||
_inherit = ["mis.budget.abstract", "mail.thread"]
|
||||
|
||||
report_id = fields.Many2one(
|
||||
comodel_name="mis.report", string="MIS Report Template", required=True
|
||||
)
|
||||
item_ids = fields.One2many(
|
||||
comodel_name="mis.budget.item", inverse_name="budget_id", copy=True
|
||||
)
|
|
@ -0,0 +1,62 @@
|
|||
# Copyright 2017-2020 ACSONE SA/NV
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from flectra import _, api, fields, models
|
||||
|
||||
|
||||
class MisBudgetAbstract(models.AbstractModel):
|
||||
|
||||
_name = "mis.budget.abstract"
|
||||
_description = "MIS Budget (Abstract Base Class)"
|
||||
_inherit = ["mail.thread"]
|
||||
|
||||
name = fields.Char(required=True, track_visibility="onchange")
|
||||
description = fields.Char(track_visibility="onchange")
|
||||
date_range_id = fields.Many2one(comodel_name="date.range", string="Date range")
|
||||
date_from = fields.Date(required=True, string="From", track_visibility="onchange")
|
||||
date_to = fields.Date(required=True, string="To", track_visibility="onchange")
|
||||
state = fields.Selection(
|
||||
[("draft", "Draft"), ("confirmed", "Confirmed"), ("cancelled", "Cancelled")],
|
||||
required=True,
|
||||
default="draft",
|
||||
track_visibility="onchange",
|
||||
)
|
||||
company_id = fields.Many2one(
|
||||
comodel_name="res.company",
|
||||
string="Company",
|
||||
default=lambda self: self.env.company,
|
||||
)
|
||||
|
||||
def copy(self, default=None):
|
||||
self.ensure_one()
|
||||
if default is None:
|
||||
default = {}
|
||||
if "name" not in default:
|
||||
default["name"] = _("%s (copy)") % self.name
|
||||
return super(MisBudgetAbstract, self).copy(default=default)
|
||||
|
||||
@api.onchange("date_range_id")
|
||||
def _onchange_date_range(self):
|
||||
for rec in self:
|
||||
if rec.date_range_id:
|
||||
rec.date_from = rec.date_range_id.date_start
|
||||
rec.date_to = rec.date_range_id.date_end
|
||||
|
||||
@api.onchange("date_from", "date_to")
|
||||
def _onchange_dates(self):
|
||||
for rec in self:
|
||||
if rec.date_range_id:
|
||||
if (
|
||||
rec.date_from != rec.date_range_id.date_start
|
||||
or rec.date_to != rec.date_range_id.date_end
|
||||
):
|
||||
rec.date_range_id = False
|
||||
|
||||
def action_draft(self):
|
||||
self.write({"state": "draft"})
|
||||
|
||||
def action_cancel(self):
|
||||
self.write({"state": "cancelled"})
|
||||
|
||||
def action_confirm(self):
|
||||
self.write({"state": "confirmed"})
|
|
@ -0,0 +1,16 @@
|
|||
# Copyright 2017-2020 ACSONE SA/NV
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from flectra import fields, models
|
||||
|
||||
|
||||
class MisBudgetByAccount(models.Model):
|
||||
|
||||
_name = "mis.budget.by.account"
|
||||
_description = "MIS Budget by Account"
|
||||
_inherit = ["mis.budget.abstract", "mail.thread"]
|
||||
|
||||
item_ids = fields.One2many(
|
||||
comodel_name="mis.budget.by.account.item", inverse_name="budget_id", copy=True
|
||||
)
|
||||
company_id = fields.Many2one(required=True)
|
|
@ -0,0 +1,77 @@
|
|||
# Copyright 2017-2020 ACSONE SA/NV
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from flectra import api, fields, models
|
||||
|
||||
|
||||
class MisBudgetByAccountItem(models.Model):
|
||||
|
||||
_inherit = ["mis.budget.item.abstract", "prorata.read_group.mixin"]
|
||||
_name = "mis.budget.by.account.item"
|
||||
_description = "MIS Budget Item (by Account)"
|
||||
_order = "budget_id, date_from, account_id"
|
||||
|
||||
budget_id = fields.Many2one(comodel_name="mis.budget.by.account")
|
||||
debit = fields.Monetary(default=0.0, currency_field="company_currency_id")
|
||||
credit = fields.Monetary(default=0.0, currency_field="company_currency_id")
|
||||
balance = fields.Monetary(
|
||||
compute="_compute_balance", store=True, currency_field="company_currency_id"
|
||||
)
|
||||
company_id = fields.Many2one(
|
||||
"res.company",
|
||||
related="budget_id.company_id",
|
||||
readonly=True,
|
||||
store=True,
|
||||
)
|
||||
company_currency_id = fields.Many2one(
|
||||
"res.currency",
|
||||
related="budget_id.company_id.currency_id",
|
||||
string="Company Currency",
|
||||
readonly=True,
|
||||
help="Utility field to express amount currency",
|
||||
store=True,
|
||||
)
|
||||
account_id = fields.Many2one(
|
||||
comodel_name="account.account",
|
||||
string="Account",
|
||||
required=True,
|
||||
# TODO domain (company_id)
|
||||
)
|
||||
|
||||
_sql_constraints = [
|
||||
(
|
||||
"credit_debit1",
|
||||
"CHECK (credit*debit=0)",
|
||||
"Wrong credit or debit value in budget item! "
|
||||
"Credit or debit should be zero.",
|
||||
),
|
||||
(
|
||||
"credit_debit2",
|
||||
"CHECK (credit+debit>=0)",
|
||||
"Wrong credit or debit value in budget item! "
|
||||
"Credit and debit should be positive.",
|
||||
),
|
||||
]
|
||||
|
||||
@api.depends("debit", "credit")
|
||||
def _compute_balance(self):
|
||||
for rec in self:
|
||||
rec.balance = rec.debit - rec.credit
|
||||
|
||||
def _prepare_overlap_domain(self):
|
||||
"""Prepare a domain to check for overlapping budget items."""
|
||||
domain = super(MisBudgetByAccountItem, self)._prepare_overlap_domain()
|
||||
domain.extend([("account_id", "=", self.account_id.id)])
|
||||
return domain
|
||||
|
||||
@api.constrains(
|
||||
"date_range_id",
|
||||
"date_from",
|
||||
"date_to",
|
||||
"budget_id",
|
||||
"analytic_account_id",
|
||||
"analytic_tag_ids",
|
||||
"account_id",
|
||||
)
|
||||
def _check_dates(self):
|
||||
super(MisBudgetByAccountItem, self)._check_dates()
|
|
@ -0,0 +1,39 @@
|
|||
# Copyright 2017 ACSONE SA/NV
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from flectra import api, fields, models
|
||||
|
||||
|
||||
class MisBudgetItem(models.Model):
|
||||
|
||||
_inherit = ["mis.budget.item.abstract", "mis.kpi.data"]
|
||||
_name = "mis.budget.item"
|
||||
_description = "MIS Budget Item (by KPI)"
|
||||
_order = "budget_id, date_from, seq1, seq2"
|
||||
|
||||
budget_id = fields.Many2one(comodel_name="mis.budget")
|
||||
report_id = fields.Many2one(related="budget_id.report_id", readonly=True)
|
||||
kpi_expression_id = fields.Many2one(
|
||||
domain=(
|
||||
"[('kpi_id.report_id', '=', report_id),"
|
||||
" ('kpi_id.budgetable', '=', True)]"
|
||||
)
|
||||
)
|
||||
|
||||
def _prepare_overlap_domain(self):
|
||||
"""Prepare a domain to check for overlapping budget items."""
|
||||
domain = super(MisBudgetItem, self)._prepare_overlap_domain()
|
||||
domain.extend([("kpi_expression_id", "=", self.kpi_expression_id.id)])
|
||||
return domain
|
||||
|
||||
@api.constrains(
|
||||
"date_range_id",
|
||||
"date_from",
|
||||
"date_to",
|
||||
"budget_id",
|
||||
"analytic_account_id",
|
||||
"analytic_tag_ids",
|
||||
"kpi_expression_id",
|
||||
)
|
||||
def _check_dates(self):
|
||||
super(MisBudgetItem, self)._check_dates()
|
|
@ -0,0 +1,92 @@
|
|||
# Copyright 2017-2020 ACSONE SA/NV
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from flectra import _, api, fields, models
|
||||
from flectra.exceptions import ValidationError
|
||||
|
||||
|
||||
class MisBudgetItemAbstract(models.AbstractModel):
|
||||
|
||||
_name = "mis.budget.item.abstract"
|
||||
_description = "MIS Budget Item (Abstract Base Class)"
|
||||
|
||||
budget_id = fields.Many2one(
|
||||
comodel_name="mis.budget.abstract",
|
||||
string="Budget",
|
||||
required=True,
|
||||
ondelete="cascade",
|
||||
index=True,
|
||||
)
|
||||
budget_date_from = fields.Date(
|
||||
related="budget_id.date_from", readonly=True, string="Budget Date From"
|
||||
)
|
||||
budget_date_to = fields.Date(
|
||||
related="budget_id.date_to", readonly=True, string="Budget Date To"
|
||||
)
|
||||
date_range_id = fields.Many2one(
|
||||
comodel_name="date.range",
|
||||
domain="[('date_start', '>=', budget_date_from),"
|
||||
" ('date_end', '<=', budget_date_to)]",
|
||||
string="Date range",
|
||||
)
|
||||
date_from = fields.Date(required=True, string="From")
|
||||
date_to = fields.Date(required=True, string="To")
|
||||
analytic_account_id = fields.Many2one(
|
||||
comodel_name="account.analytic.account", string="Analytic account"
|
||||
)
|
||||
analytic_tag_ids = fields.Many2many(
|
||||
comodel_name="account.analytic.tag", string="Analytic Tags"
|
||||
)
|
||||
|
||||
@api.onchange("date_range_id")
|
||||
def _onchange_date_range(self):
|
||||
for rec in self:
|
||||
if rec.date_range_id:
|
||||
rec.date_from = rec.date_range_id.date_start
|
||||
rec.date_to = rec.date_range_id.date_end
|
||||
|
||||
@api.onchange("date_from", "date_to")
|
||||
def _onchange_dates(self):
|
||||
for rec in self:
|
||||
if rec.date_range_id:
|
||||
if (
|
||||
rec.date_from != rec.date_range_id.date_start
|
||||
or rec.date_to != rec.date_range_id.date_end
|
||||
):
|
||||
rec.date_range_id = False
|
||||
|
||||
def _prepare_overlap_domain(self):
|
||||
"""Prepare a domain to check for overlapping budget items."""
|
||||
self.ensure_one()
|
||||
domain = [
|
||||
("id", "!=", self.id),
|
||||
("budget_id", "=", self.budget_id.id),
|
||||
("date_from", "<=", self.date_to),
|
||||
("date_to", ">=", self.date_from),
|
||||
("analytic_account_id", "=", self.analytic_account_id.id),
|
||||
]
|
||||
for tag in self.analytic_tag_ids:
|
||||
domain.append(("analytic_tag_ids", "in", [tag.id]))
|
||||
return domain
|
||||
|
||||
def _check_dates(self):
|
||||
for rec in self:
|
||||
# date_from <= date_to
|
||||
if rec.date_from > rec.date_to:
|
||||
raise ValidationError(
|
||||
_("%s start date must not be after end date") % (rec.display_name,)
|
||||
)
|
||||
# within budget dates
|
||||
if rec.date_from < rec.budget_date_from or rec.date_to > rec.budget_date_to:
|
||||
raise ValidationError(
|
||||
_("%s is not within budget %s date range.")
|
||||
% (rec.display_name, rec.budget_id.display_name)
|
||||
)
|
||||
# overlaps
|
||||
domain = rec._prepare_overlap_domain()
|
||||
res = self.search(domain, limit=1)
|
||||
if res:
|
||||
raise ValidationError(
|
||||
_("%s overlaps %s in budget %s")
|
||||
% (rec.display_name, res.display_name, rec.budget_id.display_name)
|
||||
)
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue