Compare commits
merge into: OCA:13.0
OCA:10.0
OCA:11.0
OCA:12.0
OCA:12.0-mis_builder_analytic_cash_flow
OCA:13.0
OCA:13.0-ocabot-merge-pr-804-by-JordiBForgeFlow-bump-patch
OCA:14.0
OCA:6.0
OCA:6.1
OCA:7.0
OCA:8.0
OCA:9.0
pull from: OCA:8.0
OCA:10.0
OCA:11.0
OCA:12.0
OCA:12.0-mis_builder_analytic_cash_flow
OCA:13.0
OCA:13.0-ocabot-merge-pr-804-by-JordiBForgeFlow-bump-patch
OCA:14.0
OCA:6.0
OCA:6.1
OCA:7.0
OCA:8.0
OCA:9.0
No commits in common. '13.0' and '8.0' have entirely different histories.
504 changed files with 55087 additions and 65699 deletions
-
18.coveragerc
-
4.editorconfig
-
180.eslintrc.yml
-
10.flake8
-
1.gitignore
-
12.isort.cfg
-
103.pre-commit-config.yaml
-
8.prettierrc.yml
-
88.pylintrc
-
66.pylintrc-mandatory
-
63.travis.yml
-
2LICENSE
-
39README.md
-
28account_chart_report/README.rst
-
24account_chart_report/__init__.py
-
41account_chart_report/__openerp__.py
-
15account_chart_report/account_report.xml
-
115account_chart_report/i18n/de.po
-
115account_chart_report/i18n/es_ES.po
-
115account_chart_report/i18n/fr.po
-
115account_chart_report/i18n/it.po
-
116account_chart_report/i18n/lt.po
-
115account_chart_report/i18n/sl.po
-
23account_chart_report/report/__init__.py
-
60account_chart_report/report/chart_of_accounts.py
-
64account_chart_report/report/chart_of_accounts.rml
-
0account_chart_report/static/description/icon.png
-
23account_chart_report/wizard/__init__.py
-
46account_chart_report/wizard/account_report_chart_of_account.py
-
41account_chart_report/wizard/account_report_chart_of_account.xml
-
22account_export_csv/__init__.py
-
51account_export_csv/__openerp__.py
-
111account_export_csv/i18n/account_export_csv.po
-
312account_export_csv/i18n/de.po
-
312account_export_csv/i18n/es_ES.po
-
312account_export_csv/i18n/fr.po
-
312account_export_csv/i18n/it.po
-
313account_export_csv/i18n/lt.po
-
312account_export_csv/i18n/nl.po
-
312account_export_csv/i18n/sl.po
-
16account_export_csv/menu.xml
-
0account_export_csv/static/description/icon.png
-
22account_export_csv/wizard/__init__.py
-
418account_export_csv/wizard/account_export_csv.py
-
47account_export_csv/wizard/account_export_csv_view.xml
-
157account_financial_report/README.rst
-
31account_financial_report/__init__.py
-
48account_financial_report/__manifest__.py
-
66account_financial_report/__openerp__.py
-
1815account_financial_report/i18n/account_financial_report.pot
-
2048account_financial_report/i18n/ar.po
-
1867account_financial_report/i18n/ca.po
-
2180account_financial_report/i18n/de.po
-
2145account_financial_report/i18n/es.po
-
1873account_financial_report/i18n/es_AR.po
-
687account_financial_report/i18n/es_MX.po
-
687account_financial_report/i18n/es_VE.po
-
2117account_financial_report/i18n/fr.po
-
2100account_financial_report/i18n/fr_CH.po
-
1799account_financial_report/i18n/hr.po
-
1838account_financial_report/i18n/hr_HR.po
-
1976account_financial_report/i18n/it.po
-
1813account_financial_report/i18n/ja.po
-
2184account_financial_report/i18n/nl.po
-
1826account_financial_report/i18n/nl_NL.po
-
1836account_financial_report/i18n/pt.po
-
2233account_financial_report/i18n/pt_BR.po
-
2014account_financial_report/i18n/ro.po
-
45account_financial_report/menuitems.xml
-
27account_financial_report/model/__init__.py
-
216account_financial_report/model/account_financial_report.py
-
40account_financial_report/model/res_company.py
-
4account_financial_report/models/__init__.py
-
14account_financial_report/models/account.py
-
65account_financial_report/models/account_group.py
-
40account_financial_report/models/account_move_line.py
-
25account_financial_report/models/ir_actions_report.py
-
33account_financial_report/readme/CONTRIBUTORS.rst
-
16account_financial_report/readme/DESCRIPTION.rst
-
19account_financial_report/readme/HISTORY.rst
-
7account_financial_report/readme/ROADMAP.rst
-
45account_financial_report/report/__init__.py
-
126account_financial_report/report/abstract_report.py
-
618account_financial_report/report/abstract_report_xlsx.py
-
378account_financial_report/report/aged_partner_balance.py
-
315account_financial_report/report/aged_partner_balance_xlsx.py
-
131account_financial_report/report/balance_full.rml
-
235account_financial_report/report/balance_full_13_cols.rml
-
131account_financial_report/report/balance_full_2_cols.rml
-
149account_financial_report/report/balance_full_4_cols.rml
-
294account_financial_report/report/balance_full_4_cols_analytic_ledger.rml
-
397account_financial_report/report/balance_full_4_cols_journal_ledger.rml
-
273account_financial_report/report/balance_full_4_cols_partner_balance.rml
-
158account_financial_report/report/balance_full_5_cols.rml
-
158account_financial_report/report/balance_full_qtr_cols.rml
-
858account_financial_report/report/general_ledger.py
-
330account_financial_report/report/general_ledger_xlsx.py
-
365account_financial_report/report/journal_ledger.py
-
256account_financial_report/report/journal_ledger_xlsx.py
-
272account_financial_report/report/open_items.py
@ -0,0 +1,18 @@ |
|||
# Config file .coveragerc |
|||
# adapt the include for your project |
|||
|
|||
[report] |
|||
include = |
|||
*/OCA/account-financial-reporting/* |
|||
|
|||
omit = |
|||
*/tests/* |
|||
*__init__.py |
|||
|
|||
# Regexes for lines to exclude from consideration |
|||
exclude_lines = |
|||
# Have to re-enable the standard pragma |
|||
pragma: no cover |
|||
|
|||
# Don't complain about null context checking |
|||
if context is None: |
@ -1,180 +0,0 @@ |
|||
env: |
|||
browser: true |
|||
|
|||
# See https://github.com/OCA/odoo-community.org/issues/37#issuecomment-470686449 |
|||
parserOptions: |
|||
ecmaVersion: 2017 |
|||
|
|||
# Globals available in Odoo that shouldn't produce errorings |
|||
globals: |
|||
_: readonly |
|||
$: readonly |
|||
fuzzy: readonly |
|||
jQuery: readonly |
|||
moment: readonly |
|||
odoo: readonly |
|||
openerp: readonly |
|||
Promise: readonly |
|||
|
|||
# Styling is handled by Prettier, so we only need to enable AST rules; |
|||
# see https://github.com/OCA/maintainer-quality-tools/pull/618#issuecomment-558576890 |
|||
rules: |
|||
accessor-pairs: warn |
|||
array-callback-return: warn |
|||
callback-return: warn |
|||
capitalized-comments: |
|||
- warn |
|||
- always |
|||
- ignoreConsecutiveComments: true |
|||
ignoreInlineComments: true |
|||
complexity: |
|||
- warn |
|||
- 15 |
|||
constructor-super: warn |
|||
dot-notation: warn |
|||
eqeqeq: warn |
|||
global-require: warn |
|||
handle-callback-err: warn |
|||
id-blacklist: warn |
|||
id-match: warn |
|||
init-declarations: error |
|||
max-depth: warn |
|||
max-nested-callbacks: warn |
|||
max-statements-per-line: warn |
|||
no-alert: warn |
|||
no-array-constructor: warn |
|||
no-caller: warn |
|||
no-case-declarations: warn |
|||
no-class-assign: warn |
|||
no-cond-assign: error |
|||
no-const-assign: error |
|||
no-constant-condition: warn |
|||
no-control-regex: warn |
|||
no-debugger: error |
|||
no-delete-var: warn |
|||
no-div-regex: warn |
|||
no-dupe-args: error |
|||
no-dupe-class-members: error |
|||
no-dupe-keys: error |
|||
no-duplicate-case: error |
|||
no-duplicate-imports: error |
|||
no-else-return: warn |
|||
no-empty-character-class: warn |
|||
no-empty-function: error |
|||
no-empty-pattern: error |
|||
no-empty: warn |
|||
no-eq-null: error |
|||
no-eval: error |
|||
no-ex-assign: error |
|||
no-extend-native: warn |
|||
no-extra-bind: warn |
|||
no-extra-boolean-cast: warn |
|||
no-extra-label: warn |
|||
no-fallthrough: warn |
|||
no-func-assign: error |
|||
no-global-assign: error |
|||
no-implicit-coercion: |
|||
- warn |
|||
- allow: ["~"] |
|||
no-implicit-globals: warn |
|||
no-implied-eval: warn |
|||
no-inline-comments: warn |
|||
no-inner-declarations: warn |
|||
no-invalid-regexp: warn |
|||
no-irregular-whitespace: warn |
|||
no-iterator: warn |
|||
no-label-var: warn |
|||
no-labels: warn |
|||
no-lone-blocks: warn |
|||
no-lonely-if: error |
|||
no-mixed-requires: error |
|||
no-multi-str: warn |
|||
no-native-reassign: error |
|||
no-negated-condition: warn |
|||
no-negated-in-lhs: error |
|||
no-new-func: warn |
|||
no-new-object: warn |
|||
no-new-require: warn |
|||
no-new-symbol: warn |
|||
no-new-wrappers: warn |
|||
no-new: warn |
|||
no-obj-calls: warn |
|||
no-octal-escape: warn |
|||
no-octal: warn |
|||
no-param-reassign: warn |
|||
no-path-concat: warn |
|||
no-process-env: warn |
|||
no-process-exit: warn |
|||
no-proto: warn |
|||
no-prototype-builtins: warn |
|||
no-redeclare: warn |
|||
no-regex-spaces: warn |
|||
no-restricted-globals: warn |
|||
no-restricted-imports: warn |
|||
no-restricted-modules: warn |
|||
no-restricted-syntax: warn |
|||
no-return-assign: error |
|||
no-script-url: warn |
|||
no-self-assign: warn |
|||
no-self-compare: warn |
|||
no-sequences: warn |
|||
no-shadow-restricted-names: warn |
|||
no-shadow: warn |
|||
no-sparse-arrays: warn |
|||
no-sync: warn |
|||
no-this-before-super: warn |
|||
no-throw-literal: warn |
|||
no-undef-init: warn |
|||
no-undef: error |
|||
no-unmodified-loop-condition: warn |
|||
no-unneeded-ternary: error |
|||
no-unreachable: error |
|||
no-unsafe-finally: error |
|||
no-unused-expressions: error |
|||
no-unused-labels: error |
|||
no-unused-vars: error |
|||
no-use-before-define: error |
|||
no-useless-call: warn |
|||
no-useless-computed-key: warn |
|||
no-useless-concat: warn |
|||
no-useless-constructor: warn |
|||
no-useless-escape: warn |
|||
no-useless-rename: warn |
|||
no-void: warn |
|||
no-with: warn |
|||
operator-assignment: [error, always] |
|||
prefer-const: warn |
|||
radix: warn |
|||
require-yield: warn |
|||
sort-imports: warn |
|||
spaced-comment: [error, always] |
|||
strict: [error, function] |
|||
use-isnan: error |
|||
valid-jsdoc: |
|||
- warn |
|||
- prefer: |
|||
arg: param |
|||
argument: param |
|||
augments: extends |
|||
constructor: class |
|||
exception: throws |
|||
func: function |
|||
method: function |
|||
prop: property |
|||
return: returns |
|||
virtual: abstract |
|||
yield: yields |
|||
preferType: |
|||
array: Array |
|||
bool: Boolean |
|||
boolean: Boolean |
|||
number: Number |
|||
object: Object |
|||
str: String |
|||
string: String |
|||
requireParamDescription: false |
|||
requireReturn: false |
|||
requireReturnDescription: false |
|||
requireReturnType: false |
|||
valid-typeof: warn |
|||
yoda: warn |
@ -1,10 +0,0 @@ |
|||
[flake8] |
|||
max-line-length = 80 |
|||
max-complexity = 16 |
|||
# B = bugbear |
|||
# B9 = bugbear opinionated (incl line length) |
|||
select = C,E,F,W,B,B9 |
|||
# E203: whitespace before ':' (black behaviour) |
|||
# E501: flake8 line length (covered by bugbear B950) |
|||
# W503: line break before binary operator (black behaviour) |
|||
ignore = E203,E501,W503 |
@ -1,12 +0,0 @@ |
|||
[settings] |
|||
; see https://github.com/psf/black |
|||
multi_line_output=3 |
|||
include_trailing_comma=True |
|||
force_grid_wrap=0 |
|||
combine_as_imports=True |
|||
use_parentheses=True |
|||
line_length=88 |
|||
known_odoo=odoo |
|||
known_odoo_addons=odoo.addons |
|||
sections=FUTURE,STDLIB,THIRDPARTY,ODOO,ODOO_ADDONS,FIRSTPARTY,LOCALFOLDER |
|||
default_section=THIRDPARTY |
@ -1,103 +0,0 @@ |
|||
exclude: | |
|||
(?x) |
|||
# Files and folders generated by bots, to avoid loops |
|||
^setup/|/static/description/index\.html$| |
|||
# Maybe reactivate this when all README files include prettier ignore tags? |
|||
^README\.md$| |
|||
# Library files can have extraneous formatting (even minimized) |
|||
/static/(src/)?lib/| |
|||
# Repos using Sphinx to generate docs don't need prettying |
|||
^docs/_templates/.*\.html$| |
|||
# You don't usually want a bot to modify your legal texts |
|||
(LICENSE.*|COPYING.*) |
|||
default_language_version: |
|||
python: python3 |
|||
node: "14.13.0" |
|||
repos: |
|||
- repo: https://github.com/psf/black |
|||
rev: 19.10b0 |
|||
hooks: |
|||
- id: black |
|||
- repo: https://github.com/prettier/pre-commit |
|||
rev: "v1.19.1" |
|||
hooks: |
|||
- id: prettier |
|||
# TODO Avoid awebdeveloper/pre-commit-prettier if possible |
|||
# HACK https://github.com/prettier/prettier/issues/7407 |
|||
- repo: https://github.com/awebdeveloper/pre-commit-prettier |
|||
rev: v0.0.1 |
|||
hooks: |
|||
- id: prettier |
|||
name: prettier xml plugin |
|||
additional_dependencies: |
|||
- "prettier@1.19.1" |
|||
- "@prettier/plugin-xml@0.7.2" |
|||
files: \.xml$ |
|||
- repo: https://github.com/pre-commit/mirrors-eslint |
|||
rev: v6.8.0 |
|||
hooks: |
|||
- id: eslint |
|||
verbose: true |
|||
args: |
|||
- --color |
|||
- --fix |
|||
- repo: https://github.com/pre-commit/pre-commit-hooks |
|||
rev: v2.4.0 |
|||
hooks: |
|||
- id: trailing-whitespace |
|||
# exclude autogenerated files |
|||
exclude: /README\.rst$|\.pot?$ |
|||
- id: end-of-file-fixer |
|||
# exclude autogenerated files |
|||
exclude: /README\.rst$|\.pot?$ |
|||
- id: debug-statements |
|||
- id: fix-encoding-pragma |
|||
args: ["--remove"] |
|||
- id: check-case-conflict |
|||
- id: check-docstring-first |
|||
- id: check-executables-have-shebangs |
|||
- id: check-merge-conflict |
|||
# exclude files where underlines are not distinguishable from merge conflicts |
|||
exclude: /README\.rst$|^docs/.*\.rst$ |
|||
- id: check-symlinks |
|||
- id: check-xml |
|||
- id: mixed-line-ending |
|||
args: ["--fix=lf"] |
|||
- repo: https://gitlab.com/pycqa/flake8 |
|||
rev: 3.7.9 |
|||
hooks: |
|||
- id: flake8 |
|||
name: flake8 except __init__.py |
|||
exclude: /__init__\.py$ |
|||
additional_dependencies: ["flake8-bugbear==19.8.0"] |
|||
- id: flake8 |
|||
name: flake8 only __init__.py |
|||
args: ["--extend-ignore=F401"] # ignore unused imports in __init__.py |
|||
files: /__init__\.py$ |
|||
additional_dependencies: ["flake8-bugbear==19.8.0"] |
|||
- repo: https://github.com/pre-commit/mirrors-pylint |
|||
rev: v2.5.3 |
|||
hooks: |
|||
- id: pylint |
|||
name: pylint with optional checks |
|||
args: ["--rcfile=.pylintrc", "--exit-zero"] |
|||
verbose: true |
|||
additional_dependencies: ["pylint-odoo==3.5.0"] |
|||
- id: pylint |
|||
name: pylint with mandatory checks |
|||
args: ["--rcfile=.pylintrc-mandatory"] |
|||
additional_dependencies: ["pylint-odoo==3.5.0"] |
|||
- repo: https://github.com/asottile/pyupgrade |
|||
rev: v1.26.2 |
|||
hooks: |
|||
- id: pyupgrade |
|||
- repo: https://github.com/pre-commit/mirrors-isort |
|||
rev: v4.3.21 |
|||
hooks: |
|||
- id: isort |
|||
name: isort except __init__.py |
|||
exclude: /__init__\.py$ |
|||
- repo: https://github.com/acsone/setuptools-odoo |
|||
rev: 2.5.2 |
|||
hooks: |
|||
- id: setuptools-odoo-make-default |
@ -1,8 +0,0 @@ |
|||
# Defaults for all prettier-supported languages. |
|||
# Prettier will complete this with settings from .editorconfig file. |
|||
bracketSpacing: false |
|||
printWidth: 88 |
|||
proseWrap: always |
|||
semi: true |
|||
trailingComma: "es5" |
|||
xmlWhitespaceSensitivity: "ignore" |
@ -1,88 +0,0 @@ |
|||
[MASTER] |
|||
load-plugins=pylint_odoo |
|||
score=n |
|||
|
|||
[ODOOLINT] |
|||
readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" |
|||
manifest_required_authors=Odoo Community Association (OCA) |
|||
manifest_required_keys=license |
|||
manifest_deprecated_keys=description,active |
|||
license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 |
|||
valid_odoo_versions=13.0 |
|||
|
|||
[MESSAGES CONTROL] |
|||
disable=all |
|||
|
|||
# This .pylintrc contains optional AND mandatory checks and is meant to be |
|||
# loaded in an IDE to have it check everything, in the hope this will make |
|||
# optional checks more visible to contributors who otherwise never look at a |
|||
# green travis to see optional checks that failed. |
|||
# .pylintrc-mandatory containing only mandatory checks is used the pre-commit |
|||
# config as a blocking check. |
|||
|
|||
enable=anomalous-backslash-in-string, |
|||
api-one-deprecated, |
|||
api-one-multi-together, |
|||
assignment-from-none, |
|||
attribute-deprecated, |
|||
class-camelcase, |
|||
dangerous-default-value, |
|||
dangerous-view-replace-wo-priority, |
|||
development-status-allowed, |
|||
duplicate-id-csv, |
|||
duplicate-key, |
|||
duplicate-xml-fields, |
|||
duplicate-xml-record-id, |
|||
eval-referenced, |
|||
eval-used, |
|||
incoherent-interpreter-exec-perm, |
|||
license-allowed, |
|||
manifest-author-string, |
|||
manifest-deprecated-key, |
|||
manifest-required-author, |
|||
manifest-required-key, |
|||
manifest-version-format, |
|||
method-compute, |
|||
method-inverse, |
|||
method-required-super, |
|||
method-search, |
|||
missing-import-error, |
|||
missing-manifest-dependency, |
|||
openerp-exception-warning, |
|||
pointless-statement, |
|||
pointless-string-statement, |
|||
print-used, |
|||
redundant-keyword-arg, |
|||
redundant-modulename-xml, |
|||
reimported, |
|||
relative-import, |
|||
return-in-init, |
|||
rst-syntax-error, |
|||
sql-injection, |
|||
too-few-format-args, |
|||
translation-field, |
|||
translation-required, |
|||
unreachable, |
|||
use-vim-comment, |
|||
wrong-tabs-instead-of-spaces, |
|||
xml-syntax-error, |
|||
# messages that do not cause the lint step to fail |
|||
consider-merging-classes-inherited, |
|||
create-user-wo-reset-password, |
|||
dangerous-filter-wo-user, |
|||
deprecated-module, |
|||
file-not-used, |
|||
invalid-commit, |
|||
missing-newline-extrafiles, |
|||
missing-readme, |
|||
no-utf8-coding-comment, |
|||
odoo-addons-relative-import, |
|||
old-api7-method-defined, |
|||
redefined-builtin, |
|||
too-complex, |
|||
unnecessary-utf8-coding-comment |
|||
|
|||
[REPORTS] |
|||
msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg} |
|||
output-format=colorized |
|||
reports=no |
@ -1,66 +0,0 @@ |
|||
[MASTER] |
|||
load-plugins=pylint_odoo |
|||
score=n |
|||
|
|||
[ODOOLINT] |
|||
readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" |
|||
manifest_required_authors=Odoo Community Association (OCA) |
|||
manifest_required_keys=license |
|||
manifest_deprecated_keys=description,active |
|||
license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 |
|||
valid_odoo_versions=13.0 |
|||
|
|||
[MESSAGES CONTROL] |
|||
disable=all |
|||
|
|||
enable=anomalous-backslash-in-string, |
|||
api-one-deprecated, |
|||
api-one-multi-together, |
|||
assignment-from-none, |
|||
attribute-deprecated, |
|||
class-camelcase, |
|||
dangerous-default-value, |
|||
dangerous-view-replace-wo-priority, |
|||
development-status-allowed, |
|||
duplicate-id-csv, |
|||
duplicate-key, |
|||
duplicate-xml-fields, |
|||
duplicate-xml-record-id, |
|||
eval-referenced, |
|||
eval-used, |
|||
incoherent-interpreter-exec-perm, |
|||
license-allowed, |
|||
manifest-author-string, |
|||
manifest-deprecated-key, |
|||
manifest-required-author, |
|||
manifest-required-key, |
|||
manifest-version-format, |
|||
method-compute, |
|||
method-inverse, |
|||
method-required-super, |
|||
method-search, |
|||
missing-import-error, |
|||
missing-manifest-dependency, |
|||
openerp-exception-warning, |
|||
pointless-statement, |
|||
pointless-string-statement, |
|||
print-used, |
|||
redundant-keyword-arg, |
|||
redundant-modulename-xml, |
|||
reimported, |
|||
relative-import, |
|||
return-in-init, |
|||
rst-syntax-error, |
|||
sql-injection, |
|||
too-few-format-args, |
|||
translation-field, |
|||
translation-required, |
|||
unreachable, |
|||
use-vim-comment, |
|||
wrong-tabs-instead-of-spaces, |
|||
xml-syntax-error |
|||
|
|||
[REPORTS] |
|||
msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg} |
|||
output-format=colorized |
|||
reports=no |
@ -1,14 +1,39 @@ |
|||
[![Runbot Status](https://runbot.odoo-community.org/runbot/badge/flat/91/13.0.svg)](https://runbot.odoo-community.org/runbot/repo/github-com-oca-account-financial-reporting-91) |
|||
[![Build Status](https://travis-ci.org/OCA/account-financial-reporting.svg?branch=13.0)](https://travis-ci.org/OCA/account-financial-reporting) |
|||
[![Coverage Status](https://coveralls.io/repos/OCA/account-financial-reporting/badge.png?branch=13.0)](https://coveralls.io/r/OCA/account-financial-reporting?branch=13.0) |
|||
[![Runbot Status](https://runbot.odoo-community.org/runbot/badge/flat/91/8.0.svg)](https://runbot.odoo-community.org/runbot/repo/github-com-oca-account-financial-reporting-91) |
|||
[![Build Status](https://travis-ci.org/OCA/account-financial-reporting.svg?branch=8.0)](https://travis-ci.org/OCA/account-financial-reporting) |
|||
[![codecov](https://codecov.io/gh/OCA/account-financial-reporting/branch/8.0/graph/badge.svg)](https://codecov.io/gh/OCA/account-financial-reporting) |
|||
|
|||
Odoo account financial reports |
|||
============================== |
|||
OpenERP account financial reports |
|||
================================= |
|||
|
|||
This project aims to deal with modules related to financial reports. You'll |
|||
find modules that print legal and official reports. This includes, among |
|||
This project aims to deal with modules related to financial reports. You'll |
|||
find modules that print legal and official reports. This includes, among |
|||
others: |
|||
|
|||
* One module based on webkit and totally rewritten by camptocamp, for standard |
|||
financial reports. |
|||
* Another based on RML completely improved by Vauxoo. |
|||
|
|||
|
|||
[//]: # (addons) |
|||
|
|||
Available addons |
|||
---------------- |
|||
addon | version | maintainers | summary |
|||
--- | --- | --- | --- |
|||
[account_chart_report](account_chart_report/) | 8.0.1.0.0 | | Print chart of accounts |
|||
[account_export_csv](account_export_csv/) | 8.0.1.1.0 | | Account Export CSV |
|||
[account_financial_report_horizontal](account_financial_report_horizontal/) | 8.0.0.3.0 | | Accounting Financial Reports Horizontal |
|||
[account_financial_report_webkit](account_financial_report_webkit/) | 8.0.1.2.1 | | Financial Reports - Webkit |
|||
[account_financial_report_webkit_xls](account_financial_report_webkit_xls/) | 8.0.1.0.0 | | Add XLS export to accounting reports |
|||
[account_journal_report_xls](account_journal_report_xls/) | 8.0.0.2.0 | | Financial Journal reports |
|||
[account_move_line_report_xls](account_move_line_report_xls/) | 8.0.0.6.0 | | Journal Items Excel export |
|||
[account_tax_report_no_zeroes](account_tax_report_no_zeroes/) | 8.0.1.0.0 | | Account tax report without zeroes |
|||
|
|||
|
|||
Unported addons |
|||
--------------- |
|||
addon | version | maintainers | summary |
|||
--- | --- | --- | --- |
|||
[account_financial_report](account_financial_report/) | 8.0.2.0.1 (unported) | | Common financial reports |
|||
|
|||
[//]: # (end addons) |
@ -0,0 +1,28 @@ |
|||
Print chart of accounts |
|||
======================= |
|||
|
|||
This module adds the menu Accounting \ Charts \ Print chart of Accounts |
|||
to allow printing the selected chart of accounts. |
|||
|
|||
**Remark**: This module is based on the deprecated RML engine report. |
|||
|
|||
Credits |
|||
======= |
|||
|
|||
Contributors |
|||
------------ |
|||
|
|||
* Marc Cassuto (marc.cassuto@savoirfairelinux.com) |
|||
* Mathieu Benoit (mathieu.benoit@savoirfairelinux.com) |
|||
* Guillaume Auger (guillaume.auger@savoirfairelinux.com) |
|||
|
|||
Maintainer |
|||
---------- |
|||
|
|||
.. image:: http://odoo-community.org/logo.png |
|||
:alt: Odoo Community Association |
|||
:target: http://odoo-community.org |
|||
|
|||
This module is maintained by the OCA. |
|||
|
|||
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. |
@ -0,0 +1,24 @@ |
|||
# -*- coding: utf-8 -*- |
|||
|
|||
############################################################################### |
|||
# |
|||
# OpenERP, Open Source Management Solution |
|||
# Copyright (C) 2014 Savoir-faire Linux (<www.savoirfairelinux.com>). |
|||
# |
|||
# 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/>. |
|||
# |
|||
############################################################################### |
|||
|
|||
from . import report |
|||
from . import wizard |
@ -0,0 +1,41 @@ |
|||
# -*- encoding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# OpenERP, Open Source Management Solution |
|||
# This module copyright (C) 2014 Savoir-faire Linux |
|||
# (<http://www.savoirfairelinux.com>). |
|||
# |
|||
# 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/>. |
|||
# |
|||
############################################################################### |
|||
|
|||
|
|||
{ |
|||
'name': 'Print chart of accounts', |
|||
'version': '8.0.1.0.0', |
|||
'category': 'Reports/pdf', |
|||
'author': "Savoir-faire Linux,Odoo Community Association (OCA)", |
|||
'website': 'http://www.savoirfairelinux.com', |
|||
'license': 'AGPL-3', |
|||
'depends': [ |
|||
'base', |
|||
'account', |
|||
], |
|||
'data': [ |
|||
'account_report.xml', |
|||
'wizard/account_report_chart_of_account.xml', |
|||
], |
|||
'installable': True, |
|||
'auto_install': False, |
|||
} |
@ -0,0 +1,15 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<openerp> |
|||
<data> |
|||
<report |
|||
auto="False" |
|||
id="account_chart_account" |
|||
menu="False" |
|||
model="account.account" |
|||
name="account.print.chart" |
|||
rml="account_chart_report/report/chart_of_accounts.rml" |
|||
string="Print chart account" |
|||
report_type="pdf" |
|||
/> |
|||
</data> |
|||
</openerp> |
@ -0,0 +1,115 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * account_chart_report |
|||
# |
|||
# Translators: |
|||
# Rudolf Schnapka <rs@techno-flex.de>, 2017 |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 8.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2017-01-13 23:18+0000\n" |
|||
"PO-Revision-Date: 2017-01-13 23:18+0000\n" |
|||
"Last-Translator: Rudolf Schnapka <rs@techno-flex.de>, 2017\n" |
|||
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: \n" |
|||
"Language: de\n" |
|||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
|||
|
|||
#. module: account_chart_report |
|||
#: report:account.print.chart:0 |
|||
msgid "Account" |
|||
msgstr "Konto" |
|||
|
|||
#. module: account_chart_report |
|||
#: view:account.print.chart.accounts.report:account_chart_report.account_report_print_char_accounts_view |
|||
msgid "Cancel" |
|||
msgstr "Abbrechen" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,chart_account_id:0 |
|||
msgid "Chart of Accounts" |
|||
msgstr "Kontenplan" |
|||
|
|||
#. module: account_chart_report |
|||
#: report:account.print.chart:0 |
|||
msgid "Chart of accounts" |
|||
msgstr "Kontenplan" |
|||
|
|||
#. module: account_chart_report |
|||
#: model:ir.model,name:account_chart_report.model_account_print_chart_accounts_report |
|||
msgid "Chart of accounts Report" |
|||
msgstr "Kontenplan-Bericht" |
|||
|
|||
#. module: account_chart_report |
|||
#: report:account.print.chart:0 |
|||
msgid "Code" |
|||
msgstr "Schlüssel" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,create_uid:0 |
|||
msgid "Created by" |
|||
msgstr "Angelegt durch" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,create_date:0 |
|||
msgid "Created on" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,display_name:0 |
|||
msgid "Display Name" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,id:0 |
|||
msgid "ID" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,__last_update:0 |
|||
msgid "Last Modified on" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,write_uid:0 |
|||
msgid "Last Updated by" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,write_date:0 |
|||
msgid "Last Updated on" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: view:account.print.chart.accounts.report:account_chart_report.account_report_print_char_accounts_view |
|||
msgid "Print" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: model:ir.actions.report.xml,name:account_chart_report.account_chart_account |
|||
msgid "Print chart account" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: model:ir.actions.act_window,name:account_chart_report.action_print_chart_menu |
|||
#: model:ir.ui.menu,name:account_chart_report.menu_wizard_print_chart_account |
|||
msgid "Print chart of accounts" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: view:account.print.chart.accounts.report:account_chart_report.account_report_print_char_accounts_view |
|||
msgid "Report Options" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: help:account.print.chart.accounts.report,chart_account_id:0 |
|||
msgid "Select Charts of Accounts" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: view:account.print.chart.accounts.report:account_chart_report.account_report_print_char_accounts_view |
|||
msgid "or" |
|||
msgstr "" |
@ -0,0 +1,115 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * account_chart_report |
|||
# |
|||
# Translators: |
|||
# Hugo Santos <hugo.santos@factorlibre.com>, 2017 |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 8.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2017-02-17 12:52+0000\n" |
|||
"PO-Revision-Date: 2017-02-17 12:52+0000\n" |
|||
"Last-Translator: Hugo Santos <hugo.santos@factorlibre.com>, 2017\n" |
|||
"Language-Team: Spanish (Spain) (https://www.transifex.com/oca/teams/23907/es_ES/)\n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: \n" |
|||
"Language: es_ES\n" |
|||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
|||
|
|||
#. module: account_chart_report |
|||
#: report:account.print.chart:0 |
|||
msgid "Account" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: view:account.print.chart.accounts.report:account_chart_report.account_report_print_char_accounts_view |
|||
msgid "Cancel" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,chart_account_id:0 |
|||
msgid "Chart of Accounts" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: report:account.print.chart:0 |
|||
msgid "Chart of accounts" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: model:ir.model,name:account_chart_report.model_account_print_chart_accounts_report |
|||
msgid "Chart of accounts Report" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: report:account.print.chart:0 |
|||
msgid "Code" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,create_uid:0 |
|||
msgid "Created by" |
|||
msgstr "Creado por" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,create_date:0 |
|||
msgid "Created on" |
|||
msgstr "Creado el" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,display_name:0 |
|||
msgid "Display Name" |
|||
msgstr "Nombre a mostrar" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,id:0 |
|||
msgid "ID" |
|||
msgstr "ID" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,__last_update:0 |
|||
msgid "Last Modified on" |
|||
msgstr "Última modificación en" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,write_uid:0 |
|||
msgid "Last Updated by" |
|||
msgstr "Última actualización de" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,write_date:0 |
|||
msgid "Last Updated on" |
|||
msgstr "Última actualización en" |
|||
|
|||
#. module: account_chart_report |
|||
#: view:account.print.chart.accounts.report:account_chart_report.account_report_print_char_accounts_view |
|||
msgid "Print" |
|||
msgstr "Imprimir" |
|||
|
|||
#. module: account_chart_report |
|||
#: model:ir.actions.report.xml,name:account_chart_report.account_chart_account |
|||
msgid "Print chart account" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: model:ir.actions.act_window,name:account_chart_report.action_print_chart_menu |
|||
#: model:ir.ui.menu,name:account_chart_report.menu_wizard_print_chart_account |
|||
msgid "Print chart of accounts" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: view:account.print.chart.accounts.report:account_chart_report.account_report_print_char_accounts_view |
|||
msgid "Report Options" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: help:account.print.chart.accounts.report,chart_account_id:0 |
|||
msgid "Select Charts of Accounts" |
|||
msgstr "Seleccione un árbol de cuentas" |
|||
|
|||
#. module: account_chart_report |
|||
#: view:account.print.chart.accounts.report:account_chart_report.account_report_print_char_accounts_view |
|||
msgid "or" |
|||
msgstr "" |
@ -0,0 +1,115 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * account_chart_report |
|||
# |
|||
# Translators: |
|||
# OCA Transbot <transbot@odoo-community.org>, 2016 |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 8.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2016-12-16 12:25+0000\n" |
|||
"PO-Revision-Date: 2016-12-16 12:25+0000\n" |
|||
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2016\n" |
|||
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: \n" |
|||
"Language: fr\n" |
|||
"Plural-Forms: nplurals=2; plural=(n > 1);\n" |
|||
|
|||
#. module: account_chart_report |
|||
#: report:account.print.chart:0 |
|||
msgid "Account" |
|||
msgstr "Compte" |
|||
|
|||
#. module: account_chart_report |
|||
#: view:account.print.chart.accounts.report:account_chart_report.account_report_print_char_accounts_view |
|||
msgid "Cancel" |
|||
msgstr "Annuler" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,chart_account_id:0 |
|||
msgid "Chart of Accounts" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: report:account.print.chart:0 |
|||
msgid "Chart of accounts" |
|||
msgstr "Charte de comptes" |
|||
|
|||
#. module: account_chart_report |
|||
#: model:ir.model,name:account_chart_report.model_account_print_chart_accounts_report |
|||
msgid "Chart of accounts Report" |
|||
msgstr "Charte de comptes" |
|||
|
|||
#. module: account_chart_report |
|||
#: report:account.print.chart:0 |
|||
msgid "Code" |
|||
msgstr "Code" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,create_uid:0 |
|||
msgid "Created by" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,create_date:0 |
|||
msgid "Created on" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,display_name:0 |
|||
msgid "Display Name" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,id:0 |
|||
msgid "ID" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,__last_update:0 |
|||
msgid "Last Modified on" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,write_uid:0 |
|||
msgid "Last Updated by" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,write_date:0 |
|||
msgid "Last Updated on" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: view:account.print.chart.accounts.report:account_chart_report.account_report_print_char_accounts_view |
|||
msgid "Print" |
|||
msgstr "Imprimer" |
|||
|
|||
#. module: account_chart_report |
|||
#: model:ir.actions.report.xml,name:account_chart_report.account_chart_account |
|||
msgid "Print chart account" |
|||
msgstr "Imprimer la charte de comptes" |
|||
|
|||
#. module: account_chart_report |
|||
#: model:ir.actions.act_window,name:account_chart_report.action_print_chart_menu |
|||
#: model:ir.ui.menu,name:account_chart_report.menu_wizard_print_chart_account |
|||
msgid "Print chart of accounts" |
|||
msgstr "Imprimer la charte de comptes" |
|||
|
|||
#. module: account_chart_report |
|||
#: view:account.print.chart.accounts.report:account_chart_report.account_report_print_char_accounts_view |
|||
msgid "Report Options" |
|||
msgstr "Options du rapport" |
|||
|
|||
#. module: account_chart_report |
|||
#: help:account.print.chart.accounts.report,chart_account_id:0 |
|||
msgid "Select Charts of Accounts" |
|||
msgstr "Charte de compte à imprimer" |
|||
|
|||
#. module: account_chart_report |
|||
#: view:account.print.chart.accounts.report:account_chart_report.account_report_print_char_accounts_view |
|||
msgid "or" |
|||
msgstr "ou" |
@ -0,0 +1,115 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * account_chart_report |
|||
# |
|||
# Translators: |
|||
# OCA Transbot <transbot@odoo-community.org>, 2016 |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 8.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2016-12-16 12:25+0000\n" |
|||
"PO-Revision-Date: 2016-12-16 12:25+0000\n" |
|||
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2016\n" |
|||
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: \n" |
|||
"Language: it\n" |
|||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
|||
|
|||
#. module: account_chart_report |
|||
#: report:account.print.chart:0 |
|||
msgid "Account" |
|||
msgstr "Conto" |
|||
|
|||
#. module: account_chart_report |
|||
#: view:account.print.chart.accounts.report:account_chart_report.account_report_print_char_accounts_view |
|||
msgid "Cancel" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,chart_account_id:0 |
|||
msgid "Chart of Accounts" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: report:account.print.chart:0 |
|||
msgid "Chart of accounts" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: model:ir.model,name:account_chart_report.model_account_print_chart_accounts_report |
|||
msgid "Chart of accounts Report" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: report:account.print.chart:0 |
|||
msgid "Code" |
|||
msgstr "Codice" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,create_uid:0 |
|||
msgid "Created by" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,create_date:0 |
|||
msgid "Created on" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,display_name:0 |
|||
msgid "Display Name" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,id:0 |
|||
msgid "ID" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,__last_update:0 |
|||
msgid "Last Modified on" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,write_uid:0 |
|||
msgid "Last Updated by" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,write_date:0 |
|||
msgid "Last Updated on" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: view:account.print.chart.accounts.report:account_chart_report.account_report_print_char_accounts_view |
|||
msgid "Print" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: model:ir.actions.report.xml,name:account_chart_report.account_chart_account |
|||
msgid "Print chart account" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: model:ir.actions.act_window,name:account_chart_report.action_print_chart_menu |
|||
#: model:ir.ui.menu,name:account_chart_report.menu_wizard_print_chart_account |
|||
msgid "Print chart of accounts" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: view:account.print.chart.accounts.report:account_chart_report.account_report_print_char_accounts_view |
|||
msgid "Report Options" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: help:account.print.chart.accounts.report,chart_account_id:0 |
|||
msgid "Select Charts of Accounts" |
|||
msgstr "Selezionare il Piano dei Conti" |
|||
|
|||
#. module: account_chart_report |
|||
#: view:account.print.chart.accounts.report:account_chart_report.account_report_print_char_accounts_view |
|||
msgid "or" |
|||
msgstr "" |
@ -0,0 +1,116 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * account_chart_report |
|||
# |
|||
# Translators: |
|||
# OCA Transbot <transbot@odoo-community.org>, 2016 |
|||
# Viktoras Norkus <viktoras@bmx.lt>, 2018 |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 8.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2017-10-13 22:11+0000\n" |
|||
"PO-Revision-Date: 2017-10-13 22:11+0000\n" |
|||
"Last-Translator: Viktoras Norkus <viktoras@bmx.lt>, 2018\n" |
|||
"Language-Team: Lithuanian (https://www.transifex.com/oca/teams/23907/lt/)\n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: \n" |
|||
"Language: lt\n" |
|||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2);\n" |
|||
|
|||
#. module: account_chart_report |
|||
#: report:account.print.chart:0 |
|||
msgid "Account" |
|||
msgstr "Sąskaita" |
|||
|
|||
#. module: account_chart_report |
|||
#: view:account.print.chart.accounts.report:account_chart_report.account_report_print_char_accounts_view |
|||
msgid "Cancel" |
|||
msgstr "Atšaukti" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,chart_account_id:0 |
|||
msgid "Chart of Accounts" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: report:account.print.chart:0 |
|||
msgid "Chart of accounts" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: model:ir.model,name:account_chart_report.model_account_print_chart_accounts_report |
|||
msgid "Chart of accounts Report" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: report:account.print.chart:0 |
|||
msgid "Code" |
|||
msgstr "Kodas" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,create_uid:0 |
|||
msgid "Created by" |
|||
msgstr "Sukūrė" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,create_date:0 |
|||
msgid "Created on" |
|||
msgstr "Sukurta" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,display_name:0 |
|||
msgid "Display Name" |
|||
msgstr "Pavadinimas" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,id:0 |
|||
msgid "ID" |
|||
msgstr "ID" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,__last_update:0 |
|||
msgid "Last Modified on" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,write_uid:0 |
|||
msgid "Last Updated by" |
|||
msgstr "Paskutinį kartą atnaujino" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,write_date:0 |
|||
msgid "Last Updated on" |
|||
msgstr "Paskutinį kartą atnaujinta" |
|||
|
|||
#. module: account_chart_report |
|||
#: view:account.print.chart.accounts.report:account_chart_report.account_report_print_char_accounts_view |
|||
msgid "Print" |
|||
msgstr "Spausdinti" |
|||
|
|||
#. module: account_chart_report |
|||
#: model:ir.actions.report.xml,name:account_chart_report.account_chart_account |
|||
msgid "Print chart account" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: model:ir.actions.act_window,name:account_chart_report.action_print_chart_menu |
|||
#: model:ir.ui.menu,name:account_chart_report.menu_wizard_print_chart_account |
|||
msgid "Print chart of accounts" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: view:account.print.chart.accounts.report:account_chart_report.account_report_print_char_accounts_view |
|||
msgid "Report Options" |
|||
msgstr "" |
|||
|
|||
#. module: account_chart_report |
|||
#: help:account.print.chart.accounts.report,chart_account_id:0 |
|||
msgid "Select Charts of Accounts" |
|||
msgstr "Pasirinkite sąskaitų planą" |
|||
|
|||
#. module: account_chart_report |
|||
#: view:account.print.chart.accounts.report:account_chart_report.account_report_print_char_accounts_view |
|||
msgid "or" |
|||
msgstr "arba" |
@ -0,0 +1,115 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * account_chart_report |
|||
# |
|||
# Translators: |
|||
# Matjaž Mozetič <m.mozetic@matmoz.si>, 2016 |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 8.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2016-12-16 23:11+0000\n" |
|||
"PO-Revision-Date: 2016-12-16 23:11+0000\n" |
|||
"Last-Translator: Matjaž Mozetič <m.mozetic@matmoz.si>, 2016\n" |
|||
"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: \n" |
|||
"Language: sl\n" |
|||
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" |
|||
|
|||
#. module: account_chart_report |
|||
#: report:account.print.chart:0 |
|||
msgid "Account" |
|||
msgstr "Konto" |
|||
|
|||
#. module: account_chart_report |
|||
#: view:account.print.chart.accounts.report:account_chart_report.account_report_print_char_accounts_view |
|||
msgid "Cancel" |
|||
msgstr "Preklic" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,chart_account_id:0 |
|||
msgid "Chart of Accounts" |
|||
msgstr "Kontni plan" |
|||
|
|||
#. module: account_chart_report |
|||
#: report:account.print.chart:0 |
|||
msgid "Chart of accounts" |
|||
msgstr "Kontni plan" |
|||
|
|||
#. module: account_chart_report |
|||
#: model:ir.model,name:account_chart_report.model_account_print_chart_accounts_report |
|||
msgid "Chart of accounts Report" |
|||
msgstr "Poročilo o kontnem planu" |
|||
|
|||
#. module: account_chart_report |
|||
#: report:account.print.chart:0 |
|||
msgid "Code" |
|||
msgstr "Koda" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,create_uid:0 |
|||
msgid "Created by" |
|||
msgstr "Ustvaril" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,create_date:0 |
|||
msgid "Created on" |
|||
msgstr "Ustvarjeno" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,display_name:0 |
|||
msgid "Display Name" |
|||
msgstr "Prikazni naziv" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,id:0 |
|||
msgid "ID" |
|||
msgstr "ID" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,__last_update:0 |
|||
msgid "Last Modified on" |
|||
msgstr "Zadnja sprememba" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,write_uid:0 |
|||
msgid "Last Updated by" |
|||
msgstr "Zadnji posodobil" |
|||
|
|||
#. module: account_chart_report |
|||
#: field:account.print.chart.accounts.report,write_date:0 |
|||
msgid "Last Updated on" |
|||
msgstr "Zadnjič posodobljeno" |
|||
|
|||
#. module: account_chart_report |
|||
#: view:account.print.chart.accounts.report:account_chart_report.account_report_print_char_accounts_view |
|||
msgid "Print" |
|||
msgstr "Natisni" |
|||
|
|||
#. module: account_chart_report |
|||
#: model:ir.actions.report.xml,name:account_chart_report.account_chart_account |
|||
msgid "Print chart account" |
|||
msgstr "Natisni kontni plan" |
|||
|
|||
#. module: account_chart_report |
|||
#: model:ir.actions.act_window,name:account_chart_report.action_print_chart_menu |
|||
#: model:ir.ui.menu,name:account_chart_report.menu_wizard_print_chart_account |
|||
msgid "Print chart of accounts" |
|||
msgstr "Natisni kontni plan" |
|||
|
|||
#. module: account_chart_report |
|||
#: view:account.print.chart.accounts.report:account_chart_report.account_report_print_char_accounts_view |
|||
msgid "Report Options" |
|||
msgstr "Opcije poročila" |
|||
|
|||
#. module: account_chart_report |
|||
#: help:account.print.chart.accounts.report,chart_account_id:0 |
|||
msgid "Select Charts of Accounts" |
|||
msgstr "Izberi kontni plan" |
|||
|
|||
#. module: account_chart_report |
|||
#: view:account.print.chart.accounts.report:account_chart_report.account_report_print_char_accounts_view |
|||
msgid "or" |
|||
msgstr "ali" |
@ -0,0 +1,23 @@ |
|||
# -*- coding: utf-8 -*- |
|||
|
|||
############################################################################### |
|||
# |
|||
# OpenERP, Open Source Management Solution |
|||
# Copyright (C) 2014 Savoir-faire Linux (<www.savoirfairelinux.com>). |
|||
# |
|||
# 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/>. |
|||
# |
|||
############################################################################### |
|||
|
|||
from . import chart_of_accounts |
@ -0,0 +1,60 @@ |
|||
# -*- coding: utf-8 -*- |
|||
|
|||
############################################################################### |
|||
# |
|||
# OpenERP, Open Source Management Solution |
|||
# Copyright (C) 2014 Savoir-faire Linux (<www.savoirfairelinux.com>). |
|||
# |
|||
# 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/>. |
|||
# |
|||
############################################################################### |
|||
|
|||
from openerp.report import report_sxw |
|||
|
|||
|
|||
class AccountChar(report_sxw.rml_parse): |
|||
_name = 'report.account.print.chart' |
|||
|
|||
def __init__(self, cr, uid, name, context=None): |
|||
super(AccountChar, self).__init__(cr, uid, name, context=context) |
|||
self.localcontext.update({ |
|||
"get_lst_account": self._get_lst_account, |
|||
"cr": cr, |
|||
"uid": uid, |
|||
"actual_context": context, |
|||
}) |
|||
|
|||
def _get_lst_account(self, cr, uid, account_id, context): |
|||
account_obj = self.pool['account.account'] |
|||
actual_account = account_obj.browse(cr, uid, account_id, |
|||
context=context) |
|||
lst_account = [] |
|||
self._fill_list_account_with_child(lst_account, actual_account) |
|||
return lst_account |
|||
|
|||
def _fill_list_account_with_child(self, lst_account, account): |
|||
# no more child |
|||
lst_account.append(account) |
|||
if not account.child_id: |
|||
return |
|||
for child in account.child_id: |
|||
self._fill_list_account_with_child(lst_account, child) |
|||
|
|||
|
|||
report_sxw.report_sxw( |
|||
'report.account.print.chart', |
|||
'account.account', |
|||
'account_chart_report/report/chart_of_accounts.rml', |
|||
parser=AccountChar, |
|||
) |
@ -0,0 +1,64 @@ |
|||
<?xml version="1.0"?> |
|||
<document filename="Chart of accounts.pdf"> |
|||
<template title="Account Balance" author="Mathieu Benoit (mathieu.benoit@savoirfairelinux.com)" allowSplitting="1"> |
|||
<pageTemplate id="first"> |
|||
<frame id="first" x1="35.0" y1="35.0" width="650" height="772"/> |
|||
</pageTemplate> |
|||
</template> |
|||
<stylesheet> |
|||
<blockTableStyle id="Table_Tilte_Table"> |
|||
<blockAlignment value="LEFT"/> |
|||
<blockValign value="TOP"/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="Table2"> |
|||
<blockValign value="TOP"/> |
|||
<blockAlignment value="RIGHT"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#000000" start="0,0" stop="-1,0"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,1" stop="-1,-1"/> |
|||
</blockTableStyle> |
|||
<initialize> |
|||
<paraStyle name="all" alignment="justify"/> |
|||
</initialize> |
|||
<paraStyle name="P8" fontName="Helvetica"/> |
|||
<paraStyle name="P11" fontName="Helvetica" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> |
|||
<paraStyle name="P12" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="6.0" spaceAfter="6.0"/> |
|||
<paraStyle name="P14" rightIndent="17.0" leftIndent="-0.0" fontName="Helvetica-Bold" fontSize="8.0" leading="10" spaceBefore="0.0" spaceAfter="6.0"/> |
|||
<paraStyle name="P15" fontName="Helvetica-Bold" fontSize="12.0" leading="15" alignment="CENTER" spaceBefore="12.0" spaceAfter="6.0"/> |
|||
<paraStyle name="P12a" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> |
|||
<images/> |
|||
</stylesheet> |
|||
<story> |
|||
<blockTable colWidths="650.0" style="Table_Tilte_Table"> |
|||
<tr> |
|||
<td> |
|||
<para style="P15">Chart of accounts</para> |
|||
</td> |
|||
</tr> |
|||
</blockTable> |
|||
<para style="P11"> |
|||
<font color="white"> </font> |
|||
</para> |
|||
<para style="P11"> |
|||
<font color="white"> </font> |
|||
</para> |
|||
<para style="P11"> |
|||
<font color="white"> </font> |
|||
</para> |
|||
<para style="P11"> |
|||
<font color="white"> </font> |
|||
</para> |
|||
<blockTable colWidths="70,450" style="Table2" repeatRows="1"> |
|||
<tr noRowsplits="1"> |
|||
<td><para style="P12a">Code</para></td> |
|||
<td><para style="P12a">Account</para></td> |
|||
</tr> |
|||
<tr> |
|||
<td><para style="P14">[[ repeatIn(get_lst_account(cr, uid, data["form"]["id_account"], actual_context), 'a') ]]<font>[[ (a['type']<>'view' and setTag('para','para',{'fontName':"Helvetica"})) or removeParentNode('font') ]]</font><i>[[ a['code'] or removeParentNode('tr') ]]</i></para></td> |
|||
<td><para style="P14"><font>[[ (a['type']<>'view' and setTag('para','para',{'fontName':"Helvetica"})) or removeParentNode('font') ]]</font><font color="white">[[ '..'*(a['level']-1) ]]</font><font>[[ a['name'] ]]</font> </para></td> |
|||
</tr> |
|||
</blockTable> |
|||
<para style="P11"> |
|||
<font color="white"> </font> |
|||
</para> |
|||
</story> |
|||
</document> |
Before Width: 128 | Height: 128 | Size: 9.2 KiB After Width: 128 | Height: 128 | Size: 9.2 KiB |
@ -0,0 +1,23 @@ |
|||
# -*- coding: utf-8 -*- |
|||
|
|||
############################################################################## |
|||
# |
|||
# OpenERP, Open Source Management Solution |
|||
# Copyright (C) 2014 Savoir-faire Linux (<www.savoirfairelinux.com>). |
|||
# |
|||
# 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/>. |
|||
# |
|||
############################################################################## |
|||
|
|||
from . import account_report_chart_of_account |
@ -0,0 +1,46 @@ |
|||
# -*- coding: utf-8 -*- |
|||
|
|||
############################################################################## |
|||
# |
|||
# OpenERP, Open Source Management Solution |
|||
# Copyright (C) 2014 Savoir-faire Linux (<www.savoirfairelinux.com>). |
|||
# |
|||
# 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/>. |
|||
# |
|||
############################################################################## |
|||
|
|||
from openerp import fields, models, api |
|||
|
|||
|
|||
class ChartOfAccountsReport(models.TransientModel): |
|||
_name = 'account.print.chart.accounts.report' |
|||
_description = 'Chart of accounts Report' |
|||
|
|||
chart_account_id = fields.Many2one( |
|||
'account.account', |
|||
'Chart of Accounts', |
|||
help='Select Charts of Accounts', |
|||
required=True, |
|||
ondelete="cascade", |
|||
domain=([('parent_id', '=', False)])) |
|||
|
|||
@api.multi |
|||
def print_report(self, data): |
|||
account_id = self.chart_account_id.id |
|||
data["form"] = {"id_account": account_id} |
|||
return { |
|||
'type': 'ir.actions.report.xml', |
|||
'report_name': 'account.print.chart', |
|||
'datas': data |
|||
} |
@ -0,0 +1,41 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<openerp> |
|||
<data> |
|||
|
|||
<record id="account_report_print_char_accounts_view" model="ir.ui.view"> |
|||
<field name="name">Print chart of accounts</field> |
|||
<field name="model">account.print.chart.accounts.report</field> |
|||
<field name="arch" type="xml"> |
|||
<form string="Report Options" version="7.0"> |
|||
<group col="4" colspan="4"> |
|||
<field name="chart_account_id" widget='selection'/> |
|||
</group> |
|||
<footer> |
|||
<button class="oe_highlight" name="print_report" string="Print" |
|||
type="object"/> |
|||
or |
|||
<button string="Cancel" class="oe_link" special="cancel"/> |
|||
</footer> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="action_print_chart_menu" model="ir.actions.act_window"> |
|||
<field name="name">Print chart of accounts</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="res_model">account.print.chart.accounts.report</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">form</field> |
|||
<field name="target">new</field> |
|||
</record> |
|||
|
|||
<menuitem |
|||
icon="STOCK_PRINT" |
|||
name="Print chart of accounts" |
|||
parent="account.menu_finance_charts" |
|||
action="action_print_chart_menu" |
|||
id="menu_wizard_print_chart_account" |
|||
/> |
|||
|
|||
</data> |
|||
</openerp> |
@ -0,0 +1,22 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# Author Joel Grand-Guillaume and Vincent Renaville Copyright 2013 |
|||
# Camptocamp SA |
|||
# |
|||
# 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/>. |
|||
# |
|||
############################################################################## |
|||
|
|||
from . import wizard |
@ -0,0 +1,51 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# Author Joel Grand-Guillaume and Vincent Renaville |
|||
# Copyright 2013 Camptocamp SA |
|||
# |
|||
# 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/>. |
|||
# |
|||
############################################################################## |
|||
|
|||
{ |
|||
'name': 'Account Export CSV', |
|||
'version': '8.0.1.1.0', |
|||
'depends': [ |
|||
'account', |
|||
], |
|||
'author': "Camptocamp,Odoo Community Association (OCA)", |
|||
'description': """ |
|||
|
|||
Add a wizard that allow you to export a csv file based on accounting |
|||
journal entries |
|||
|
|||
- Trial Balance |
|||
- Analytic Balance (with accounts) |
|||
- Journal Entries |
|||
|
|||
You can filter by period |
|||
|
|||
TODO: rearange wizard view with only one button to generate file plus |
|||
define a selection list to select report type |
|||
""", |
|||
'website': 'http://www.camptocamp.com', |
|||
'license': 'AGPL-3', |
|||
'data': [ |
|||
'wizard/account_export_csv_view.xml', |
|||
'menu.xml', |
|||
], |
|||
'installable': True, |
|||
'active': False, |
|||
} |
@ -0,0 +1,111 @@ |
|||
# Translation of OpenERP Server. |
|||
# This file contains the translation of the following modules: |
|||
# * account_export_csv |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: OpenERP Server 7.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2013-04-10 15:11+0000\n" |
|||
"PO-Revision-Date: 2013-04-10 15:11+0000\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: account_export_csv |
|||
#: model:ir.model,name:account_export_csv.model_account_csv_export |
|||
msgid "Export Accounting" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,export_filename:0 |
|||
msgid "Export CSV Filename" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:0 |
|||
msgid "Trial Balance" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,company_id:0 |
|||
msgid "Company" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:0 |
|||
msgid "Analytic Balance (with accounts)" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: help:account.csv.export,periods:0 |
|||
msgid "All periods in the fiscal year if empty" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,periods:0 |
|||
msgid "Periods" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:0 |
|||
msgid "Close" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:0 |
|||
#: model:ir.actions.act_window,name:account_export_csv.action_account_csv_export |
|||
#: model:ir.ui.menu,name:account_export_csv.menu_account_csv_export |
|||
msgid "Accounting CSV Export" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,data:0 |
|||
msgid "CSV" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,fiscalyear_id:0 |
|||
msgid "Fiscalyear" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:0 |
|||
msgid "Analytic Balance (with accounts)" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,stop_period_id:0 |
|||
msgid "End period" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:0 |
|||
msgid "Close" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:0 |
|||
#: model:ir.actions.act_window,name:account_export_csv.action_account_csv_export |
|||
#: model:ir.ui.menu,name:account_export_csv.menu_account_csv_export |
|||
msgid "Accounting CSV Export" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,data:0 |
|||
msgid "CSV" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: model:ir.model,name:account_export_csv.model_account_csv_export |
|||
msgid "Export Accounting Entries" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,fiscalyear_id:0 |
|||
msgid "Fiscalyear" |
|||
msgstr "" |
|||
|
@ -0,0 +1,312 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * account_export_csv |
|||
# |
|||
# Translators: |
|||
# Rudolf Schnapka <rs@techno-flex.de>, 2017 |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 8.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2017-01-13 23:18+0000\n" |
|||
"PO-Revision-Date: 2017-01-13 23:18+0000\n" |
|||
"Last-Translator: Rudolf Schnapka <rs@techno-flex.de>, 2017\n" |
|||
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: \n" |
|||
"Language: de\n" |
|||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:287 |
|||
#, python-format |
|||
msgid "ACCOUNT CODE" |
|||
msgstr "KONTO-SCHLÜSSEL" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:201 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:299 |
|||
#, python-format |
|||
msgid "ACCOUNT NAME" |
|||
msgstr "KONTOBEZEICHNUNG" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:301 |
|||
#, python-format |
|||
msgid "AMOUNT CURRENCY" |
|||
msgstr "BETRAGSWÄHRUNG" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:295 |
|||
#, python-format |
|||
msgid "ANALYTIC ACCOUNT CODE" |
|||
msgstr "KOSTENSTELLENSCHLÜSSEL" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:303 |
|||
#, python-format |
|||
msgid "ANALYTIC ACCOUNT NAME" |
|||
msgstr "KOSTENSTELLENBEZEICHNUNG" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:198 |
|||
#, python-format |
|||
msgid "ANALYTIC CODE" |
|||
msgstr "KST-SCHLÜSSEL" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:199 |
|||
#, python-format |
|||
msgid "ANALYTIC NAME" |
|||
msgstr "KST-BEZEICHNUNG" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
#: model:ir.actions.act_window,name:account_export_csv.action_account_csv_export |
|||
#: model:ir.ui.menu,name:account_export_csv.menu_account_csv_export |
|||
msgid "Accounting CSV Export" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: help:account.csv.export,periods:0 |
|||
msgid "All periods in the fiscal year if empty" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Analytic Balance (with accounts)" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:142 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:204 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:300 |
|||
#, python-format |
|||
msgid "BALANCE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:310 |
|||
#, python-format |
|||
msgid "BANK STATEMENT" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:138 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:200 |
|||
#, python-format |
|||
msgid "CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:141 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:203 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:292 |
|||
#, python-format |
|||
msgid "CREDIT" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,data:0 |
|||
msgid "CSV" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:302 |
|||
#, python-format |
|||
msgid "CURRENCY" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Close" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,company_id:0 |
|||
msgid "Company" |
|||
msgstr "Unternehmen" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,create_uid:0 |
|||
msgid "Created by" |
|||
msgstr "Angelegt durch" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,create_date:0 |
|||
msgid "Created on" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:285 |
|||
#, python-format |
|||
msgid "DATE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:140 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:202 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:291 |
|||
#, python-format |
|||
msgid "DEBIT" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:290 |
|||
#, python-format |
|||
msgid "DESCRIPTION" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,display_name:0 |
|||
msgid "Display Name" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:298 |
|||
#, python-format |
|||
msgid "ENTRY NUMBER" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: model:ir.model,name:account_export_csv.model_account_csv_export |
|||
msgid "Export Accounting" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,export_filename:0 |
|||
msgid "Export CSV Filename" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:306 |
|||
#, python-format |
|||
msgid "FISCAL YEAR" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:293 |
|||
#, python-format |
|||
msgid "FULL RECONCILE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,fiscalyear_id:0 |
|||
msgid "Fiscalyear" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,id:0 |
|||
msgid "ID" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: help:account.csv.export,journal_ids:0 |
|||
msgid "If empty, use all journals, only used for journal entries" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:304 |
|||
#, python-format |
|||
msgid "JOURNAL" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:286 |
|||
#, python-format |
|||
msgid "JOURNAL CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Journal Entries" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,journal_ids:0 |
|||
msgid "Journals" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,__last_update:0 |
|||
msgid "Last Modified on" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,write_uid:0 |
|||
msgid "Last Updated by" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,write_date:0 |
|||
msgid "Last Updated on" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:305 |
|||
#, python-format |
|||
msgid "MONTH" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:139 |
|||
#, python-format |
|||
msgid "NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:294 |
|||
#, python-format |
|||
msgid "PARTIAL RECONCILE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:288 |
|||
#, python-format |
|||
msgid "PARTNER NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,periods:0 |
|||
msgid "Periods" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:289 |
|||
#, python-format |
|||
msgid "REF" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Report" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:309 |
|||
#, python-format |
|||
msgid "TAX AMOUNT" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:307 |
|||
#, python-format |
|||
msgid "TAX CODE CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:308 |
|||
#, python-format |
|||
msgid "TAX CODE NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Trial Balance" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "or" |
|||
msgstr "" |
@ -0,0 +1,312 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * account_export_csv |
|||
# |
|||
# Translators: |
|||
# Hugo Santos <hugo.santos@factorlibre.com>, 2017 |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 8.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2017-02-17 12:52+0000\n" |
|||
"PO-Revision-Date: 2017-02-17 12:52+0000\n" |
|||
"Last-Translator: Hugo Santos <hugo.santos@factorlibre.com>, 2017\n" |
|||
"Language-Team: Spanish (Spain) (https://www.transifex.com/oca/teams/23907/es_ES/)\n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: \n" |
|||
"Language: es_ES\n" |
|||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:287 |
|||
#, python-format |
|||
msgid "ACCOUNT CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:201 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:299 |
|||
#, python-format |
|||
msgid "ACCOUNT NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:301 |
|||
#, python-format |
|||
msgid "AMOUNT CURRENCY" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:295 |
|||
#, python-format |
|||
msgid "ANALYTIC ACCOUNT CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:303 |
|||
#, python-format |
|||
msgid "ANALYTIC ACCOUNT NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:198 |
|||
#, python-format |
|||
msgid "ANALYTIC CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:199 |
|||
#, python-format |
|||
msgid "ANALYTIC NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
#: model:ir.actions.act_window,name:account_export_csv.action_account_csv_export |
|||
#: model:ir.ui.menu,name:account_export_csv.menu_account_csv_export |
|||
msgid "Accounting CSV Export" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: help:account.csv.export,periods:0 |
|||
msgid "All periods in the fiscal year if empty" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Analytic Balance (with accounts)" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:142 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:204 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:300 |
|||
#, python-format |
|||
msgid "BALANCE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:310 |
|||
#, python-format |
|||
msgid "BANK STATEMENT" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:138 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:200 |
|||
#, python-format |
|||
msgid "CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:141 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:203 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:292 |
|||
#, python-format |
|||
msgid "CREDIT" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,data:0 |
|||
msgid "CSV" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:302 |
|||
#, python-format |
|||
msgid "CURRENCY" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Close" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,company_id:0 |
|||
msgid "Company" |
|||
msgstr "Compañía" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,create_uid:0 |
|||
msgid "Created by" |
|||
msgstr "Creado por" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,create_date:0 |
|||
msgid "Created on" |
|||
msgstr "Creado el" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:285 |
|||
#, python-format |
|||
msgid "DATE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:140 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:202 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:291 |
|||
#, python-format |
|||
msgid "DEBIT" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:290 |
|||
#, python-format |
|||
msgid "DESCRIPTION" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,display_name:0 |
|||
msgid "Display Name" |
|||
msgstr "Nombre a mostrar" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:298 |
|||
#, python-format |
|||
msgid "ENTRY NUMBER" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: model:ir.model,name:account_export_csv.model_account_csv_export |
|||
msgid "Export Accounting" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,export_filename:0 |
|||
msgid "Export CSV Filename" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:306 |
|||
#, python-format |
|||
msgid "FISCAL YEAR" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:293 |
|||
#, python-format |
|||
msgid "FULL RECONCILE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,fiscalyear_id:0 |
|||
msgid "Fiscalyear" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,id:0 |
|||
msgid "ID" |
|||
msgstr "ID" |
|||
|
|||
#. module: account_export_csv |
|||
#: help:account.csv.export,journal_ids:0 |
|||
msgid "If empty, use all journals, only used for journal entries" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:304 |
|||
#, python-format |
|||
msgid "JOURNAL" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:286 |
|||
#, python-format |
|||
msgid "JOURNAL CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Journal Entries" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,journal_ids:0 |
|||
msgid "Journals" |
|||
msgstr "Diarios" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,__last_update:0 |
|||
msgid "Last Modified on" |
|||
msgstr "Última modificación en" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,write_uid:0 |
|||
msgid "Last Updated by" |
|||
msgstr "Última actualización de" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,write_date:0 |
|||
msgid "Last Updated on" |
|||
msgstr "Última actualización en" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:305 |
|||
#, python-format |
|||
msgid "MONTH" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:139 |
|||
#, python-format |
|||
msgid "NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:294 |
|||
#, python-format |
|||
msgid "PARTIAL RECONCILE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:288 |
|||
#, python-format |
|||
msgid "PARTNER NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,periods:0 |
|||
msgid "Periods" |
|||
msgstr "Periodos" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:289 |
|||
#, python-format |
|||
msgid "REF" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Report" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:309 |
|||
#, python-format |
|||
msgid "TAX AMOUNT" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:307 |
|||
#, python-format |
|||
msgid "TAX CODE CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:308 |
|||
#, python-format |
|||
msgid "TAX CODE NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Trial Balance" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "or" |
|||
msgstr "" |
@ -0,0 +1,312 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * account_export_csv |
|||
# |
|||
# Translators: |
|||
# OCA Transbot <transbot@odoo-community.org>, 2016 |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 8.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2016-12-16 12:25+0000\n" |
|||
"PO-Revision-Date: 2016-12-16 12:25+0000\n" |
|||
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2016\n" |
|||
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: \n" |
|||
"Language: fr\n" |
|||
"Plural-Forms: nplurals=2; plural=(n > 1);\n" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:287 |
|||
#, python-format |
|||
msgid "ACCOUNT CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:201 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:299 |
|||
#, python-format |
|||
msgid "ACCOUNT NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:301 |
|||
#, python-format |
|||
msgid "AMOUNT CURRENCY" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:295 |
|||
#, python-format |
|||
msgid "ANALYTIC ACCOUNT CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:303 |
|||
#, python-format |
|||
msgid "ANALYTIC ACCOUNT NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:198 |
|||
#, python-format |
|||
msgid "ANALYTIC CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:199 |
|||
#, python-format |
|||
msgid "ANALYTIC NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
#: model:ir.actions.act_window,name:account_export_csv.action_account_csv_export |
|||
#: model:ir.ui.menu,name:account_export_csv.menu_account_csv_export |
|||
msgid "Accounting CSV Export" |
|||
msgstr "Export comptable CSV" |
|||
|
|||
#. module: account_export_csv |
|||
#: help:account.csv.export,periods:0 |
|||
msgid "All periods in the fiscal year if empty" |
|||
msgstr "Toutes les périodes de l'année fiscale si vide" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Analytic Balance (with accounts)" |
|||
msgstr "Balance analytique (avec comptes)" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:142 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:204 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:300 |
|||
#, python-format |
|||
msgid "BALANCE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:310 |
|||
#, python-format |
|||
msgid "BANK STATEMENT" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:138 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:200 |
|||
#, python-format |
|||
msgid "CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:141 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:203 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:292 |
|||
#, python-format |
|||
msgid "CREDIT" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,data:0 |
|||
msgid "CSV" |
|||
msgstr "CSV" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:302 |
|||
#, python-format |
|||
msgid "CURRENCY" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Close" |
|||
msgstr "Fermer" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,company_id:0 |
|||
msgid "Company" |
|||
msgstr "Société" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,create_uid:0 |
|||
msgid "Created by" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,create_date:0 |
|||
msgid "Created on" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:285 |
|||
#, python-format |
|||
msgid "DATE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:140 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:202 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:291 |
|||
#, python-format |
|||
msgid "DEBIT" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:290 |
|||
#, python-format |
|||
msgid "DESCRIPTION" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,display_name:0 |
|||
msgid "Display Name" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:298 |
|||
#, python-format |
|||
msgid "ENTRY NUMBER" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: model:ir.model,name:account_export_csv.model_account_csv_export |
|||
msgid "Export Accounting" |
|||
msgstr "Export comptable" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,export_filename:0 |
|||
msgid "Export CSV Filename" |
|||
msgstr "Nom du fichier CSV d'export" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:306 |
|||
#, python-format |
|||
msgid "FISCAL YEAR" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:293 |
|||
#, python-format |
|||
msgid "FULL RECONCILE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,fiscalyear_id:0 |
|||
msgid "Fiscalyear" |
|||
msgstr "Année fiscale" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,id:0 |
|||
msgid "ID" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: help:account.csv.export,journal_ids:0 |
|||
msgid "If empty, use all journals, only used for journal entries" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:304 |
|||
#, python-format |
|||
msgid "JOURNAL" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:286 |
|||
#, python-format |
|||
msgid "JOURNAL CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Journal Entries" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,journal_ids:0 |
|||
msgid "Journals" |
|||
msgstr "Journaux" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,__last_update:0 |
|||
msgid "Last Modified on" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,write_uid:0 |
|||
msgid "Last Updated by" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,write_date:0 |
|||
msgid "Last Updated on" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:305 |
|||
#, python-format |
|||
msgid "MONTH" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:139 |
|||
#, python-format |
|||
msgid "NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:294 |
|||
#, python-format |
|||
msgid "PARTIAL RECONCILE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:288 |
|||
#, python-format |
|||
msgid "PARTNER NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,periods:0 |
|||
msgid "Periods" |
|||
msgstr "Périodes" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:289 |
|||
#, python-format |
|||
msgid "REF" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Report" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:309 |
|||
#, python-format |
|||
msgid "TAX AMOUNT" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:307 |
|||
#, python-format |
|||
msgid "TAX CODE CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:308 |
|||
#, python-format |
|||
msgid "TAX CODE NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Trial Balance" |
|||
msgstr "Balance générale" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "or" |
|||
msgstr "ou" |
@ -0,0 +1,312 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * account_export_csv |
|||
# |
|||
# Translators: |
|||
# OCA Transbot <transbot@odoo-community.org>, 2016 |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 8.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2016-12-16 12:25+0000\n" |
|||
"PO-Revision-Date: 2016-12-16 12:25+0000\n" |
|||
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2016\n" |
|||
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: \n" |
|||
"Language: it\n" |
|||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:287 |
|||
#, python-format |
|||
msgid "ACCOUNT CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:201 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:299 |
|||
#, python-format |
|||
msgid "ACCOUNT NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:301 |
|||
#, python-format |
|||
msgid "AMOUNT CURRENCY" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:295 |
|||
#, python-format |
|||
msgid "ANALYTIC ACCOUNT CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:303 |
|||
#, python-format |
|||
msgid "ANALYTIC ACCOUNT NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:198 |
|||
#, python-format |
|||
msgid "ANALYTIC CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:199 |
|||
#, python-format |
|||
msgid "ANALYTIC NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
#: model:ir.actions.act_window,name:account_export_csv.action_account_csv_export |
|||
#: model:ir.ui.menu,name:account_export_csv.menu_account_csv_export |
|||
msgid "Accounting CSV Export" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: help:account.csv.export,periods:0 |
|||
msgid "All periods in the fiscal year if empty" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Analytic Balance (with accounts)" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:142 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:204 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:300 |
|||
#, python-format |
|||
msgid "BALANCE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:310 |
|||
#, python-format |
|||
msgid "BANK STATEMENT" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:138 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:200 |
|||
#, python-format |
|||
msgid "CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:141 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:203 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:292 |
|||
#, python-format |
|||
msgid "CREDIT" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,data:0 |
|||
msgid "CSV" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:302 |
|||
#, python-format |
|||
msgid "CURRENCY" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Close" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,company_id:0 |
|||
msgid "Company" |
|||
msgstr "Azienda" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,create_uid:0 |
|||
msgid "Created by" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,create_date:0 |
|||
msgid "Created on" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:285 |
|||
#, python-format |
|||
msgid "DATE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:140 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:202 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:291 |
|||
#, python-format |
|||
msgid "DEBIT" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:290 |
|||
#, python-format |
|||
msgid "DESCRIPTION" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,display_name:0 |
|||
msgid "Display Name" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:298 |
|||
#, python-format |
|||
msgid "ENTRY NUMBER" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: model:ir.model,name:account_export_csv.model_account_csv_export |
|||
msgid "Export Accounting" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,export_filename:0 |
|||
msgid "Export CSV Filename" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:306 |
|||
#, python-format |
|||
msgid "FISCAL YEAR" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:293 |
|||
#, python-format |
|||
msgid "FULL RECONCILE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,fiscalyear_id:0 |
|||
msgid "Fiscalyear" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,id:0 |
|||
msgid "ID" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: help:account.csv.export,journal_ids:0 |
|||
msgid "If empty, use all journals, only used for journal entries" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:304 |
|||
#, python-format |
|||
msgid "JOURNAL" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:286 |
|||
#, python-format |
|||
msgid "JOURNAL CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Journal Entries" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,journal_ids:0 |
|||
msgid "Journals" |
|||
msgstr "Sezionali" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,__last_update:0 |
|||
msgid "Last Modified on" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,write_uid:0 |
|||
msgid "Last Updated by" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,write_date:0 |
|||
msgid "Last Updated on" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:305 |
|||
#, python-format |
|||
msgid "MONTH" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:139 |
|||
#, python-format |
|||
msgid "NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:294 |
|||
#, python-format |
|||
msgid "PARTIAL RECONCILE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:288 |
|||
#, python-format |
|||
msgid "PARTNER NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,periods:0 |
|||
msgid "Periods" |
|||
msgstr "Periodi" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:289 |
|||
#, python-format |
|||
msgid "REF" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Report" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:309 |
|||
#, python-format |
|||
msgid "TAX AMOUNT" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:307 |
|||
#, python-format |
|||
msgid "TAX CODE CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:308 |
|||
#, python-format |
|||
msgid "TAX CODE NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Trial Balance" |
|||
msgstr "Bilancio di Verifica" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "or" |
|||
msgstr "" |
@ -0,0 +1,313 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * account_export_csv |
|||
# |
|||
# Translators: |
|||
# OCA Transbot <transbot@odoo-community.org>, 2016 |
|||
# Viktoras Norkus <viktoras@bmx.lt>, 2018 |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 8.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2017-10-13 22:11+0000\n" |
|||
"PO-Revision-Date: 2017-10-13 22:11+0000\n" |
|||
"Last-Translator: Viktoras Norkus <viktoras@bmx.lt>, 2018\n" |
|||
"Language-Team: Lithuanian (https://www.transifex.com/oca/teams/23907/lt/)\n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: \n" |
|||
"Language: lt\n" |
|||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2);\n" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:287 |
|||
#, python-format |
|||
msgid "ACCOUNT CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:201 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:299 |
|||
#, python-format |
|||
msgid "ACCOUNT NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:301 |
|||
#, python-format |
|||
msgid "AMOUNT CURRENCY" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:295 |
|||
#, python-format |
|||
msgid "ANALYTIC ACCOUNT CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:303 |
|||
#, python-format |
|||
msgid "ANALYTIC ACCOUNT NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:198 |
|||
#, python-format |
|||
msgid "ANALYTIC CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:199 |
|||
#, python-format |
|||
msgid "ANALYTIC NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
#: model:ir.actions.act_window,name:account_export_csv.action_account_csv_export |
|||
#: model:ir.ui.menu,name:account_export_csv.menu_account_csv_export |
|||
msgid "Accounting CSV Export" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: help:account.csv.export,periods:0 |
|||
msgid "All periods in the fiscal year if empty" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Analytic Balance (with accounts)" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:142 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:204 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:300 |
|||
#, python-format |
|||
msgid "BALANCE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:310 |
|||
#, python-format |
|||
msgid "BANK STATEMENT" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:138 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:200 |
|||
#, python-format |
|||
msgid "CODE" |
|||
msgstr "KODAS" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:141 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:203 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:292 |
|||
#, python-format |
|||
msgid "CREDIT" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,data:0 |
|||
msgid "CSV" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:302 |
|||
#, python-format |
|||
msgid "CURRENCY" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Close" |
|||
msgstr "Uždaryti" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,company_id:0 |
|||
msgid "Company" |
|||
msgstr "Įmonė" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,create_uid:0 |
|||
msgid "Created by" |
|||
msgstr "Sukūrė" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,create_date:0 |
|||
msgid "Created on" |
|||
msgstr "Sukurta" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:285 |
|||
#, python-format |
|||
msgid "DATE" |
|||
msgstr "DATA" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:140 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:202 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:291 |
|||
#, python-format |
|||
msgid "DEBIT" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:290 |
|||
#, python-format |
|||
msgid "DESCRIPTION" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,display_name:0 |
|||
msgid "Display Name" |
|||
msgstr "Pavadinimas" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:298 |
|||
#, python-format |
|||
msgid "ENTRY NUMBER" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: model:ir.model,name:account_export_csv.model_account_csv_export |
|||
msgid "Export Accounting" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,export_filename:0 |
|||
msgid "Export CSV Filename" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:306 |
|||
#, python-format |
|||
msgid "FISCAL YEAR" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:293 |
|||
#, python-format |
|||
msgid "FULL RECONCILE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,fiscalyear_id:0 |
|||
msgid "Fiscalyear" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,id:0 |
|||
msgid "ID" |
|||
msgstr "ID" |
|||
|
|||
#. module: account_export_csv |
|||
#: help:account.csv.export,journal_ids:0 |
|||
msgid "If empty, use all journals, only used for journal entries" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:304 |
|||
#, python-format |
|||
msgid "JOURNAL" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:286 |
|||
#, python-format |
|||
msgid "JOURNAL CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Journal Entries" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,journal_ids:0 |
|||
msgid "Journals" |
|||
msgstr "Žurnalai" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,__last_update:0 |
|||
msgid "Last Modified on" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,write_uid:0 |
|||
msgid "Last Updated by" |
|||
msgstr "Paskutinį kartą atnaujino" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,write_date:0 |
|||
msgid "Last Updated on" |
|||
msgstr "Paskutinį kartą atnaujinta" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:305 |
|||
#, python-format |
|||
msgid "MONTH" |
|||
msgstr "MĖNUO" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:139 |
|||
#, python-format |
|||
msgid "NAME" |
|||
msgstr "VARDAS" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:294 |
|||
#, python-format |
|||
msgid "PARTIAL RECONCILE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:288 |
|||
#, python-format |
|||
msgid "PARTNER NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,periods:0 |
|||
msgid "Periods" |
|||
msgstr "Periodai" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:289 |
|||
#, python-format |
|||
msgid "REF" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Report" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:309 |
|||
#, python-format |
|||
msgid "TAX AMOUNT" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:307 |
|||
#, python-format |
|||
msgid "TAX CODE CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:308 |
|||
#, python-format |
|||
msgid "TAX CODE NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Trial Balance" |
|||
msgstr "Bandomasis balansas" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "or" |
|||
msgstr "arba" |
@ -0,0 +1,312 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * account_export_csv |
|||
# |
|||
# Translators: |
|||
# OCA Transbot <transbot@odoo-community.org>, 2016 |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 8.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2016-12-16 12:25+0000\n" |
|||
"PO-Revision-Date: 2016-12-16 12:25+0000\n" |
|||
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2016\n" |
|||
"Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: \n" |
|||
"Language: nl\n" |
|||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:287 |
|||
#, python-format |
|||
msgid "ACCOUNT CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:201 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:299 |
|||
#, python-format |
|||
msgid "ACCOUNT NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:301 |
|||
#, python-format |
|||
msgid "AMOUNT CURRENCY" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:295 |
|||
#, python-format |
|||
msgid "ANALYTIC ACCOUNT CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:303 |
|||
#, python-format |
|||
msgid "ANALYTIC ACCOUNT NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:198 |
|||
#, python-format |
|||
msgid "ANALYTIC CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:199 |
|||
#, python-format |
|||
msgid "ANALYTIC NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
#: model:ir.actions.act_window,name:account_export_csv.action_account_csv_export |
|||
#: model:ir.ui.menu,name:account_export_csv.menu_account_csv_export |
|||
msgid "Accounting CSV Export" |
|||
msgstr "CSV export financiën" |
|||
|
|||
#. module: account_export_csv |
|||
#: help:account.csv.export,periods:0 |
|||
msgid "All periods in the fiscal year if empty" |
|||
msgstr "Alle periodes van het boekjaar indien leeg" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Analytic Balance (with accounts)" |
|||
msgstr "Kostenplaatsenbalans (met rekeningen)" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:142 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:204 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:300 |
|||
#, python-format |
|||
msgid "BALANCE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:310 |
|||
#, python-format |
|||
msgid "BANK STATEMENT" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:138 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:200 |
|||
#, python-format |
|||
msgid "CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:141 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:203 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:292 |
|||
#, python-format |
|||
msgid "CREDIT" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,data:0 |
|||
msgid "CSV" |
|||
msgstr "CSV" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:302 |
|||
#, python-format |
|||
msgid "CURRENCY" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Close" |
|||
msgstr "Sluiten" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,company_id:0 |
|||
msgid "Company" |
|||
msgstr "Bedrijf" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,create_uid:0 |
|||
msgid "Created by" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,create_date:0 |
|||
msgid "Created on" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:285 |
|||
#, python-format |
|||
msgid "DATE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:140 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:202 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:291 |
|||
#, python-format |
|||
msgid "DEBIT" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:290 |
|||
#, python-format |
|||
msgid "DESCRIPTION" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,display_name:0 |
|||
msgid "Display Name" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:298 |
|||
#, python-format |
|||
msgid "ENTRY NUMBER" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: model:ir.model,name:account_export_csv.model_account_csv_export |
|||
msgid "Export Accounting" |
|||
msgstr "Export Financiën" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,export_filename:0 |
|||
msgid "Export CSV Filename" |
|||
msgstr "Export CSV bestandsnaam" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:306 |
|||
#, python-format |
|||
msgid "FISCAL YEAR" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:293 |
|||
#, python-format |
|||
msgid "FULL RECONCILE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,fiscalyear_id:0 |
|||
msgid "Fiscalyear" |
|||
msgstr "Boekjaar" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,id:0 |
|||
msgid "ID" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: help:account.csv.export,journal_ids:0 |
|||
msgid "If empty, use all journals, only used for journal entries" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:304 |
|||
#, python-format |
|||
msgid "JOURNAL" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:286 |
|||
#, python-format |
|||
msgid "JOURNAL CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Journal Entries" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,journal_ids:0 |
|||
msgid "Journals" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,__last_update:0 |
|||
msgid "Last Modified on" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,write_uid:0 |
|||
msgid "Last Updated by" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,write_date:0 |
|||
msgid "Last Updated on" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:305 |
|||
#, python-format |
|||
msgid "MONTH" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:139 |
|||
#, python-format |
|||
msgid "NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:294 |
|||
#, python-format |
|||
msgid "PARTIAL RECONCILE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:288 |
|||
#, python-format |
|||
msgid "PARTNER NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,periods:0 |
|||
msgid "Periods" |
|||
msgstr "Periodes" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:289 |
|||
#, python-format |
|||
msgid "REF" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Report" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:309 |
|||
#, python-format |
|||
msgid "TAX AMOUNT" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:307 |
|||
#, python-format |
|||
msgid "TAX CODE CODE" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:308 |
|||
#, python-format |
|||
msgid "TAX CODE NAME" |
|||
msgstr "" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Trial Balance" |
|||
msgstr "Proefbalans" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "or" |
|||
msgstr "" |
@ -0,0 +1,312 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * account_export_csv |
|||
# |
|||
# Translators: |
|||
# Matjaž Mozetič <m.mozetic@matmoz.si>, 2016 |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 8.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2016-12-16 23:11+0000\n" |
|||
"PO-Revision-Date: 2016-12-16 23:11+0000\n" |
|||
"Last-Translator: Matjaž Mozetič <m.mozetic@matmoz.si>, 2016\n" |
|||
"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: \n" |
|||
"Language: sl\n" |
|||
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:287 |
|||
#, python-format |
|||
msgid "ACCOUNT CODE" |
|||
msgstr "KODA KONTA" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:201 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:299 |
|||
#, python-format |
|||
msgid "ACCOUNT NAME" |
|||
msgstr "NAZIV KONTA" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:301 |
|||
#, python-format |
|||
msgid "AMOUNT CURRENCY" |
|||
msgstr "VALUTA ZNESKA" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:295 |
|||
#, python-format |
|||
msgid "ANALYTIC ACCOUNT CODE" |
|||
msgstr "KODA ANALITIČNEGA KONTA" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:303 |
|||
#, python-format |
|||
msgid "ANALYTIC ACCOUNT NAME" |
|||
msgstr "NAZIV ANALITIČNEGA KONTA" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:198 |
|||
#, python-format |
|||
msgid "ANALYTIC CODE" |
|||
msgstr "ANALITIČNA KODA" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:199 |
|||
#, python-format |
|||
msgid "ANALYTIC NAME" |
|||
msgstr "ANALITIČNI NAZIV" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
#: model:ir.actions.act_window,name:account_export_csv.action_account_csv_export |
|||
#: model:ir.ui.menu,name:account_export_csv.menu_account_csv_export |
|||
msgid "Accounting CSV Export" |
|||
msgstr "Knjigovodski CSV izvoz" |
|||
|
|||
#. module: account_export_csv |
|||
#: help:account.csv.export,periods:0 |
|||
msgid "All periods in the fiscal year if empty" |
|||
msgstr "Če prazno, vsa obdobja v fiskalnem letu" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Analytic Balance (with accounts)" |
|||
msgstr "Analitična bilanca (s konti)" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:142 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:204 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:300 |
|||
#, python-format |
|||
msgid "BALANCE" |
|||
msgstr "BILANCA" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:310 |
|||
#, python-format |
|||
msgid "BANK STATEMENT" |
|||
msgstr "BANČNI IZPISEK" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:138 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:200 |
|||
#, python-format |
|||
msgid "CODE" |
|||
msgstr "KODA" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:141 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:203 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:292 |
|||
#, python-format |
|||
msgid "CREDIT" |
|||
msgstr "TERJATEV" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,data:0 |
|||
msgid "CSV" |
|||
msgstr "CSV" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:302 |
|||
#, python-format |
|||
msgid "CURRENCY" |
|||
msgstr "VALUTA" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Close" |
|||
msgstr "Zapri" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,company_id:0 |
|||
msgid "Company" |
|||
msgstr "Družba" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,create_uid:0 |
|||
msgid "Created by" |
|||
msgstr "Ustvaril" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,create_date:0 |
|||
msgid "Created on" |
|||
msgstr "Ustvarjeno" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:285 |
|||
#, python-format |
|||
msgid "DATE" |
|||
msgstr "DATUM" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:140 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:202 |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:291 |
|||
#, python-format |
|||
msgid "DEBIT" |
|||
msgstr "OBVEZNOST" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:290 |
|||
#, python-format |
|||
msgid "DESCRIPTION" |
|||
msgstr "OPIS" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,display_name:0 |
|||
msgid "Display Name" |
|||
msgstr "Prikazni naziv" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:298 |
|||
#, python-format |
|||
msgid "ENTRY NUMBER" |
|||
msgstr "ŠTEVILKA VNOSA" |
|||
|
|||
#. module: account_export_csv |
|||
#: model:ir.model,name:account_export_csv.model_account_csv_export |
|||
msgid "Export Accounting" |
|||
msgstr "Izvoz knjigovodstva" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,export_filename:0 |
|||
msgid "Export CSV Filename" |
|||
msgstr "Naziv izvozne CSV datoteke" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:306 |
|||
#, python-format |
|||
msgid "FISCAL YEAR" |
|||
msgstr "FISKALNO LETO" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:293 |
|||
#, python-format |
|||
msgid "FULL RECONCILE" |
|||
msgstr "POLNA USKLADITEV" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,fiscalyear_id:0 |
|||
msgid "Fiscalyear" |
|||
msgstr "Fiskalno leto" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,id:0 |
|||
msgid "ID" |
|||
msgstr "ID" |
|||
|
|||
#. module: account_export_csv |
|||
#: help:account.csv.export,journal_ids:0 |
|||
msgid "If empty, use all journals, only used for journal entries" |
|||
msgstr "Če prazno, uporabi vse dnevnike. Uporablja se le za dnevniške vnose" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:304 |
|||
#, python-format |
|||
msgid "JOURNAL" |
|||
msgstr "DNEVNIK" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:286 |
|||
#, python-format |
|||
msgid "JOURNAL CODE" |
|||
msgstr "KODA DNEVNIKA" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Journal Entries" |
|||
msgstr "Dnevniški vnosi" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,journal_ids:0 |
|||
msgid "Journals" |
|||
msgstr "Dnevniki" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,__last_update:0 |
|||
msgid "Last Modified on" |
|||
msgstr "Zadnja sprememba" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,write_uid:0 |
|||
msgid "Last Updated by" |
|||
msgstr "Zadnji posodobil" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,write_date:0 |
|||
msgid "Last Updated on" |
|||
msgstr "Zadnjič posodobljeno" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:305 |
|||
#, python-format |
|||
msgid "MONTH" |
|||
msgstr "MESEC" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:139 |
|||
#, python-format |
|||
msgid "NAME" |
|||
msgstr "NAZIV" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:294 |
|||
#, python-format |
|||
msgid "PARTIAL RECONCILE" |
|||
msgstr "DELNA USKLADITEV" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:288 |
|||
#, python-format |
|||
msgid "PARTNER NAME" |
|||
msgstr "NAZIV PARTNERJA" |
|||
|
|||
#. module: account_export_csv |
|||
#: field:account.csv.export,periods:0 |
|||
msgid "Periods" |
|||
msgstr "Obdobja" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:289 |
|||
#, python-format |
|||
msgid "REF" |
|||
msgstr "SKLIC" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Report" |
|||
msgstr "Poročilo" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:309 |
|||
#, python-format |
|||
msgid "TAX AMOUNT" |
|||
msgstr "ZNESEK DAVKA" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:307 |
|||
#, python-format |
|||
msgid "TAX CODE CODE" |
|||
msgstr "KODA DAVČNE KODE" |
|||
|
|||
#. module: account_export_csv |
|||
#: code:addons/account_export_csv/wizard/account_export_csv.py:308 |
|||
#, python-format |
|||
msgid "TAX CODE NAME" |
|||
msgstr "NAZIV DAVČNE KODE" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "Trial Balance" |
|||
msgstr "Poskusna bilanca" |
|||
|
|||
#. module: account_export_csv |
|||
#: view:account.csv.export:account_export_csv.account_csv_export_view |
|||
msgid "or" |
|||
msgstr "ali" |
@ -0,0 +1,16 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<openerp> |
|||
<data> |
|||
|
|||
<menuitem |
|||
icon="STOCK_EXECUTE" |
|||
name="Accounting CSV Export" |
|||
action="action_account_csv_export" |
|||
id="menu_account_csv_export" |
|||
parent="account.menu_finance_reports" |
|||
sequence="110" |
|||
/> |
|||
|
|||
|
|||
</data> |
|||
</openerp> |
Before Width: 128 | Height: 128 | Size: 9.2 KiB After Width: 128 | Height: 128 | Size: 9.2 KiB |
@ -0,0 +1,22 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# Author Joel Grand-Guillaume and Vincent Renaville Copyright 2013 |
|||
# Camptocamp SA |
|||
# |
|||
# 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/>. |
|||
# |
|||
############################################################################## |
|||
|
|||
from . import account_export_csv |
@ -0,0 +1,418 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# Author Joel Grand-Guillaume and Vincent Renaville Copyright 2013 |
|||
# Camptocamp SA |
|||
# CSV data formating inspired from |
|||
# http://docs.python.org/2.7/library/csv.html?highlight=csv#examples |
|||
# |
|||
# 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/>. |
|||
# |
|||
############################################################################## |
|||
|
|||
import itertools |
|||
import tempfile |
|||
from cStringIO import StringIO |
|||
import base64 |
|||
|
|||
import csv |
|||
import codecs |
|||
|
|||
from openerp.osv import orm, fields |
|||
from openerp.tools.translate import _ |
|||
|
|||
|
|||
class AccountUnicodeWriter(object): |
|||
|
|||
""" |
|||
A CSV writer which will write rows to CSV file "f", |
|||
which is encoded in the given encoding. |
|||
""" |
|||
|
|||
def __init__(self, f, dialect=csv.excel, encoding="utf-8", **kwds): |
|||
# Redirect output to a queue |
|||
self.queue = StringIO() |
|||
# created a writer with Excel formating settings |
|||
self.writer = csv.writer(self.queue, dialect=dialect, **kwds) |
|||
self.stream = f |
|||
self.encoder = codecs.getincrementalencoder(encoding)() |
|||
|
|||
def writerow(self, row): |
|||
# we ensure that we do not try to encode none or bool |
|||
row = (x or u'' for x in row) |
|||
|
|||
encoded_row = [ |
|||
c.encode("utf-8") if isinstance(c, unicode) else c for c in row] |
|||
|
|||
self.writer.writerow(encoded_row) |
|||
# Fetch UTF-8 output from the queue ... |
|||
data = self.queue.getvalue() |
|||
data = data.decode("utf-8") |
|||
# ... and reencode it into the target encoding |
|||
data = self.encoder.encode(data) |
|||
# write to the target stream |
|||
self.stream.write(data) |
|||
# empty queue |
|||
self.queue.truncate(0) |
|||
|
|||
def writerows(self, rows): |
|||
for row in rows: |
|||
self.writerow(row) |
|||
|
|||
|
|||
class AccountCSVExport(orm.TransientModel): |
|||
_name = 'account.csv.export' |
|||
_description = 'Export Accounting' |
|||
|
|||
_columns = { |
|||
'data': fields.binary('CSV', readonly=True), |
|||
'company_id': fields.many2one('res.company', 'Company', |
|||
invisible=True), |
|||
'fiscalyear_id': fields.many2one('account.fiscalyear', 'Fiscalyear', |
|||
required=True), |
|||
'periods': fields.many2many( |
|||
'account.period', 'rel_wizard_period', |
|||
'wizard_id', 'period_id', 'Periods', |
|||
help='All periods in the fiscal year if empty'), |
|||
'journal_ids': fields.many2many( |
|||
'account.journal', |
|||
'rel_wizard_journal', |
|||
'wizard_id', |
|||
'journal_id', |
|||
'Journals', |
|||
help='If empty, use all journals, only used for journal entries'), |
|||
'export_filename': fields.char('Export CSV Filename', size=128), |
|||
} |
|||
|
|||
def _get_company_default(self, cr, uid, context=None): |
|||
comp_obj = self.pool['res.company'] |
|||
return comp_obj._company_default_get(cr, uid, 'account.fiscalyear', |
|||
context=context) |
|||
|
|||
def _get_fiscalyear_default(self, cr, uid, context=None): |
|||
fiscalyear_obj = self.pool['account.fiscalyear'] |
|||
context = dict(context, |
|||
company_id=self._get_company_default(cr, uid, context)) |
|||
return fiscalyear_obj.find(cr, uid, dt=None, exception=True, |
|||
context=context) |
|||
|
|||
_defaults = {'company_id': _get_company_default, |
|||
'fiscalyear_id': _get_fiscalyear_default, |
|||
'export_filename': 'account_export.csv'} |
|||
|
|||
def action_manual_export_account(self, cr, uid, ids, context=None): |
|||
this = self.browse(cr, uid, ids)[0] |
|||
rows = self.get_data(cr, uid, ids, "account", context) |
|||
file_data = StringIO() |
|||
try: |
|||
writer = AccountUnicodeWriter(file_data) |
|||
writer.writerows(rows) |
|||
file_value = file_data.getvalue() |
|||
self.write(cr, uid, ids, |
|||
{'data': base64.encodestring(file_value)}, |
|||
context=context) |
|||
finally: |
|||
file_data.close() |
|||
return { |
|||
'type': 'ir.actions.act_window', |
|||
'res_model': 'account.csv.export', |
|||
'view_mode': 'form', |
|||
'view_type': 'form', |
|||
'res_id': this.id, |
|||
'views': [(False, 'form')], |
|||
'target': 'new', |
|||
} |
|||
|
|||
def _get_header_account(self, cr, uid, ids, context=None): |
|||
return [_(u'CODE'), |
|||
_(u'NAME'), |
|||
_(u'DEBIT'), |
|||
_(u'CREDIT'), |
|||
_(u'BALANCE'), |
|||
] |
|||
|
|||
def _get_rows_account(self, cr, uid, ids, |
|||
fiscalyear_id, |
|||
period_range_ids, |
|||
journal_ids, |
|||
context=None): |
|||
""" |
|||
Return list to generate rows of the CSV file |
|||
""" |
|||
cr.execute(""" |
|||
select ac.code,ac.name, |
|||
sum(debit) as sum_debit, |
|||
sum(credit) as sum_credit, |
|||
sum(debit) - sum(credit) as balance |
|||
from account_move_line as aml,account_account as ac |
|||
where aml.account_id = ac.id |
|||
and period_id in %(period_ids)s |
|||
group by ac.id,ac.code,ac.name |
|||
order by ac.code |
|||
""", |
|||
{'fiscalyear_id': fiscalyear_id, |
|||
'period_ids': tuple(period_range_ids)} |
|||
) |
|||
res = cr.fetchall() |
|||
|
|||
rows = [] |
|||
for line in res: |
|||
rows.append(list(line)) |
|||
return rows |
|||
|
|||
def action_manual_export_analytic(self, cr, uid, ids, context=None): |
|||
this = self.browse(cr, uid, ids)[0] |
|||
rows = self.get_data(cr, uid, ids, "analytic", context) |
|||
file_data = StringIO() |
|||
try: |
|||
writer = AccountUnicodeWriter(file_data) |
|||
writer.writerows(rows) |
|||
file_value = file_data.getvalue() |
|||
self.write(cr, uid, ids, |
|||
{'data': base64.encodestring(file_value)}, |
|||
context=context) |
|||
finally: |
|||
file_data.close() |
|||
return { |
|||
'type': 'ir.actions.act_window', |
|||
'res_model': 'account.csv.export', |
|||
'view_mode': 'form', |
|||
'view_type': 'form', |
|||
'res_id': this.id, |
|||
'views': [(False, 'form')], |
|||
'target': 'new', |
|||
} |
|||
|
|||
def _get_header_analytic(self, cr, uid, ids, context=None): |
|||
return [_(u'ANALYTIC CODE'), |
|||
_(u'ANALYTIC NAME'), |
|||
_(u'CODE'), |
|||
_(u'ACCOUNT NAME'), |
|||
_(u'DEBIT'), |
|||
_(u'CREDIT'), |
|||
_(u'BALANCE'), |
|||
] |
|||
|
|||
def _get_rows_analytic(self, cr, uid, ids, |
|||
fiscalyear_id, |
|||
period_range_ids, |
|||
journal_ids, |
|||
context=None): |
|||
""" |
|||
Return list to generate rows of the CSV file |
|||
""" |
|||
cr.execute(""" select aac.code as analytic_code, |
|||
aac.name as analytic_name, |
|||
ac.code,ac.name, |
|||
sum(debit) as sum_debit, |
|||
sum(credit) as sum_credit, |
|||
sum(debit) - sum(credit) as balance |
|||
from account_move_line |
|||
left outer join account_analytic_account as aac |
|||
on (account_move_line.analytic_account_id = aac.id) |
|||
inner join account_account as ac |
|||
on account_move_line.account_id = ac.id |
|||
and account_move_line.period_id in %(period_ids)s |
|||
group by aac.id,aac.code,aac.name,ac.id,ac.code,ac.name |
|||
order by aac.code |
|||
""", |
|||
{'fiscalyear_id': fiscalyear_id, |
|||
'period_ids': tuple(period_range_ids)} |
|||
) |
|||
res = cr.fetchall() |
|||
|
|||
rows = [] |
|||
for line in res: |
|||
rows.append(list(line)) |
|||
return rows |
|||
|
|||
def action_manual_export_journal_entries(self, cr, uid, ids, context=None): |
|||
""" |
|||
Here we use TemporaryFile to avoid full filling the OpenERP worker |
|||
Memory |
|||
We also write the data to the wizard with SQL query as write seems |
|||
to use too much memory as well. |
|||
|
|||
Those improvements permitted to improve the export from a 100k line to |
|||
200k lines |
|||
with default `limit_memory_hard = 805306368` (768MB) with more lines, |
|||
you might encounter a MemoryError when trying to download the file even |
|||
if it has been generated. |
|||
|
|||
To be able to export bigger volume of data, it is advised to set |
|||
limit_memory_hard to 2097152000 (2 GB) to generate the file and let |
|||
OpenERP load it in the wizard when trying to download it. |
|||
|
|||
Tested with up to a generation of 700k entry lines |
|||
""" |
|||
this = self.browse(cr, uid, ids)[0] |
|||
rows = self.get_data(cr, uid, ids, "journal_entries", context) |
|||
with tempfile.TemporaryFile() as file_data: |
|||
writer = AccountUnicodeWriter(file_data) |
|||
writer.writerows(rows) |
|||
with tempfile.TemporaryFile() as base64_data: |
|||
file_data.seek(0) |
|||
base64.encode(file_data, base64_data) |
|||
base64_data.seek(0) |
|||
cr.execute(""" |
|||
UPDATE account_csv_export |
|||
SET data = %s |
|||
WHERE id = %s""", (base64_data.read(), ids[0])) |
|||
return { |
|||
'type': 'ir.actions.act_window', |
|||
'res_model': 'account.csv.export', |
|||
'view_mode': 'form', |
|||
'view_type': 'form', |
|||
'res_id': this.id, |
|||
'views': [(False, 'form')], |
|||
'target': 'new', |
|||
} |
|||
|
|||
def _get_header_journal_entries(self, cr, uid, ids, context=None): |
|||
return [ |
|||
# Standard Sage export fields |
|||
_(u'DATE'), |
|||
_(u'JOURNAL CODE'), |
|||
_(u'ACCOUNT CODE'), |
|||
_(u'PARTNER NAME'), |
|||
_(u'REF'), |
|||
_(u'DESCRIPTION'), |
|||
_(u'DEBIT'), |
|||
_(u'CREDIT'), |
|||
_(u'FULL RECONCILE'), |
|||
_(u'PARTIAL RECONCILE'), |
|||
_(u'ANALYTIC ACCOUNT CODE'), |
|||
|
|||
# Other fields |
|||
_(u'ENTRY NUMBER'), |
|||
_(u'ACCOUNT NAME'), |
|||
_(u'BALANCE'), |
|||
_(u'AMOUNT CURRENCY'), |
|||
_(u'CURRENCY'), |
|||
_(u'ANALYTIC ACCOUNT NAME'), |
|||
_(u'JOURNAL'), |
|||
_(u'MONTH'), |
|||
_(u'FISCAL YEAR'), |
|||
_(u'TAX CODE CODE'), |
|||
_(u'TAX CODE NAME'), |
|||
_(u'TAX AMOUNT'), |
|||
_(u'BANK STATEMENT'), |
|||
] |
|||
|
|||
def _get_rows_journal_entries(self, cr, uid, ids, |
|||
fiscalyear_id, |
|||
period_range_ids, |
|||
journal_ids, |
|||
context=None): |
|||
""" |
|||
Create a generator of rows of the CSV file |
|||
""" |
|||
cr.execute(""" |
|||
SELECT |
|||
account_move_line.date AS date, |
|||
account_journal.name as journal, |
|||
account_account.code AS account_code, |
|||
res_partner.name AS partner_name, |
|||
account_move_line.ref AS ref, |
|||
account_move_line.name AS description, |
|||
account_move_line.debit AS debit, |
|||
account_move_line.credit AS credit, |
|||
account_move_reconcile.name as full_reconcile, |
|||
account_move_line.reconcile_partial_id AS partial_reconcile_id, |
|||
account_analytic_account.code AS analytic_account_code, |
|||
account_move.name AS entry_number, |
|||
account_account.name AS account_name, |
|||
account_move_line.debit - account_move_line.credit AS balance, |
|||
account_move_line.amount_currency AS amount_currency, |
|||
res_currency.name AS currency, |
|||
account_analytic_account.name AS analytic_account_name, |
|||
account_journal.name as journal, |
|||
account_period.code AS month, |
|||
account_fiscalyear.name as fiscal_year, |
|||
account_tax_code.code AS aml_tax_code_code, |
|||
account_tax_code.name AS aml_tax_code_name, |
|||
account_move_line.tax_amount AS aml_tax_amount, |
|||
account_bank_statement.name AS bank_statement |
|||
FROM |
|||
public.account_move_line |
|||
JOIN account_account on |
|||
(account_account.id=account_move_line.account_id) |
|||
JOIN account_period on |
|||
(account_period.id=account_move_line.period_id) |
|||
JOIN account_fiscalyear on |
|||
(account_fiscalyear.id=account_period.fiscalyear_id) |
|||
JOIN account_journal on |
|||
(account_journal.id = account_move_line.journal_id) |
|||
LEFT JOIN res_currency on |
|||
(res_currency.id=account_move_line.currency_id) |
|||
LEFT JOIN account_move_reconcile on |
|||
(account_move_reconcile.id = account_move_line.reconcile_id) |
|||
LEFT JOIN res_partner on |
|||
(res_partner.id=account_move_line.partner_id) |
|||
LEFT JOIN account_move on |
|||
(account_move.id=account_move_line.move_id) |
|||
LEFT JOIN account_tax on |
|||
(account_tax.id=account_move_line.account_tax_id) |
|||
LEFT JOIN account_tax_code on |
|||
(account_tax_code.id=account_move_line.tax_code_id) |
|||
LEFT JOIN account_analytic_account on |
|||
(account_analytic_account.id=account_move_line.analytic_account_id) |
|||
LEFT JOIN account_bank_statement on |
|||
(account_bank_statement.id=account_move_line.statement_id) |
|||
WHERE account_period.id IN %(period_ids)s |
|||
AND account_journal.id IN %(journal_ids)s |
|||
ORDER BY account_move_line.date |
|||
""", |
|||
{'period_ids': tuple( |
|||
period_range_ids), 'journal_ids': tuple(journal_ids)} |
|||
) |
|||
while 1: |
|||
# http://initd.org/psycopg/docs/cursor.html#cursor.fetchmany |
|||
# Set cursor.arraysize to minimize network round trips |
|||
cr.arraysize = 100 |
|||
rows = cr.fetchmany() |
|||
if not rows: |
|||
break |
|||
for row in rows: |
|||
yield row |
|||
|
|||
def get_data(self, cr, uid, ids, result_type, context=None): |
|||
get_header_func = getattr( |
|||
self, ("_get_header_%s" % (result_type)), None) |
|||
get_rows_func = getattr(self, ("_get_rows_%s" % (result_type)), None) |
|||
form = self.browse(cr, uid, ids[0], context=context) |
|||
fiscalyear_id = form.fiscalyear_id.id |
|||
if form.periods: |
|||
period_range_ids = [x.id for x in form.periods] |
|||
else: |
|||
# If not period selected , we take all periods |
|||
p_obj = self.pool.get("account.period") |
|||
period_range_ids = p_obj.search( |
|||
cr, uid, [('fiscalyear_id', '=', fiscalyear_id)], |
|||
context=context) |
|||
journal_ids = None |
|||
if form.journal_ids: |
|||
journal_ids = [x.id for x in form.journal_ids] |
|||
else: |
|||
j_obj = self.pool.get("account.journal") |
|||
journal_ids = j_obj.search(cr, uid, [], context=context) |
|||
rows = itertools.chain((get_header_func(cr, uid, ids, |
|||
context=context),), |
|||
get_rows_func(cr, uid, ids, |
|||
fiscalyear_id, |
|||
period_range_ids, |
|||
journal_ids, |
|||
context=context) |
|||
) |
|||
return rows |
@ -0,0 +1,47 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<openerp> |
|||
<data> |
|||
|
|||
<record id="account_csv_export_view" model="ir.ui.view"> |
|||
<field name="name">Accounting Entries CSV Export</field> |
|||
<field name="model">account.csv.export</field> |
|||
<field name="type">form</field> |
|||
<field name="arch" type="xml"> |
|||
<form string="Accounting CSV Export" version="7.0"> |
|||
<group colspan="4"> |
|||
<field name="company_id" /> |
|||
<field name="fiscalyear_id" domain="[('company_id', '=', company_id)]"/> |
|||
</group> |
|||
<group colspan="4" col="2"> |
|||
<field name="periods" domain="[('fiscalyear_id','=',fiscalyear_id)]"/> |
|||
<field name="journal_ids"/> |
|||
</group> |
|||
<separator string ="Report" colspan="4"/> |
|||
<group colspan="4"> |
|||
<field name="data" filename="export_filename"/> |
|||
</group> |
|||
<footer> |
|||
<button name="action_manual_export_account" string="Trial Balance" type="object" icon="gtk-execute" class="oe_highlight"/> |
|||
<button name="action_manual_export_analytic" string="Analytic Balance (with accounts)" type="object" icon="gtk-execute" class="oe_highlight"/> |
|||
<button name="action_manual_export_journal_entries" string="Journal Entries" type="object" icon="gtk-execute" class="oe_highlight"/> |
|||
or |
|||
<button string="Close" class="oe_link" special="cancel" /> |
|||
</footer> |
|||
|
|||
</form> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="action_account_csv_export" model="ir.actions.act_window"> |
|||
<field name="name">Accounting CSV Export</field> |
|||
<field name="res_model">account.csv.export</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">tree,form</field> |
|||
<field name="view_id" ref="account_csv_export_view"/> |
|||
<field name="context">{}</field> |
|||
<field name="target">new</field> |
|||
</record> |
|||
|
|||
</data> |
|||
</openerp> |
@ -1,157 +0,0 @@ |
|||
========================= |
|||
Account Financial Reports |
|||
========================= |
|||
|
|||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|||
!! This file is generated by oca-gen-addon-readme !! |
|||
!! changes will be overwritten. !! |
|||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|||
|
|||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png |
|||
:target: https://odoo-community.org/page/development-status |
|||
:alt: Beta |
|||
.. |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%2Faccount--financial--reporting-lightgray.png?logo=github |
|||
:target: https://github.com/OCA/account-financial-reporting/tree/13.0/account_financial_report |
|||
:alt: OCA/account-financial-reporting |
|||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png |
|||
:target: https://translation.odoo-community.org/projects/account-financial-reporting-13-0/account-financial-reporting-13-0-account_financial_report |
|||
:alt: Translate me on Weblate |
|||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png |
|||
:target: https://runbot.odoo-community.org/runbot/91/13.0 |
|||
:alt: Try me on Runbot |
|||
|
|||
|badge1| |badge2| |badge3| |badge4| |badge5| |
|||
|
|||
This module adds a set of financial reports. They are accessible under |
|||
Invoicing / Reporting / OCA accounting reports. |
|||
|
|||
- General ledger |
|||
- Trial Balance |
|||
- Open Items |
|||
- Aged Partner Balance |
|||
- VAT Report |
|||
- Journal Ledger |
|||
|
|||
Currently General ledger, Trial Balance and Open Items are fully compatible with a foreign |
|||
currency set up in account in order to display balances. Moreover, any foreign |
|||
currency used in account move lines is properly shown. |
|||
|
|||
In case that in an account has not been configured a second currency foreign |
|||
currency balances are not available. |
|||
|
|||
**Table of contents** |
|||
|
|||
.. contents:: |
|||
:local: |
|||
|
|||
Known issues / Roadmap |
|||
====================== |
|||
|
|||
* 'VAT Report' is valid only for cases where it's met that for each |
|||
Tax defined: all the "Account tags" of all the |
|||
'Repartition for Invoices' or 'Repartition for Credit Notes' |
|||
are different. |
|||
* It would be nice to have in reports a column indicating the |
|||
state of the entries when the option "All Entries" is selected |
|||
in "Target Moves" field in a wizard |
|||
|
|||
Changelog |
|||
========= |
|||
|
|||
11.0.2.5.0 (2019-04-26) |
|||
~~~~~~~~~~~~~~~~~~~~~~~ |
|||
|
|||
* In the Trial Balance you have an option to hide parent hierarchy levels |
|||
|
|||
11.0.2.4.1 (2019-01-08) |
|||
~~~~~~~~~~~~~~~~~~~~~~~ |
|||
|
|||
* Handle better multicompany behaviour |
|||
* Improve how title appears in the reports |
|||
* Improve performance in General Ledger |
|||
|
|||
|
|||
11.0.2.3.1 (2018-11-29) |
|||
~~~~~~~~~~~~~~~~~~~~~~~ |
|||
|
|||
* In the Trial Balance you can apply a filter by hierarchy levels |
|||
* In the General Ledger you can apply a filter by Analytic Tag |
|||
* In the Journal Ledger the field 'Journal' is now optional |
|||
|
|||
Bug Tracker |
|||
=========== |
|||
|
|||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-financial-reporting/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/account-financial-reporting/issues/new?body=module:%20account_financial_report%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 |
|||
~~~~~~~ |
|||
|
|||
* Camptocamp SA |
|||
* initOS GmbH |
|||
* redCOR AG |
|||
* ForgeFlow |
|||
|
|||
Contributors |
|||
~~~~~~~~~~~~ |
|||
|
|||
* Jordi Ballester <jordi.ballester@forgeflow.com> |
|||
* Yannick Vaucher <yannick.vaucher@camptocamp.com> |
|||
* Simone Orsi <simone.orsi@abstract.com> |
|||
* Leonardo Pistone <leonardo.pistone@camptocamp.com> |
|||
* Damien Crier <damien.crier@camptocamp.com> |
|||
* Andrea Stirpe <a.stirpe@onestein.nl> |
|||
* Thomas Rehn <thomas.rehn@initos.com> |
|||
* Andrea Gallina <4everamd@gmail.com> |
|||
* Robert Rottermann <robert@redcor.ch> |
|||
* Ciro Urselli <c.urselli@apuliasoftware.it> |
|||
* Francesco Apruzzese <opencode@e-ware.org> |
|||
* Lorenzo Battistini <https://github.com/eLBati> |
|||
* Julien Coux <julien.coux@camptocamp.com> |
|||
* Akim Juillerat <akim.juillerat@camptocamp.com> |
|||
* Alexis de Lattre <alexis@via.ecp.fr> |
|||
* Mihai Fekete <feketemihai@gmail.com> |
|||
* Miquel Raïch <miquel.raich@forgeflow.com> |
|||
* Joan Sisquella <joan.sisquella@forgeflow.com> |
|||
* `Tecnativa <https://www.tecnativa.com>`__: |
|||
|
|||
* Pedro M. Baeza |
|||
* Sergio Teruel |
|||
* Ernesto Tejeda |
|||
* Alexandre D. Díaz |
|||
|
|||
* Lois Rilo <lois.rilo@forgeflow.com> |
|||
* `Sygel <https://www.sygel.es>`__: |
|||
|
|||
* Harald Panten |
|||
* Valentin Vinagre |
|||
|
|||
Much of the work in this module was done at a sprint in Sorrento, Italy in |
|||
April 2016. |
|||
|
|||
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. |
|||
|
|||
This module is part of the `OCA/account-financial-reporting <https://github.com/OCA/account-financial-reporting/tree/13.0/account_financial_report>`_ project on GitHub. |
|||
|
|||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
@ -1,7 +1,30 @@ |
|||
# Author: Damien Crier |
|||
# Copyright 2016 Camptocamp SA |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
# -*- encoding: utf-8 -*- |
|||
########################################################################### |
|||
# Module Writen to OpenERP, Open Source Management Solution |
|||
# Copyright (C) OpenERP Venezuela (<http://openerp.com.ve>). |
|||
# All Rights Reserved |
|||
# Credits###################################################### |
|||
# Coded by: Humberto Arocha humberto@openerp.com.ve |
|||
# Angelica Barrios angelicaisabelb@gmail.com |
|||
# Jordi Esteve <jesteve@zikzakmedia.com> |
|||
# Planified by: Humberto Arocha |
|||
# Finance by: LUBCAN COL S.A.S http://www.lubcancol.com |
|||
# Audited by: Humberto Arocha humberto@openerp.com.ve |
|||
############################################################################# |
|||
# This program is free software: you can redistribute it and/or modify |
|||
# it under the terms of the GNU General Public License as published by |
|||
# the Free Software Foundation, either version 3 of the License, or |
|||
# (at your option) any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU General Public License |
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
############################################################################## |
|||
|
|||
from . import models |
|||
from . import model |
|||
from . import report |
|||
from . import wizard |
@ -1,48 +0,0 @@ |
|||
# Author: Damien Crier |
|||
# Author: Julien Coux |
|||
# Copyright 2016 Camptocamp SA |
|||
# Copyright 2020 ForgeFlow S.L. (https://www.forgeflow.com) |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
{ |
|||
"name": "Account Financial Reports", |
|||
"version": "13.0.1.8.0", |
|||
"category": "Reporting", |
|||
"summary": "OCA Financial Reports", |
|||
"author": "Camptocamp SA," |
|||
"initOS GmbH," |
|||
"redCOR AG," |
|||
"ForgeFlow," |
|||
"Odoo Community Association (OCA)", |
|||
"website": "https://odoo-community.org/", |
|||
"depends": ["account", "date_range", "report_xlsx"], |
|||
"data": [ |
|||
"wizard/aged_partner_balance_wizard_view.xml", |
|||
"wizard/general_ledger_wizard_view.xml", |
|||
"wizard/journal_ledger_wizard_view.xml", |
|||
"wizard/open_items_wizard_view.xml", |
|||
"wizard/trial_balance_wizard_view.xml", |
|||
"wizard/vat_report_wizard_view.xml", |
|||
"menuitems.xml", |
|||
"reports.xml", |
|||
"report/templates/layouts.xml", |
|||
"report/templates/aged_partner_balance.xml", |
|||
"report/templates/general_ledger.xml", |
|||
"report/templates/journal_ledger.xml", |
|||
"report/templates/open_items.xml", |
|||
"report/templates/trial_balance.xml", |
|||
"report/templates/vat_report.xml", |
|||
"view/account_view.xml", |
|||
"view/report_template.xml", |
|||
"view/report_general_ledger.xml", |
|||
"view/report_journal_ledger.xml", |
|||
"view/report_trial_balance.xml", |
|||
"view/report_open_items.xml", |
|||
"view/report_aged_partner_balance.xml", |
|||
"view/report_vat_report.xml", |
|||
], |
|||
"qweb": ["static/src/xml/report.xml"], |
|||
"installable": True, |
|||
"application": True, |
|||
"auto_install": False, |
|||
"license": "AGPL-3", |
|||
} |
@ -0,0 +1,66 @@ |
|||
# -*- encoding: utf-8 -*- |
|||
########################################################################### |
|||
# Copyright (C) OpenERP Venezuela (<http://openerp.com.ve>). |
|||
# All Rights Reserved |
|||
# Credits###################################################### |
|||
# Coded by: Humberto Arocha humberto@openerp.com.ve |
|||
# Angelica Barrios angelicaisabelb@gmail.com |
|||
# Jordi Esteve <jesteve@zikzakmedia.com> |
|||
# Planified by: Humberto Arocha |
|||
# Finance by: LUBCAN COL S.A.S http://www.lubcancol.com |
|||
# Audited by: Humberto Arocha humberto@openerp.com.ve |
|||
############################################################################# |
|||
# This program is free software: you can redistribute it and/or modify |
|||
# it under the terms of the GNU General Public License as published by |
|||
# the Free Software Foundation, either version 3 of the License, or |
|||
# (at your option) any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU General Public License |
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
############################################################################## |
|||
{ |
|||
"name": "Common financial reports", |
|||
"version": "8.0.2.0.1", |
|||
"author": "Vauxoo,Odoo Community Association (OCA)", |
|||
"website": "http://www.vauxoo.com", |
|||
"license": "GPL-3 or any later version", |
|||
"depends": ["base", |
|||
"account" |
|||
], |
|||
"category": "Accounting", |
|||
"description": """ |
|||
Multiporpuse Accounting report generator. |
|||
========================================= |
|||
|
|||
From the wizard you will be asked to provide information needed to create your |
|||
report. |
|||
|
|||
Not only you can set the option within the wizard you can create your own |
|||
Customized Account Financial Reports, in here, you will be able to create |
|||
Templates for generating Two types of Reports: Balance Sheets and Income |
|||
Statements, incluiding Analytic Ledgers. Besides, you can select within a set |
|||
of choices to get better detailed report, be it that you ask it by one or |
|||
several periods, by months (12 Months + YTD), or by quarters (4QRT's + YTD). |
|||
Even you can get your reports in currencies other than the one set on your |
|||
company. |
|||
|
|||
In the [ Account's Sign on Reports ] Section in the Company will be able to |
|||
set the sign conventions for the Accounts, so that you will be able to see in |
|||
positives Values in your reports for those accounts with Accreditable nature |
|||
where appropriate""", |
|||
"data": [ |
|||
"security/security.xml", |
|||
"security/ir.model.access.csv", |
|||
"view/report.xml", |
|||
"view/wizard.xml", |
|||
"view/company_view.xml", |
|||
"view/account_financial_report_view.xml", |
|||
], |
|||
"active": False, |
|||
'installable': False |
|||
} |
1815
account_financial_report/i18n/account_financial_report.pot
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
2048
account_financial_report/i18n/ar.po
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1867
account_financial_report/i18n/ca.po
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
2180
account_financial_report/i18n/de.po
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
2145
account_financial_report/i18n/es.po
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1873
account_financial_report/i18n/es_AR.po
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,687 @@ |
|||
# Translation of OpenERP Server. |
|||
# This file contains the translation of the following modules: |
|||
# * account_financial_report |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: OpenERP Server 7.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2013-06-17 21:47+0000\n" |
|||
"PO-Revision-Date: 2013-06-17 21:47+0000\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: account_financial_report |
|||
#: view:res.company:0 |
|||
msgid "Reverse sign on Reports for these accounts and children accounts that are within Debitable Accounts" |
|||
msgstr "Invierte el signo en los reportes para estas cuentas y las cuentas hijas que están dentro de las Cuentas Debitables" |
|||
|
|||
#. module: account_financial_report |
|||
#: selection:afr,filter:0 |
|||
#: selection:wizard.report,filter:0 |
|||
msgid "No Filter" |
|||
msgstr "Sin Filtro" |
|||
|
|||
#. module: account_financial_report |
|||
#: selection:afr,display_account:0 |
|||
#: selection:wizard.report,display_account:0 |
|||
msgid "With Balance / Movements" |
|||
msgstr "Con Saldo / Movimientos" |
|||
|
|||
#. module: account_financial_report |
|||
#: model:ir.actions.report.xml,name:account_financial_report.4_col_report |
|||
msgid "Balance 4 Columnas" |
|||
msgstr "Balance 4 Columnas" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:res.company:0 |
|||
msgid "An accreditable account is one which grows in the credit and diminishes in the debit" |
|||
msgstr "Una cuenta acreditable es una que crece por el crédito y disminuye por el débito." |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.1cols:0 |
|||
#: report:afr.4cols:0 |
|||
#: report:afr.analytic.ledger:0 |
|||
msgid "BALANCE" |
|||
msgstr "BALANCE" |
|||
|
|||
#. module: account_financial_report |
|||
#: code:addons/account_financial_report/report/parser.py:85 |
|||
#: selection:afr,inf_type:0 |
|||
#: selection:wizard.report,inf_type:0 |
|||
#, python-format |
|||
msgid "Balance Sheet" |
|||
msgstr "Balance General" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,company_id:0 |
|||
#: field:wizard.report,company_id:0 |
|||
msgid "Company" |
|||
msgstr "Compañía" |
|||
|
|||
#. module: account_financial_report |
|||
#: code:addons/account_financial_report/wizard/wizard.py:150 |
|||
#, python-format |
|||
msgid "Write a Description for your Summary Total" |
|||
msgstr "Escriba una Descripción para el total del Sumario" |
|||
|
|||
#. module: account_financial_report |
|||
#: model:ir.actions.report.xml,name:account_financial_report.5_col_report |
|||
msgid "Balance 5 Columnas" |
|||
msgstr "Balance 5 Columnas" |
|||
|
|||
#. module: account_financial_report |
|||
#: model:ir.actions.report.xml,name:account_financial_report.qtr_col_report |
|||
msgid "Balance QTRs Columnas" |
|||
msgstr "Balance QTRs Columnas" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.5cols:0 |
|||
msgid "INIT. BAL." |
|||
msgstr "BAL. INIC." |
|||
|
|||
#. module: account_financial_report |
|||
#: selection:afr,filter:0 |
|||
#: selection:wizard.report,filter:0 |
|||
msgid "By Date and Period" |
|||
msgstr "Por fecha y período" |
|||
|
|||
#. module: account_financial_report |
|||
#: code:addons/account_financial_report/model/account_financial_report.py:77 |
|||
#, python-format |
|||
msgid "Copy of %s" |
|||
msgstr "Copia de %s" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,account_ids:0 |
|||
#: field:wizard.report,account_list:0 |
|||
msgid "Root accounts" |
|||
msgstr "Cuentas raíces" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.5cols:0 |
|||
#: report:afr.analytic.ledger:0 |
|||
msgid "PERIOD" |
|||
msgstr "PERIODO" |
|||
|
|||
#. module: account_financial_report |
|||
#: selection:afr,display_account:0 |
|||
#: selection:wizard.report,display_account:0 |
|||
msgid "With Balance" |
|||
msgstr "Con Balance" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
msgid "12" |
|||
msgstr "12" |
|||
|
|||
#. module: account_financial_report |
|||
#: selection:afr,filter:0 |
|||
#: selection:wizard.report,filter:0 |
|||
msgid "By Date" |
|||
msgstr "Por Fecha" |
|||
|
|||
#. module: account_financial_report |
|||
#: code:addons/account_financial_report/wizard/wizard.py:242 |
|||
#, python-format |
|||
msgid "La interseccion entre el periodo y fecha es vacio" |
|||
msgstr "La interseccion entre el periodo y fecha es vacio" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:afr:0 |
|||
#: view:wizard.report:0 |
|||
msgid "Company Info" |
|||
msgstr "Información de la Compañía" |
|||
|
|||
#. module: account_financial_report |
|||
#: code:addons/account_financial_report/report/parser.py:344 |
|||
#: code:addons/account_financial_report/wizard/wizard.py:189 |
|||
#: code:addons/account_financial_report/wizard/wizard.py:193 |
|||
#, python-format |
|||
msgid "UserError" |
|||
msgstr "UserError" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.analytic.ledger:0 |
|||
msgid "JOURNAL ENTRY" |
|||
msgstr "ASIENTO DIARIO" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.2cols:0 |
|||
#: report:afr.4cols:0 |
|||
#: report:afr.5cols:0 |
|||
#: report:afr.analytic.ledger:0 |
|||
msgid "CREDIT" |
|||
msgstr "CREDITO" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:wizard.report:0 |
|||
msgid "_Cancel" |
|||
msgstr "_Cancelar" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:res.company:0 |
|||
msgid "Account's Sign on Reports" |
|||
msgstr "Signo de las Cuentas en Reportes" |
|||
|
|||
#. module: account_financial_report |
|||
#: model:ir.actions.report.xml,name:account_financial_report.2_col_report |
|||
msgid "Balance 2 Columnas" |
|||
msgstr "Balance 2 Columnas" |
|||
|
|||
#. module: account_financial_report |
|||
#: selection:afr,columns:0 |
|||
#: selection:wizard.report,columns:0 |
|||
msgid "Debit | Credit" |
|||
msgstr "Débito | Crédito" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:afr:0 |
|||
#: view:wizard.report:0 |
|||
msgid "Please check the [ Account's Sign on Reports ] Section in the Company" |
|||
msgstr "Por Favor, Verifique la Sección [ Signo de las Cuentas en Reportes ] en la Compañía" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
#: report:afr.1cols:0 |
|||
#: report:afr.2cols:0 |
|||
#: report:afr.4cols:0 |
|||
#: report:afr.analytic.ledger:0 |
|||
#: report:afr.qtrcols:0 |
|||
msgid "CODE" |
|||
msgstr "CÓDIGO" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:res.company:0 |
|||
msgid "A debitable account is one which grows in the debit and diminishes in the credit" |
|||
msgstr "Una cuenta debitable es una que crece por el débito y disminuye por el crédito." |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.5cols:0 |
|||
msgid "(Expressed in" |
|||
msgstr "(Expresado en" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.4cols:0 |
|||
#: report:afr.analytic.ledger:0 |
|||
msgid "INITIAL" |
|||
msgstr "INICIAL" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:wizard.report,afr_id:0 |
|||
msgid "Custom Report" |
|||
msgstr "Reporte Personalizado" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,date_from:0 |
|||
#: field:wizard.report,date_from:0 |
|||
msgid "Start date" |
|||
msgstr "Fecha Inicial" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:afr:0 |
|||
#: view:wizard.report:0 |
|||
msgid "Accounts to Include" |
|||
msgstr "Cuentas a incluir" |
|||
|
|||
#. module: account_financial_report |
|||
#: code:addons/account_financial_report/report/parser.py:100 |
|||
#: code:addons/account_financial_report/report/parser.py:109 |
|||
#, python-format |
|||
msgid " to " |
|||
msgstr " hasta " |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
msgid "02" |
|||
msgstr "02" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
msgid "03" |
|||
msgstr "03" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
msgid "01" |
|||
msgstr "01" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
msgid "06" |
|||
msgstr "06" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
msgid "07" |
|||
msgstr "07" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
msgid "04" |
|||
msgstr "04" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
msgid "05" |
|||
msgstr "05" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
msgid "08" |
|||
msgstr "08" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
msgid "09" |
|||
msgstr "09" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:afr:0 |
|||
#: model:ir.ui.menu,name:account_financial_report.account_financial_report_menu |
|||
msgid "Account Financial Report (Templates)" |
|||
msgstr "Reportes Financieros (Plantillas)" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,fiscalyear_id:0 |
|||
#: field:wizard.report,fiscalyear:0 |
|||
msgid "Fiscal year" |
|||
msgstr "Ejercicio Fiscal" |
|||
|
|||
#. module: account_financial_report |
|||
#: model:ir.actions.act_window,help:account_financial_report.account_financial_report_action |
|||
msgid "Create your own Customized Account Financial Reports, in here, you will be able to create Templates for generating Two types of Reports: Balance Sheets and Income Statements, incluiding Analytic Ledgers. Besides, you can select within a set of choices to get better detailed report, be it that you ask it by one or several periods, by months (12 Months + YTD), or by quarters (4QRT's + YTD). Even you can get your reports in currencies other than the one set on your company." |
|||
msgstr "Cree sus propios Reportes Financieros Personalizados, aquí, Vd. podrá se capaz de Diseñar las Plantillas para la generación de Dos Tipos de Reportes: Balances Generales y Estados de Resultados, incluyendo Mayores Analíticos. Además, podrá seleccionar entre un conjunto de opciones para obtener un mejor reporte detallado, sea que lo pida para un período determinado, por meses (12 MESES + YTD) o por trimestres (4to's + YTD). Incluso puede obtener reportes en otras monedas distintas a la establecida en su compañia." |
|||
|
|||
#. module: account_financial_report |
|||
#: field:res.company,credit_account_ids:0 |
|||
msgid "Creditable Accounts" |
|||
msgstr "Cuentas Acreditables" |
|||
|
|||
#. module: account_financial_report |
|||
#: code:addons/account_financial_report/report/parser.py:344 |
|||
#, python-format |
|||
msgid "The Selected Fiscal Year Does not have Regular Periods" |
|||
msgstr "El Ejercicio Fiscal Seleccionado no tiene Períodos Regulares" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
#: report:afr.5cols:0 |
|||
#: report:afr.qtrcols:0 |
|||
msgid "YTD" |
|||
msgstr "YTD" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:afr:0 |
|||
#: view:wizard.report:0 |
|||
msgid "Periods to Include" |
|||
msgstr "Períodos a incluir" |
|||
|
|||
#. module: account_financial_report |
|||
#: selection:afr,display_account:0 |
|||
#: selection:wizard.report,display_account:0 |
|||
msgid "With movements" |
|||
msgstr "Con Movimientos" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,currency_id:0 |
|||
#: field:wizard.report,currency_id:0 |
|||
msgid "Currency" |
|||
msgstr "Moneda" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,display_account:0 |
|||
#: field:wizard.report,display_account:0 |
|||
msgid "Display accounts" |
|||
msgstr "Mostrar cuentas" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,display_account_level:0 |
|||
#: field:wizard.report,display_account_level:0 |
|||
msgid "Up to level" |
|||
msgstr "Hasta nivel" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.analytic.ledger:0 |
|||
msgid "PARTNER" |
|||
msgstr "PARTNER" |
|||
|
|||
#. module: account_financial_report |
|||
#: help:afr,currency_id:0 |
|||
#: help:wizard.report,currency_id:0 |
|||
msgid "Currency at which this report will be expressed. If not selected will be used the one set in the company" |
|||
msgstr "Moneda con la cual este reporte será expresado. Si no se selecciona se usará la que está establecida en la compañía" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
#: report:afr.1cols:0 |
|||
#: report:afr.2cols:0 |
|||
#: report:afr.4cols:0 |
|||
#: report:afr.5cols:0 |
|||
#: report:afr.analytic.ledger:0 |
|||
#: report:afr.qtrcols:0 |
|||
msgid "ACCOUNT" |
|||
msgstr "CUENTA" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.analytic.ledger:0 |
|||
msgid "Pag.:" |
|||
msgstr "Pág.:" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.2cols:0 |
|||
#: report:afr.4cols:0 |
|||
#: report:afr.5cols:0 |
|||
#: report:afr.analytic.ledger:0 |
|||
msgid "DEBIT" |
|||
msgstr "DÉBITO" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,columns:0 |
|||
#: field:wizard.report,columns:0 |
|||
msgid "Columns" |
|||
msgstr "Columnas" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.analytic.ledger:0 |
|||
msgid "REFERENCE" |
|||
msgstr "REFERENCIA" |
|||
|
|||
#. module: account_financial_report |
|||
#: selection:afr,filter:0 |
|||
#: selection:wizard.report,filter:0 |
|||
msgid "By Period" |
|||
msgstr "Por Período" |
|||
|
|||
#. module: account_financial_report |
|||
#: selection:afr,columns:0 |
|||
#: selection:wizard.report,columns:0 |
|||
msgid "4 QTR's | YTD" |
|||
msgstr "4 TRM's | YTD" |
|||
|
|||
#. module: account_financial_report |
|||
#: model:ir.actions.act_window,name:account_financial_report.action_wizard_report |
|||
#: model:ir.ui.menu,name:account_financial_report.menu_wizard_report |
|||
msgid "Account Financial Report (Multireports)" |
|||
msgstr "Reportes Financieros (Multireportes)" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:afr:0 |
|||
#: view:wizard.report:0 |
|||
msgid "Accounts Info" |
|||
msgstr "Información de Cuentas" |
|||
|
|||
#. module: account_financial_report |
|||
#: help:afr,display_account_level:0 |
|||
#: help:wizard.report,display_account_level:0 |
|||
msgid "Display accounts up to this level (0 to show all)" |
|||
msgstr "Se mostrarán las cuentas hasta este nivel (Seleccionar 0 las mostrará todas)" |
|||
|
|||
#. module: account_financial_report |
|||
#: model:ir.model,name:account_financial_report.model_res_company |
|||
msgid "Companies" |
|||
msgstr "Compañías" |
|||
|
|||
#. module: account_financial_report |
|||
#: help:afr,fiscalyear_id:0 |
|||
#: help:wizard.report,fiscalyear:0 |
|||
msgid "Fiscal Year for this report" |
|||
msgstr "Ejercicio Fiscal para este reporte" |
|||
|
|||
#. module: account_financial_report |
|||
#: code:addons/account_financial_report/report/parser.py:87 |
|||
#: selection:afr,inf_type:0 |
|||
#: selection:wizard.report,inf_type:0 |
|||
#, python-format |
|||
msgid "Income Statement" |
|||
msgstr "Estado de Resultados" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
#: report:afr.1cols:0 |
|||
#: report:afr.2cols:0 |
|||
#: report:afr.4cols:0 |
|||
#: report:afr.5cols:0 |
|||
#: report:afr.qtrcols:0 |
|||
msgid "/ Pág.:" |
|||
msgstr "/ Pág.:" |
|||
|
|||
#. module: account_financial_report |
|||
#: model:ir.actions.act_window,name:account_financial_report.account_financial_report_action |
|||
#: model:res.groups,name:account_financial_report.group_afreport |
|||
#: view:wizard.report:0 |
|||
msgid "Account Financial Report" |
|||
msgstr "Reportes Financieros" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
msgid "11" |
|||
msgstr "11" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
msgid "10" |
|||
msgstr "10" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.5cols:0 |
|||
msgid "Code" |
|||
msgstr "Código" |
|||
|
|||
#. module: account_financial_report |
|||
#: model:ir.actions.report.xml,name:account_financial_report.1_col_report |
|||
msgid "Balance 1 Columna" |
|||
msgstr "Balance 1 Columna" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:wizard.report:0 |
|||
msgid "Print" |
|||
msgstr "Imprimir" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,filter:0 |
|||
#: field:wizard.report,filter:0 |
|||
msgid "Date/Period Filter" |
|||
msgstr "Filtro Fecha/Período" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:afr:0 |
|||
#: view:wizard.report:0 |
|||
msgid "FiscalYear Info" |
|||
msgstr "Información del Ejercicio Fiscal" |
|||
|
|||
#. module: account_financial_report |
|||
#: selection:afr,columns:0 |
|||
#: selection:wizard.report,columns:0 |
|||
msgid "Initial | Debit | Credit | YTD" |
|||
msgstr "Inicial | Débito | Crédito | YTD" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,period_ids:0 |
|||
#: field:wizard.report,periods:0 |
|||
msgid "Periods" |
|||
msgstr "Períodos" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.qtrcols:0 |
|||
msgid "Q1" |
|||
msgstr "Q1" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.qtrcols:0 |
|||
msgid "Q3" |
|||
msgstr "Q3" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.qtrcols:0 |
|||
msgid "Q2" |
|||
msgstr "Q2" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.qtrcols:0 |
|||
msgid "Q4" |
|||
msgstr "Q4" |
|||
|
|||
#. module: account_financial_report |
|||
#: help:afr,analytic_ledger:0 |
|||
#: help:wizard.report,analytic_ledger:0 |
|||
msgid "Allows to Generate an Analytic Ledger for accounts with moves. Available when Balance Sheet and 'Initial | Debit | Credit | YTD' are selected" |
|||
msgstr "Permite generar un Mayor Analítico para las cuentas con movimientos. Disponible cuando se selecciona 'Balance General' e 'Inicial | Débito | Crédito | YTD'" |
|||
|
|||
#. module: account_financial_report |
|||
#: help:wizard.report,afr_id:0 |
|||
msgid "If you have already set a Custom Report, Select it Here." |
|||
msgstr "Si ya ha configurado un Reporte Personalizado, Selecciónelo Aquí." |
|||
|
|||
#. module: account_financial_report |
|||
#: selection:afr,columns:0 |
|||
#: selection:wizard.report,columns:0 |
|||
msgid "Initial | Debit | Credit | Period | YTD" |
|||
msgstr "Inicial | Débito | Crédito | Período | YTD" |
|||
|
|||
#. module: account_financial_report |
|||
#: selection:afr,columns:0 |
|||
#: selection:wizard.report,columns:0 |
|||
msgid "End. Balance" |
|||
msgstr "Bal. Final" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.analytic.ledger:0 |
|||
msgid "DATE" |
|||
msgstr "FECHA" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:res.company:0 |
|||
msgid "Keep sign on Reports for these accounts and children accounts that are within Accreditable Accounts" |
|||
msgstr "Mantiene el signo en los reportes para estas cuentas y las cuentas hijas que están dentro de las Cuentas Acreditables" |
|||
|
|||
#. module: account_financial_report |
|||
#: code:addons/account_financial_report/report/parser.py:100 |
|||
#: code:addons/account_financial_report/report/parser.py:109 |
|||
#, python-format |
|||
msgid "From " |
|||
msgstr "Desde " |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,inf_type:0 |
|||
#: field:wizard.report,inf_type:0 |
|||
msgid "Type" |
|||
msgstr "Tipo" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,date_to:0 |
|||
#: field:wizard.report,date_to:0 |
|||
msgid "End date" |
|||
msgstr "Fecha final" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:afr:0 |
|||
#: view:wizard.report:0 |
|||
msgid "Account's Sign Conventions" |
|||
msgstr "Convención de Signos de las Cuentas" |
|||
|
|||
#. module: account_financial_report |
|||
#: model:ir.actions.report.xml,name:account_financial_report.13_col_report |
|||
msgid "Balance 13 Columnas" |
|||
msgstr "Balance 13 Columnas" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:res.company:0 |
|||
msgid "Accreditable Accounts" |
|||
msgstr "Cuentas Acreditables" |
|||
|
|||
#. module: account_financial_report |
|||
#: model:ir.model,name:account_financial_report.model_afr |
|||
msgid "afr" |
|||
msgstr "afr" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,name:0 |
|||
msgid "Name" |
|||
msgstr "Nombre" |
|||
|
|||
#. module: account_financial_report |
|||
#: code:addons/account_financial_report/report/parser.py:83 |
|||
#: field:afr,analytic_ledger:0 |
|||
#: model:ir.actions.report.xml,name:account_financial_report.analytic_ledger_report |
|||
#: field:wizard.report,analytic_ledger:0 |
|||
#, python-format |
|||
msgid "Analytic Ledger" |
|||
msgstr "Mayor Analítico" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:res.company:0 |
|||
#: field:res.company,debit_account_ids:0 |
|||
msgid "Debitable Accounts" |
|||
msgstr "Cuentas Debitables" |
|||
|
|||
#. module: account_financial_report |
|||
#: help:afr,period_ids:0 |
|||
#: help:wizard.report,periods:0 |
|||
msgid "All periods in the fiscal year if empty" |
|||
msgstr "Todos los períodos en el ejercicio fiscal si se deja vacío" |
|||
|
|||
#. module: account_financial_report |
|||
#: code:addons/account_financial_report/wizard/wizard.py:179 |
|||
#: code:addons/account_financial_report/wizard/wizard.py:242 |
|||
#, python-format |
|||
msgid "Error !" |
|||
msgstr "Error !" |
|||
|
|||
#. module: account_financial_report |
|||
#: model:ir.model,name:account_financial_report.model_wizard_report |
|||
msgid "wizard.report" |
|||
msgstr "wizard.report" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,lab_str:0 |
|||
#: field:wizard.report,lab_str:0 |
|||
msgid "Description" |
|||
msgstr "Descripción" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:afr:0 |
|||
#: view:wizard.report:0 |
|||
msgid "Report Info" |
|||
msgstr "Información del Reporte" |
|||
|
|||
#. module: account_financial_report |
|||
#: selection:afr,display_account:0 |
|||
#: selection:wizard.report,display_account:0 |
|||
msgid "All Accounts" |
|||
msgstr "Todas las Cuentas" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,tot_check:0 |
|||
#: field:wizard.report,tot_check:0 |
|||
msgid "Summarize?" |
|||
msgstr "Totalizar?" |
|||
|
|||
#. module: account_financial_report |
|||
#: help:afr,tot_check:0 |
|||
#: help:wizard.report,tot_check:0 |
|||
msgid "Checking will add a new line at the end of the Report which will Summarize Columns in Report" |
|||
msgstr "Seleccionarlo agregará una nueva línea al final del Reporte el cual Totalizará las Columnas en el Reporte" |
|||
|
|||
#. module: account_financial_report |
|||
#: help:afr,lab_str:0 |
|||
#: help:wizard.report,lab_str:0 |
|||
msgid "Description for the Summary" |
|||
msgstr "Descripción para el Total" |
|||
|
|||
#. module: account_financial_report |
|||
#: selection:afr,columns:0 |
|||
#: selection:wizard.report,columns:0 |
|||
msgid "12 Months | YTD" |
|||
msgstr "12 Meses | YTD" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:afr:0 |
|||
#: view:wizard.report:0 |
|||
msgid "Total" |
|||
msgstr "Total" |
|||
|
@ -0,0 +1,687 @@ |
|||
# Translation of OpenERP Server. |
|||
# This file contains the translation of the following modules: |
|||
# * account_financial_report |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: OpenERP Server 7.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2013-06-17 21:47+0000\n" |
|||
"PO-Revision-Date: 2013-06-17 21:47+0000\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: account_financial_report |
|||
#: view:res.company:0 |
|||
msgid "Reverse sign on Reports for these accounts and children accounts that are within Debitable Accounts" |
|||
msgstr "Invierte el signo en los reportes para estas cuentas y las cuentas hijas que están dentro de las Cuentas Debitables" |
|||
|
|||
#. module: account_financial_report |
|||
#: selection:afr,filter:0 |
|||
#: selection:wizard.report,filter:0 |
|||
msgid "No Filter" |
|||
msgstr "Sin Filtro" |
|||
|
|||
#. module: account_financial_report |
|||
#: selection:afr,display_account:0 |
|||
#: selection:wizard.report,display_account:0 |
|||
msgid "With Balance / Movements" |
|||
msgstr "Con Saldo / Movimientos" |
|||
|
|||
#. module: account_financial_report |
|||
#: model:ir.actions.report.xml,name:account_financial_report.4_col_report |
|||
msgid "Balance 4 Columnas" |
|||
msgstr "Balance 4 Columnas" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:res.company:0 |
|||
msgid "An accreditable account is one which grows in the credit and diminishes in the debit" |
|||
msgstr "Una cuenta acreditable es una que crece por el crédito y disminuye por el débito." |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.1cols:0 |
|||
#: report:afr.4cols:0 |
|||
#: report:afr.analytic.ledger:0 |
|||
msgid "BALANCE" |
|||
msgstr "BALANCE" |
|||
|
|||
#. module: account_financial_report |
|||
#: code:addons/account_financial_report/report/parser.py:85 |
|||
#: selection:afr,inf_type:0 |
|||
#: selection:wizard.report,inf_type:0 |
|||
#, python-format |
|||
msgid "Balance Sheet" |
|||
msgstr "Balance General" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,company_id:0 |
|||
#: field:wizard.report,company_id:0 |
|||
msgid "Company" |
|||
msgstr "Compañía" |
|||
|
|||
#. module: account_financial_report |
|||
#: code:addons/account_financial_report/wizard/wizard.py:150 |
|||
#, python-format |
|||
msgid "Write a Description for your Summary Total" |
|||
msgstr "Escriba una Descripción para el total del Sumario" |
|||
|
|||
#. module: account_financial_report |
|||
#: model:ir.actions.report.xml,name:account_financial_report.5_col_report |
|||
msgid "Balance 5 Columnas" |
|||
msgstr "Balance 5 Columnas" |
|||
|
|||
#. module: account_financial_report |
|||
#: model:ir.actions.report.xml,name:account_financial_report.qtr_col_report |
|||
msgid "Balance QTRs Columnas" |
|||
msgstr "Balance QTRs Columnas" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.5cols:0 |
|||
msgid "INIT. BAL." |
|||
msgstr "BAL. INIC." |
|||
|
|||
#. module: account_financial_report |
|||
#: selection:afr,filter:0 |
|||
#: selection:wizard.report,filter:0 |
|||
msgid "By Date and Period" |
|||
msgstr "Por fecha y período" |
|||
|
|||
#. module: account_financial_report |
|||
#: code:addons/account_financial_report/model/account_financial_report.py:77 |
|||
#, python-format |
|||
msgid "Copy of %s" |
|||
msgstr "Copia de %s" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,account_ids:0 |
|||
#: field:wizard.report,account_list:0 |
|||
msgid "Root accounts" |
|||
msgstr "Cuentas raíces" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.5cols:0 |
|||
#: report:afr.analytic.ledger:0 |
|||
msgid "PERIOD" |
|||
msgstr "PERIODO" |
|||
|
|||
#. module: account_financial_report |
|||
#: selection:afr,display_account:0 |
|||
#: selection:wizard.report,display_account:0 |
|||
msgid "With Balance" |
|||
msgstr "Con Balance" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
msgid "12" |
|||
msgstr "12" |
|||
|
|||
#. module: account_financial_report |
|||
#: selection:afr,filter:0 |
|||
#: selection:wizard.report,filter:0 |
|||
msgid "By Date" |
|||
msgstr "Por Fecha" |
|||
|
|||
#. module: account_financial_report |
|||
#: code:addons/account_financial_report/wizard/wizard.py:242 |
|||
#, python-format |
|||
msgid "La interseccion entre el periodo y fecha es vacio" |
|||
msgstr "La interseccion entre el periodo y fecha es vacio" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:afr:0 |
|||
#: view:wizard.report:0 |
|||
msgid "Company Info" |
|||
msgstr "Información de la Compañía" |
|||
|
|||
#. module: account_financial_report |
|||
#: code:addons/account_financial_report/report/parser.py:344 |
|||
#: code:addons/account_financial_report/wizard/wizard.py:189 |
|||
#: code:addons/account_financial_report/wizard/wizard.py:193 |
|||
#, python-format |
|||
msgid "UserError" |
|||
msgstr "UserError" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.analytic.ledger:0 |
|||
msgid "JOURNAL ENTRY" |
|||
msgstr "ASIENTO DIARIO" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.2cols:0 |
|||
#: report:afr.4cols:0 |
|||
#: report:afr.5cols:0 |
|||
#: report:afr.analytic.ledger:0 |
|||
msgid "CREDIT" |
|||
msgstr "CREDITO" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:wizard.report:0 |
|||
msgid "_Cancel" |
|||
msgstr "_Cancelar" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:res.company:0 |
|||
msgid "Account's Sign on Reports" |
|||
msgstr "Signo de las Cuentas en Reportes" |
|||
|
|||
#. module: account_financial_report |
|||
#: model:ir.actions.report.xml,name:account_financial_report.2_col_report |
|||
msgid "Balance 2 Columnas" |
|||
msgstr "Balance 2 Columnas" |
|||
|
|||
#. module: account_financial_report |
|||
#: selection:afr,columns:0 |
|||
#: selection:wizard.report,columns:0 |
|||
msgid "Debit | Credit" |
|||
msgstr "Débito | Crédito" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:afr:0 |
|||
#: view:wizard.report:0 |
|||
msgid "Please check the [ Account's Sign on Reports ] Section in the Company" |
|||
msgstr "Por Favor, Verifique la Sección [ Signo de las Cuentas en Reportes ] en la Compañía" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
#: report:afr.1cols:0 |
|||
#: report:afr.2cols:0 |
|||
#: report:afr.4cols:0 |
|||
#: report:afr.analytic.ledger:0 |
|||
#: report:afr.qtrcols:0 |
|||
msgid "CODE" |
|||
msgstr "CÓDIGO" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:res.company:0 |
|||
msgid "A debitable account is one which grows in the debit and diminishes in the credit" |
|||
msgstr "Una cuenta debitable es una que crece por el débito y disminuye por el crédito." |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.5cols:0 |
|||
msgid "(Expressed in" |
|||
msgstr "(Expresado en" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.4cols:0 |
|||
#: report:afr.analytic.ledger:0 |
|||
msgid "INITIAL" |
|||
msgstr "INICIAL" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:wizard.report,afr_id:0 |
|||
msgid "Custom Report" |
|||
msgstr "Reporte Personalizado" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,date_from:0 |
|||
#: field:wizard.report,date_from:0 |
|||
msgid "Start date" |
|||
msgstr "Fecha Inicial" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:afr:0 |
|||
#: view:wizard.report:0 |
|||
msgid "Accounts to Include" |
|||
msgstr "Cuentas a incluir" |
|||
|
|||
#. module: account_financial_report |
|||
#: code:addons/account_financial_report/report/parser.py:100 |
|||
#: code:addons/account_financial_report/report/parser.py:109 |
|||
#, python-format |
|||
msgid " to " |
|||
msgstr " hasta " |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
msgid "02" |
|||
msgstr "02" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
msgid "03" |
|||
msgstr "03" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
msgid "01" |
|||
msgstr "01" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
msgid "06" |
|||
msgstr "06" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
msgid "07" |
|||
msgstr "07" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
msgid "04" |
|||
msgstr "04" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
msgid "05" |
|||
msgstr "05" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
msgid "08" |
|||
msgstr "08" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
msgid "09" |
|||
msgstr "09" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:afr:0 |
|||
#: model:ir.ui.menu,name:account_financial_report.account_financial_report_menu |
|||
msgid "Account Financial Report (Templates)" |
|||
msgstr "Reportes Financieros (Plantillas)" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,fiscalyear_id:0 |
|||
#: field:wizard.report,fiscalyear:0 |
|||
msgid "Fiscal year" |
|||
msgstr "Ejercicio Fiscal" |
|||
|
|||
#. module: account_financial_report |
|||
#: model:ir.actions.act_window,help:account_financial_report.account_financial_report_action |
|||
msgid "Create your own Customized Account Financial Reports, in here, you will be able to create Templates for generating Two types of Reports: Balance Sheets and Income Statements, incluiding Analytic Ledgers. Besides, you can select within a set of choices to get better detailed report, be it that you ask it by one or several periods, by months (12 Months + YTD), or by quarters (4QRT's + YTD). Even you can get your reports in currencies other than the one set on your company." |
|||
msgstr "Cree sus propios Reportes Financieros Personalizados, aquí, Vd. podrá se capaz de Diseñar las Plantillas para la generación de Dos Tipos de Reportes: Balances Generales y Estados de Resultados, incluyendo Mayores Analíticos. Además, podrá seleccionar entre un conjunto de opciones para obtener un mejor reporte detallado, sea que lo pida para un período determinado, por meses (12 MESES + YTD) o por trimestres (4to's + YTD). Incluso puede obtener reportes en otras monedas distintas a la establecida en su compañia." |
|||
|
|||
#. module: account_financial_report |
|||
#: field:res.company,credit_account_ids:0 |
|||
msgid "Creditable Accounts" |
|||
msgstr "Cuentas Acreditables" |
|||
|
|||
#. module: account_financial_report |
|||
#: code:addons/account_financial_report/report/parser.py:344 |
|||
#, python-format |
|||
msgid "The Selected Fiscal Year Does not have Regular Periods" |
|||
msgstr "El Ejercicio Fiscal Seleccionado no tiene Períodos Regulares" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
#: report:afr.5cols:0 |
|||
#: report:afr.qtrcols:0 |
|||
msgid "YTD" |
|||
msgstr "YTD" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:afr:0 |
|||
#: view:wizard.report:0 |
|||
msgid "Periods to Include" |
|||
msgstr "Períodos a incluir" |
|||
|
|||
#. module: account_financial_report |
|||
#: selection:afr,display_account:0 |
|||
#: selection:wizard.report,display_account:0 |
|||
msgid "With movements" |
|||
msgstr "Con Movimientos" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,currency_id:0 |
|||
#: field:wizard.report,currency_id:0 |
|||
msgid "Currency" |
|||
msgstr "Moneda" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,display_account:0 |
|||
#: field:wizard.report,display_account:0 |
|||
msgid "Display accounts" |
|||
msgstr "Mostrar cuentas" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,display_account_level:0 |
|||
#: field:wizard.report,display_account_level:0 |
|||
msgid "Up to level" |
|||
msgstr "Hasta nivel" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.analytic.ledger:0 |
|||
msgid "PARTNER" |
|||
msgstr "PARTNER" |
|||
|
|||
#. module: account_financial_report |
|||
#: help:afr,currency_id:0 |
|||
#: help:wizard.report,currency_id:0 |
|||
msgid "Currency at which this report will be expressed. If not selected will be used the one set in the company" |
|||
msgstr "Moneda con la cual este reporte será expresado. Si no se selecciona se usará la que está establecida en la compañía" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
#: report:afr.1cols:0 |
|||
#: report:afr.2cols:0 |
|||
#: report:afr.4cols:0 |
|||
#: report:afr.5cols:0 |
|||
#: report:afr.analytic.ledger:0 |
|||
#: report:afr.qtrcols:0 |
|||
msgid "ACCOUNT" |
|||
msgstr "CUENTA" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.analytic.ledger:0 |
|||
msgid "Pag.:" |
|||
msgstr "Pág.:" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.2cols:0 |
|||
#: report:afr.4cols:0 |
|||
#: report:afr.5cols:0 |
|||
#: report:afr.analytic.ledger:0 |
|||
msgid "DEBIT" |
|||
msgstr "DÉBITO" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,columns:0 |
|||
#: field:wizard.report,columns:0 |
|||
msgid "Columns" |
|||
msgstr "Columnas" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.analytic.ledger:0 |
|||
msgid "REFERENCE" |
|||
msgstr "REFERENCIA" |
|||
|
|||
#. module: account_financial_report |
|||
#: selection:afr,filter:0 |
|||
#: selection:wizard.report,filter:0 |
|||
msgid "By Period" |
|||
msgstr "Por Período" |
|||
|
|||
#. module: account_financial_report |
|||
#: selection:afr,columns:0 |
|||
#: selection:wizard.report,columns:0 |
|||
msgid "4 QTR's | YTD" |
|||
msgstr "4 TRM's | YTD" |
|||
|
|||
#. module: account_financial_report |
|||
#: model:ir.actions.act_window,name:account_financial_report.action_wizard_report |
|||
#: model:ir.ui.menu,name:account_financial_report.menu_wizard_report |
|||
msgid "Account Financial Report (Multireports)" |
|||
msgstr "Reportes Financieros (Multireportes)" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:afr:0 |
|||
#: view:wizard.report:0 |
|||
msgid "Accounts Info" |
|||
msgstr "Información de Cuentas" |
|||
|
|||
#. module: account_financial_report |
|||
#: help:afr,display_account_level:0 |
|||
#: help:wizard.report,display_account_level:0 |
|||
msgid "Display accounts up to this level (0 to show all)" |
|||
msgstr "Se mostrarán las cuentas hasta este nivel (Seleccionar 0 las mostrará todas)" |
|||
|
|||
#. module: account_financial_report |
|||
#: model:ir.model,name:account_financial_report.model_res_company |
|||
msgid "Companies" |
|||
msgstr "Compañías" |
|||
|
|||
#. module: account_financial_report |
|||
#: help:afr,fiscalyear_id:0 |
|||
#: help:wizard.report,fiscalyear:0 |
|||
msgid "Fiscal Year for this report" |
|||
msgstr "Ejercicio Fiscal para este reporte" |
|||
|
|||
#. module: account_financial_report |
|||
#: code:addons/account_financial_report/report/parser.py:87 |
|||
#: selection:afr,inf_type:0 |
|||
#: selection:wizard.report,inf_type:0 |
|||
#, python-format |
|||
msgid "Income Statement" |
|||
msgstr "Estado de Resultados" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
#: report:afr.1cols:0 |
|||
#: report:afr.2cols:0 |
|||
#: report:afr.4cols:0 |
|||
#: report:afr.5cols:0 |
|||
#: report:afr.qtrcols:0 |
|||
msgid "/ Pág.:" |
|||
msgstr "/ Pág.:" |
|||
|
|||
#. module: account_financial_report |
|||
#: model:ir.actions.act_window,name:account_financial_report.account_financial_report_action |
|||
#: model:res.groups,name:account_financial_report.group_afreport |
|||
#: view:wizard.report:0 |
|||
msgid "Account Financial Report" |
|||
msgstr "Reportes Financieros" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
msgid "11" |
|||
msgstr "11" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.13cols:0 |
|||
msgid "10" |
|||
msgstr "10" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.5cols:0 |
|||
msgid "Code" |
|||
msgstr "Código" |
|||
|
|||
#. module: account_financial_report |
|||
#: model:ir.actions.report.xml,name:account_financial_report.1_col_report |
|||
msgid "Balance 1 Columna" |
|||
msgstr "Balance 1 Columna" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:wizard.report:0 |
|||
msgid "Print" |
|||
msgstr "Imprimir" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,filter:0 |
|||
#: field:wizard.report,filter:0 |
|||
msgid "Date/Period Filter" |
|||
msgstr "Filtro Fecha/Período" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:afr:0 |
|||
#: view:wizard.report:0 |
|||
msgid "FiscalYear Info" |
|||
msgstr "Información del Ejercicio Fiscal" |
|||
|
|||
#. module: account_financial_report |
|||
#: selection:afr,columns:0 |
|||
#: selection:wizard.report,columns:0 |
|||
msgid "Initial | Debit | Credit | YTD" |
|||
msgstr "Inicial | Débito | Crédito | YTD" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,period_ids:0 |
|||
#: field:wizard.report,periods:0 |
|||
msgid "Periods" |
|||
msgstr "Períodos" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.qtrcols:0 |
|||
msgid "Q1" |
|||
msgstr "Q1" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.qtrcols:0 |
|||
msgid "Q3" |
|||
msgstr "Q3" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.qtrcols:0 |
|||
msgid "Q2" |
|||
msgstr "Q2" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.qtrcols:0 |
|||
msgid "Q4" |
|||
msgstr "Q4" |
|||
|
|||
#. module: account_financial_report |
|||
#: help:afr,analytic_ledger:0 |
|||
#: help:wizard.report,analytic_ledger:0 |
|||
msgid "Allows to Generate an Analytic Ledger for accounts with moves. Available when Balance Sheet and 'Initial | Debit | Credit | YTD' are selected" |
|||
msgstr "Permite generar un Mayor Analítico para las cuentas con movimientos. Disponible cuando se selecciona 'Balance General' e 'Inicial | Débito | Crédito | YTD'" |
|||
|
|||
#. module: account_financial_report |
|||
#: help:wizard.report,afr_id:0 |
|||
msgid "If you have already set a Custom Report, Select it Here." |
|||
msgstr "Si ya ha configurado un Reporte Personalizado, Selecciónelo Aquí." |
|||
|
|||
#. module: account_financial_report |
|||
#: selection:afr,columns:0 |
|||
#: selection:wizard.report,columns:0 |
|||
msgid "Initial | Debit | Credit | Period | YTD" |
|||
msgstr "Inicial | Débito | Crédito | Período | YTD" |
|||
|
|||
#. module: account_financial_report |
|||
#: selection:afr,columns:0 |
|||
#: selection:wizard.report,columns:0 |
|||
msgid "End. Balance" |
|||
msgstr "Bal. Final" |
|||
|
|||
#. module: account_financial_report |
|||
#: report:afr.analytic.ledger:0 |
|||
msgid "DATE" |
|||
msgstr "FECHA" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:res.company:0 |
|||
msgid "Keep sign on Reports for these accounts and children accounts that are within Accreditable Accounts" |
|||
msgstr "Mantiene el signo en los reportes para estas cuentas y las cuentas hijas que están dentro de las Cuentas Acreditables" |
|||
|
|||
#. module: account_financial_report |
|||
#: code:addons/account_financial_report/report/parser.py:100 |
|||
#: code:addons/account_financial_report/report/parser.py:109 |
|||
#, python-format |
|||
msgid "From " |
|||
msgstr "Desde " |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,inf_type:0 |
|||
#: field:wizard.report,inf_type:0 |
|||
msgid "Type" |
|||
msgstr "Tipo" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,date_to:0 |
|||
#: field:wizard.report,date_to:0 |
|||
msgid "End date" |
|||
msgstr "Fecha final" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:afr:0 |
|||
#: view:wizard.report:0 |
|||
msgid "Account's Sign Conventions" |
|||
msgstr "Convención de Signos de las Cuentas" |
|||
|
|||
#. module: account_financial_report |
|||
#: model:ir.actions.report.xml,name:account_financial_report.13_col_report |
|||
msgid "Balance 13 Columnas" |
|||
msgstr "Balance 13 Columnas" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:res.company:0 |
|||
msgid "Accreditable Accounts" |
|||
msgstr "Cuentas Acreditables" |
|||
|
|||
#. module: account_financial_report |
|||
#: model:ir.model,name:account_financial_report.model_afr |
|||
msgid "afr" |
|||
msgstr "afr" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,name:0 |
|||
msgid "Name" |
|||
msgstr "Nombre" |
|||
|
|||
#. module: account_financial_report |
|||
#: code:addons/account_financial_report/report/parser.py:83 |
|||
#: field:afr,analytic_ledger:0 |
|||
#: model:ir.actions.report.xml,name:account_financial_report.analytic_ledger_report |
|||
#: field:wizard.report,analytic_ledger:0 |
|||
#, python-format |
|||
msgid "Analytic Ledger" |
|||
msgstr "Mayor Analítico" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:res.company:0 |
|||
#: field:res.company,debit_account_ids:0 |
|||
msgid "Debitable Accounts" |
|||
msgstr "Cuentas Debitables" |
|||
|
|||
#. module: account_financial_report |
|||
#: help:afr,period_ids:0 |
|||
#: help:wizard.report,periods:0 |
|||
msgid "All periods in the fiscal year if empty" |
|||
msgstr "Todos los períodos en el ejercicio fiscal si se deja vacío" |
|||
|
|||
#. module: account_financial_report |
|||
#: code:addons/account_financial_report/wizard/wizard.py:179 |
|||
#: code:addons/account_financial_report/wizard/wizard.py:242 |
|||
#, python-format |
|||
msgid "Error !" |
|||
msgstr "Error !" |
|||
|
|||
#. module: account_financial_report |
|||
#: model:ir.model,name:account_financial_report.model_wizard_report |
|||
msgid "wizard.report" |
|||
msgstr "wizard.report" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,lab_str:0 |
|||
#: field:wizard.report,lab_str:0 |
|||
msgid "Description" |
|||
msgstr "Descripción" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:afr:0 |
|||
#: view:wizard.report:0 |
|||
msgid "Report Info" |
|||
msgstr "Información del Reporte" |
|||
|
|||
#. module: account_financial_report |
|||
#: selection:afr,display_account:0 |
|||
#: selection:wizard.report,display_account:0 |
|||
msgid "All Accounts" |
|||
msgstr "Todas las Cuentas" |
|||
|
|||
#. module: account_financial_report |
|||
#: field:afr,tot_check:0 |
|||
#: field:wizard.report,tot_check:0 |
|||
msgid "Summarize?" |
|||
msgstr "Totalizar?" |
|||
|
|||
#. module: account_financial_report |
|||
#: help:afr,tot_check:0 |
|||
#: help:wizard.report,tot_check:0 |
|||
msgid "Checking will add a new line at the end of the Report which will Summarize Columns in Report" |
|||
msgstr "Seleccionarlo agregará una nueva línea al final del Reporte el cual Totalizará las Columnas en el Reporte" |
|||
|
|||
#. module: account_financial_report |
|||
#: help:afr,lab_str:0 |
|||
#: help:wizard.report,lab_str:0 |
|||
msgid "Description for the Summary" |
|||
msgstr "Descripción para el Total" |
|||
|
|||
#. module: account_financial_report |
|||
#: selection:afr,columns:0 |
|||
#: selection:wizard.report,columns:0 |
|||
msgid "12 Months | YTD" |
|||
msgstr "12 Meses | YTD" |
|||
|
|||
#. module: account_financial_report |
|||
#: view:afr:0 |
|||
#: view:wizard.report:0 |
|||
msgid "Total" |
|||
msgstr "Total" |
|||
|
2117
account_financial_report/i18n/fr.po
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
2100
account_financial_report/i18n/fr_CH.po
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1799
account_financial_report/i18n/hr.po
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1838
account_financial_report/i18n/hr_HR.po
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1976
account_financial_report/i18n/it.po
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1813
account_financial_report/i18n/ja.po
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
2184
account_financial_report/i18n/nl.po
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1826
account_financial_report/i18n/nl_NL.po
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1836
account_financial_report/i18n/pt.po
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
2233
account_financial_report/i18n/pt_BR.po
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
2014
account_financial_report/i18n/ro.po
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1,45 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8" ?> |
|||
<odoo> |
|||
<menuitem |
|||
parent="account.menu_finance_reports" |
|||
id="menu_oca_reports" |
|||
name="OCA accounting reports" |
|||
groups="account.group_account_manager,account.group_account_user" |
|||
/> |
|||
<menuitem |
|||
parent="menu_oca_reports" |
|||
action="action_general_ledger_wizard" |
|||
id="menu_general_ledger_wizard" |
|||
sequence="10" |
|||
/> |
|||
<menuitem |
|||
parent="menu_oca_reports" |
|||
action="action_journal_ledger_wizard" |
|||
id="menu_journal_ledger_wizard" |
|||
sequence="15" |
|||
/> |
|||
<menuitem |
|||
parent="menu_oca_reports" |
|||
action="action_trial_balance_wizard" |
|||
id="menu_trial_balance_wizard" |
|||
sequence="20" |
|||
/> |
|||
<menuitem |
|||
parent="menu_oca_reports" |
|||
action="action_open_items_wizard" |
|||
id="menu_open_items_wizard" |
|||
sequence="30" |
|||
/> |
|||
<menuitem |
|||
parent="menu_oca_reports" |
|||
action="action_aged_partner_balance_wizard" |
|||
id="menu_aged_partner_balance_wizard" |
|||
sequence="40" |
|||
/> |
|||
<menuitem |
|||
parent="menu_oca_reports" |
|||
action="action_vat_report_wizard" |
|||
id="menu_vat_report_wizard" |
|||
sequence="50" |
|||
/> |
|||
</odoo> |
@ -0,0 +1,27 @@ |
|||
#!/usr/bin/python |
|||
# -*- encoding: utf-8 -*- |
|||
########################################################################### |
|||
# Module Writen to OpenERP, Open Source Management Solution |
|||
# Copyright (C) OpenERP Venezuela (<http://openerp.com.ve>). |
|||
# All Rights Reserved |
|||
# Credits###################################################### |
|||
# Coded by: Humberto Arocha <hbto@vauxoo.com> |
|||
# Planified by: Rafael Silva <rsilvam@vauxoo.com> |
|||
# Audited by: Nhomar Hernandez <nhomar@vauxoo.com> |
|||
############################################################################# |
|||
# 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/>. |
|||
########################################################################## |
|||
|
|||
from . import account_financial_report |
|||
from . import res_company |
@ -0,0 +1,216 @@ |
|||
# -*- encoding: utf-8 -*- |
|||
########################################################################### |
|||
# Module Writen to OpenERP, Open Source Management Solution |
|||
# Copyright (C) OpenERP Venezuela (<http://openerp.com.ve>). |
|||
# All Rights Reserved |
|||
# Credits###################################################### |
|||
# Coded by: Humberto Arocha humberto@openerp.com.ve |
|||
# Angelica Barrios angelicaisabelb@gmail.com |
|||
# Jordi Esteve <jesteve@zikzakmedia.com> |
|||
# Javier Duran <javieredm@gmail.com> |
|||
# Planified by: Humberto Arocha |
|||
# Finance by: LUBCAN COL S.A.S http://www.lubcancol.com |
|||
# Audited by: Humberto Arocha humberto@openerp.com.ve |
|||
############################################################################# |
|||
# This program is free software: you can redistribute it and/or modify |
|||
# it under the terms of the GNU General Public License as published by |
|||
# the Free Software Foundation, either version 3 of the License, or |
|||
# (at your option) any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU General Public License |
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
############################################################################## |
|||
|
|||
from openerp.osv import osv, fields |
|||
import time |
|||
from openerp.tools.translate import _ |
|||
|
|||
|
|||
class account_financial_report(osv.osv): |
|||
_name = "afr" |
|||
|
|||
_columns = { |
|||
'name': fields.char('Name', size=128, required=True), |
|||
'company_id': fields.many2one('res.company', 'Company', required=True), |
|||
'currency_id': fields.many2one('res.currency', 'Currency', |
|||
help="Currency at which this report \ |
|||
will be expressed. If not selected \ |
|||
will be used the one set in the \ |
|||
company"), |
|||
'inf_type': fields.selection([('BS', 'Balance Sheet'), |
|||
('IS', 'Income Statement')], |
|||
'Type', |
|||
required=True), |
|||
'columns': fields.selection( |
|||
[('one', 'End. Balance'), |
|||
('two', 'Debit | Credit'), |
|||
('four', 'Initial | Debit | Credit | YTD'), |
|||
('five', 'Initial | Debit | Credit | Period | YTD'), |
|||
('qtr', "4 QTR's | YTD"), |
|||
('thirteen', '12 Months | YTD')], 'Columns', required=True), |
|||
'display_account': fields.selection( |
|||
[('all', 'All Accounts'), |
|||
('bal', 'With Balance'), |
|||
('mov', 'With movements'), |
|||
('bal_mov', 'With Balance / Movements')], 'Display accounts'), |
|||
'display_account_level': fields.integer('Up to level', |
|||
help='Display accounts up to \ |
|||
this level (0 to show all)'), |
|||
'account_ids': fields.many2many('account.account', 'afr_account_rel', |
|||
'afr_id', 'account_id', |
|||
'Root accounts', required=True), |
|||
'fiscalyear_id': fields.many2one('account.fiscalyear', 'Fiscal year', |
|||
help='Fiscal Year for this report', |
|||
required=True), |
|||
'period_ids': fields.many2many( |
|||
'account.period', 'afr_period_rel', 'afr_id', 'period_id', |
|||
'Periods', help='All periods in the fiscal year if empty'), |
|||
|
|||
'analytic_ledger': fields.boolean( |
|||
'Analytic Ledger', |
|||
help="Allows to Generate an Analytic Ledger for accounts with \ |
|||
moves. Available when Balance Sheet and 'Initial | Debit \ |
|||
| Credit | YTD' are selected"), |
|||
'journal_ledger': fields.boolean( |
|||
'journal Ledger', |
|||
help="Allows to Generate an journal Ledger for accounts with \ |
|||
moves. Available when Balance Sheet and 'Initial | Debit | \ |
|||
Credit | YTD' are selected"), |
|||
'partner_balance': fields.boolean( |
|||
'Partner Balance', |
|||
help="Allows to Generate a Partner Balance for accounts with \ |
|||
moves. Available when Balance Sheet and 'Initial | Debit | \ |
|||
Credit | YTD' are selected"), |
|||
'tot_check': fields.boolean( |
|||
'Summarize?', |
|||
help='Checking will add a new line at the end of the Report which \ |
|||
will Summarize Columns in Report'), |
|||
'lab_str': fields.char('Description', |
|||
help='Description for the Summary', |
|||
size=128), |
|||
'target_move': fields.selection( |
|||
[('posted', 'All Posted Entries'), |
|||
('all', 'All Entries'), ], |
|||
'Entries to Include', required=True, |
|||
help='Print All Accounting Entries or just Posted \ |
|||
Accounting Entries'), |
|||
|
|||
# ~ Deprecated fields |
|||
'filter': fields.selection([('bydate', 'By Date'), |
|||
('byperiod', 'By Period'), |
|||
('all', 'By Date and Period'), |
|||
('none', 'No Filter')], |
|||
'Date/Period Filter'), |
|||
'date_to': fields.date('End date'), |
|||
'date_from': fields.date('Start date'), |
|||
} |
|||
|
|||
_defaults = { |
|||
'display_account_level': lambda *a: 0, |
|||
'inf_type': lambda *a: 'BS', |
|||
'company_id': lambda self, cr, uid, c: |
|||
self.pool.get( |
|||
'res.company')._company_default_get( |
|||
cr, |
|||
uid, |
|||
'account.invoice', |
|||
context=c), |
|||
'fiscalyear_id': lambda self, cr, uid, c: |
|||
self.pool.get('account.fiscalyear').find(cr, uid), |
|||
'display_account': lambda *a: 'bal_mov', |
|||
'columns': lambda *a: 'five', |
|||
|
|||
'date_from': lambda *a: time.strftime('%Y-%m-%d'), |
|||
'date_to': lambda *a: time.strftime('%Y-%m-%d'), |
|||
'filter': lambda *a: 'byperiod', |
|||
'target_move': 'posted', |
|||
} |
|||
|
|||
def copy(self, cr, uid, id, defaults, context=None): |
|||
if context is None: |
|||
context = {} |
|||
previous_name = self.browse(cr, uid, id, context=context).name |
|||
new_name = _('Copy of %s') % previous_name |
|||
lst = self.search(cr, uid, [( |
|||
'name', 'like', new_name)], context=context) |
|||
if lst: |
|||
new_name = '%s (%s)' % (new_name, len(lst) + 1) |
|||
defaults['name'] = new_name |
|||
return ( |
|||
super( |
|||
account_financial_report, |
|||
self).copy( |
|||
cr, |
|||
uid, |
|||
id, |
|||
defaults, |
|||
context=context) |
|||
) |
|||
|
|||
def onchange_inf_type(self, cr, uid, ids, inf_type, context=None): |
|||
if context is None: |
|||
context = {} |
|||
res = {'value': {}} |
|||
|
|||
if inf_type != 'BS': |
|||
res['value'].update({'analytic_ledger': False}) |
|||
|
|||
return res |
|||
|
|||
def onchange_columns(self, cr, uid, ids, columns, |
|||
fiscalyear_id, period_ids, context=None): |
|||
if context is None: |
|||
context = {} |
|||
res = {'value': {}} |
|||
|
|||
if columns != 'four': |
|||
res['value'].update({'analytic_ledger': False}) |
|||
|
|||
if columns in ('qtr', 'thirteen'): |
|||
p_obj = self.pool.get("account.period") |
|||
period_ids = p_obj.search(cr, uid, |
|||
[('fiscalyear_id', '=', fiscalyear_id), |
|||
('special', '=', False)], |
|||
context=context) |
|||
res['value'].update({'period_ids': period_ids}) |
|||
else: |
|||
res['value'].update({'period_ids': []}) |
|||
return res |
|||
|
|||
def onchange_analytic_ledger( |
|||
self, cr, uid, ids, company_id, analytic_ledger, context=None): |
|||
if context is None: |
|||
context = {} |
|||
context['company_id'] = company_id |
|||
res = {'value': {}} |
|||
cur_id = self.pool.get('res.company').browse( |
|||
cr, uid, company_id, context=context).currency_id.id |
|||
res['value'].update({'currency_id': cur_id}) |
|||
return res |
|||
|
|||
def onchange_company_id(self, cr, uid, ids, company_id, context=None): |
|||
if context is None: |
|||
context = {} |
|||
context['company_id'] = company_id |
|||
res = {'value': {}} |
|||
|
|||
if not company_id: |
|||
return res |
|||
|
|||
cur_id = self.pool.get('res.company').browse( |
|||
cr, uid, company_id, context=context).currency_id.id |
|||
fy_id = self.pool.get('account.fiscalyear').find( |
|||
cr, uid, context=context) |
|||
res['value'].update({'fiscalyear_id': fy_id}) |
|||
res['value'].update({'currency_id': cur_id}) |
|||
res['value'].update({'account_ids': []}) |
|||
res['value'].update({'period_ids': []}) |
|||
return res |
|||
|
|||
|
|||
account_financial_report() |
@ -0,0 +1,40 @@ |
|||
#!/usr/bin/python |
|||
# -*- encoding: utf-8 -*- |
|||
########################################################################### |
|||
# Module Writen to OpenERP, Open Source Management Solution |
|||
# Copyright (C) OpenERP Venezuela (<http://openerp.com.ve>). |
|||
# All Rights Reserved |
|||
# Credits###################################################### |
|||
# Coded by: Humberto Arocha <hbto@vauxoo.com> |
|||
# Planified by: Rafael Silva <rsilvam@vauxoo.com> |
|||
# Audited by: Nhomar Hernandez <nhomar@vauxoo.com> |
|||
############################################################################# |
|||
# 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/>. |
|||
########################################################################## |
|||
|
|||
from openerp.osv import orm, fields |
|||
|
|||
|
|||
class res_company(orm.Model): |
|||
_inherit = 'res.company' |
|||
_columns = { |
|||
'credit_account_ids': fields.many2many('account.account', |
|||
'credit_account_company_rel', |
|||
'company_id', 'account_id', |
|||
'Creditable Accounts'), |
|||
'debit_account_ids': fields.many2many('account.account', |
|||
'debit_account_company_rel', |
|||
'company_id', 'account_id', |
|||
'Debitable Accounts'), |
|||
} |
@ -1,4 +0,0 @@ |
|||
from . import account |
|||
from . import account_group |
|||
from . import account_move_line |
|||
from . import ir_actions_report |
@ -1,14 +0,0 @@ |
|||
# © 2011 Guewen Baconnier (Camptocamp) |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).- |
|||
from odoo import fields, models |
|||
|
|||
|
|||
class AccountAccount(models.Model): |
|||
_inherit = "account.account" |
|||
|
|||
centralized = fields.Boolean( |
|||
"Centralized", |
|||
help="If flagged, no details will be displayed in " |
|||
"the General Ledger report (the webkit one only), " |
|||
"only centralized amounts per period.", |
|||
) |
@ -1,65 +0,0 @@ |
|||
# © 2018 Forest and Biomass Romania SA |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
|
|||
from odoo import api, fields, models |
|||
|
|||
|
|||
class AccountGroup(models.Model): |
|||
_inherit = "account.group" |
|||
|
|||
group_child_ids = fields.One2many( |
|||
comodel_name="account.group", inverse_name="parent_id", string="Child Groups" |
|||
) |
|||
level = fields.Integer(string="Level", compute="_compute_level", store=True) |
|||
account_ids = fields.One2many( |
|||
comodel_name="account.account", inverse_name="group_id", string="Accounts" |
|||
) |
|||
compute_account_ids = fields.Many2many( |
|||
"account.account", |
|||
compute="_compute_group_accounts", |
|||
string="Compute accounts", |
|||
store=True, |
|||
) |
|||
complete_name = fields.Char("Full Name", compute="_compute_complete_name") |
|||
complete_code = fields.Char("Full Code", compute="_compute_complete_code") |
|||
|
|||
@api.depends("name", "parent_id.complete_name") |
|||
def _compute_complete_name(self): |
|||
""" Forms complete name of location from parent location to child location. """ |
|||
if self.parent_id.complete_name: |
|||
self.complete_name = "{}/{}".format(self.parent_id.complete_name, self.name) |
|||
else: |
|||
self.complete_name = self.name |
|||
|
|||
@api.depends("code_prefix", "parent_id.complete_code") |
|||
def _compute_complete_code(self): |
|||
""" Forms complete code of location from parent location to child location. """ |
|||
if self.parent_id.complete_code: |
|||
self.complete_code = "{}/{}".format( |
|||
self.parent_id.complete_code, self.code_prefix |
|||
) |
|||
else: |
|||
self.complete_code = self.code_prefix |
|||
|
|||
@api.depends("parent_id", "parent_id.level") |
|||
def _compute_level(self): |
|||
for group in self: |
|||
if not group.parent_id: |
|||
group.level = 0 |
|||
else: |
|||
group.level = group.parent_id.level + 1 |
|||
|
|||
@api.depends( |
|||
"code_prefix", |
|||
"account_ids", |
|||
"account_ids.code", |
|||
"group_child_ids", |
|||
"group_child_ids.account_ids.code", |
|||
) |
|||
def _compute_group_accounts(self): |
|||
account_obj = self.env["account.account"] |
|||
accounts = account_obj.search([]) |
|||
for group in self: |
|||
prefix = group.code_prefix if group.code_prefix else group.name |
|||
gr_acc = accounts.filtered(lambda a: a.code.startswith(prefix)).ids |
|||
group.compute_account_ids = [(6, 0, gr_acc)] |
@ -1,40 +0,0 @@ |
|||
# Copyright 2019 ACSONE SA/NV (<http://acsone.eu>) |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).- |
|||
from odoo import api, models |
|||
|
|||
|
|||
class AccountMoveLine(models.Model): |
|||
_inherit = "account.move.line" |
|||
|
|||
def init(self): |
|||
""" |
|||
The join between accounts_partners subquery and account_move_line |
|||
can be heavy to compute on big databases. |
|||
Join sample: |
|||
JOIN |
|||
account_move_line ml |
|||
ON ap.account_id = ml.account_id |
|||
AND ml.date < '2018-12-30' |
|||
AND ap.partner_id = ml.partner_id |
|||
AND ap.include_initial_balance = TRUE |
|||
By adding the following index, performances are strongly increased. |
|||
:return: |
|||
""" |
|||
self._cr.execute( |
|||
"SELECT indexname FROM pg_indexes WHERE indexname = " "%s", |
|||
("account_move_line_account_id_partner_id_index",), |
|||
) |
|||
if not self._cr.fetchone(): |
|||
self._cr.execute( |
|||
""" |
|||
CREATE INDEX account_move_line_account_id_partner_id_index |
|||
ON account_move_line (account_id, partner_id)""" |
|||
) |
|||
|
|||
@api.model |
|||
def search_count(self, args): |
|||
# In Big DataBase every time you change the domain widget this method |
|||
# takes a lot of time. This improves performance |
|||
if self.env.context.get("skip_search_count"): |
|||
return 0 |
|||
return super(AccountMoveLine, self).search_count(args) |
@ -1,25 +0,0 @@ |
|||
# Copyright 2020 Onestein (<https://www.onestein.eu>) |
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). |
|||
|
|||
from odoo import api, models |
|||
|
|||
|
|||
class IrActionsReport(models.Model): |
|||
_inherit = "ir.actions.report" |
|||
|
|||
@api.model |
|||
def _prepare_account_financial_report_context(self, data): |
|||
lang = data and data.get("account_financial_report_lang") or "" |
|||
return dict(self.env.context or {}, lang=lang) if lang else False |
|||
|
|||
@api.model |
|||
def render_qweb_html(self, docids, data=None): |
|||
context = self._prepare_account_financial_report_context(data) |
|||
obj = self.with_context(context) if context else self |
|||
return super(IrActionsReport, obj).render_qweb_html(docids, data) |
|||
|
|||
@api.model |
|||
def render_xlsx(self, docids, data): |
|||
context = self._prepare_account_financial_report_context(data) |
|||
obj = self.with_context(context) if context else self |
|||
return super(IrActionsReport, obj).render_xlsx(docids, data) |
@ -1,33 +0,0 @@ |
|||
* Jordi Ballester <jordi.ballester@forgeflow.com> |
|||
* Yannick Vaucher <yannick.vaucher@camptocamp.com> |
|||
* Simone Orsi <simone.orsi@abstract.com> |
|||
* Leonardo Pistone <leonardo.pistone@camptocamp.com> |
|||
* Damien Crier <damien.crier@camptocamp.com> |
|||
* Andrea Stirpe <a.stirpe@onestein.nl> |
|||
* Thomas Rehn <thomas.rehn@initos.com> |
|||
* Andrea Gallina <4everamd@gmail.com> |
|||
* Robert Rottermann <robert@redcor.ch> |
|||
* Ciro Urselli <c.urselli@apuliasoftware.it> |
|||
* Francesco Apruzzese <opencode@e-ware.org> |
|||
* Lorenzo Battistini <https://github.com/eLBati> |
|||
* Julien Coux <julien.coux@camptocamp.com> |
|||
* Akim Juillerat <akim.juillerat@camptocamp.com> |
|||
* Alexis de Lattre <alexis@via.ecp.fr> |
|||
* Mihai Fekete <feketemihai@gmail.com> |
|||
* Miquel Raïch <miquel.raich@forgeflow.com> |
|||
* Joan Sisquella <joan.sisquella@forgeflow.com> |
|||
* `Tecnativa <https://www.tecnativa.com>`__: |
|||
|
|||
* Pedro M. Baeza |
|||
* Sergio Teruel |
|||
* Ernesto Tejeda |
|||
* Alexandre D. Díaz |
|||
|
|||
* Lois Rilo <lois.rilo@forgeflow.com> |
|||
* `Sygel <https://www.sygel.es>`__: |
|||
|
|||
* Harald Panten |
|||
* Valentin Vinagre |
|||
|
|||
Much of the work in this module was done at a sprint in Sorrento, Italy in |
|||
April 2016. |
@ -1,16 +0,0 @@ |
|||
This module adds a set of financial reports. They are accessible under |
|||
Invoicing / Reporting / OCA accounting reports. |
|||
|
|||
- General ledger |
|||
- Trial Balance |
|||
- Open Items |
|||
- Aged Partner Balance |
|||
- VAT Report |
|||
- Journal Ledger |
|||
|
|||
Currently General ledger, Trial Balance and Open Items are fully compatible with a foreign |
|||
currency set up in account in order to display balances. Moreover, any foreign |
|||
currency used in account move lines is properly shown. |
|||
|
|||
In case that in an account has not been configured a second currency foreign |
|||
currency balances are not available. |
@ -1,19 +0,0 @@ |
|||
11.0.2.5.0 (2019-04-26) |
|||
~~~~~~~~~~~~~~~~~~~~~~~ |
|||
|
|||
* In the Trial Balance you have an option to hide parent hierarchy levels |
|||
|
|||
11.0.2.4.1 (2019-01-08) |
|||
~~~~~~~~~~~~~~~~~~~~~~~ |
|||
|
|||
* Handle better multicompany behaviour |
|||
* Improve how title appears in the reports |
|||
* Improve performance in General Ledger |
|||
|
|||
|
|||
11.0.2.3.1 (2018-11-29) |
|||
~~~~~~~~~~~~~~~~~~~~~~~ |
|||
|
|||
* In the Trial Balance you can apply a filter by hierarchy levels |
|||
* In the General Ledger you can apply a filter by Analytic Tag |
|||
* In the Journal Ledger the field 'Journal' is now optional |
@ -1,7 +0,0 @@ |
|||
* 'VAT Report' is valid only for cases where it's met that for each |
|||
Tax defined: all the "Account tags" of all the |
|||
'Repartition for Invoices' or 'Repartition for Credit Notes' |
|||
are different. |
|||
* It would be nice to have in reports a column indicating the |
|||
state of the entries when the option "All Entries" is selected |
|||
in "Target Moves" field in a wizard |
@ -1,19 +1,28 @@ |
|||
# © 2015 Yannick Vaucher (Camptocamp) |
|||
# © 2016 Damien Crier (Camptocamp) |
|||
# © 2016 Julien Coux (Camptocamp) |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).- |
|||
# -*- encoding: utf-8 -*- |
|||
########################################################################### |
|||
# Module Writen to OpenERP, Open Source Management Solution |
|||
# Copyright (C) OpenERP Venezuela (<http://openerp.com.ve>). |
|||
# All Rights Reserved |
|||
# Credits###################################################### |
|||
# Coded by: Humberto Arocha humberto@openerp.com.ve |
|||
# Angelica Barrios angelicaisabelb@gmail.com |
|||
# Jordi Esteve <jesteve@zikzakmedia.com> |
|||
# Planified by: Humberto Arocha |
|||
# Finance by: LUBCAN COL S.A.S http://www.lubcancol.com |
|||
# Audited by: Humberto Arocha humberto@openerp.com.ve |
|||
############################################################################# |
|||
# This program is free software: you can redistribute it and/or modify |
|||
# it under the terms of the GNU General Public License as published by |
|||
# the Free Software Foundation, either version 3 of the License, or |
|||
# (at your option) any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU General Public License |
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
############################################################################## |
|||
|
|||
from . import abstract_report |
|||
from . import abstract_report_xlsx |
|||
from . import aged_partner_balance |
|||
from . import aged_partner_balance_xlsx |
|||
from . import general_ledger |
|||
from . import general_ledger_xlsx |
|||
from . import journal_ledger |
|||
from . import journal_ledger_xlsx |
|||
from . import open_items |
|||
from . import open_items_xlsx |
|||
from . import trial_balance |
|||
from . import trial_balance_xlsx |
|||
from . import vat_report |
|||
from . import vat_report_xlsx |
|||
from . import parser |
@ -1,126 +0,0 @@ |
|||
# Copyright 2020 ForgeFlow S.L. (https://www.forgeflow.com) |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
|
|||
from odoo import api, models |
|||
|
|||
|
|||
class AgedPartnerBalanceReport(models.AbstractModel): |
|||
_name = "report.account_financial_report.abstract_report" |
|||
_description = "Abstract Report" |
|||
|
|||
@api.model |
|||
def _get_move_lines_domain_not_reconciled( |
|||
self, company_id, account_ids, partner_ids, only_posted_moves, date_from |
|||
): |
|||
domain = [ |
|||
("account_id", "in", account_ids), |
|||
("company_id", "=", company_id), |
|||
("reconciled", "=", False), |
|||
] |
|||
if partner_ids: |
|||
domain += [("partner_id", "in", partner_ids)] |
|||
if only_posted_moves: |
|||
domain += [("move_id.state", "=", "posted")] |
|||
else: |
|||
domain += [("move_id.state", "in", ["posted", "draft"])] |
|||
if date_from: |
|||
domain += [("date", ">", date_from)] |
|||
return domain |
|||
|
|||
@api.model |
|||
def _get_new_move_lines_domain( |
|||
self, new_ml_ids, account_ids, company_id, partner_ids, only_posted_moves |
|||
): |
|||
domain = [ |
|||
("account_id", "in", account_ids), |
|||
("company_id", "=", company_id), |
|||
("id", "in", new_ml_ids), |
|||
] |
|||
if partner_ids: |
|||
domain += [("partner_id", "in", partner_ids)] |
|||
if only_posted_moves: |
|||
domain += [("move_id.state", "=", "posted")] |
|||
else: |
|||
domain += [("move_id.state", "in", ["posted", "draft"])] |
|||
return domain |
|||
|
|||
def _recalculate_move_lines( |
|||
self, |
|||
move_lines, |
|||
debit_ids, |
|||
credit_ids, |
|||
debit_amount, |
|||
credit_amount, |
|||
ml_ids, |
|||
account_ids, |
|||
company_id, |
|||
partner_ids, |
|||
only_posted_moves, |
|||
): |
|||
debit_ids = set(debit_ids) |
|||
credit_ids = set(credit_ids) |
|||
in_credit_but_not_in_debit = credit_ids - debit_ids |
|||
reconciled_ids = list(debit_ids) + list(in_credit_but_not_in_debit) |
|||
reconciled_ids = set(reconciled_ids) |
|||
ml_ids = set(ml_ids) |
|||
new_ml_ids = reconciled_ids - ml_ids |
|||
new_ml_ids = list(new_ml_ids) |
|||
new_domain = self._get_new_move_lines_domain( |
|||
new_ml_ids, account_ids, company_id, partner_ids, only_posted_moves |
|||
) |
|||
ml_fields = [ |
|||
"id", |
|||
"name", |
|||
"date", |
|||
"move_id", |
|||
"journal_id", |
|||
"account_id", |
|||
"partner_id", |
|||
"amount_residual", |
|||
"date_maturity", |
|||
"ref", |
|||
"debit", |
|||
"credit", |
|||
"reconciled", |
|||
"currency_id", |
|||
"amount_currency", |
|||
"amount_residual_currency", |
|||
] |
|||
new_move_lines = self.env["account.move.line"].search_read( |
|||
domain=new_domain, fields=ml_fields |
|||
) |
|||
move_lines = move_lines + new_move_lines |
|||
for move_line in move_lines: |
|||
ml_id = move_line["id"] |
|||
if ml_id in debit_ids: |
|||
move_line["amount_residual"] += debit_amount[ml_id] |
|||
if ml_id in credit_ids: |
|||
move_line["amount_residual"] -= credit_amount[ml_id] |
|||
return move_lines |
|||
|
|||
def _get_accounts_data(self, accounts_ids): |
|||
accounts = self.env["account.account"].browse(accounts_ids) |
|||
accounts_data = {} |
|||
for account in accounts: |
|||
accounts_data.update( |
|||
{ |
|||
account.id: { |
|||
"id": account.id, |
|||
"code": account.code, |
|||
"name": account.name, |
|||
"hide_account": False, |
|||
"group_id": account.group_id.id, |
|||
"currency_id": account.currency_id or False, |
|||
"currency_name": account.currency_id.name, |
|||
"centralized": account.centralized, |
|||
} |
|||
} |
|||
) |
|||
return accounts_data |
|||
|
|||
def _get_journals_data(self, journals_ids): |
|||
journals = self.env["account.journal"].browse(journals_ids) |
|||
journals_data = {} |
|||
for journal in journals: |
|||
journals_data.update({journal.id: {"id": journal.id, "code": journal.code}}) |
|||
return journals_data |
@ -1,618 +0,0 @@ |
|||
# Author: Julien Coux |
|||
# Copyright 2016 Camptocamp SA |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
from odoo import models |
|||
|
|||
|
|||
class AbstractReportXslx(models.AbstractModel): |
|||
_name = "report.account_financial_report.abstract_report_xlsx" |
|||
_description = "Abstract XLSX Account Financial Report" |
|||
_inherit = "report.report_xlsx.abstract" |
|||
|
|||
def __init__(self, pool, cr): |
|||
# main sheet which will contains report |
|||
self.sheet = None |
|||
|
|||
# columns of the report |
|||
self.columns = None |
|||
|
|||
# row_pos must be incremented at each writing lines |
|||
self.row_pos = None |
|||
|
|||
# Formats |
|||
self.format_right = None |
|||
self.format_left = None |
|||
self.format_right_bold_italic = None |
|||
self.format_bold = None |
|||
self.format_header_left = None |
|||
self.format_header_center = None |
|||
self.format_header_right = None |
|||
self.format_header_amount = None |
|||
self.format_amount = None |
|||
self.format_percent_bold_italic = None |
|||
|
|||
def get_workbook_options(self): |
|||
return {"constant_memory": True} |
|||
|
|||
def generate_xlsx_report(self, workbook, data, objects): |
|||
report = objects |
|||
|
|||
self.row_pos = 0 |
|||
|
|||
self._define_formats(workbook, data) |
|||
|
|||
report_name = self._get_report_name(report, data=data) |
|||
report_footer = self._get_report_footer() |
|||
filters = self._get_report_filters(report) |
|||
self.columns = self._get_report_columns(report) |
|||
self.workbook = workbook |
|||
self.sheet = workbook.add_worksheet(report_name[:31]) |
|||
|
|||
self._set_column_width() |
|||
|
|||
self._write_report_title(report_name) |
|||
|
|||
self._write_filters(filters) |
|||
|
|||
self._generate_report_content(workbook, report, data) |
|||
|
|||
self._write_report_footer(report_footer) |
|||
|
|||
def _define_formats(self, workbook, data): |
|||
""" Add cell formats to current workbook. |
|||
Those formats can be used on all cell. |
|||
Available formats are : |
|||
* format_bold |
|||
* format_right |
|||
* format_right_bold_italic |
|||
* format_header_left |
|||
* format_header_center |
|||
* format_header_right |
|||
* format_header_amount |
|||
* format_amount |
|||
* format_percent_bold_italic |
|||
""" |
|||
self.format_bold = workbook.add_format({"bold": True}) |
|||
self.format_right = workbook.add_format({"align": "right"}) |
|||
self.format_left = workbook.add_format({"align": "left"}) |
|||
self.format_right_bold_italic = workbook.add_format( |
|||
{"align": "right", "bold": True, "italic": True} |
|||
) |
|||
self.format_header_left = workbook.add_format( |
|||
{"bold": True, "border": True, "bg_color": "#FFFFCC"} |
|||
) |
|||
self.format_header_center = workbook.add_format( |
|||
{"bold": True, "align": "center", "border": True, "bg_color": "#FFFFCC"} |
|||
) |
|||
self.format_header_right = workbook.add_format( |
|||
{"bold": True, "align": "right", "border": True, "bg_color": "#FFFFCC"} |
|||
) |
|||
self.format_header_amount = workbook.add_format( |
|||
{"bold": True, "border": True, "bg_color": "#FFFFCC"} |
|||
) |
|||
company_id = data.get("company_id", False) |
|||
if company_id: |
|||
company = self.env["res.company"].browse(company_id) |
|||
currency = company.currency_id |
|||
else: |
|||
currency = self.env["res.company"]._get_user_currency() |
|||
self.format_header_amount.set_num_format( |
|||
"#,##0." + "0" * currency.decimal_places |
|||
) |
|||
self.format_amount = workbook.add_format() |
|||
self.format_amount.set_num_format("#,##0." + "0" * currency.decimal_places) |
|||
self.format_amount_bold = workbook.add_format({"bold": True}) |
|||
self.format_amount_bold.set_num_format("#,##0." + "0" * currency.decimal_places) |
|||
self.format_percent_bold_italic = workbook.add_format( |
|||
{"bold": True, "italic": True} |
|||
) |
|||
self.format_percent_bold_italic.set_num_format("#,##0.00%") |
|||
|
|||
def _set_column_width(self): |
|||
"""Set width for all defined columns. |
|||
Columns are defined with `_get_report_columns` method. |
|||
""" |
|||
for position, column in self.columns.items(): |
|||
self.sheet.set_column(position, position, column["width"]) |
|||
|
|||
def _write_report_title(self, title): |
|||
"""Write report title on current line using all defined columns width. |
|||
Columns are defined with `_get_report_columns` method. |
|||
""" |
|||
self.sheet.merge_range( |
|||
self.row_pos, |
|||
0, |
|||
self.row_pos, |
|||
len(self.columns) - 1, |
|||
title, |
|||
self.format_bold, |
|||
) |
|||
self.row_pos += 3 |
|||
|
|||
def _write_report_footer(self, footer): |
|||
"""Write report footer . |
|||
Columns are defined with `_get_report_columns` method. |
|||
""" |
|||
if footer: |
|||
self.row_pos += 1 |
|||
self.sheet.merge_range( |
|||
self.row_pos, |
|||
0, |
|||
self.row_pos, |
|||
len(self.columns) - 1, |
|||
footer, |
|||
self.format_left, |
|||
) |
|||
self.row_pos += 1 |
|||
|
|||
def _write_filters(self, filters): |
|||
"""Write one line per filters on starting on current line. |
|||
Columns number for filter name is defined |
|||
with `_get_col_count_filter_name` method. |
|||
Columns number for filter value is define |
|||
with `_get_col_count_filter_value` method. |
|||
""" |
|||
col_name = 1 |
|||
col_count_filter_name = self._get_col_count_filter_name() |
|||
col_count_filter_value = self._get_col_count_filter_value() |
|||
col_value = col_name + col_count_filter_name + 1 |
|||
for title, value in filters: |
|||
self.sheet.merge_range( |
|||
self.row_pos, |
|||
col_name, |
|||
self.row_pos, |
|||
col_name + col_count_filter_name - 1, |
|||
title, |
|||
self.format_header_left, |
|||
) |
|||
self.sheet.merge_range( |
|||
self.row_pos, |
|||
col_value, |
|||
self.row_pos, |
|||
col_value + col_count_filter_value - 1, |
|||
value, |
|||
) |
|||
self.row_pos += 1 |
|||
self.row_pos += 2 |
|||
|
|||
def write_array_title(self, title): |
|||
"""Write array title on current line using all defined columns width. |
|||
Columns are defined with `_get_report_columns` method. |
|||
""" |
|||
self.sheet.merge_range( |
|||
self.row_pos, |
|||
0, |
|||
self.row_pos, |
|||
len(self.columns) - 1, |
|||
title, |
|||
self.format_bold, |
|||
) |
|||
self.row_pos += 1 |
|||
|
|||
def write_array_header(self): |
|||
"""Write array header on current line using all defined columns name. |
|||
Columns are defined with `_get_report_columns` method. |
|||
""" |
|||
for col_pos, column in self.columns.items(): |
|||
self.sheet.write( |
|||
self.row_pos, col_pos, column["header"], self.format_header_center |
|||
) |
|||
self.row_pos += 1 |
|||
|
|||
def write_line(self, line_object): |
|||
"""Write a line on current line using all defined columns field name. |
|||
Columns are defined with `_get_report_columns` method. |
|||
""" |
|||
for col_pos, column in self.columns.items(): |
|||
value = getattr(line_object, column["field"]) |
|||
cell_type = column.get("type", "string") |
|||
if cell_type == "many2one": |
|||
self.sheet.write_string( |
|||
self.row_pos, col_pos, value.name or "", self.format_right |
|||
) |
|||
elif cell_type == "string": |
|||
if ( |
|||
hasattr(line_object, "account_group_id") |
|||
and line_object.account_group_id |
|||
): |
|||
self.sheet.write_string( |
|||
self.row_pos, col_pos, value or "", self.format_bold |
|||
) |
|||
else: |
|||
self.sheet.write_string(self.row_pos, col_pos, value or "") |
|||
elif cell_type == "amount": |
|||
if ( |
|||
hasattr(line_object, "account_group_id") |
|||
and line_object.account_group_id |
|||
): |
|||
cell_format = self.format_amount_bold |
|||
else: |
|||
cell_format = self.format_amount |
|||
self.sheet.write_number( |
|||
self.row_pos, col_pos, float(value), cell_format |
|||
) |
|||
elif cell_type == "amount_currency": |
|||
if line_object.currency_id: |
|||
format_amt = self._get_currency_amt_format(line_object) |
|||
self.sheet.write_number( |
|||
self.row_pos, col_pos, float(value), format_amt |
|||
) |
|||
self.row_pos += 1 |
|||
|
|||
def write_line_from_dict(self, line_dict): |
|||
"""Write a line on current line |
|||
""" |
|||
for col_pos, column in self.columns.items(): |
|||
value = line_dict.get(column["field"], False) |
|||
cell_type = column.get("type", "string") |
|||
if cell_type == "string": |
|||
if ( |
|||
line_dict.get("account_group_id", False) |
|||
and line_dict["account_group_id"] |
|||
): |
|||
self.sheet.write_string( |
|||
self.row_pos, col_pos, value or "", self.format_bold |
|||
) |
|||
else: |
|||
if ( |
|||
not isinstance(value, str) |
|||
and not isinstance(value, bool) |
|||
and not isinstance(value, int) |
|||
): |
|||
value = value and value.strftime("%d/%m/%Y") |
|||
self.sheet.write_string(self.row_pos, col_pos, value or "") |
|||
elif cell_type == "amount": |
|||
if ( |
|||
line_dict.get("account_group_id", False) |
|||
and line_dict["account_group_id"] |
|||
): |
|||
cell_format = self.format_amount_bold |
|||
else: |
|||
cell_format = self.format_amount |
|||
self.sheet.write_number( |
|||
self.row_pos, col_pos, float(value), cell_format |
|||
) |
|||
elif cell_type == "amount_currency": |
|||
if line_dict.get("currency_name", False): |
|||
format_amt = self._get_currency_amt_format_dict(line_dict) |
|||
self.sheet.write_number( |
|||
self.row_pos, col_pos, float(value), format_amt |
|||
) |
|||
elif cell_type == "currency_name": |
|||
self.sheet.write_string( |
|||
self.row_pos, col_pos, value or "", self.format_right |
|||
) |
|||
self.row_pos += 1 |
|||
|
|||
def write_initial_balance(self, my_object, label): |
|||
"""Write a specific initial balance line on current line |
|||
using defined columns field_initial_balance name. |
|||
Columns are defined with `_get_report_columns` method. |
|||
""" |
|||
col_pos_label = self._get_col_pos_initial_balance_label() |
|||
self.sheet.write(self.row_pos, col_pos_label, label, self.format_right) |
|||
for col_pos, column in self.columns.items(): |
|||
if column.get("field_initial_balance"): |
|||
value = getattr(my_object, column["field_initial_balance"]) |
|||
cell_type = column.get("type", "string") |
|||
if cell_type == "string": |
|||
self.sheet.write_string(self.row_pos, col_pos, value or "") |
|||
elif cell_type == "amount": |
|||
self.sheet.write_number( |
|||
self.row_pos, col_pos, float(value), self.format_amount |
|||
) |
|||
elif cell_type == "amount_currency": |
|||
if my_object.currency_id: |
|||
format_amt = self._get_currency_amt_format(my_object) |
|||
self.sheet.write_number( |
|||
self.row_pos, col_pos, float(value), format_amt |
|||
) |
|||
elif column.get("field_currency_balance"): |
|||
value = getattr(my_object, column["field_currency_balance"]) |
|||
cell_type = column.get("type", "string") |
|||
if cell_type == "many2one": |
|||
if my_object.currency_id: |
|||
self.sheet.write_string( |
|||
self.row_pos, col_pos, value.name or "", self.format_right |
|||
) |
|||
self.row_pos += 1 |
|||
|
|||
def write_initial_balance_from_dict(self, my_object, label): |
|||
"""Write a specific initial balance line on current line |
|||
using defined columns field_initial_balance name. |
|||
Columns are defined with `_get_report_columns` method. |
|||
""" |
|||
col_pos_label = self._get_col_pos_initial_balance_label() |
|||
self.sheet.write(self.row_pos, col_pos_label, label, self.format_right) |
|||
for col_pos, column in self.columns.items(): |
|||
if column.get("field_initial_balance"): |
|||
value = my_object.get(column["field_initial_balance"], False) |
|||
cell_type = column.get("type", "string") |
|||
if cell_type == "string": |
|||
self.sheet.write_string(self.row_pos, col_pos, value or "") |
|||
elif cell_type == "amount": |
|||
self.sheet.write_number( |
|||
self.row_pos, col_pos, float(value), self.format_amount |
|||
) |
|||
elif cell_type == "amount_currency": |
|||
if my_object["currency_id"]: |
|||
format_amt = self._get_currency_amt_format(my_object) |
|||
self.sheet.write_number( |
|||
self.row_pos, col_pos, float(value), format_amt |
|||
) |
|||
elif column.get("field_currency_balance"): |
|||
value = my_object.get(column["field_currency_balance"], False) |
|||
cell_type = column.get("type", "string") |
|||
if cell_type == "many2one": |
|||
if my_object["currency_id"]: |
|||
self.sheet.write_string( |
|||
self.row_pos, col_pos, value.name or "", self.format_right |
|||
) |
|||
self.row_pos += 1 |
|||
|
|||
def write_ending_balance(self, my_object, name, label): |
|||
"""Write a specific ending balance line on current line |
|||
using defined columns field_final_balance name. |
|||
Columns are defined with `_get_report_columns` method. |
|||
""" |
|||
for i in range(0, len(self.columns)): |
|||
self.sheet.write(self.row_pos, i, "", self.format_header_right) |
|||
row_count_name = self._get_col_count_final_balance_name() |
|||
col_pos_label = self._get_col_pos_final_balance_label() |
|||
self.sheet.merge_range( |
|||
self.row_pos, |
|||
0, |
|||
self.row_pos, |
|||
row_count_name - 1, |
|||
name, |
|||
self.format_header_left, |
|||
) |
|||
self.sheet.write(self.row_pos, col_pos_label, label, self.format_header_right) |
|||
for col_pos, column in self.columns.items(): |
|||
if column.get("field_final_balance"): |
|||
value = getattr(my_object, column["field_final_balance"]) |
|||
cell_type = column.get("type", "string") |
|||
if cell_type == "string": |
|||
self.sheet.write_string( |
|||
self.row_pos, col_pos, value or "", self.format_header_right |
|||
) |
|||
elif cell_type == "amount": |
|||
self.sheet.write_number( |
|||
self.row_pos, col_pos, float(value), self.format_header_amount |
|||
) |
|||
elif cell_type == "amount_currency": |
|||
if my_object.currency_id: |
|||
format_amt = self._get_currency_amt_header_format(my_object) |
|||
self.sheet.write_number( |
|||
self.row_pos, col_pos, float(value), format_amt |
|||
) |
|||
elif column.get("field_currency_balance"): |
|||
value = getattr(my_object, column["field_currency_balance"]) |
|||
cell_type = column.get("type", "string") |
|||
if cell_type == "many2one": |
|||
if my_object.currency_id: |
|||
self.sheet.write_string( |
|||
self.row_pos, |
|||
col_pos, |
|||
value.name or "", |
|||
self.format_header_right, |
|||
) |
|||
self.row_pos += 1 |
|||
|
|||
def write_ending_balance_from_dict(self, my_object, name, label): |
|||
"""Write a specific ending balance line on current line |
|||
using defined columns field_final_balance name. |
|||
Columns are defined with `_get_report_columns` method. |
|||
""" |
|||
for i in range(0, len(self.columns)): |
|||
self.sheet.write(self.row_pos, i, "", self.format_header_right) |
|||
row_count_name = self._get_col_count_final_balance_name() |
|||
col_pos_label = self._get_col_pos_final_balance_label() |
|||
self.sheet.merge_range( |
|||
self.row_pos, |
|||
0, |
|||
self.row_pos, |
|||
row_count_name - 1, |
|||
name, |
|||
self.format_header_left, |
|||
) |
|||
self.sheet.write(self.row_pos, col_pos_label, label, self.format_header_right) |
|||
for col_pos, column in self.columns.items(): |
|||
if column.get("field_final_balance"): |
|||
value = my_object.get(column["field_final_balance"], False) |
|||
cell_type = column.get("type", "string") |
|||
if cell_type == "string": |
|||
self.sheet.write_string( |
|||
self.row_pos, col_pos, value or "", self.format_header_right |
|||
) |
|||
elif cell_type == "amount": |
|||
self.sheet.write_number( |
|||
self.row_pos, col_pos, float(value), self.format_header_amount |
|||
) |
|||
elif cell_type == "amount_currency": |
|||
if my_object["currency_id"] and value: |
|||
format_amt = self._get_currency_amt_format_dict(my_object) |
|||
self.sheet.write_number( |
|||
self.row_pos, col_pos, float(value), format_amt |
|||
) |
|||
elif column.get("field_currency_balance"): |
|||
value = my_object.get(column["field_currency_balance"], False) |
|||
cell_type = column.get("type", "string") |
|||
if cell_type == "many2one": |
|||
if my_object["currency_id"]: |
|||
self.sheet.write_string( |
|||
self.row_pos, col_pos, value or "", self.format_header_right |
|||
) |
|||
elif cell_type == "currency_name": |
|||
self.sheet.write_string( |
|||
self.row_pos, col_pos, value or "", self.format_header_right |
|||
) |
|||
self.row_pos += 1 |
|||
|
|||
def _get_currency_amt_format(self, line_object): |
|||
""" Return amount format specific for each currency. """ |
|||
if "account_group_id" in line_object and line_object["account_group_id"]: |
|||
format_amt = self.format_amount_bold |
|||
field_prefix = "format_amount_bold" |
|||
else: |
|||
format_amt = self.format_amount |
|||
field_prefix = "format_amount" |
|||
if "currency_id" in line_object and line_object.get("currency_id", False): |
|||
field_name = "{}_{}".format(field_prefix, line_object["currency_id"].name) |
|||
if hasattr(self, field_name): |
|||
format_amt = getattr(self, field_name) |
|||
else: |
|||
format_amt = self.workbook.add_format() |
|||
self.field_name = format_amt |
|||
format_amount = "#,##0." + ( |
|||
"0" * line_object["currency_id"].decimal_places |
|||
) |
|||
format_amt.set_num_format(format_amount) |
|||
return format_amt |
|||
|
|||
def _get_currency_amt_format_dict(self, line_dict): |
|||
""" Return amount format specific for each currency. """ |
|||
if line_dict.get("account_group_id", False) and line_dict["account_group_id"]: |
|||
format_amt = self.format_amount_bold |
|||
field_prefix = "format_amount_bold" |
|||
else: |
|||
format_amt = self.format_amount |
|||
field_prefix = "format_amount" |
|||
if line_dict.get("currency_id", False) and line_dict["currency_id"]: |
|||
if isinstance(line_dict["currency_id"], int): |
|||
currency = self.env["res.currency"].browse(line_dict["currency_id"]) |
|||
else: |
|||
currency = line_dict["currency_id"] |
|||
field_name = "{}_{}".format(field_prefix, currency.name) |
|||
if hasattr(self, field_name): |
|||
format_amt = getattr(self, field_name) |
|||
else: |
|||
format_amt = self.workbook.add_format() |
|||
self.field_name = format_amt |
|||
format_amount = "#,##0." + ("0" * currency.decimal_places) |
|||
format_amt.set_num_format(format_amount) |
|||
return format_amt |
|||
|
|||
def _get_currency_amt_header_format(self, line_object): |
|||
""" Return amount header format for each currency. """ |
|||
format_amt = self.format_header_amount |
|||
if line_object.currency_id: |
|||
field_name = "format_header_amount_%s" % line_object.currency_id.name |
|||
if hasattr(self, field_name): |
|||
format_amt = getattr(self, field_name) |
|||
else: |
|||
format_amt = self.workbook.add_format( |
|||
{"bold": True, "border": True, "bg_color": "#FFFFCC"} |
|||
) |
|||
self.field_name = format_amt |
|||
format_amount = "#,##0." + ( |
|||
"0" * line_object.currency_id.decimal_places |
|||
) |
|||
format_amt.set_num_format(format_amount) |
|||
return format_amt |
|||
|
|||
def _get_currency_amt_header_format_dict(self, line_object): |
|||
""" Return amount header format for each currency. """ |
|||
format_amt = self.format_header_amount |
|||
if line_object["currency_id"]: |
|||
field_name = "format_header_amount_%s" % line_object["currency_name"] |
|||
if hasattr(self, field_name): |
|||
format_amt = getattr(self, field_name) |
|||
else: |
|||
format_amt = self.workbook.add_format( |
|||
{"bold": True, "border": True, "bg_color": "#FFFFCC"} |
|||
) |
|||
self.field_name = format_amt |
|||
format_amount = "#,##0." + ( |
|||
"0" * line_object["currency_id"].decimal_places |
|||
) |
|||
format_amt.set_num_format(format_amount) |
|||
return format_amt |
|||
|
|||
def _generate_report_content(self, workbook, report, data): |
|||
""" |
|||
Allow to fetch report content to be displayed. |
|||
""" |
|||
raise NotImplementedError() |
|||
|
|||
def _get_report_complete_name(self, report, prefix, data=None): |
|||
if report.company_id: |
|||
suffix = " - {} - {}".format( |
|||
report.company_id.name, report.company_id.currency_id.name |
|||
) |
|||
return prefix + suffix |
|||
return prefix |
|||
|
|||
def _get_report_name(self, report, data=False): |
|||
""" |
|||
Allow to define the report name. |
|||
Report name will be used as sheet name and as report title. |
|||
:return: the report name |
|||
""" |
|||
raise NotImplementedError() |
|||
|
|||
def _get_report_footer(self): |
|||
""" |
|||
Allow to define the report footer. |
|||
:return: the report footer |
|||
""" |
|||
return False |
|||
|
|||
def _get_report_columns(self, report): |
|||
""" |
|||
Allow to define the report columns |
|||
which will be used to generate report. |
|||
:return: the report columns as dict |
|||
:Example: |
|||
{ |
|||
0: {'header': 'Simple column', |
|||
'field': 'field_name_on_my_object', |
|||
'width': 11}, |
|||
1: {'header': 'Amount column', |
|||
'field': 'field_name_on_my_object', |
|||
'type': 'amount', |
|||
'width': 14}, |
|||
} |
|||
""" |
|||
raise NotImplementedError() |
|||
|
|||
def _get_report_filters(self, report): |
|||
""" |
|||
:return: the report filters as list |
|||
:Example: |
|||
[ |
|||
['first_filter_name', 'first_filter_value'], |
|||
['second_filter_name', 'second_filter_value'] |
|||
] |
|||
""" |
|||
raise NotImplementedError() |
|||
|
|||
def _get_col_count_filter_name(self): |
|||
""" |
|||
:return: the columns number used for filter names. |
|||
""" |
|||
raise NotImplementedError() |
|||
|
|||
def _get_col_count_filter_value(self): |
|||
""" |
|||
:return: the columns number used for filter values. |
|||
""" |
|||
raise NotImplementedError() |
|||
|
|||
def _get_col_pos_initial_balance_label(self): |
|||
""" |
|||
:return: the columns position used for initial balance label. |
|||
""" |
|||
raise NotImplementedError() |
|||
|
|||
def _get_col_count_final_balance_name(self): |
|||
""" |
|||
:return: the columns number used for final balance name. |
|||
""" |
|||
raise NotImplementedError() |
|||
|
|||
def _get_col_pos_final_balance_label(self): |
|||
""" |
|||
:return: the columns position used for final balance label. |
|||
""" |
|||
raise NotImplementedError() |
@ -1,378 +0,0 @@ |
|||
# © 2016 Julien Coux (Camptocamp) |
|||
# Copyright 2020 ForgeFlow S.L. (https://www.forgeflow.com) |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
|
|||
import operator |
|||
from datetime import date, datetime, timedelta |
|||
|
|||
from odoo import api, models |
|||
from odoo.tools import float_is_zero |
|||
|
|||
|
|||
class AgedPartnerBalanceReport(models.AbstractModel): |
|||
_name = "report.account_financial_report.aged_partner_balance" |
|||
_description = "Aged Partner Balance Report" |
|||
_inherit = "report.account_financial_report.abstract_report" |
|||
|
|||
@api.model |
|||
def _initialize_account(self, ag_pb_data, acc_id): |
|||
ag_pb_data[acc_id] = {} |
|||
ag_pb_data[acc_id]["id"] = acc_id |
|||
ag_pb_data[acc_id]["residual"] = 0.0 |
|||
ag_pb_data[acc_id]["current"] = 0.0 |
|||
ag_pb_data[acc_id]["30_days"] = 0.0 |
|||
ag_pb_data[acc_id]["60_days"] = 0.0 |
|||
ag_pb_data[acc_id]["90_days"] = 0.0 |
|||
ag_pb_data[acc_id]["120_days"] = 0.0 |
|||
ag_pb_data[acc_id]["older"] = 0.0 |
|||
return ag_pb_data |
|||
|
|||
@api.model |
|||
def _initialize_partner(self, ag_pb_data, acc_id, prt_id): |
|||
ag_pb_data[acc_id][prt_id] = {} |
|||
ag_pb_data[acc_id][prt_id]["id"] = acc_id |
|||
ag_pb_data[acc_id][prt_id]["residual"] = 0.0 |
|||
ag_pb_data[acc_id][prt_id]["current"] = 0.0 |
|||
ag_pb_data[acc_id][prt_id]["30_days"] = 0.0 |
|||
ag_pb_data[acc_id][prt_id]["60_days"] = 0.0 |
|||
ag_pb_data[acc_id][prt_id]["90_days"] = 0.0 |
|||
ag_pb_data[acc_id][prt_id]["120_days"] = 0.0 |
|||
ag_pb_data[acc_id][prt_id]["older"] = 0.0 |
|||
ag_pb_data[acc_id][prt_id]["move_lines"] = [] |
|||
return ag_pb_data |
|||
|
|||
@api.model |
|||
def _calculate_amounts( |
|||
self, ag_pb_data, acc_id, prt_id, residual, due_date, date_at_object |
|||
): |
|||
ag_pb_data[acc_id]["residual"] += residual |
|||
ag_pb_data[acc_id][prt_id]["residual"] += residual |
|||
today = date_at_object |
|||
if not due_date or today <= due_date: |
|||
ag_pb_data[acc_id]["current"] += residual |
|||
ag_pb_data[acc_id][prt_id]["current"] += residual |
|||
elif today <= due_date + timedelta(days=30): |
|||
ag_pb_data[acc_id]["30_days"] += residual |
|||
ag_pb_data[acc_id][prt_id]["30_days"] += residual |
|||
elif today <= due_date + timedelta(days=60): |
|||
ag_pb_data[acc_id]["60_days"] += residual |
|||
ag_pb_data[acc_id][prt_id]["60_days"] += residual |
|||
elif today <= due_date + timedelta(days=90): |
|||
ag_pb_data[acc_id]["90_days"] += residual |
|||
ag_pb_data[acc_id][prt_id]["90_days"] += residual |
|||
elif today <= due_date + timedelta(days=120): |
|||
ag_pb_data[acc_id]["120_days"] += residual |
|||
ag_pb_data[acc_id][prt_id]["120_days"] += residual |
|||
else: |
|||
ag_pb_data[acc_id]["older"] += residual |
|||
ag_pb_data[acc_id][prt_id]["older"] += residual |
|||
return ag_pb_data |
|||
|
|||
def _get_account_partial_reconciled(self, company_id, date_at_object): |
|||
domain = [("max_date", ">", date_at_object), ("company_id", "=", company_id)] |
|||
fields = ["debit_move_id", "credit_move_id", "amount"] |
|||
accounts_partial_reconcile = self.env["account.partial.reconcile"].search_read( |
|||
domain=domain, fields=fields |
|||
) |
|||
debit_amount = {} |
|||
credit_amount = {} |
|||
for account_partial_reconcile_data in accounts_partial_reconcile: |
|||
debit_move_id = account_partial_reconcile_data["debit_move_id"][0] |
|||
credit_move_id = account_partial_reconcile_data["credit_move_id"][0] |
|||
if debit_move_id not in debit_amount.keys(): |
|||
debit_amount[debit_move_id] = 0.0 |
|||
debit_amount[debit_move_id] += account_partial_reconcile_data["amount"] |
|||
if credit_move_id not in credit_amount.keys(): |
|||
credit_amount[credit_move_id] = 0.0 |
|||
credit_amount[credit_move_id] += account_partial_reconcile_data["amount"] |
|||
account_partial_reconcile_data.update( |
|||
{"debit_move_id": debit_move_id, "credit_move_id": credit_move_id} |
|||
) |
|||
return accounts_partial_reconcile, debit_amount, credit_amount |
|||
|
|||
def _get_move_lines_data( |
|||
self, |
|||
company_id, |
|||
account_ids, |
|||
partner_ids, |
|||
date_at_object, |
|||
date_from, |
|||
only_posted_moves, |
|||
show_move_line_details, |
|||
): |
|||
domain = self._get_move_lines_domain_not_reconciled( |
|||
company_id, account_ids, partner_ids, only_posted_moves, date_from |
|||
) |
|||
ml_fields = [ |
|||
"id", |
|||
"name", |
|||
"date", |
|||
"move_id", |
|||
"journal_id", |
|||
"account_id", |
|||
"partner_id", |
|||
"amount_residual", |
|||
"date_maturity", |
|||
"ref", |
|||
"reconciled", |
|||
] |
|||
move_lines = self.env["account.move.line"].search_read( |
|||
domain=domain, fields=ml_fields |
|||
) |
|||
journals_ids = set() |
|||
partners_ids = set() |
|||
partners_data = {} |
|||
ag_pb_data = {} |
|||
if date_at_object < date.today(): |
|||
( |
|||
acc_partial_rec, |
|||
debit_amount, |
|||
credit_amount, |
|||
) = self._get_account_partial_reconciled(company_id, date_at_object) |
|||
if acc_partial_rec: |
|||
ml_ids = list(map(operator.itemgetter("id"), move_lines)) |
|||
debit_ids = list( |
|||
map(operator.itemgetter("debit_move_id"), acc_partial_rec) |
|||
) |
|||
credit_ids = list( |
|||
map(operator.itemgetter("credit_move_id"), acc_partial_rec) |
|||
) |
|||
move_lines = self._recalculate_move_lines( |
|||
move_lines, |
|||
debit_ids, |
|||
credit_ids, |
|||
debit_amount, |
|||
credit_amount, |
|||
ml_ids, |
|||
account_ids, |
|||
company_id, |
|||
partner_ids, |
|||
only_posted_moves, |
|||
) |
|||
move_lines = [ |
|||
move_line |
|||
for move_line in move_lines |
|||
if move_line["date"] <= date_at_object |
|||
and not float_is_zero(move_line["amount_residual"], precision_digits=2) |
|||
] |
|||
for move_line in move_lines: |
|||
journals_ids.add(move_line["journal_id"][0]) |
|||
acc_id = move_line["account_id"][0] |
|||
if move_line["partner_id"]: |
|||
prt_id = move_line["partner_id"][0] |
|||
prt_name = move_line["partner_id"][1] |
|||
else: |
|||
prt_id = 0 |
|||
prt_name = "" |
|||
if prt_id not in partners_ids: |
|||
partners_data.update({prt_id: {"id": prt_id, "name": prt_name}}) |
|||
partners_ids.add(prt_id) |
|||
if acc_id not in ag_pb_data.keys(): |
|||
ag_pb_data = self._initialize_account(ag_pb_data, acc_id) |
|||
if prt_id not in ag_pb_data[acc_id]: |
|||
ag_pb_data = self._initialize_partner(ag_pb_data, acc_id, prt_id) |
|||
move_line_data = {} |
|||
if show_move_line_details: |
|||
if move_line["ref"] == move_line["name"]: |
|||
if move_line["ref"]: |
|||
ref_label = move_line["ref"] |
|||
else: |
|||
ref_label = "" |
|||
elif not move_line["ref"]: |
|||
ref_label = move_line["name"] |
|||
elif not move_line["name"]: |
|||
ref_label = move_line["ref"] |
|||
else: |
|||
ref_label = move_line["ref"] + str(" - ") + move_line["name"] |
|||
move_line_data.update( |
|||
{ |
|||
"date": move_line["date"], |
|||
"entry": move_line["move_id"][1], |
|||
"jnl_id": move_line["journal_id"][0], |
|||
"acc_id": acc_id, |
|||
"partner": prt_name, |
|||
"ref_label": ref_label, |
|||
"due_date": move_line["date_maturity"], |
|||
"residual": move_line["amount_residual"], |
|||
} |
|||
) |
|||
ag_pb_data[acc_id][prt_id]["move_lines"].append(move_line_data) |
|||
ag_pb_data = self._calculate_amounts( |
|||
ag_pb_data, |
|||
acc_id, |
|||
prt_id, |
|||
move_line["amount_residual"], |
|||
move_line["date_maturity"], |
|||
date_at_object, |
|||
) |
|||
journals_data = self._get_journals_data(list(journals_ids)) |
|||
accounts_data = self._get_accounts_data(ag_pb_data.keys()) |
|||
return ag_pb_data, accounts_data, partners_data, journals_data |
|||
|
|||
@api.model |
|||
def _compute_maturity_date(self, ml, date_at_object): |
|||
ml.update( |
|||
{ |
|||
"current": 0.0, |
|||
"30_days": 0.0, |
|||
"60_days": 0.0, |
|||
"90_days": 0.0, |
|||
"120_days": 0.0, |
|||
"older": 0.0, |
|||
} |
|||
) |
|||
due_date = ml["due_date"] |
|||
amount = ml["residual"] |
|||
today = date_at_object |
|||
if not due_date or today <= due_date: |
|||
ml["current"] += amount |
|||
elif today <= due_date + timedelta(days=30): |
|||
ml["30_days"] += amount |
|||
elif today <= due_date + timedelta(days=60): |
|||
ml["60_days"] += amount |
|||
elif today <= due_date + timedelta(days=90): |
|||
ml["90_days"] += amount |
|||
elif today <= due_date + timedelta(days=120): |
|||
ml["120_days"] += amount |
|||
else: |
|||
ml["older"] += amount |
|||
|
|||
def _create_account_list( |
|||
self, |
|||
ag_pb_data, |
|||
accounts_data, |
|||
partners_data, |
|||
journals_data, |
|||
show_move_line_details, |
|||
date_at_oject, |
|||
): |
|||
aged_partner_data = [] |
|||
for account in accounts_data.values(): |
|||
acc_id = account["id"] |
|||
account.update( |
|||
{ |
|||
"residual": ag_pb_data[acc_id]["residual"], |
|||
"current": ag_pb_data[acc_id]["current"], |
|||
"30_days": ag_pb_data[acc_id]["30_days"], |
|||
"60_days": ag_pb_data[acc_id]["60_days"], |
|||
"90_days": ag_pb_data[acc_id]["90_days"], |
|||
"120_days": ag_pb_data[acc_id]["120_days"], |
|||
"older": ag_pb_data[acc_id]["older"], |
|||
"partners": [], |
|||
} |
|||
) |
|||
for prt_id in ag_pb_data[acc_id]: |
|||
if isinstance(prt_id, int): |
|||
partner = { |
|||
"name": partners_data[prt_id]["name"], |
|||
"residual": ag_pb_data[acc_id][prt_id]["residual"], |
|||
"current": ag_pb_data[acc_id][prt_id]["current"], |
|||
"30_days": ag_pb_data[acc_id][prt_id]["30_days"], |
|||
"60_days": ag_pb_data[acc_id][prt_id]["60_days"], |
|||
"90_days": ag_pb_data[acc_id][prt_id]["90_days"], |
|||
"120_days": ag_pb_data[acc_id][prt_id]["120_days"], |
|||
"older": ag_pb_data[acc_id][prt_id]["older"], |
|||
} |
|||
if show_move_line_details: |
|||
move_lines = [] |
|||
for ml in ag_pb_data[acc_id][prt_id]["move_lines"]: |
|||
ml.update( |
|||
{ |
|||
"journal": journals_data[ml["jnl_id"]]["code"], |
|||
"account": accounts_data[ml["acc_id"]]["code"], |
|||
} |
|||
) |
|||
self._compute_maturity_date(ml, date_at_oject) |
|||
move_lines.append(ml) |
|||
move_lines = sorted(move_lines, key=lambda k: (k["date"])) |
|||
partner.update({"move_lines": move_lines}) |
|||
account["partners"].append(partner) |
|||
aged_partner_data.append(account) |
|||
return aged_partner_data |
|||
|
|||
@api.model |
|||
def _calculate_percent(self, aged_partner_data): |
|||
for account in aged_partner_data: |
|||
if abs(account["residual"]) > 0.01: |
|||
total = account["residual"] |
|||
account.update( |
|||
{ |
|||
"percent_current": abs( |
|||
round((account["current"] / total) * 100, 2) |
|||
), |
|||
"percent_30_days": abs( |
|||
round((account["30_days"] / total) * 100, 2) |
|||
), |
|||
"percent_60_days": abs( |
|||
round((account["60_days"] / total) * 100, 2) |
|||
), |
|||
"percent_90_days": abs( |
|||
round((account["90_days"] / total) * 100, 2) |
|||
), |
|||
"percent_120_days": abs( |
|||
round((account["120_days"] / total) * 100, 2) |
|||
), |
|||
"percent_older": abs( |
|||
round((account["older"] / total) * 100, 2) |
|||
), |
|||
} |
|||
) |
|||
else: |
|||
account.update( |
|||
{ |
|||
"percent_current": 0.0, |
|||
"percent_30_days": 0.0, |
|||
"percent_60_days": 0.0, |
|||
"percent_90_days": 0.0, |
|||
"percent_120_days": 0.0, |
|||
"percent_older": 0.0, |
|||
} |
|||
) |
|||
return aged_partner_data |
|||
|
|||
def _get_report_values(self, docids, data): |
|||
wizard_id = data["wizard_id"] |
|||
company = self.env["res.company"].browse(data["company_id"]) |
|||
company_id = data["company_id"] |
|||
account_ids = data["account_ids"] |
|||
partner_ids = data["partner_ids"] |
|||
date_at = data["date_at"] |
|||
date_at_object = datetime.strptime(date_at, "%Y-%m-%d").date() |
|||
date_from = data["date_from"] |
|||
only_posted_moves = data["only_posted_moves"] |
|||
show_move_line_details = data["show_move_line_details"] |
|||
( |
|||
ag_pb_data, |
|||
accounts_data, |
|||
partners_data, |
|||
journals_data, |
|||
) = self._get_move_lines_data( |
|||
company_id, |
|||
account_ids, |
|||
partner_ids, |
|||
date_at_object, |
|||
date_from, |
|||
only_posted_moves, |
|||
show_move_line_details, |
|||
) |
|||
aged_partner_data = self._create_account_list( |
|||
ag_pb_data, |
|||
accounts_data, |
|||
partners_data, |
|||
journals_data, |
|||
show_move_line_details, |
|||
date_at_object, |
|||
) |
|||
aged_partner_data = self._calculate_percent(aged_partner_data) |
|||
return { |
|||
"doc_ids": [wizard_id], |
|||
"doc_model": "open.items.report.wizard", |
|||
"docs": self.env["open.items.report.wizard"].browse(wizard_id), |
|||
"company_name": company.display_name, |
|||
"company_currency": company.currency_id, |
|||
"currency_name": company.currency_id.name, |
|||
"date_at": date_at, |
|||
"only_posted_moves": only_posted_moves, |
|||
"aged_partner_balance": aged_partner_data, |
|||
"show_move_lines_details": show_move_line_details, |
|||
} |
@ -1,315 +0,0 @@ |
|||
# Author: Julien Coux |
|||
# Copyright 2016 Camptocamp SA |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
|
|||
from odoo import _, models |
|||
|
|||
|
|||
class AgedPartnerBalanceXslx(models.AbstractModel): |
|||
_name = "report.a_f_r.report_aged_partner_balance_xlsx" |
|||
_description = "Aged Partner Balance XLSL Report" |
|||
_inherit = "report.account_financial_report.abstract_report_xlsx" |
|||
|
|||
def _get_report_name(self, report, data=False): |
|||
company_id = data.get("company_id", False) |
|||
report_name = _("Aged Partner Balance") |
|||
if company_id: |
|||
company = self.env["res.company"].browse(company_id) |
|||
suffix = " - {} - {}".format(company.name, company.currency_id.name) |
|||
report_name = report_name + suffix |
|||
return report_name |
|||
|
|||
def _get_report_columns(self, report): |
|||
if not report.show_move_line_details: |
|||
return { |
|||
0: {"header": _("Partner"), "field": "name", "width": 70}, |
|||
1: { |
|||
"header": _("Residual"), |
|||
"field": "residual", |
|||
"field_footer_total": "residual", |
|||
"type": "amount", |
|||
"width": 14, |
|||
}, |
|||
2: { |
|||
"header": _("Current"), |
|||
"field": "current", |
|||
"field_footer_total": "current", |
|||
"field_footer_percent": "percent_current", |
|||
"type": "amount", |
|||
"width": 14, |
|||
}, |
|||
3: { |
|||
"header": _(u"Age ≤ 30 d."), |
|||
"field": "30_days", |
|||
"field_footer_total": "30_days", |
|||
"field_footer_percent": "percent_30_days", |
|||
"type": "amount", |
|||
"width": 14, |
|||
}, |
|||
4: { |
|||
"header": _(u"Age ≤ 60 d."), |
|||
"field": "60_days", |
|||
"field_footer_total": "60_days", |
|||
"field_footer_percent": "percent_60_days", |
|||
"type": "amount", |
|||
"width": 14, |
|||
}, |
|||
5: { |
|||
"header": _(u"Age ≤ 90 d."), |
|||
"field": "90_days", |
|||
"field_footer_total": "90_days", |
|||
"field_footer_percent": "percent_90_days", |
|||
"type": "amount", |
|||
"width": 14, |
|||
}, |
|||
6: { |
|||
"header": _(u"Age ≤ 120 d."), |
|||
"field": "120_days", |
|||
"field_footer_total": "120_days", |
|||
"field_footer_percent": "percent_120_days", |
|||
"type": "amount", |
|||
"width": 14, |
|||
}, |
|||
7: { |
|||
"header": _("Older"), |
|||
"field": "older", |
|||
"field_footer_total": "older", |
|||
"field_footer_percent": "percent_older", |
|||
"type": "amount", |
|||
"width": 14, |
|||
}, |
|||
} |
|||
return { |
|||
0: {"header": _("Date"), "field": "date", "width": 11}, |
|||
1: {"header": _("Entry"), "field": "entry", "width": 18}, |
|||
2: {"header": _("Journal"), "field": "journal", "width": 8}, |
|||
3: {"header": _("Account"), "field": "account", "width": 9}, |
|||
4: {"header": _("Partner"), "field": "partner", "width": 25}, |
|||
5: {"header": _("Ref - Label"), "field": "ref_label", "width": 40}, |
|||
6: {"header": _("Due date"), "field": "due_date", "width": 11}, |
|||
7: { |
|||
"header": _("Residual"), |
|||
"field": "residual", |
|||
"field_footer_total": "residual", |
|||
"field_final_balance": "residual", |
|||
"type": "amount", |
|||
"width": 14, |
|||
}, |
|||
8: { |
|||
"header": _("Current"), |
|||
"field": "current", |
|||
"field_footer_total": "current", |
|||
"field_footer_percent": "percent_current", |
|||
"field_final_balance": "current", |
|||
"type": "amount", |
|||
"width": 14, |
|||
}, |
|||
9: { |
|||
"header": _(u"Age ≤ 30 d."), |
|||
"field": "30_days", |
|||
"field_footer_total": "30_days", |
|||
"field_footer_percent": "percent_30_days", |
|||
"field_final_balance": "30_days", |
|||
"type": "amount", |
|||
"width": 14, |
|||
}, |
|||
10: { |
|||
"header": _(u"Age ≤ 60 d."), |
|||
"field": "60_days", |
|||
"field_footer_total": "60_days", |
|||
"field_footer_percent": "percent_60_days", |
|||
"field_final_balance": "60_days", |
|||
"type": "amount", |
|||
"width": 14, |
|||
}, |
|||
11: { |
|||
"header": _(u"Age ≤ 90 d."), |
|||
"field": "90_days", |
|||
"field_footer_total": "90_days", |
|||
"field_footer_percent": "percent_90_days", |
|||
"field_final_balance": "90_days", |
|||
"type": "amount", |
|||
"width": 14, |
|||
}, |
|||
12: { |
|||
"header": _(u"Age ≤ 120 d."), |
|||
"field": "120_days", |
|||
"field_footer_total": "120_days", |
|||
"field_footer_percent": "percent_120_days", |
|||
"field_final_balance": "120_days", |
|||
"type": "amount", |
|||
"width": 14, |
|||
}, |
|||
13: { |
|||
"header": _("Older"), |
|||
"field": "older", |
|||
"field_footer_total": "older", |
|||
"field_footer_percent": "percent_older", |
|||
"field_final_balance": "older", |
|||
"type": "amount", |
|||
"width": 14, |
|||
}, |
|||
} |
|||
|
|||
def _get_report_filters(self, report): |
|||
return [ |
|||
[_("Date at filter"), report.date_at.strftime("%d/%m/%Y")], |
|||
[ |
|||
_("Target moves filter"), |
|||
_("All posted entries") |
|||
if report.target_move == "posted" |
|||
else _("All entries"), |
|||
], |
|||
] |
|||
|
|||
def _get_col_count_filter_name(self): |
|||
return 2 |
|||
|
|||
def _get_col_count_filter_value(self): |
|||
return 3 |
|||
|
|||
def _get_col_pos_footer_label(self, report): |
|||
return 0 if not report.show_move_line_details else 5 |
|||
|
|||
def _get_col_count_final_balance_name(self): |
|||
return 5 |
|||
|
|||
def _get_col_pos_final_balance_label(self): |
|||
return 5 |
|||
|
|||
def _generate_report_content(self, workbook, report, data): |
|||
res_data = self.env[ |
|||
"report.account_financial_report.aged_partner_balance" |
|||
]._get_report_values(report, data) |
|||
show_move_line_details = res_data["show_move_lines_details"] |
|||
aged_partner_balance = res_data["aged_partner_balance"] |
|||
if not show_move_line_details: |
|||
# For each account |
|||
for account in aged_partner_balance: |
|||
# Write account title |
|||
self.write_array_title(account["code"] + " - " + account["name"]) |
|||
|
|||
# Display array header for partners lines |
|||
self.write_array_header() |
|||
|
|||
# Display partner lines |
|||
for partner in account["partners"]: |
|||
self.write_line_from_dict(partner) |
|||
|
|||
# Display account lines |
|||
self.write_account_footer_from_dict( |
|||
report, |
|||
account, |
|||
("Total"), |
|||
"field_footer_total", |
|||
self.format_header_right, |
|||
self.format_header_amount, |
|||
False, |
|||
) |
|||
self.write_account_footer_from_dict( |
|||
report, |
|||
account, |
|||
("Percents"), |
|||
"field_footer_percent", |
|||
self.format_right_bold_italic, |
|||
self.format_percent_bold_italic, |
|||
True, |
|||
) |
|||
|
|||
# 2 lines break |
|||
self.row_pos += 2 |
|||
else: |
|||
# For each account |
|||
for account in aged_partner_balance: |
|||
# Write account title |
|||
self.write_array_title(account["code"] + " - " + account["name"]) |
|||
|
|||
# For each partner |
|||
for partner in account["partners"]: |
|||
# Write partner title |
|||
self.write_array_title(partner["name"]) |
|||
|
|||
# Display array header for move lines |
|||
self.write_array_header() |
|||
|
|||
# Display account move lines |
|||
for line in partner["move_lines"]: |
|||
self.write_line_from_dict(line) |
|||
|
|||
# Display ending balance line for partner |
|||
self.write_ending_balance_from_dict(partner) |
|||
|
|||
# Line break |
|||
self.row_pos += 1 |
|||
|
|||
# Display account lines |
|||
self.write_account_footer_from_dict( |
|||
report, |
|||
account, |
|||
("Total"), |
|||
"field_footer_total", |
|||
self.format_header_right, |
|||
self.format_header_amount, |
|||
False, |
|||
) |
|||
|
|||
self.write_account_footer_from_dict( |
|||
report, |
|||
account, |
|||
("Percents"), |
|||
"field_footer_percent", |
|||
self.format_right_bold_italic, |
|||
self.format_percent_bold_italic, |
|||
True, |
|||
) |
|||
|
|||
# 2 lines break |
|||
self.row_pos += 2 |
|||
|
|||
def write_ending_balance_from_dict(self, my_object): |
|||
""" |
|||
Specific function to write ending partner balance |
|||
for Aged Partner Balance |
|||
""" |
|||
name = None |
|||
label = _("Partner cumul aged balance") |
|||
super(AgedPartnerBalanceXslx, self).write_ending_balance_from_dict( |
|||
my_object, name, label |
|||
) |
|||
|
|||
def write_account_footer_from_dict( |
|||
self, |
|||
report, |
|||
account, |
|||
label, |
|||
field_name, |
|||
string_format, |
|||
amount_format, |
|||
amount_is_percent, |
|||
): |
|||
""" |
|||
Specific function to write account footer for Aged Partner Balance |
|||
""" |
|||
col_pos_footer_label = self._get_col_pos_footer_label(report) |
|||
for col_pos, column in self.columns.items(): |
|||
if col_pos == col_pos_footer_label or column.get(field_name): |
|||
if col_pos == col_pos_footer_label: |
|||
value = label |
|||
else: |
|||
value = account.get(column[field_name], False) |
|||
cell_type = column.get("type", "string") |
|||
if cell_type == "string" or col_pos == col_pos_footer_label: |
|||
self.sheet.write_string( |
|||
self.row_pos, col_pos, value or "", string_format |
|||
) |
|||
elif cell_type == "amount": |
|||
number = float(value) |
|||
if amount_is_percent: |
|||
number /= 100 |
|||
self.sheet.write_number( |
|||
self.row_pos, col_pos, number, amount_format |
|||
) |
|||
else: |
|||
self.sheet.write_string(self.row_pos, col_pos, "", string_format) |
|||
|
|||
self.row_pos += 1 |
@ -0,0 +1,131 @@ |
|||
<?xml version="1.0"?> |
|||
<document filename="test.pdf"> |
|||
<template pageSize="(21.59cm,27.94cm)" title="Test" author="Martin Simon" allowSplitting="20" showBoundary="0"> |
|||
<pageTemplate id="first"> |
|||
<frame id="first" x1="1cm" y1="1.0cm" width="19.0cm" height="23cm"/> |
|||
<pageGraphics> |
|||
<setFont name="Helvetica-Oblique" size="6"/> |
|||
|
|||
<image x="1.0cm" y="24.0cm" width="5.0cm">[[company.logo and company.logo or removeParentNode('image')]]</image> |
|||
<!-- |
|||
<drawString x="1.0cm" y="24.5cm">[[company.logo and removeParentNode('para') or company.name]]</drawString> |
|||
--> |
|||
<place x="-3.5cm" y="22.50cm" width="19cm" height="5.0cm"> |
|||
<blockTable colWidths="9.6cm,9.4cm" style="TITLE"> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER_NAME"> |
|||
<font>[[ (company.name and company.name or 'NOMBRE DE COMPANIA NO DISPONIBLE')]]</font> |
|||
<font>[[ get_vat_by_country(data['form']) ]]</font> |
|||
</para></td> |
|||
</tr> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER">(Expressed in [[data['form'] and ('%s'%( exchange_name(data['form']))) or '']])</para></td> |
|||
</tr> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER">[[data['form'] and get_month(data['form']) or '']]</para></td> |
|||
</tr> |
|||
</blockTable> |
|||
</place> |
|||
<drawRightString x="207mm" y="5mm">Printing Date: [[ formatLang(time.strftime('%Y-%m-%d %H:%M:%S'),date_time=True) ]] [[ get_informe_text(data['form']) ]] / Pág.: <pageNumber/>-<pageCount/></drawRightString> |
|||
|
|||
</pageGraphics> |
|||
|
|||
</pageTemplate> |
|||
</template> |
|||
<stylesheet> |
|||
<blockTableStyle id="BODY"> |
|||
<blockValign value="TOP"/> |
|||
<blockAlignment value="RIGHT"/> |
|||
<blockTopPadding length="1.0"/> |
|||
<blockBottomPadding length="1.0"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,1" stop="-1,-1" thickness='0.25'/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="TITLE"> |
|||
<blockValign value="TOP"/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="BODY_STRIKE"> |
|||
<blockValign value="TOP"/> |
|||
<blockAlignment value="RIGHT"/> |
|||
<blockTopPadding length="1.0"/> |
|||
<blockBottomPadding length="1.0"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#FFFFFF" start="0,1" stop="-1,-1" thickness='0.5'/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="TOP_TABLE"> |
|||
<blockAlignment value="LEFT"/> |
|||
<blockValign value="TOP"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#FFFFFF" start="0,-1" stop="0,-1" thickness='0.25'/> |
|||
</blockTableStyle> |
|||
|
|||
<initialize> |
|||
<paraStyle name="all" alignment="justify"/> |
|||
</initialize> |
|||
<paraStyle |
|||
name="TITLE_LEFT_ALIGN" |
|||
fontName="Helvetica-Bold" |
|||
fontSize="8.0" |
|||
leading="10" |
|||
alignment="RIGHT" |
|||
spaceBefore="0.0" |
|||
spaceAfter="0.0"/> |
|||
<paraStyle |
|||
name="TOP_TITLE" |
|||
fontName="Helvetica-Bold" |
|||
fontSize="9" |
|||
leftIndent="0.0" |
|||
alignment="LEFT"/> |
|||
<paraStyle name="TITLE_CENTER" fontName="Helvetica-Bold" fontSize="9" leading="10" leftIndent="0.0" alignment="CENTER"/> |
|||
<paraStyle name="TITLE_CENTER_NAME" fontName="Helvetica-Bold" fontSize="12" leading="13" leftIndent="0.0" alignment="CENTER"/> |
|||
<paraStyle name="TITLES" |
|||
fontName="Helvetica-Bold" |
|||
fontSize="8.0" |
|||
leading="10" |
|||
alignment="LEFT" |
|||
spaceBefore="0.0" |
|||
spaceAfter="0.0"/> |
|||
<paraStyle name="TITLE" alignment="CENTER" fontName="Helvetica" fontSize="18.0" leading="20" spaceBefore="-3.0" textColor="black"/> |
|||
</stylesheet> |
|||
<images/> |
|||
<story> |
|||
<para>[[setLang(user.lang)]]</para> |
|||
|
|||
<blockTable colWidths="2.5cm,13.5cm,3.0cm" style="BODY" repeatRows="1"> |
|||
<tr noRowsplits="1"> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ setTag('para','para',{'alignment':"RIGHT"}) ]]</font> |
|||
<font>CODE</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES">ACCOUNT</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">BALANCE</para> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">[[ repeatIn(lines(data['form']), 'a') ]] |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<i>[[a['label']==True and a['code'] or '' ]]</i> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES"> |
|||
<font>[[ ((a['total'] and not a['label']) and setTag('para','para',{'alignment':"RIGHT"}) or (a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}))) or removeParentNode('font') ]]</font> |
|||
<font>[[ a['type']=='view' and a['name'].upper() or a['name'].title() ]]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['balance'] and a['balance'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
</tr> |
|||
</blockTable> |
|||
</story> |
|||
</document> |
@ -0,0 +1,235 @@ |
|||
<?xml version="1.0"?> |
|||
<document filename="test.pdf"> |
|||
<template pageSize="(43.18cm,27.94cm)" title="Test" author="Martin Simon" allowSplitting="20" showBoundary="0"> |
|||
<pageTemplate id="first"> |
|||
<frame id="first" x1="0.5cm" y1="1.0cm" width="41.0cm" height="23cm"/> |
|||
<pageGraphics> |
|||
<setFont name="Helvetica-Oblique" size="6"/> |
|||
|
|||
<image x="1.0cm" y="24.0cm" width="5.0cm">[[company.logo and company.logo or removeParentNode('image')]]</image> |
|||
<!-- |
|||
<drawString x="1.0cm" y="24.5cm">[[company.logo and removeParentNode('para') or company.name]]</drawString> |
|||
--> |
|||
|
|||
<place x="-3.5cm" y="22.50cm" width="19cm" height="5.0cm"> |
|||
<blockTable colWidths="9.6cm,9.4cm" style="TITLE"> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER_NAME"> |
|||
<font>[[ (company.name and company.name or 'NOMBRE DE COMPANIA NO DISPONIBLE')]]</font> |
|||
<font>[[ get_vat_by_country(data['form']) ]]</font> |
|||
</para></td> |
|||
</tr> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER">[[ get_informe_text(data['form']) ]]</para></td> |
|||
</tr> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER">(Expressed in [[data['form'] and ('%s'%( exchange_name(data['form']))) or '']])</para></td> |
|||
</tr> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER">[[data['form'] and get_month(data['form']) or '']]</para></td> |
|||
</tr> |
|||
</blockTable> |
|||
</place> |
|||
<drawRightString x="420mm" y="5mm">Printing Date: [[ formatLang(time.strftime('%Y-%m-%d %H:%M:%S'),date_time=True) ]] [[ get_informe_text(data['form']) ]] / Pág.: <pageNumber/>-<pageCount/></drawRightString> |
|||
</pageGraphics> |
|||
|
|||
</pageTemplate> |
|||
</template> |
|||
<stylesheet> |
|||
<blockTableStyle id="TITLE"> |
|||
<blockValign value="TOP"/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="BODY"> |
|||
<blockValign value="TOP"/> |
|||
<blockAlignment value="RIGHT"/> |
|||
<blockTopPadding length="1.0"/> |
|||
<blockBottomPadding length="1.0"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,1" stop="-1,-1" thickness='0.25'/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="BODY_STRIKE"> |
|||
<blockValign value="TOP"/> |
|||
<blockAlignment value="RIGHT"/> |
|||
<blockTopPadding length="1.0"/> |
|||
<blockBottomPadding length="1.0"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#FFFFFF" start="0,1" stop="-1,-1" thickness='0.5'/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="TOP_TABLE"> |
|||
<blockAlignment value="LEFT"/> |
|||
<blockValign value="TOP"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#FFFFFF" start="0,-1" stop="0,-1" thickness='0.25'/> |
|||
</blockTableStyle> |
|||
|
|||
<initialize> |
|||
<paraStyle |
|||
name="all" |
|||
alignment="justify" |
|||
fontName="Helvetica" |
|||
fontSize="6.0" |
|||
/> |
|||
</initialize> |
|||
<paraStyle |
|||
name="TITLE_LEFT_ALIGN" |
|||
fontName="Helvetica-Bold" |
|||
fontSize="6.0" |
|||
leading="10" |
|||
alignment="RIGHT" |
|||
spaceBefore="0.0" |
|||
spaceAfter="0.0"/> |
|||
<paraStyle name="TOP_TITLE" fontName="Helvetica-Bold" fontSize="7" leftIndent="0.0" alignment="LEFT"/> |
|||
<paraStyle name="TITLES" fontName="Helvetica-Bold" fontSize="6.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> |
|||
<paraStyle name="TITLE_CENTER" fontName="Helvetica-Bold" fontSize="7" leading="10" leftIndent="0.0" alignment="CENTER"/> |
|||
<paraStyle name="TITLE_CENTER_NAME" fontName="Helvetica-Bold" fontSize="12" leading="13" leftIndent="0.0" alignment="CENTER"/> |
|||
<paraStyle name="TITLE" alignment="CENTER" fontName="Helvetica" fontSize="18.0" leading="20" spaceBefore="-3.0" textColor="black"/> |
|||
</stylesheet> |
|||
<images/> |
|||
<story> |
|||
<para>[[setLang(user.lang)]]</para> |
|||
<blockTable colWidths="2.0cm,6.5cm,2.5cm,2.5cm,2.5cm,2.5cm,2.5cm,2.5cm,2.5cm,2.5cm,2.5cm,2.5cm,2.5cm,2.5cm,2.5cm" style="BODY" repeatRows="1"> |
|||
<tr noRowsplits="1"> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>CODE</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES">ACCOUNT</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">01</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">02</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">03</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">04</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">05</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">06</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">07</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">08</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">09</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">10</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">11</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">12</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">YTD</para> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">[[ repeatIn(lines(data['form']), 'a') ]] |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<i>[[a['label']==True and a['code'] or '' ]]</i> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES"> |
|||
<font>[[ ((a['total'] and not a['label']) and setTag('para','para',{'alignment':"RIGHT"}) or (a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}))) or removeParentNode('font') ]]</font> |
|||
<font>[[ a['type']=='view' and a['name'].upper() or a['name'].title() ]]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['bal1'] and a['bal1'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['bal2'] and a['bal2'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['bal3'] and a['bal3'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['bal4'] and a['bal4'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['bal5'] and a['bal5'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['bal6'] and a['bal6'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['bal7'] and a['bal7'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['bal8'] and a['bal8'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['bal9'] and a['bal9'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['bal10'] and a['bal10'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['bal11'] and a['bal11'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['bal12'] and a['bal12'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['bal13'] and a['bal13'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
</tr> |
|||
</blockTable> |
|||
</story> |
|||
</document> |
@ -0,0 +1,131 @@ |
|||
<?xml version="1.0"?> |
|||
<document filename="test.pdf"> |
|||
<template pageSize="(21.59cm,27.94cm)" title="Test" author="Martin Simon" allowSplitting="20" showBoundary="0"> |
|||
<pageTemplate id="first"> |
|||
<frame id="first" x1="1cm" y1="1.0cm" width="19.0cm" height="23cm"/> |
|||
<pageGraphics> |
|||
<setFont name="Helvetica-Oblique" size="6"/> |
|||
|
|||
<image x="1.0cm" y="24.0cm" width="5.0cm">[[company.logo and company.logo or removeParentNode('image')]]</image> |
|||
<!-- |
|||
<drawString x="1.0cm" y="24.5cm">[[company.logo and removeParentNode('para') or company.name]]</drawString> |
|||
--> |
|||
<place x="-3.5cm" y="22.50cm" width="19cm" height="5.0cm"> |
|||
<blockTable colWidths="9.6cm,9.4cm" style="TITLE"> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER_NAME"> |
|||
<font>[[ (company.name and company.name or 'NOMBRE DE COMPANIA NO DISPONIBLE')]]</font> |
|||
<font>[[ get_vat_by_country(data['form']) ]]</font> |
|||
</para></td> |
|||
</tr> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER">[[ get_informe_text(data['form']) ]]</para></td> |
|||
</tr> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER">(Expressed in [[data['form'] and ('%s'%( exchange_name(data['form']))) or '']])</para></td> |
|||
</tr> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER">[[data['form'] and get_month(data['form']) or '']]</para></td> |
|||
</tr> |
|||
</blockTable> |
|||
</place> |
|||
<drawRightString x="207mm" y="5mm">Printing Date: [[ formatLang(time.strftime('%Y-%m-%d %H:%M:%S'),date_time=True) ]] [[ get_informe_text(data['form']) ]] / Pág.: <pageNumber/>-<pageCount/></drawRightString> |
|||
</pageGraphics> |
|||
|
|||
</pageTemplate> |
|||
</template> |
|||
<stylesheet> |
|||
<blockTableStyle id="TITLE"> |
|||
<blockValign value="TOP"/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="BODY"> |
|||
<blockValign value="TOP"/> |
|||
<blockAlignment value="RIGHT"/> |
|||
<blockTopPadding length="1.0"/> |
|||
<blockBottomPadding length="1.0"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,1" stop="-1,-1" thickness='0.25'/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="BODY_STRIKE"> |
|||
<blockValign value="TOP"/> |
|||
<blockAlignment value="RIGHT"/> |
|||
<blockTopPadding length="1.0"/> |
|||
<blockBottomPadding length="1.0"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#FFFFFF" start="0,1" stop="-1,-1" thickness='0.5'/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="TOP_TABLE"> |
|||
<blockAlignment value="LEFT"/> |
|||
<blockValign value="TOP"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#FFFFFF" start="0,-1" stop="0,-1" thickness='0.25'/> |
|||
</blockTableStyle> |
|||
|
|||
<initialize> |
|||
<paraStyle name="all" alignment="justify"/> |
|||
</initialize> |
|||
<paraStyle |
|||
name="TITLE_LEFT_ALIGN" |
|||
fontName="Helvetica-Bold" |
|||
fontSize="8.0" |
|||
leading="10" |
|||
alignment="RIGHT" |
|||
spaceBefore="0.0" |
|||
spaceAfter="0.0"/> |
|||
<paraStyle name="TOP_TITLE" fontName="Helvetica-Bold" fontSize="9" leftIndent="0.0" alignment="LEFT"/> |
|||
<paraStyle name="TITLES" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> |
|||
<paraStyle name="TITLE_CENTER" fontName="Helvetica-Bold" fontSize="9" leading="10" leftIndent="0.0" alignment="CENTER"/> |
|||
<paraStyle name="TITLE_CENTER_NAME" fontName="Helvetica-Bold" fontSize="12" leading="13" leftIndent="0.0" alignment="CENTER"/> |
|||
<paraStyle name="TITLE" alignment="CENTER" fontName="Helvetica" fontSize="18.0" leading="20" spaceBefore="-3.0" textColor="black"/> |
|||
</stylesheet> |
|||
<images/> |
|||
<story> |
|||
<para>[[setLang(user.lang)]]</para> |
|||
<blockTable colWidths="2.5cm,9.5cm,3.5cm,3.5cm" style="BODY" repeatRows="1"> |
|||
<tr noRowsplits="1"> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>CODE</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES">ACCOUNT</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">DEBIT</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">CREDIT</para> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">[[ repeatIn(lines(data['form']), 'a') ]] |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<i>[[a['label']==True and a['code'] or '' ]]</i> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES"> |
|||
<font>[[ ((a['total'] and not a['label']) and setTag('para','para',{'alignment':"RIGHT"}) or (a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}))) or removeParentNode('font') ]]</font> |
|||
<font>[[ a['type']=='view' and a['name'].upper() or a['name'].title() ]]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['debit'], digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['credit'], digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
|
|||
</tr> |
|||
</blockTable> |
|||
</story> |
|||
</document> |
@ -0,0 +1,149 @@ |
|||
<?xml version="1.0"?> |
|||
<document filename="test.pdf"> |
|||
<template pageSize="(21.59cm,27.94cm)" title="Test" author="Martin Simon" allowSplitting="20" showBoundary="0"> |
|||
<pageTemplate id="first"> |
|||
<frame id="first" x1="0.5cm" y1="1.0cm" width="20.5cm" height="23cm"/> |
|||
<pageGraphics> |
|||
<setFont name="Helvetica-Oblique" size="6"/> |
|||
|
|||
<image x="1.0cm" y="24.0cm" width="5.0cm">[[company.logo and company.logo or removeParentNode('image')]]</image> |
|||
<!-- |
|||
<drawString x="1.0cm" y="24.5cm">[[company.logo and removeParentNode('para') or company.name]]</drawString> |
|||
--> |
|||
|
|||
<place x="-3.5cm" y="22.50cm" width="19cm" height="5.0cm"> |
|||
<blockTable colWidths="9.6cm,9.4cm" style="TITLE"> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER_NAME"> |
|||
<font>[[ (company.name and company.name or 'NOMBRE DE COMPANIA NO DISPONIBLE')]]</font> |
|||
<font>[[ get_vat_by_country(data['form']) ]]</font> |
|||
</para></td> |
|||
</tr> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER">[[ get_informe_text(data['form']) ]]</para></td> |
|||
</tr> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER">(Expressed in [[data['form'] and ('%s'%( exchange_name(data['form']))) or '']])</para></td> |
|||
</tr> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER">[[data['form'] and get_month(data['form']) or '']]</para></td> |
|||
</tr> |
|||
</blockTable> |
|||
</place> |
|||
<drawRightString x="207mm" y="5mm">Printing Date: [[ formatLang(time.strftime('%Y-%m-%d %H:%M:%S'),date_time=True) ]] [[ get_informe_text(data['form']) ]] / Pág.: <pageNumber/>-<pageCount/></drawRightString> |
|||
</pageGraphics> |
|||
|
|||
</pageTemplate> |
|||
</template> |
|||
<stylesheet> |
|||
<blockTableStyle id="TITLE"> |
|||
<blockValign value="TOP"/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="BODY"> |
|||
<blockValign value="TOP"/> |
|||
<blockAlignment value="RIGHT"/> |
|||
<blockTopPadding length="1.0"/> |
|||
<blockBottomPadding length="1.0"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,1" stop="-1,-1" thickness='0.25'/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="BODY_STRIKE"> |
|||
<blockValign value="TOP"/> |
|||
<blockAlignment value="RIGHT"/> |
|||
<blockTopPadding length="1.0"/> |
|||
<blockBottomPadding length="1.0"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#FFFFFF" start="0,1" stop="-1,-1" thickness='0.5'/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="TOP_TABLE"> |
|||
<blockAlignment value="LEFT"/> |
|||
<blockValign value="TOP"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#FFFFFF" start="0,-1" stop="0,-1" thickness='0.25'/> |
|||
</blockTableStyle> |
|||
|
|||
<initialize> |
|||
<paraStyle name="all" alignment="justify"/> |
|||
</initialize> |
|||
<paraStyle |
|||
name="TITLE_LEFT_ALIGN" |
|||
fontName="Helvetica-Bold" |
|||
fontSize="6.0" |
|||
leading="10" |
|||
alignment="RIGHT" |
|||
spaceBefore="0.0" |
|||
spaceAfter="0.0"/> |
|||
<paraStyle name="TOP_TITLE" fontName="Helvetica-Bold" fontSize="7" leftIndent="0.0" alignment="LEFT"/> |
|||
<paraStyle name="TITLES" fontName="Helvetica-Bold" fontSize="6.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> |
|||
<paraStyle name="TITLE_CENTER" fontName="Helvetica-Bold" fontSize="7" leading="10" leftIndent="0.0" alignment="CENTER"/> |
|||
<paraStyle name="TITLE_CENTER_NAME" fontName="Helvetica-Bold" fontSize="12" leading="13" leftIndent="0.0" alignment="CENTER"/> |
|||
<paraStyle name="TITLE" alignment="CENTER" fontName="Helvetica" fontSize="18.0" leading="20" spaceBefore="-3.0" textColor="black"/> |
|||
</stylesheet> |
|||
<images/> |
|||
<story> |
|||
<para>[[setLang(user.lang)]]</para> |
|||
<blockTable colWidths="2.5cm,6.5cm,2.5cm,3.5cm,3.5cm,2.5cm" style="BODY" repeatRows="1"> |
|||
<tr noRowsplits="1"> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>CODE</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES">ACCOUNT</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">INITIAL</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">DEBIT</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">CREDIT</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">BALANCE</para> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">[[ repeatIn(lines(data['form']), 'a') ]] |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<i>[[a['label']==True and a['code'] or '' ]]</i> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES"> |
|||
<font>[[ ((a['total'] and not a['label']) and setTag('para','para',{'alignment':"RIGHT"}) or (a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}))) or removeParentNode('font') ]]</font> |
|||
<font>[[ a['type']=='view' and a['name'].upper() or a['name'].title() ]]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['balanceinit'] and a['balanceinit'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['debit'], digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['credit'], digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['balance'] and a['balance'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
</tr> |
|||
</blockTable> |
|||
</story> |
|||
</document> |
@ -0,0 +1,294 @@ |
|||
<?xml version="1.0"?> |
|||
<document filename="test.pdf"> |
|||
<template pageSize="(27.94cm,21.59cm)" title="Test" author="Martin Simon" allowSplitting="20" showBoundary="0"> |
|||
<pageTemplate id="first"> |
|||
<frame id="first" x1="1.0cm" y1="1.0cm" width="26.0cm" height="16.65cm"/> |
|||
<pageGraphics> |
|||
<setFont name="Helvetica-Oblique" size="6"/> |
|||
|
|||
<image x="1.0cm" y="17.65cm" width="5.0cm">[[company.logo and company.logo or removeParentNode('image')]]</image> |
|||
<!-- |
|||
<drawString x="1.0cm" y="24.5cm">[[company.logo and removeParentNode('para') or company.name]]</drawString> |
|||
--> |
|||
|
|||
<place x="-3.5cm" y="16.15cm" width="19cm" height="5.0cm"> |
|||
<blockTable colWidths="9.6cm,9.4cm" style="TITLE"> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER_NAME"> |
|||
<font>[[ (company.name and company.name or 'NOMBRE DE COMPANIA NO DISPONIBLE')]]</font> |
|||
<font>[[ get_vat_by_country(data['form']) ]]</font> |
|||
</para></td> |
|||
</tr> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER">[[ get_informe_text(data['form']) ]]</para></td> |
|||
</tr> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER">(Expressed in [[data['form'] and (' %s'%( exchange_name(data['form']))) or '']])</para></td> |
|||
</tr> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER">[[data['form'] and get_month(data['form']) or '']]</para></td> |
|||
</tr> |
|||
</blockTable> |
|||
</place> |
|||
<drawRightString x="270mm" y="5mm">Printing Date: [[ formatLang(time.strftime('%Y-%m-%d %H:%M:%S'),date_time=True) ]] [[ get_informe_text(data['form']) ]] / Pág.: <pageNumber/>-<pageCount/></drawRightString> |
|||
</pageGraphics> |
|||
|
|||
</pageTemplate> |
|||
</template> |
|||
<stylesheet> |
|||
<blockTableStyle id="BODY_LINE"> |
|||
<blockValign value="TOP"/> |
|||
<blockAlignment value="RIGHT"/> |
|||
<blockTopPadding length="1.0"/> |
|||
<blockBottomPadding length="1.0"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,0" stop="-1,-1" thickness='0.25'/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="TITLE"> |
|||
<blockValign value="TOP"/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="BODY"> |
|||
<blockValign value="TOP"/> |
|||
<blockAlignment value="RIGHT"/> |
|||
<blockTopPadding length="1.0"/> |
|||
<blockBottomPadding length="1.0"/> |
|||
<lineStyle kind="LINEBELOW" colorName="darkgrey" start="0,0" stop="-1,-1" thickness='0.25'/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="BODY_STRIKE"> |
|||
<blockValign value="TOP"/> |
|||
<blockAlignment value="RIGHT"/> |
|||
<blockTopPadding length="1.0"/> |
|||
<blockBottomPadding length="1.0"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#FFFFFF" start="0,1" stop="-1,-1" thickness='0.5'/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="TOP_TABLE"> |
|||
<blockAlignment value="LEFT"/> |
|||
<blockValign value="TOP"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#FFFFFF" start="0,-1" stop="0,-1" thickness='0.25'/> |
|||
</blockTableStyle> |
|||
|
|||
<initialize> |
|||
<paraStyle name="all" alignment="justify"/> |
|||
</initialize> |
|||
|
|||
<paraStyle |
|||
name="TITLE_LEFT_ALIGN_NEW" |
|||
fontName="Courier" |
|||
fontSize="7.0" |
|||
leading="10" |
|||
alignment="RIGHT" |
|||
spaceBefore="0.0" |
|||
spaceAfter="0.0"/> |
|||
<paraStyle name="TITLES_NEW" |
|||
fontName="Courier" |
|||
fontSize="7.0" |
|||
leading="10" |
|||
alignment="LEFT" |
|||
spaceBefore="0.0" |
|||
spaceAfter="0.0"/> |
|||
<paraStyle |
|||
name="TITLE_LEFT_ALIGN" |
|||
fontName="Helvetica-Bold" |
|||
fontSize="7.0" |
|||
leading="10" |
|||
alignment="RIGHT" |
|||
spaceBefore="0.0" |
|||
spaceAfter="0.0"/> |
|||
<paraStyle name="TOP_TITLE" fontName="Helvetica-Bold" fontSize="7" leftIndent="0.0" alignment="LEFT"/> |
|||
<paraStyle |
|||
name="TITLES" |
|||
fontName="Helvetica-Bold" |
|||
fontSize="7.0" |
|||
leading="10" |
|||
alignment="LEFT" |
|||
spaceBefore="0.0" |
|||
spaceAfter="0.0"/> |
|||
<paraStyle name="TITLE_CENTER" fontName="Helvetica-Bold" fontSize="7" leading="10" leftIndent="0.0" alignment="CENTER"/> |
|||
<paraStyle name="TITLE_CENTER_NAME" fontName="Helvetica-Bold" fontSize="12" leading="13" leftIndent="0.0" alignment="CENTER"/> |
|||
<paraStyle |
|||
name="TITLE" |
|||
alignment="CENTER" |
|||
fontName="Helvetica" |
|||
fontSize="18.0" |
|||
leading="20" |
|||
spaceBefore="-3.0" |
|||
textColor="black"/> |
|||
</stylesheet> |
|||
<images/> |
|||
<story> |
|||
<para>[[setLang(user.lang)]]</para> |
|||
|
|||
<blockTable colWidths="2.5cm,13.5cm,2.5cm,2.5cm,2.5cm,2.5cm" style="BODY" repeatRows="0"> |
|||
<tr noRowsplits="0"> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>CODE</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES">ACCOUNT</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">INITIAL</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">DEBIT</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">CREDIT</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">BALANCE</para> |
|||
</td> |
|||
</tr> |
|||
</blockTable> |
|||
|
|||
<blockTable colWidths="2.25cm,2.0cm,7.75cm,2.5cm,4.0cm,2.5cm,2.5cm,2.5cm" style="BODY_LINE" repeatRows="1"> |
|||
<!-- |
|||
[[ (a['type'] <> 'view') or removeParentNode('blockTable') ]] |
|||
--> |
|||
<tr noRowsplits="1"> |
|||
<td> |
|||
<para style="TITLES_NEW"> |
|||
<font>DATE</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW"> |
|||
<font>PERIOD</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW">REFERENCE</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW">JOURNAL ENTRY</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW">PARTNER</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"></para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"></para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"></para> |
|||
</td> |
|||
</tr> |
|||
</blockTable> |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
<section> |
|||
<para>[[ repeatIn([x for x in lines(data['form']) if x['type'] != 'view'], 'a') ]]</para> |
|||
<blockTable colWidths="2.5cm,13.5cm,2.5cm,2.5cm,2.5cm,2.5cm" style="BODY" repeatRows="0"> |
|||
<tr> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]]</font> |
|||
<i>[[a['label']==True and a['code'] or '' ]]</i> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES"> |
|||
<font>[[ ((a['total'] and not a['label']) and setTag('para','para',{'alignment':"RIGHT"}) or (a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}))) or removeParentNode('font') ]]</font> |
|||
<font>[[ a['type']=='view' and a['name'].upper() or a['name'].title() ]]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['balanceinit'] and a['balanceinit'] * a.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['debit'], digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['credit'], digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['balance'] and a['balance'] * a.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
</tr> |
|||
</blockTable> |
|||
|
|||
<section> |
|||
<para>[[ repeatIn(a['mayor'], 'm') ]]</para> |
|||
<blockTable colWidths="2.25cm,2.0cm,7.75cm,2.5cm,4.0cm,2.5cm,2.5cm,2.5cm" style="BODY_LINE" repeatRows="1"> |
|||
<!-- |
|||
[[ (a['type'] <> 'view') or removeParentNode('blockTable') ]] |
|||
--> |
|||
<tr> |
|||
<td> |
|||
<para style="TITLES_NEW"> |
|||
<font> [[ formatLang( m['date'], date=True) ]]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW"> |
|||
<font>[[ m['period'] ]]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW"> |
|||
<font>[[ m['name'] ]] [[ m['ref'] and (' - Ref %s'%m['ref']) or '' ]] </font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW"> |
|||
<font>[[ m['entry'] ]]</font> |
|||
</para> |
|||
<!-- |
|||
<para style="TITLES_NEW"> |
|||
<font>[[ m['journal'] ]]</font> |
|||
</para> |
|||
--> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW"> |
|||
<font>[[ m['partner'] ]]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(m['debit'], digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(m['credit'], digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(m['balance'] and m['balance'] * a.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
</tr> |
|||
</blockTable> |
|||
</section> |
|||
<spacer length="2.5mm"/> |
|||
</section> |
|||
|
|||
</story> |
|||
</document> |
@ -0,0 +1,397 @@ |
|||
<?xml version="1.0"?> |
|||
<document filename="test.pdf"> |
|||
<template pageSize="(27.94cm,21.59cm)" title="Test" author="Martin Simon" allowSplitting="20" showBoundary="0"> |
|||
<pageTemplate id="first"> |
|||
<frame id="first" x1="1.0cm" y1="1.0cm" width="26.0cm" height="16.65cm"/> |
|||
<pageGraphics> |
|||
<setFont name="Helvetica-Oblique" size="6"/> |
|||
|
|||
<image x="1.0cm" y="17.65cm" width="5.0cm">[[company.logo and company.logo or removeParentNode('image')]]</image> |
|||
<!-- |
|||
<drawString x="1.0cm" y="24.5cm">[[company.logo and removeParentNode('para') or company.name]]</drawString> |
|||
--> |
|||
|
|||
<place x="-3.5cm" y="16.15cm" width="19cm" height="5.0cm"> |
|||
<blockTable colWidths="9.6cm,9.4cm" style="TITLE"> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER_NAME"> |
|||
<font>[[ (company.name and company.name or 'NOMBRE DE COMPANIA NO DISPONIBLE')]]</font> |
|||
<font>[[ company.partner_id.vat and ('- %s-%s-%s'%(company.partner_id.vat[2:3],company.partner_id.vat[3:11],company.partner_id.vat[11:12])) or '' ]]</font> |
|||
</para></td> |
|||
</tr> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER">[[ get_informe_text(data['form']) ]]</para></td> |
|||
</tr> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER">(Expressed in [[data['form'] and (' %s'%( exchange_name(data['form']))) or '']])</para></td> |
|||
</tr> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER">[[data['form'] and get_month(data['form']) or '']]</para></td> |
|||
</tr> |
|||
</blockTable> |
|||
</place> |
|||
<drawRightString x="270mm" y="5mm">Printing Date: [[ formatLang(time.strftime('%Y-%m-%d %H:%M:%S'),date_time=True) ]] [[ get_informe_text(data['form']) ]] / Pág.: <pageNumber/>-<pageCount/></drawRightString> |
|||
</pageGraphics> |
|||
</pageTemplate> |
|||
</template> |
|||
<stylesheet> |
|||
<blockTableStyle id="BODY_LINE"> |
|||
<blockValign value="TOP"/> |
|||
<blockAlignment value="RIGHT"/> |
|||
<blockTopPadding length="1.0"/> |
|||
<blockBottomPadding length="1.0"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,0" stop="-1,-1" thickness='0.25'/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="BODY_LINE_FILLED"> |
|||
<blockBackground colorName="lightgrey" start="0,0" stop="-1,-1"/> |
|||
<blockValign value="TOP"/> |
|||
<blockAlignment value="RIGHT"/> |
|||
<blockTopPadding length="1.0"/> |
|||
<blockBottomPadding length="1.0"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,0" stop="-1,-1" thickness='0.25'/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="TITLE"> |
|||
<blockValign value="TOP"/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="BODY"> |
|||
<blockValign value="TOP"/> |
|||
<blockAlignment value="RIGHT"/> |
|||
<blockTopPadding length="1.0"/> |
|||
<blockBottomPadding length="1.0"/> |
|||
<lineStyle kind="LINEBELOW" colorName="darkgrey" start="0,0" stop="-1,-1" thickness='0.25'/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="BODY_STRIKE"> |
|||
<blockValign value="TOP"/> |
|||
<blockAlignment value="RIGHT"/> |
|||
<blockTopPadding length="1.0"/> |
|||
<blockBottomPadding length="1.0"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#FFFFFF" start="0,1" stop="-1,-1" thickness='0.5'/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="TOP_TABLE"> |
|||
<blockAlignment value="LEFT"/> |
|||
<blockValign value="TOP"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#FFFFFF" start="0,-1" stop="0,-1" thickness='0.25'/> |
|||
</blockTableStyle> |
|||
|
|||
<initialize> |
|||
<paraStyle name="all" alignment="justify"/> |
|||
</initialize> |
|||
|
|||
<paraStyle |
|||
name="TITLE_LEFT_ALIGN_NEW" |
|||
fontName="Courier" |
|||
fontSize="7.0" |
|||
leading="10" |
|||
alignment="RIGHT" |
|||
spaceBefore="0.0" |
|||
spaceAfter="0.0"/> |
|||
<paraStyle name="TITLES_NEW" |
|||
fontName="Courier" |
|||
fontSize="7.0" |
|||
leading="10" |
|||
alignment="LEFT" |
|||
spaceBefore="0.0" |
|||
spaceAfter="0.0"/> |
|||
<paraStyle name="TITLES_NEW_P" |
|||
fontName="Helvetica-Bold" |
|||
fontSize="6.0" |
|||
leading="10" |
|||
alignment="LEFT" |
|||
spaceBefore="0.0" |
|||
spaceAfter="0.0"/> |
|||
<paraStyle name="TITLES_NEW_RIGHT" |
|||
fontName="Courier" |
|||
fontSize="7.0" |
|||
leading="10" |
|||
alignment="RIGHT" |
|||
spaceBefore="0.0" |
|||
spaceAfter="0.0"/> |
|||
<paraStyle |
|||
name="TITLE_LEFT_ALIGN" |
|||
fontName="Helvetica-Bold" |
|||
fontSize="7.0" |
|||
leading="10" |
|||
alignment="RIGHT" |
|||
spaceBefore="0.0" |
|||
spaceAfter="0.0"/> |
|||
<paraStyle name="TOP_TITLE" fontName="Helvetica-Bold" fontSize="7" leftIndent="0.0" alignment="LEFT"/> |
|||
<paraStyle |
|||
name="TITLES" |
|||
fontName="Helvetica-Bold" |
|||
fontSize="7.0" |
|||
leading="10" |
|||
alignment="LEFT" |
|||
spaceBefore="0.0" |
|||
spaceAfter="0.0"/> |
|||
<paraStyle name="TITLE_CENTER" fontName="Helvetica-Bold" fontSize="7" leading="10" leftIndent="0.0" alignment="CENTER"/> |
|||
<paraStyle name="TITLE_CENTER_NAME" fontName="Helvetica-Bold" fontSize="12" leading="13" leftIndent="0.0" alignment="CENTER"/> |
|||
<paraStyle |
|||
name="TITLE" |
|||
alignment="CENTER" |
|||
fontName="Helvetica" |
|||
fontSize="18.0" |
|||
leading="20" |
|||
spaceBefore="-3.0" |
|||
textColor="black"/> |
|||
</stylesheet> |
|||
<images/> |
|||
<story> |
|||
<para>[[setLang(user.lang)]]</para> |
|||
|
|||
<blockTable colWidths="2.5cm,13.5cm,2.5cm,2.5cm,2.5cm,2.5cm" style="BODY" repeatRows="0"> |
|||
<tr noRowsplits="0"> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>CODE</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES">ACCOUNT</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">INITIAL</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">DEBIT</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">CREDIT</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">BALANCE</para> |
|||
</td> |
|||
</tr> |
|||
</blockTable> |
|||
<blockTable colWidths="6.0cm,3.0cm,3.0cm,2.5cm,4.0cm,2.5cm,2.5cm,2.5cm" style="BODY_LINE" repeatRows="0"> |
|||
<!-- |
|||
[[ (a['type'] <> 'view') or removeParentNode('blockTable') ]] |
|||
--> |
|||
<tr noRowsplits="1"> |
|||
<td> |
|||
<para style="TITLES_NEW"> |
|||
<font>DATE</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW"> |
|||
<font>PERIOD</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW">JOURNAL ENTRY</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"></para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"></para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"></para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"></para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"></para> |
|||
</td> |
|||
</tr> |
|||
</blockTable> |
|||
<section> |
|||
<para>[[ repeatIn([x for x in lines(data['form']) if x['type'] != 'view'], 'a') ]]</para> |
|||
<blockTable colWidths="2.5cm,13.5cm,2.5cm,2.5cm,2.5cm,2.5cm" style="BODY" repeatRows="0"> |
|||
<tr> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]]</font> |
|||
<i>[[a['label']==True and a['code'] or '' ]]</i> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES"> |
|||
<font>[[ ((a['total'] and not a['label']) and setTag('para','para',{'alignment':"RIGHT"}) or (a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}))) or removeParentNode('font') ]]</font> |
|||
<font>[[ a['type']=='view' and a['name'].upper() or a['name'].title() ]]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['balanceinit'] and a['balanceinit'] * a.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['debit'], digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['credit'], digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['balance'] and a['balance'] * a.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
</tr> |
|||
</blockTable> |
|||
|
|||
<section> |
|||
<para>[[ repeatIn(a['journal'], 'j') ]]</para> |
|||
<blockTable colWidths="6.0cm,3.0cm,3.0cm,2.5cm,4.0cm,2.5cm,2.5cm,2.5cm" style="BODY_LINE" repeatRows="1"> |
|||
<!-- |
|||
[[ (a['type'] <> 'view') or removeParentNode('blockTable') ]] |
|||
--> |
|||
<tr> |
|||
<td> |
|||
<para style="TITLES_NEW_P"> |
|||
<font> [[ formatLang( j['date'], date=True) ]]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW_P"> |
|||
<font>[[ j['period'] ]]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW_P"> |
|||
<font>[[ j['name'] ]] </font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW"> |
|||
<font></font> |
|||
</para> |
|||
|
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW"> |
|||
<font></font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
</para> |
|||
</td> |
|||
</tr> |
|||
</blockTable> |
|||
<section> |
|||
<para>[[ repeatIn(j.get('obj').line_id, 'k') ]]</para> |
|||
<blockTable colWidths="6.0cm,3.0cm,3.0cm,1.5cm,5.0cm,2.5cm,2.5cm,2.5cm" style="BODY_LINE_FILLED" repeatRows="1"> |
|||
<tr> |
|||
<td> |
|||
<para style="TITLES_NEW"> |
|||
<font> [[ k.account_id.code == a['code'] and k.name or removeParentNode('blockTable') ]]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW"> |
|||
<font>[[ k.ref and k.ref or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW"> |
|||
<font>[[ k.partner_id and k.partner_id.name or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW"> |
|||
<font>[[ k.account_id and k.account_id.code or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW"> |
|||
<font>[[ k.account_id and k.account_id.name or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW_RIGHT"> |
|||
<font>[[ k.account_id.type<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ k.debit and formatLang(k.debit, digits=2, grouping=True) or '' ]] </font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW_RIGHT"> |
|||
<font>[[ k.account_id.type<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ k.credit and formatLang(k.credit, digits=2, grouping=True) or '' ]] </font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW_RIGHT"> |
|||
<font>[[ k.account_id.type<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ k.reconcile_id and k.reconcile_id.name or k.reconcile_partial_id and k.reconcile_partial_id.name or '']]</font> |
|||
</para> |
|||
</td> |
|||
</tr> |
|||
</blockTable> |
|||
<blockTable colWidths="6.0cm,3.0cm,3.0cm,1.5cm,5.0cm,2.5cm,2.5cm,2.5cm" style="BODY_LINE" repeatRows="1"> |
|||
<tr> |
|||
<td> |
|||
<para style="TITLES_NEW"> |
|||
<font> [[ k.account_id.code != a['code'] and k.name or removeParentNode('blockTable') ]]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW"> |
|||
<font>[[ k.ref and k.ref or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW"> |
|||
<font>[[ k.partner_id and k.partner_id.name or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW"> |
|||
<font>[[ k.account_id and k.account_id.code or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW"> |
|||
<font>[[ k.account_id and k.account_id.name or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW_RIGHT"> |
|||
<font>[[ k.account_id.type<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ k.debit and formatLang(k.debit, digits=2, grouping=True) or '' ]] </font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW_RIGHT"> |
|||
<font>[[ k.account_id.type<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ k.credit and formatLang(k.credit, digits=2, grouping=True) or '' ]] </font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW_RIGHT"> |
|||
<font>[[ k.account_id.type<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ k.reconcile_id and k.reconcile_id.name or k.reconcile_partial_id and k.reconcile_partial_id.name or '']]</font> |
|||
</para> |
|||
</td> |
|||
</tr> |
|||
</blockTable> |
|||
</section> |
|||
<spacer length="1.5mm"/> |
|||
</section> |
|||
<spacer length="2.5mm"/> |
|||
</section> |
|||
|
|||
</story> |
|||
</document> |
@ -0,0 +1,273 @@ |
|||
<?xml version="1.0"?> |
|||
<document filename="test.pdf"> |
|||
<template pageSize="(27.94cm,21.59cm)" title="Test" author="Martin Simon" allowSplitting="20" showBoundary="0"> |
|||
<pageTemplate id="first"> |
|||
<frame id="first" x1="1.0cm" y1="1.0cm" width="26.0cm" height="16.65cm"/> |
|||
<pageGraphics> |
|||
<setFont name="Helvetica-Oblique" size="6"/> |
|||
|
|||
<image x="1.0cm" y="17.65cm" width="5.0cm">[[company.logo and company.logo or removeParentNode('image')]]</image> |
|||
<!-- |
|||
<drawString x="1.0cm" y="24.5cm">[[company.logo and removeParentNode('para') or company.name]]</drawString> |
|||
--> |
|||
|
|||
<place x="-3.5cm" y="16.15cm" width="19cm" height="5.0cm"> |
|||
<blockTable colWidths="9.6cm,9.4cm" style="TITLE"> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER_NAME"> |
|||
<font>[[ (company.name and company.name or 'NOMBRE DE COMPANIA NO DISPONIBLE')]]</font> |
|||
<font>[[ get_vat_by_country(data['form']) ]]</font> |
|||
</para></td> |
|||
</tr> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER">[[ get_informe_text(data['form']) ]]</para></td> |
|||
</tr> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER">(Expressed in [[data['form'] and (' %s'%( exchange_name(data['form']))) or '']])</para></td> |
|||
</tr> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER">[[data['form'] and get_month(data['form']) or '']]</para></td> |
|||
</tr> |
|||
</blockTable> |
|||
</place> |
|||
<drawRightString x="270mm" y="5mm">Printing Date: [[ formatLang(time.strftime('%Y-%m-%d %H:%M:%S'),date_time=True) ]] [[ get_informe_text(data['form']) ]] / Pág.: <pageNumber/>-<pageCount/></drawRightString> |
|||
</pageGraphics> |
|||
|
|||
</pageTemplate> |
|||
</template> |
|||
<stylesheet> |
|||
<blockTableStyle id="BODY_LINE"> |
|||
<blockValign value="TOP"/> |
|||
<blockAlignment value="RIGHT"/> |
|||
<blockTopPadding length="1.0"/> |
|||
<blockBottomPadding length="1.0"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,0" stop="-1,-1" thickness='0.25'/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="TITLE"> |
|||
<blockValign value="TOP"/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="BODY"> |
|||
<blockValign value="TOP"/> |
|||
<blockAlignment value="RIGHT"/> |
|||
<blockTopPadding length="1.0"/> |
|||
<blockBottomPadding length="1.0"/> |
|||
<lineStyle kind="LINEBELOW" colorName="darkgrey" start="0,0" stop="-1,-1" thickness='0.25'/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="BODY_STRIKE"> |
|||
<blockValign value="TOP"/> |
|||
<blockAlignment value="RIGHT"/> |
|||
<blockTopPadding length="1.0"/> |
|||
<blockBottomPadding length="1.0"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#FFFFFF" start="0,1" stop="-1,-1" thickness='0.5'/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="TOP_TABLE"> |
|||
<blockAlignment value="LEFT"/> |
|||
<blockValign value="TOP"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#FFFFFF" start="0,-1" stop="0,-1" thickness='0.25'/> |
|||
</blockTableStyle> |
|||
|
|||
<initialize> |
|||
<paraStyle name="all" alignment="justify"/> |
|||
</initialize> |
|||
|
|||
<paraStyle |
|||
name="TITLE_LEFT_ALIGN_NEW" |
|||
fontName="Courier" |
|||
fontSize="7.0" |
|||
leading="10" |
|||
alignment="RIGHT" |
|||
spaceBefore="0.0" |
|||
spaceAfter="0.0"/> |
|||
<paraStyle name="TITLES_NEW" |
|||
fontName="Courier" |
|||
fontSize="7.0" |
|||
leading="10" |
|||
alignment="LEFT" |
|||
spaceBefore="0.0" |
|||
spaceAfter="0.0"/> |
|||
<paraStyle |
|||
name="TITLE_LEFT_ALIGN" |
|||
fontName="Helvetica-Bold" |
|||
fontSize="7.0" |
|||
leading="10" |
|||
alignment="RIGHT" |
|||
spaceBefore="0.0" |
|||
spaceAfter="0.0"/> |
|||
<paraStyle name="TOP_TITLE" fontName="Helvetica-Bold" fontSize="7" leftIndent="0.0" alignment="LEFT"/> |
|||
<paraStyle |
|||
name="TITLES" |
|||
fontName="Helvetica-Bold" |
|||
fontSize="7.0" |
|||
leading="10" |
|||
alignment="LEFT" |
|||
spaceBefore="0.0" |
|||
spaceAfter="0.0"/> |
|||
<paraStyle name="TITLE_CENTER" fontName="Helvetica-Bold" fontSize="7" leading="10" leftIndent="0.0" alignment="CENTER"/> |
|||
<paraStyle name="TITLE_CENTER_NAME" fontName="Helvetica-Bold" fontSize="12" leading="13" leftIndent="0.0" alignment="CENTER"/> |
|||
<paraStyle |
|||
name="TITLE" |
|||
alignment="CENTER" |
|||
fontName="Helvetica" |
|||
fontSize="18.0" |
|||
leading="20" |
|||
spaceBefore="-3.0" |
|||
textColor="black"/> |
|||
</stylesheet> |
|||
<images/> |
|||
<story> |
|||
<para>[[setLang(user.lang)]]</para> |
|||
|
|||
<blockTable colWidths="2.5cm,13.5cm,2.5cm,2.5cm,2.5cm,2.5cm" style="BODY" repeatRows="0"> |
|||
<tr noRowsplits="0"> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>CODE</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES">ACCOUNT</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">INITIAL</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">DEBIT</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">CREDIT</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">BALANCE</para> |
|||
</td> |
|||
</tr> |
|||
</blockTable> |
|||
|
|||
<blockTable colWidths="2.25cm,13.75cm,2.5cm,2.5cm,2.5cm,2.5cm" style="BODY_LINE" repeatRows="1"> |
|||
<!-- |
|||
[[ (a['type'] <> 'view') or removeParentNode('blockTable') ]] |
|||
--> |
|||
<tr noRowsplits="1"> |
|||
<td> |
|||
<para style="TITLES_NEW"> |
|||
<font></font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW"> |
|||
<font>PARTNER</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW"></para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"></para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"></para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"></para> |
|||
</td> |
|||
</tr> |
|||
</blockTable> |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
<section> |
|||
<para>[[ repeatIn([x for x in lines(data['form']) if x['type'] != 'view'], 'a') ]]</para> |
|||
<blockTable colWidths="2.5cm,13.5cm,2.5cm,2.5cm,2.5cm,2.5cm" style="BODY" repeatRows="0"> |
|||
<tr> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]]</font> |
|||
<i>[[a['label']==True and a['code'] or '' ]]</i> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES"> |
|||
<font>[[ ((a['total'] and not a['label']) and setTag('para','para',{'alignment':"RIGHT"}) or (a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}))) or removeParentNode('font') ]]</font> |
|||
<font>[[ a['type']=='view' and a['name'].upper() or a['name'].title() ]]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['balanceinit'] and a['balanceinit'] * a.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['debit'], digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['credit'], digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['balance'] and a['balance'] * a.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
</tr> |
|||
</blockTable> |
|||
|
|||
<section> |
|||
<para>[[ repeatIn(a['partner'], 'm') ]]</para> |
|||
<blockTable colWidths="2.25cm,13.75cm,2.5cm,2.5cm,2.5cm,2.5cm" style="BODY_LINE" repeatRows="1"> |
|||
<!-- |
|||
[[ (a['type'] <> 'view') or removeParentNode('blockTable') ]] |
|||
--> |
|||
<tr> |
|||
<td> |
|||
<para style="TITLES_NEW"> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES_NEW"> |
|||
<font>[[ m['partner_name'] ]]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(m['balanceinit'] and m['balanceinit'] * m.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(m['debit'], digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(m['credit'], digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(m['balance'] and m['balance'] * a.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
</tr> |
|||
</blockTable> |
|||
</section> |
|||
<spacer length="2.5mm"/> |
|||
</section> |
|||
|
|||
</story> |
|||
</document> |
@ -0,0 +1,158 @@ |
|||
<?xml version="1.0"?> |
|||
<document filename="test.pdf"> |
|||
<template pageSize="(21.59cm,27.94cm)" title="Test" author="Martin Simon" allowSplitting="20" showBoundary="0"> |
|||
<pageTemplate id="first"> |
|||
<frame id="first" x1="0.5cm" y1="1.0cm" width="20.5cm" height="23cm"/> |
|||
<pageGraphics> |
|||
<setFont name="Helvetica-Oblique" size="6"/> |
|||
|
|||
<image x="1.0cm" y="24.0cm" width="5.0cm">[[company.logo and company.logo or removeParentNode('image')]]</image> |
|||
<!-- |
|||
<drawString x="1.0cm" y="24.5cm">[[company.logo and removeParentNode('para') or company.name]]</drawString> |
|||
--> |
|||
|
|||
<place x="-3.5cm" y="22.50cm" width="19cm" height="5.0cm"> |
|||
<blockTable colWidths="9.6cm,9.4cm" style="TITLE"> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER_NAME"> |
|||
<font>[[ (company.name and company.name or 'NOMBRE DE COMPANIA NO DISPONIBLE')]]</font> |
|||
<font>[[ get_vat_by_country(data['form']) ]]</font> |
|||
</para></td> |
|||
</tr> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER">[[ get_informe_text(data['form']) ]]</para></td> |
|||
</tr> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER">(Expressed in [[data['form'] and ('%s'%( exchange_name(data['form']))) or '']])</para></td> |
|||
</tr> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER">[[data['form'] and get_month(data['form']) or '']]</para></td> |
|||
</tr> |
|||
</blockTable> |
|||
</place> |
|||
<drawRightString x="207mm" y="5mm">Printing Date: [[ formatLang(time.strftime('%Y-%m-%d %H:%M:%S'),date_time=True) ]] [[ get_informe_text(data['form']) ]] / Pág.: <pageNumber/>-<pageCount/></drawRightString> |
|||
</pageGraphics> |
|||
|
|||
</pageTemplate> |
|||
</template> |
|||
<stylesheet> |
|||
<blockTableStyle id="TITLE"> |
|||
<blockValign value="TOP"/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="BODY"> |
|||
<blockValign value="TOP"/> |
|||
<blockAlignment value="RIGHT"/> |
|||
<blockTopPadding length="1.0"/> |
|||
<blockBottomPadding length="1.0"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,1" stop="-1,-1" thickness='0.25'/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="BODY_STRIKE"> |
|||
<blockValign value="TOP"/> |
|||
<blockAlignment value="RIGHT"/> |
|||
<blockTopPadding length="1.0"/> |
|||
<blockBottomPadding length="1.0"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#FFFFFF" start="0,1" stop="-1,-1" thickness='0.5'/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="TOP_TABLE"> |
|||
<blockAlignment value="LEFT"/> |
|||
<blockValign value="TOP"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#FFFFFF" start="0,-1" stop="0,-1" thickness='0.25'/> |
|||
</blockTableStyle> |
|||
|
|||
<initialize> |
|||
<paraStyle name="all" alignment="justify"/> |
|||
</initialize> |
|||
<paraStyle |
|||
name="TITLE_LEFT_ALIGN" |
|||
fontName="Helvetica-Bold" |
|||
fontSize="6.0" |
|||
leading="10" |
|||
alignment="RIGHT" |
|||
spaceBefore="0.0" |
|||
spaceAfter="0.0"/> |
|||
<paraStyle name="TOP_TITLE" fontName="Helvetica-Bold" fontSize="7" leftIndent="0.0" alignment="LEFT"/> |
|||
<paraStyle name="TITLES" fontName="Helvetica-Bold" fontSize="6.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> |
|||
<paraStyle name="TITLE_CENTER" fontName="Helvetica-Bold" fontSize="7" leading="10" leftIndent="0.0" alignment="CENTER"/> |
|||
<paraStyle name="TITLE_CENTER_NAME" fontName="Helvetica-Bold" fontSize="12" leading="13" leftIndent="0.0" alignment="CENTER"/> |
|||
<paraStyle name="TITLE" alignment="CENTER" fontName="Helvetica" fontSize="18.0" leading="20" spaceBefore="-3.0" textColor="black"/> |
|||
</stylesheet> |
|||
<images/> |
|||
<story> |
|||
<para>[[setLang(user.lang)]]</para> |
|||
<blockTable colWidths="2.5cm,6.0cm,2.5cm,2.5cm,2.5cm,2.5cm,2.5cm" style="BODY" repeatRows="1"> |
|||
<tr noRowsplits="1"> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>Code</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES">ACCOUNT</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">INIT. BAL.</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">DEBIT</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">CREDIT</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">PERIOD</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">YTD</para> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">[[ repeatIn(lines(data['form']), 'a') ]] |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<i>[[a['label']==True and a['code'] or '' ]]</i> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES"> |
|||
<font>[[ ((a['total'] and not a['label']) and setTag('para','para',{'alignment':"RIGHT"}) or (a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}))) or removeParentNode('font') ]]</font> |
|||
<font>[[ a['type']=='view' and a['name'].upper() or a['name'].title() ]]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a.get('change_sign', 1.0) * a.get('balanceinit'), digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['debit'], digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['credit'], digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a.get('change_sign', 1.0) * a.get('ytd'), digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a.get('change_sign', 1.0) * a.get('balance'), digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
</tr> |
|||
</blockTable> |
|||
</story> |
|||
</document> |
@ -0,0 +1,158 @@ |
|||
<?xml version="1.0"?> |
|||
<document filename="test.pdf"> |
|||
<template pageSize="(21.59cm,27.94cm)" title="Test" author="Martin Simon" allowSplitting="20" showBoundary="0"> |
|||
<pageTemplate id="first"> |
|||
<frame id="first" x1="0.5cm" y1="1.0cm" width="20.5cm" height="23cm"/> |
|||
<pageGraphics> |
|||
<setFont name="Helvetica-Oblique" size="6"/> |
|||
|
|||
<image x="1.0cm" y="24.0cm" width="5.0cm">[[company.logo and company.logo or removeParentNode('image')]]</image> |
|||
<!-- |
|||
<drawString x="1.0cm" y="24.5cm">[[company.logo and removeParentNode('para') or company.name]]</drawString> |
|||
--> |
|||
|
|||
<place x="-3.5cm" y="22.50cm" width="19cm" height="5.0cm"> |
|||
<blockTable colWidths="9.6cm,9.4cm" style="TITLE"> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER_NAME"> |
|||
<font>[[ (company.name and company.name or 'NOMBRE DE COMPANIA NO DISPONIBLE')]]</font> |
|||
<font>[[ get_vat_by_country(data['form']) ]]</font> |
|||
</para></td> |
|||
</tr> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER">[[ get_informe_text(data['form']) ]]</para></td> |
|||
</tr> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER">(Expressed in [[data['form'] and (' %s)'%( exchange_name(data['form']))) or '']])</para></td> |
|||
</tr> |
|||
<tr> |
|||
<td><para style="TOP_TITLE"></para></td> |
|||
<td><para style="TITLE_CENTER">[[data['form'] and get_month(data['form']) or '']]</para></td> |
|||
</tr> |
|||
</blockTable> |
|||
</place> |
|||
<drawRightString x="207mm" y="5mm">Printing Date: [[ formatLang(time.strftime('%Y-%m-%d %H:%M:%S'),date_time=True) ]] [[ get_informe_text(data['form']) ]] / Pág.: <pageNumber/>-<pageCount/></drawRightString> |
|||
</pageGraphics> |
|||
|
|||
</pageTemplate> |
|||
</template> |
|||
<stylesheet> |
|||
<blockTableStyle id="TITLE"> |
|||
<blockValign value="TOP"/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="BODY"> |
|||
<blockValign value="TOP"/> |
|||
<blockAlignment value="RIGHT"/> |
|||
<blockTopPadding length="1.0"/> |
|||
<blockBottomPadding length="1.0"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,1" stop="-1,-1" thickness='0.25'/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="BODY_STRIKE"> |
|||
<blockValign value="TOP"/> |
|||
<blockAlignment value="RIGHT"/> |
|||
<blockTopPadding length="1.0"/> |
|||
<blockBottomPadding length="1.0"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#FFFFFF" start="0,1" stop="-1,-1" thickness='0.5'/> |
|||
</blockTableStyle> |
|||
<blockTableStyle id="TOP_TABLE"> |
|||
<blockAlignment value="LEFT"/> |
|||
<blockValign value="TOP"/> |
|||
<lineStyle kind="LINEBELOW" colorName="#FFFFFF" start="0,-1" stop="0,-1" thickness='0.25'/> |
|||
</blockTableStyle> |
|||
|
|||
<initialize> |
|||
<paraStyle name="all" alignment="justify"/> |
|||
</initialize> |
|||
<paraStyle |
|||
name="TITLE_LEFT_ALIGN" |
|||
fontName="Helvetica-Bold" |
|||
fontSize="6.0" |
|||
leading="10" |
|||
alignment="RIGHT" |
|||
spaceBefore="0.0" |
|||
spaceAfter="0.0"/> |
|||
<paraStyle name="TOP_TITLE" fontName="Helvetica-Bold" fontSize="7" leftIndent="0.0" alignment="LEFT"/> |
|||
<paraStyle name="TITLES" fontName="Helvetica-Bold" fontSize="6.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> |
|||
<paraStyle name="TITLE_CENTER" fontName="Helvetica-Bold" fontSize="7" leading="10" leftIndent="0.0" alignment="CENTER"/> |
|||
<paraStyle name="TITLE_CENTER_NAME" fontName="Helvetica-Bold" fontSize="12" leading="13" leftIndent="0.0" alignment="CENTER"/> |
|||
<paraStyle name="TITLE" alignment="CENTER" fontName="Helvetica" fontSize="18.0" leading="20" spaceBefore="-3.0" textColor="black"/> |
|||
</stylesheet> |
|||
<images/> |
|||
<story> |
|||
<para>[[setLang(user.lang)]]</para> |
|||
<blockTable colWidths="2.5cm,6.0cm,2.5cm,2.5cm,2.5cm,2.5cm,2.5cm" style="BODY" repeatRows="1"> |
|||
<tr noRowsplits="1"> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>CODE</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES">ACCOUNT</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">Q1</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">Q2</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">Q3</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">Q4</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">YTD</para> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN">[[ repeatIn(lines(data['form']), 'a') ]] |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<i>[[a['label']==True and a['code'] or '' ]]</i> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLES"> |
|||
<font>[[ ((a['total'] and not a['label']) and setTag('para','para',{'alignment':"RIGHT"}) or (a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}))) or removeParentNode('font') ]]</font> |
|||
<font>[[ a['type']=='view' and a['name'].upper() or a['name'].title() ]]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['bal1'] and (a['bal1'] * a.get('change_sign',1)) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['bal2'] and a['bal2'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['bal3'] and a['bal3'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['bal4'] and a['bal4'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
<td> |
|||
<para style="TITLE_LEFT_ALIGN"> |
|||
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font> |
|||
<font>[[ (a['total']==True) and formatLang(a['bal5'] and a['bal5'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']]</font> |
|||
</para> |
|||
</td> |
|||
</tr> |
|||
</blockTable> |
|||
</story> |
|||
</document> |
@ -1,858 +0,0 @@ |
|||
# © 2016 Julien Coux (Camptocamp) |
|||
# Copyright 2020 ForgeFlow S.L. (https://www.forgeflow.com) |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
|
|||
import calendar |
|||
import datetime |
|||
import operator |
|||
|
|||
from odoo import _, api, models |
|||
from odoo.tools import float_is_zero |
|||
|
|||
|
|||
class GeneralLedgerReport(models.AbstractModel): |
|||
_name = "report.account_financial_report.general_ledger" |
|||
_description = "General Ledger Report" |
|||
_inherit = "report.account_financial_report.abstract_report" |
|||
|
|||
def _get_tags_data(self, tags_ids): |
|||
tags = self.env["account.analytic.tag"].browse(tags_ids) |
|||
tags_data = {} |
|||
for tag in tags: |
|||
tags_data.update({tag.id: {"name": tag.name}}) |
|||
return tags_data |
|||
|
|||
def _get_taxes_data(self, taxes_ids): |
|||
taxes = self.env["account.tax"].browse(taxes_ids) |
|||
taxes_data = {} |
|||
for tax in taxes: |
|||
taxes_data.update( |
|||
{ |
|||
tax.id: { |
|||
"id": tax.id, |
|||
"amount": tax.amount, |
|||
"amount_type": tax.amount_type, |
|||
"display_name": tax.display_name, |
|||
} |
|||
} |
|||
) |
|||
if tax.amount_type == "percent" or tax.amount_type == "division": |
|||
taxes_data[tax.id]["string"] = "%" |
|||
else: |
|||
taxes_data[tax.id]["string"] = "" |
|||
taxes_data[tax.id]["tax_name"] = ( |
|||
tax.display_name |
|||
+ " (" |
|||
+ str(tax.amount) |
|||
+ taxes_data[tax.id]["string"] |
|||
+ ")" |
|||
) |
|||
return taxes_data |
|||
|
|||
def _get_acc_prt_accounts_ids(self, company_id): |
|||
accounts_domain = [ |
|||
("company_id", "=", company_id), |
|||
("internal_type", "in", ["receivable", "payable"]), |
|||
] |
|||
acc_prt_accounts = self.env["account.account"].search(accounts_domain) |
|||
return acc_prt_accounts.ids |
|||
|
|||
def _get_initial_balances_bs_ml_domain( |
|||
self, account_ids, company_id, date_from, base_domain, acc_prt=False |
|||
): |
|||
accounts_domain = [ |
|||
("company_id", "=", company_id), |
|||
("user_type_id.include_initial_balance", "=", True), |
|||
] |
|||
if account_ids: |
|||
accounts_domain += [("id", "in", account_ids)] |
|||
domain = [] |
|||
domain += base_domain |
|||
domain += [("date", "<", date_from)] |
|||
accounts = self.env["account.account"].search(accounts_domain) |
|||
domain += [("account_id", "in", accounts.ids)] |
|||
if acc_prt: |
|||
domain += [("account_id.internal_type", "in", ["receivable", "payable"])] |
|||
return domain |
|||
|
|||
def _get_initial_balances_pl_ml_domain( |
|||
self, account_ids, company_id, date_from, fy_start_date, base_domain |
|||
): |
|||
accounts_domain = [ |
|||
("company_id", "=", company_id), |
|||
("user_type_id.include_initial_balance", "=", False), |
|||
] |
|||
if account_ids: |
|||
accounts_domain += [("id", "in", account_ids)] |
|||
domain = [] |
|||
domain += base_domain |
|||
domain += [("date", "<", date_from), ("date", ">=", fy_start_date)] |
|||
accounts = self.env["account.account"].search(accounts_domain) |
|||
domain += [("account_id", "in", accounts.ids)] |
|||
return domain |
|||
|
|||
def _get_accounts_initial_balance(self, initial_domain_bs, initial_domain_pl): |
|||
gl_initial_acc_bs = self.env["account.move.line"].read_group( |
|||
domain=initial_domain_bs, |
|||
fields=["account_id", "debit", "credit", "balance", "amount_currency"], |
|||
groupby=["account_id"], |
|||
) |
|||
gl_initial_acc_pl = self.env["account.move.line"].read_group( |
|||
domain=initial_domain_pl, |
|||
fields=["account_id", "debit", "credit", "balance", "amount_currency"], |
|||
groupby=["account_id"], |
|||
) |
|||
gl_initial_acc = gl_initial_acc_bs + gl_initial_acc_pl |
|||
return gl_initial_acc |
|||
|
|||
def _get_initial_balance_fy_pl_ml_domain( |
|||
self, account_ids, company_id, fy_start_date, base_domain |
|||
): |
|||
accounts_domain = [ |
|||
("company_id", "=", company_id), |
|||
("user_type_id.include_initial_balance", "=", False), |
|||
] |
|||
if account_ids: |
|||
accounts_domain += [("id", "in", account_ids)] |
|||
domain = [] |
|||
domain += base_domain |
|||
domain += [("date", "<", fy_start_date)] |
|||
accounts = self.env["account.account"].search(accounts_domain) |
|||
domain += [("account_id", "in", accounts.ids)] |
|||
return domain |
|||
|
|||
def _get_pl_initial_balance( |
|||
self, account_ids, company_id, fy_start_date, foreign_currency, base_domain |
|||
): |
|||
domain = self._get_initial_balance_fy_pl_ml_domain( |
|||
account_ids, company_id, fy_start_date, base_domain |
|||
) |
|||
initial_balances = self.env["account.move.line"].read_group( |
|||
domain=domain, |
|||
fields=["account_id", "debit", "credit", "balance", "amount_currency"], |
|||
groupby=["account_id"], |
|||
) |
|||
pl_initial_balance = { |
|||
"debit": 0.0, |
|||
"credit": 0.0, |
|||
"balance": 0.0, |
|||
"bal_curr": 0.0, |
|||
} |
|||
for initial_balance in initial_balances: |
|||
pl_initial_balance["debit"] += initial_balance["debit"] |
|||
pl_initial_balance["credit"] += initial_balance["credit"] |
|||
pl_initial_balance["balance"] += initial_balance["balance"] |
|||
pl_initial_balance["bal_curr"] += initial_balance["amount_currency"] |
|||
return pl_initial_balance |
|||
|
|||
def _get_initial_balance_data( |
|||
self, |
|||
account_ids, |
|||
partner_ids, |
|||
company_id, |
|||
date_from, |
|||
foreign_currency, |
|||
only_posted_moves, |
|||
unaffected_earnings_account, |
|||
fy_start_date, |
|||
analytic_tag_ids, |
|||
cost_center_ids, |
|||
extra_domain, |
|||
): |
|||
# If explicit list of accounts is provided, |
|||
# don't include unaffected earnings account |
|||
if account_ids: |
|||
unaffected_earnings_account = False |
|||
base_domain = [] |
|||
if company_id: |
|||
base_domain += [("company_id", "=", company_id)] |
|||
if partner_ids: |
|||
base_domain += [("partner_id", "in", partner_ids)] |
|||
if only_posted_moves: |
|||
base_domain += [("move_id.state", "=", "posted")] |
|||
else: |
|||
base_domain += [("move_id.state", "in", ["posted", "draft"])] |
|||
if analytic_tag_ids: |
|||
base_domain += [("analytic_tag_ids", "in", analytic_tag_ids)] |
|||
if cost_center_ids: |
|||
base_domain += [("analytic_account_id", "in", cost_center_ids)] |
|||
if extra_domain: |
|||
base_domain += extra_domain |
|||
initial_domain_bs = self._get_initial_balances_bs_ml_domain( |
|||
account_ids, company_id, date_from, base_domain |
|||
) |
|||
initial_domain_pl = self._get_initial_balances_pl_ml_domain( |
|||
account_ids, company_id, date_from, fy_start_date, base_domain |
|||
) |
|||
gl_initial_acc = self._get_accounts_initial_balance( |
|||
initial_domain_bs, initial_domain_pl |
|||
) |
|||
initial_domain_acc_prt = self._get_initial_balances_bs_ml_domain( |
|||
account_ids, company_id, date_from, base_domain, acc_prt=True |
|||
) |
|||
gl_initial_acc_prt = self.env["account.move.line"].read_group( |
|||
domain=initial_domain_acc_prt, |
|||
fields=[ |
|||
"account_id", |
|||
"partner_id", |
|||
"debit", |
|||
"credit", |
|||
"balance", |
|||
"amount_currency", |
|||
], |
|||
groupby=["account_id", "partner_id"], |
|||
lazy=False, |
|||
) |
|||
gen_ld_data = {} |
|||
for gl in gl_initial_acc: |
|||
acc_id = gl["account_id"][0] |
|||
gen_ld_data[acc_id] = {} |
|||
gen_ld_data[acc_id]["id"] = acc_id |
|||
gen_ld_data[acc_id]["partners"] = False |
|||
gen_ld_data[acc_id]["init_bal"] = {} |
|||
gen_ld_data[acc_id]["init_bal"]["credit"] = gl["credit"] |
|||
gen_ld_data[acc_id]["init_bal"]["debit"] = gl["debit"] |
|||
gen_ld_data[acc_id]["init_bal"]["balance"] = gl["balance"] |
|||
gen_ld_data[acc_id]["fin_bal"] = {} |
|||
gen_ld_data[acc_id]["fin_bal"]["credit"] = gl["credit"] |
|||
gen_ld_data[acc_id]["fin_bal"]["debit"] = gl["debit"] |
|||
gen_ld_data[acc_id]["fin_bal"]["balance"] = gl["balance"] |
|||
gen_ld_data[acc_id]["init_bal"]["bal_curr"] = gl["amount_currency"] |
|||
gen_ld_data[acc_id]["fin_bal"]["bal_curr"] = gl["amount_currency"] |
|||
partners_data = {} |
|||
partners_ids = set() |
|||
if gl_initial_acc_prt: |
|||
for gl in gl_initial_acc_prt: |
|||
if not gl["partner_id"]: |
|||
prt_id = 0 |
|||
prt_name = "Missing Partner" |
|||
else: |
|||
prt_id = gl["partner_id"][0] |
|||
prt_name = gl["partner_id"][1] |
|||
prt_name = prt_name._value |
|||
if prt_id not in partners_ids: |
|||
partners_ids.add(prt_id) |
|||
partners_data.update({prt_id: {"id": prt_id, "name": prt_name}}) |
|||
acc_id = gl["account_id"][0] |
|||
gen_ld_data[acc_id][prt_id] = {} |
|||
gen_ld_data[acc_id][prt_id]["id"] = prt_id |
|||
gen_ld_data[acc_id]["partners"] = True |
|||
gen_ld_data[acc_id][prt_id]["init_bal"] = {} |
|||
gen_ld_data[acc_id][prt_id]["init_bal"]["credit"] = gl["credit"] |
|||
gen_ld_data[acc_id][prt_id]["init_bal"]["debit"] = gl["debit"] |
|||
gen_ld_data[acc_id][prt_id]["init_bal"]["balance"] = gl["balance"] |
|||
gen_ld_data[acc_id][prt_id]["fin_bal"] = {} |
|||
gen_ld_data[acc_id][prt_id]["fin_bal"]["credit"] = gl["credit"] |
|||
gen_ld_data[acc_id][prt_id]["fin_bal"]["debit"] = gl["debit"] |
|||
gen_ld_data[acc_id][prt_id]["fin_bal"]["balance"] = gl["balance"] |
|||
gen_ld_data[acc_id][prt_id]["init_bal"]["bal_curr"] = gl[ |
|||
"amount_currency" |
|||
] |
|||
gen_ld_data[acc_id][prt_id]["fin_bal"]["bal_curr"] = gl[ |
|||
"amount_currency" |
|||
] |
|||
accounts_ids = list(gen_ld_data.keys()) |
|||
unaffected_id = unaffected_earnings_account |
|||
if unaffected_id: |
|||
if unaffected_id not in accounts_ids: |
|||
accounts_ids.append(unaffected_id) |
|||
self._initialize_account(gen_ld_data, unaffected_id, foreign_currency) |
|||
pl_initial_balance = self._get_pl_initial_balance( |
|||
account_ids, company_id, fy_start_date, foreign_currency, base_domain |
|||
) |
|||
gen_ld_data[unaffected_id]["init_bal"]["debit"] += pl_initial_balance[ |
|||
"debit" |
|||
] |
|||
gen_ld_data[unaffected_id]["init_bal"]["credit"] += pl_initial_balance[ |
|||
"credit" |
|||
] |
|||
gen_ld_data[unaffected_id]["init_bal"]["balance"] += pl_initial_balance[ |
|||
"balance" |
|||
] |
|||
gen_ld_data[unaffected_id]["fin_bal"]["debit"] += pl_initial_balance[ |
|||
"debit" |
|||
] |
|||
gen_ld_data[unaffected_id]["fin_bal"]["credit"] += pl_initial_balance[ |
|||
"credit" |
|||
] |
|||
gen_ld_data[unaffected_id]["fin_bal"]["balance"] += pl_initial_balance[ |
|||
"balance" |
|||
] |
|||
if foreign_currency: |
|||
gen_ld_data[unaffected_id]["init_bal"][ |
|||
"bal_curr" |
|||
] += pl_initial_balance["bal_curr"] |
|||
gen_ld_data[unaffected_id]["fin_bal"]["bal_curr"] += pl_initial_balance[ |
|||
"bal_curr" |
|||
] |
|||
return gen_ld_data, partners_data, partner_ids |
|||
|
|||
@api.model |
|||
def _get_move_line_data(self, move_line): |
|||
move_line_data = { |
|||
"id": move_line["id"], |
|||
"date": move_line["date"], |
|||
"entry": move_line["move_id"][1], |
|||
"entry_id": move_line["move_id"][0], |
|||
"journal_id": move_line["journal_id"][0], |
|||
"account_id": move_line["account_id"][0], |
|||
"partner_id": move_line["partner_id"][0] |
|||
if move_line["partner_id"] |
|||
else False, |
|||
"partner_name": move_line["partner_id"][1] |
|||
if move_line["partner_id"] |
|||
else "", |
|||
"ref": "" if not move_line["ref"] else move_line["ref"], |
|||
"name": "" if not move_line["name"] else move_line["name"], |
|||
"tax_ids": move_line["tax_ids"], |
|||
"debit": move_line["debit"], |
|||
"credit": move_line["credit"], |
|||
"balance": move_line["balance"], |
|||
"bal_curr": move_line["amount_currency"], |
|||
"rec_id": move_line["full_reconcile_id"][0] |
|||
if move_line["full_reconcile_id"] |
|||
else False, |
|||
"rec_name": move_line["full_reconcile_id"][1] |
|||
if move_line["full_reconcile_id"] |
|||
else "", |
|||
"tag_ids": move_line["analytic_tag_ids"], |
|||
"currency_id": move_line["currency_id"], |
|||
"analytic_account": move_line["analytic_account_id"][1] |
|||
if move_line["analytic_account_id"] |
|||
else "", |
|||
"analytic_account_id": move_line["analytic_account_id"][0] |
|||
if move_line["analytic_account_id"] |
|||
else False, |
|||
} |
|||
if ( |
|||
move_line_data["ref"] == move_line_data["name"] |
|||
or move_line_data["ref"] == "" |
|||
): |
|||
ref_label = move_line_data["name"] |
|||
elif move_line_data["name"] == "": |
|||
ref_label = move_line_data["ref"] |
|||
else: |
|||
ref_label = move_line_data["ref"] + str(" - ") + move_line_data["name"] |
|||
move_line_data.update({"ref_label": ref_label}) |
|||
return move_line_data |
|||
|
|||
@api.model |
|||
def _get_period_domain( |
|||
self, |
|||
account_ids, |
|||
partner_ids, |
|||
company_id, |
|||
only_posted_moves, |
|||
date_to, |
|||
date_from, |
|||
analytic_tag_ids, |
|||
cost_center_ids, |
|||
): |
|||
domain = [ |
|||
("display_type", "=", False), |
|||
("date", ">=", date_from), |
|||
("date", "<=", date_to), |
|||
] |
|||
if account_ids: |
|||
domain += [("account_id", "in", account_ids)] |
|||
if company_id: |
|||
domain += [("company_id", "=", company_id)] |
|||
if partner_ids: |
|||
domain += [("partner_id", "in", partner_ids)] |
|||
if only_posted_moves: |
|||
domain += [("move_id.state", "=", "posted")] |
|||
else: |
|||
domain += [("move_id.state", "in", ["posted", "draft"])] |
|||
if analytic_tag_ids: |
|||
domain += [("analytic_tag_ids", "in", analytic_tag_ids)] |
|||
if cost_center_ids: |
|||
domain += [("analytic_account_id", "in", cost_center_ids)] |
|||
return domain |
|||
|
|||
@api.model |
|||
def _initialize_partner(self, gen_ld_data, acc_id, prt_id, foreign_currency): |
|||
gen_ld_data[acc_id]["partners"] = True |
|||
gen_ld_data[acc_id][prt_id] = {} |
|||
gen_ld_data[acc_id][prt_id]["id"] = prt_id |
|||
gen_ld_data[acc_id][prt_id]["init_bal"] = {} |
|||
gen_ld_data[acc_id][prt_id]["init_bal"]["balance"] = 0.0 |
|||
gen_ld_data[acc_id][prt_id]["init_bal"]["credit"] = 0.0 |
|||
gen_ld_data[acc_id][prt_id]["init_bal"]["debit"] = 0.0 |
|||
gen_ld_data[acc_id][prt_id]["fin_bal"] = {} |
|||
gen_ld_data[acc_id][prt_id]["fin_bal"]["credit"] = 0.0 |
|||
gen_ld_data[acc_id][prt_id]["fin_bal"]["debit"] = 0.0 |
|||
gen_ld_data[acc_id][prt_id]["fin_bal"]["balance"] = 0.0 |
|||
if foreign_currency: |
|||
gen_ld_data[acc_id][prt_id]["init_bal"]["bal_curr"] = 0.0 |
|||
gen_ld_data[acc_id][prt_id]["fin_bal"]["bal_curr"] = 0.0 |
|||
return gen_ld_data |
|||
|
|||
def _initialize_account(self, gen_ld_data, acc_id, foreign_currency): |
|||
gen_ld_data[acc_id] = {} |
|||
gen_ld_data[acc_id]["id"] = acc_id |
|||
gen_ld_data[acc_id]["partners"] = False |
|||
gen_ld_data[acc_id]["init_bal"] = {} |
|||
gen_ld_data[acc_id]["init_bal"]["balance"] = 0.0 |
|||
gen_ld_data[acc_id]["init_bal"]["credit"] = 0.0 |
|||
gen_ld_data[acc_id]["init_bal"]["debit"] = 0.0 |
|||
gen_ld_data[acc_id]["fin_bal"] = {} |
|||
gen_ld_data[acc_id]["fin_bal"]["credit"] = 0.0 |
|||
gen_ld_data[acc_id]["fin_bal"]["debit"] = 0.0 |
|||
gen_ld_data[acc_id]["fin_bal"]["balance"] = 0.0 |
|||
if foreign_currency: |
|||
gen_ld_data[acc_id]["init_bal"]["bal_curr"] = 0.0 |
|||
gen_ld_data[acc_id]["fin_bal"]["bal_curr"] = 0.0 |
|||
return gen_ld_data |
|||
|
|||
def _get_reconciled_after_date_to_ids(self, full_reconcile_ids, date_to): |
|||
full_reconcile_ids = list(full_reconcile_ids) |
|||
domain = [ |
|||
("max_date", ">", date_to), |
|||
("full_reconcile_id", "in", full_reconcile_ids), |
|||
] |
|||
fields = ["full_reconcile_id"] |
|||
reconciled_after_date_to = self.env["account.partial.reconcile"].search_read( |
|||
domain=domain, fields=fields |
|||
) |
|||
rec_after_date_to_ids = list( |
|||
map(operator.itemgetter("full_reconcile_id"), reconciled_after_date_to) |
|||
) |
|||
rec_after_date_to_ids = [i[0] for i in rec_after_date_to_ids] |
|||
return rec_after_date_to_ids |
|||
|
|||
def _get_period_ml_data( |
|||
self, |
|||
account_ids, |
|||
partner_ids, |
|||
company_id, |
|||
foreign_currency, |
|||
only_posted_moves, |
|||
date_from, |
|||
date_to, |
|||
partners_data, |
|||
gen_ld_data, |
|||
partners_ids, |
|||
analytic_tag_ids, |
|||
cost_center_ids, |
|||
extra_domain, |
|||
): |
|||
domain = self._get_period_domain( |
|||
account_ids, |
|||
partner_ids, |
|||
company_id, |
|||
only_posted_moves, |
|||
date_to, |
|||
date_from, |
|||
analytic_tag_ids, |
|||
cost_center_ids, |
|||
) |
|||
if extra_domain: |
|||
domain += extra_domain |
|||
ml_fields = [ |
|||
"id", |
|||
"name", |
|||
"date", |
|||
"move_id", |
|||
"journal_id", |
|||
"account_id", |
|||
"partner_id", |
|||
"debit", |
|||
"credit", |
|||
"balance", |
|||
"currency_id", |
|||
"full_reconcile_id", |
|||
"tax_ids", |
|||
"analytic_tag_ids", |
|||
"amount_currency", |
|||
"ref", |
|||
"name", |
|||
"analytic_account_id", |
|||
] |
|||
move_lines = self.env["account.move.line"].search_read( |
|||
domain=domain, fields=ml_fields |
|||
) |
|||
journal_ids = set() |
|||
full_reconcile_ids = set() |
|||
taxes_ids = set() |
|||
tags_ids = set() |
|||
full_reconcile_data = {} |
|||
acc_prt_account_ids = self._get_acc_prt_accounts_ids(company_id) |
|||
for move_line in move_lines: |
|||
journal_ids.add(move_line["journal_id"][0]) |
|||
for tax_id in move_line["tax_ids"]: |
|||
taxes_ids.add(tax_id) |
|||
for analytic_tag_id in move_line["analytic_tag_ids"]: |
|||
tags_ids.add(analytic_tag_id) |
|||
if move_line["full_reconcile_id"]: |
|||
rec_id = move_line["full_reconcile_id"][0] |
|||
if rec_id not in full_reconcile_ids: |
|||
full_reconcile_data.update( |
|||
{ |
|||
rec_id: { |
|||
"id": rec_id, |
|||
"name": move_line["full_reconcile_id"][1], |
|||
} |
|||
} |
|||
) |
|||
full_reconcile_ids.add(rec_id) |
|||
acc_id = move_line["account_id"][0] |
|||
ml_id = move_line["id"] |
|||
if move_line["partner_id"]: |
|||
prt_id = move_line["partner_id"][0] |
|||
partner_name = move_line["partner_id"][1] |
|||
if acc_id not in gen_ld_data.keys(): |
|||
gen_ld_data = self._initialize_account( |
|||
gen_ld_data, acc_id, foreign_currency |
|||
) |
|||
if acc_id in acc_prt_account_ids: |
|||
if not move_line["partner_id"]: |
|||
prt_id = 0 |
|||
partner_name = "Missing Partner" |
|||
partners_ids.append(prt_id) |
|||
partners_data.update({prt_id: {"id": prt_id, "name": partner_name}}) |
|||
if prt_id not in gen_ld_data[acc_id]: |
|||
gen_ld_data = self._initialize_partner( |
|||
gen_ld_data, acc_id, prt_id, foreign_currency |
|||
) |
|||
gen_ld_data[acc_id][prt_id][ml_id] = self._get_move_line_data(move_line) |
|||
gen_ld_data[acc_id][prt_id]["fin_bal"]["credit"] += move_line["credit"] |
|||
gen_ld_data[acc_id][prt_id]["fin_bal"]["debit"] += move_line["debit"] |
|||
gen_ld_data[acc_id][prt_id]["fin_bal"]["balance"] += move_line[ |
|||
"balance" |
|||
] |
|||
if foreign_currency: |
|||
gen_ld_data[acc_id][prt_id]["fin_bal"]["bal_curr"] += move_line[ |
|||
"amount_currency" |
|||
] |
|||
else: |
|||
gen_ld_data[acc_id][ml_id] = self._get_move_line_data(move_line) |
|||
gen_ld_data[acc_id]["fin_bal"]["credit"] += move_line["credit"] |
|||
gen_ld_data[acc_id]["fin_bal"]["debit"] += move_line["debit"] |
|||
gen_ld_data[acc_id]["fin_bal"]["balance"] += move_line["balance"] |
|||
if foreign_currency: |
|||
gen_ld_data[acc_id]["fin_bal"]["bal_curr"] += move_line[ |
|||
"amount_currency" |
|||
] |
|||
journals_data = self._get_journals_data(list(journal_ids)) |
|||
accounts_data = self._get_accounts_data(gen_ld_data.keys()) |
|||
taxes_data = self._get_taxes_data(list(taxes_ids)) |
|||
tags_data = self._get_tags_data(list(tags_ids)) |
|||
rec_after_date_to_ids = self._get_reconciled_after_date_to_ids( |
|||
full_reconcile_data.keys(), date_to |
|||
) |
|||
return ( |
|||
gen_ld_data, |
|||
accounts_data, |
|||
partners_data, |
|||
journals_data, |
|||
full_reconcile_data, |
|||
taxes_data, |
|||
tags_data, |
|||
rec_after_date_to_ids, |
|||
) |
|||
|
|||
@api.model |
|||
def _recalculate_cumul_balance( |
|||
self, move_lines, last_cumul_balance, rec_after_date_to_ids |
|||
): |
|||
for move_line in move_lines: |
|||
move_line["balance"] += last_cumul_balance |
|||
last_cumul_balance = move_line["balance"] |
|||
if move_line["rec_id"] in rec_after_date_to_ids: |
|||
move_line["rec_name"] = "(" + _("future") + ") " + move_line["rec_name"] |
|||
return move_lines |
|||
|
|||
def _create_account(self, account, acc_id, gen_led_data, rec_after_date_to_ids): |
|||
move_lines = [] |
|||
for ml_id in gen_led_data[acc_id].keys(): |
|||
if not isinstance(ml_id, int): |
|||
account.update({ml_id: gen_led_data[acc_id][ml_id]}) |
|||
else: |
|||
move_lines += [gen_led_data[acc_id][ml_id]] |
|||
move_lines = sorted(move_lines, key=lambda k: (k["date"])) |
|||
move_lines = self._recalculate_cumul_balance( |
|||
move_lines, |
|||
gen_led_data[acc_id]["init_bal"]["balance"], |
|||
rec_after_date_to_ids, |
|||
) |
|||
account.update({"move_lines": move_lines}) |
|||
return account |
|||
|
|||
def _create_account_not_show_partner( |
|||
self, account, acc_id, gen_led_data, rec_after_date_to_ids |
|||
): |
|||
move_lines = [] |
|||
for prt_id in gen_led_data[acc_id].keys(): |
|||
if not isinstance(prt_id, int): |
|||
account.update({prt_id: gen_led_data[acc_id][prt_id]}) |
|||
else: |
|||
for ml_id in gen_led_data[acc_id][prt_id].keys(): |
|||
if isinstance(ml_id, int): |
|||
move_lines += [gen_led_data[acc_id][prt_id][ml_id]] |
|||
move_lines = sorted(move_lines, key=lambda k: (k["date"])) |
|||
move_lines = self._recalculate_cumul_balance( |
|||
move_lines, |
|||
gen_led_data[acc_id]["init_bal"]["balance"], |
|||
rec_after_date_to_ids, |
|||
) |
|||
account.update({"move_lines": move_lines, "partners": False}) |
|||
return account |
|||
|
|||
def _create_general_ledger( |
|||
self, |
|||
gen_led_data, |
|||
accounts_data, |
|||
show_partner_details, |
|||
rec_after_date_to_ids, |
|||
hide_account_at_0, |
|||
): |
|||
general_ledger = [] |
|||
rounding = self.env.company.currency_id.rounding |
|||
for acc_id in gen_led_data.keys(): |
|||
account = {} |
|||
account.update( |
|||
{ |
|||
"code": accounts_data[acc_id]["code"], |
|||
"name": accounts_data[acc_id]["name"], |
|||
"type": "account", |
|||
"currency_id": accounts_data[acc_id]["currency_id"], |
|||
"centralized": accounts_data[acc_id]["centralized"], |
|||
} |
|||
) |
|||
if not gen_led_data[acc_id]["partners"]: |
|||
account = self._create_account( |
|||
account, acc_id, gen_led_data, rec_after_date_to_ids |
|||
) |
|||
if ( |
|||
hide_account_at_0 |
|||
and float_is_zero( |
|||
gen_led_data[acc_id]["init_bal"]["balance"], |
|||
precision_rounding=rounding, |
|||
) |
|||
and account["move_lines"] == [] |
|||
): |
|||
continue |
|||
else: |
|||
if show_partner_details: |
|||
list_partner = [] |
|||
for prt_id in gen_led_data[acc_id].keys(): |
|||
partner = {} |
|||
move_lines = [] |
|||
if not isinstance(prt_id, int): |
|||
account.update({prt_id: gen_led_data[acc_id][prt_id]}) |
|||
else: |
|||
for ml_id in gen_led_data[acc_id][prt_id].keys(): |
|||
if not isinstance(ml_id, int): |
|||
partner.update( |
|||
{ml_id: gen_led_data[acc_id][prt_id][ml_id]} |
|||
) |
|||
else: |
|||
move_lines += [gen_led_data[acc_id][prt_id][ml_id]] |
|||
move_lines = sorted(move_lines, key=lambda k: (k["date"])) |
|||
move_lines = self._recalculate_cumul_balance( |
|||
move_lines, |
|||
gen_led_data[acc_id][prt_id]["init_bal"]["balance"], |
|||
rec_after_date_to_ids, |
|||
) |
|||
partner.update({"move_lines": move_lines}) |
|||
if ( |
|||
hide_account_at_0 |
|||
and float_is_zero( |
|||
gen_led_data[acc_id][prt_id]["init_bal"]["balance"], |
|||
precision_rounding=rounding, |
|||
) |
|||
and partner["move_lines"] == [] |
|||
): |
|||
continue |
|||
list_partner += [partner] |
|||
account.update({"list_partner": list_partner}) |
|||
if ( |
|||
hide_account_at_0 |
|||
and float_is_zero( |
|||
gen_led_data[acc_id]["init_bal"]["balance"], |
|||
precision_rounding=rounding, |
|||
) |
|||
and account["list_partner"] == [] |
|||
): |
|||
continue |
|||
else: |
|||
account = self._create_account_not_show_partner( |
|||
account, acc_id, gen_led_data, rec_after_date_to_ids |
|||
) |
|||
if ( |
|||
hide_account_at_0 |
|||
and float_is_zero( |
|||
gen_led_data[acc_id]["init_bal"]["balance"], |
|||
precision_rounding=rounding, |
|||
) |
|||
and account["move_lines"] == [] |
|||
): |
|||
continue |
|||
general_ledger += [account] |
|||
return general_ledger |
|||
|
|||
@api.model |
|||
def _calculate_centralization(self, centralized_ml, move_line, date_to): |
|||
jnl_id = move_line["journal_id"] |
|||
month = move_line["date"].month |
|||
if jnl_id not in centralized_ml.keys(): |
|||
centralized_ml[jnl_id] = {} |
|||
if month not in centralized_ml[jnl_id].keys(): |
|||
centralized_ml[jnl_id][month] = {} |
|||
last_day_month = calendar.monthrange(move_line["date"].year, month) |
|||
date = datetime.date(move_line["date"].year, month, last_day_month[1]) |
|||
if date > date_to: |
|||
date = date_to |
|||
centralized_ml[jnl_id][month].update( |
|||
{ |
|||
"journal_id": jnl_id, |
|||
"ref_label": "Centralized entries", |
|||
"date": date, |
|||
"debit": 0.0, |
|||
"credit": 0.0, |
|||
"balance": 0.0, |
|||
"bal_curr": 0.0, |
|||
"partner_id": False, |
|||
"rec_id": 0, |
|||
"entry_id": False, |
|||
"tax_ids": [], |
|||
"full_reconcile_id": False, |
|||
"id": False, |
|||
"tag_ids": False, |
|||
"currency_id": False, |
|||
"analytic_account_id": False, |
|||
} |
|||
) |
|||
centralized_ml[jnl_id][month]["debit"] += move_line["debit"] |
|||
centralized_ml[jnl_id][month]["credit"] += move_line["credit"] |
|||
centralized_ml[jnl_id][month]["balance"] += ( |
|||
move_line["debit"] - move_line["credit"] |
|||
) |
|||
centralized_ml[jnl_id][month]["bal_curr"] += move_line["bal_curr"] |
|||
return centralized_ml |
|||
|
|||
@api.model |
|||
def _get_centralized_ml(self, account, date_to): |
|||
centralized_ml = {} |
|||
if isinstance(date_to, str): |
|||
date_to = datetime.datetime.strptime(date_to, "%Y-%m-%d").date() |
|||
if account["partners"]: |
|||
for partner in account["list_partner"]: |
|||
for move_line in partner["move_lines"]: |
|||
centralized_ml = self._calculate_centralization( |
|||
centralized_ml, move_line, date_to, |
|||
) |
|||
else: |
|||
for move_line in account["move_lines"]: |
|||
centralized_ml = self._calculate_centralization( |
|||
centralized_ml, move_line, date_to, |
|||
) |
|||
list_centralized_ml = [] |
|||
for jnl_id in centralized_ml.keys(): |
|||
list_centralized_ml += list(centralized_ml[jnl_id].values()) |
|||
return list_centralized_ml |
|||
|
|||
def _get_report_values(self, docids, data): |
|||
wizard_id = data["wizard_id"] |
|||
company = self.env["res.company"].browse(data["company_id"]) |
|||
company_id = data["company_id"] |
|||
date_to = data["date_to"] |
|||
date_from = data["date_from"] |
|||
partner_ids = data["partner_ids"] |
|||
if not partner_ids: |
|||
filter_partner_ids = False |
|||
else: |
|||
filter_partner_ids = True |
|||
account_ids = data["account_ids"] |
|||
analytic_tag_ids = data["analytic_tag_ids"] |
|||
cost_center_ids = data["cost_center_ids"] |
|||
show_partner_details = data["show_partner_details"] |
|||
hide_account_at_0 = data["hide_account_at_0"] |
|||
foreign_currency = data["foreign_currency"] |
|||
only_posted_moves = data["only_posted_moves"] |
|||
unaffected_earnings_account = data["unaffected_earnings_account"] |
|||
fy_start_date = data["fy_start_date"] |
|||
extra_domain = data["domain"] |
|||
gen_ld_data, partners_data, partners_ids = self._get_initial_balance_data( |
|||
account_ids, |
|||
partner_ids, |
|||
company_id, |
|||
date_from, |
|||
foreign_currency, |
|||
only_posted_moves, |
|||
unaffected_earnings_account, |
|||
fy_start_date, |
|||
analytic_tag_ids, |
|||
cost_center_ids, |
|||
extra_domain, |
|||
) |
|||
centralize = data["centralize"] |
|||
( |
|||
gen_ld_data, |
|||
accounts_data, |
|||
partners_data, |
|||
journals_data, |
|||
full_reconcile_data, |
|||
taxes_data, |
|||
tags_data, |
|||
rec_after_date_to_ids, |
|||
) = self._get_period_ml_data( |
|||
account_ids, |
|||
partner_ids, |
|||
company_id, |
|||
foreign_currency, |
|||
only_posted_moves, |
|||
date_from, |
|||
date_to, |
|||
partners_data, |
|||
gen_ld_data, |
|||
partners_ids, |
|||
analytic_tag_ids, |
|||
cost_center_ids, |
|||
extra_domain, |
|||
) |
|||
general_ledger = self._create_general_ledger( |
|||
gen_ld_data, |
|||
accounts_data, |
|||
show_partner_details, |
|||
rec_after_date_to_ids, |
|||
hide_account_at_0, |
|||
) |
|||
if centralize: |
|||
for account in general_ledger: |
|||
if account["centralized"]: |
|||
centralized_ml = self._get_centralized_ml(account, date_to) |
|||
account["move_lines"] = centralized_ml |
|||
account["move_lines"] = self._recalculate_cumul_balance( |
|||
account["move_lines"], |
|||
gen_ld_data[account["id"]]["init_bal"]["balance"], |
|||
rec_after_date_to_ids, |
|||
) |
|||
if account["partners"]: |
|||
account["partners"] = False |
|||
del account["list_partner"] |
|||
general_ledger = sorted(general_ledger, key=lambda k: k["code"]) |
|||
return { |
|||
"doc_ids": [wizard_id], |
|||
"doc_model": "general.ledger.report.wizard", |
|||
"docs": self.env["general.ledger.report.wizard"].browse(wizard_id), |
|||
"foreign_currency": data["foreign_currency"], |
|||
"company_name": company.display_name, |
|||
"company_currency": company.currency_id, |
|||
"currency_name": company.currency_id.name, |
|||
"date_from": data["date_from"], |
|||
"date_to": data["date_to"], |
|||
"only_posted_moves": data["only_posted_moves"], |
|||
"hide_account_at_0": data["hide_account_at_0"], |
|||
"show_analytic_tags": data["show_analytic_tags"], |
|||
"show_cost_center": data["show_cost_center"], |
|||
"general_ledger": general_ledger, |
|||
"accounts_data": accounts_data, |
|||
"partners_data": partners_data, |
|||
"journals_data": journals_data, |
|||
"full_reconcile_data": full_reconcile_data, |
|||
"taxes_data": taxes_data, |
|||
"centralize": centralize, |
|||
"tags_data": tags_data, |
|||
"filter_partner_ids": filter_partner_ids, |
|||
} |
@ -1,330 +0,0 @@ |
|||
# Author: Damien Crier |
|||
# Author: Julien Coux |
|||
# Copyright 2016 Camptocamp SA |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
|
|||
from odoo import _, models |
|||
|
|||
|
|||
class GeneralLedgerXslx(models.AbstractModel): |
|||
_name = "report.a_f_r.report_general_ledger_xlsx" |
|||
_description = "General Ledger XLSL Report" |
|||
_inherit = "report.account_financial_report.abstract_report_xlsx" |
|||
|
|||
def _get_report_name(self, report, data=False): |
|||
company_id = data.get("company_id", False) |
|||
report_name = _("General Ledger") |
|||
if company_id: |
|||
company = self.env["res.company"].browse(company_id) |
|||
suffix = " - {} - {}".format(company.name, company.currency_id.name) |
|||
report_name = report_name + suffix |
|||
return report_name |
|||
|
|||
def _get_report_columns(self, report): |
|||
res = [ |
|||
{"header": _("Date"), "field": "date", "width": 11}, |
|||
{"header": _("Entry"), "field": "entry", "width": 18}, |
|||
{"header": _("Journal"), "field": "journal", "width": 8}, |
|||
{"header": _("Account"), "field": "account", "width": 9}, |
|||
{"header": _("Taxes"), "field": "taxes_description", "width": 15}, |
|||
{"header": _("Partner"), "field": "partner_name", "width": 25}, |
|||
{"header": _("Ref - Label"), "field": "ref_label", "width": 40}, |
|||
] |
|||
if report.show_cost_center: |
|||
res += [ |
|||
{ |
|||
"header": _("Analytic Account"), |
|||
"field": "analytic_account", |
|||
"width": 20, |
|||
}, |
|||
] |
|||
if report.show_analytic_tags: |
|||
res += [ |
|||
{"header": _("Tags"), "field": "tags", "width": 10}, |
|||
] |
|||
res += [ |
|||
{"header": _("Rec."), "field": "rec_name", "width": 15}, |
|||
{ |
|||
"header": _("Debit"), |
|||
"field": "debit", |
|||
"field_initial_balance": "initial_debit", |
|||
"field_final_balance": "final_debit", |
|||
"type": "amount", |
|||
"width": 14, |
|||
}, |
|||
{ |
|||
"header": _("Credit"), |
|||
"field": "credit", |
|||
"field_initial_balance": "initial_credit", |
|||
"field_final_balance": "final_credit", |
|||
"type": "amount", |
|||
"width": 14, |
|||
}, |
|||
{ |
|||
"header": _("Cumul. Bal."), |
|||
"field": "balance", |
|||
"field_initial_balance": "initial_balance", |
|||
"field_final_balance": "final_balance", |
|||
"type": "amount", |
|||
"width": 14, |
|||
}, |
|||
] |
|||
if report.foreign_currency: |
|||
res += [ |
|||
{ |
|||
"header": _("Cur."), |
|||
"field": "currency_name", |
|||
"field_currency_balance": "currency_name", |
|||
"type": "currency_name", |
|||
"width": 7, |
|||
}, |
|||
{ |
|||
"header": _("Amount cur."), |
|||
"field": "bal_curr", |
|||
"field_initial_balance": "initial_bal_curr", |
|||
"field_final_balance": "final_bal_curr", |
|||
"type": "amount_currency", |
|||
"width": 14, |
|||
}, |
|||
] |
|||
res_as_dict = {} |
|||
for i, column in enumerate(res): |
|||
res_as_dict[i] = column |
|||
return res_as_dict |
|||
|
|||
def _get_report_filters(self, report): |
|||
return [ |
|||
[ |
|||
_("Date range filter"), |
|||
_("From: %s To: %s") % (report.date_from, report.date_to), |
|||
], |
|||
[ |
|||
_("Target moves filter"), |
|||
_("All posted entries") |
|||
if report.target_move == "posted" |
|||
else _("All entries"), |
|||
], |
|||
[ |
|||
_("Account balance at 0 filter"), |
|||
_("Hide") if report.hide_account_at_0 else _("Show"), |
|||
], |
|||
[_("Centralize filter"), _("Yes") if report.centralize else _("No")], |
|||
[ |
|||
_("Show analytic tags"), |
|||
_("Yes") if report.show_analytic_tags else _("No"), |
|||
], |
|||
[ |
|||
_("Show foreign currency"), |
|||
_("Yes") if report.foreign_currency else _("No"), |
|||
], |
|||
] |
|||
|
|||
def _get_col_count_filter_name(self): |
|||
return 2 |
|||
|
|||
def _get_col_count_filter_value(self): |
|||
return 2 |
|||
|
|||
def _get_col_pos_initial_balance_label(self): |
|||
return 5 |
|||
|
|||
def _get_col_count_final_balance_name(self): |
|||
return 5 |
|||
|
|||
def _get_col_pos_final_balance_label(self): |
|||
return 5 |
|||
|
|||
# flake8: noqa: C901 |
|||
def _generate_report_content(self, workbook, report, data): |
|||
res_data = self.env[ |
|||
"report.account_financial_report.general_ledger" |
|||
]._get_report_values(report, data) |
|||
general_ledger = res_data["general_ledger"] |
|||
accounts_data = res_data["accounts_data"] |
|||
partners_data = res_data["partners_data"] |
|||
journals_data = res_data["journals_data"] |
|||
taxes_data = res_data["taxes_data"] |
|||
tags_data = res_data["tags_data"] |
|||
filter_partner_ids = res_data["filter_partner_ids"] |
|||
foreign_currency = res_data["foreign_currency"] |
|||
# For each account |
|||
for account in general_ledger: |
|||
# Write account title |
|||
self.write_array_title( |
|||
account["code"] + " - " + accounts_data[account["id"]]["name"] |
|||
) |
|||
|
|||
if not account["partners"]: |
|||
# Display array header for move lines |
|||
self.write_array_header() |
|||
|
|||
# Display initial balance line for account |
|||
account.update( |
|||
{ |
|||
"initial_debit": account["init_bal"]["debit"], |
|||
"initial_credit": account["init_bal"]["credit"], |
|||
"initial_balance": account["init_bal"]["balance"], |
|||
} |
|||
) |
|||
if foreign_currency: |
|||
account.update( |
|||
{"initial_bal_curr": account["init_bal"]["bal_curr"]} |
|||
) |
|||
self.write_initial_balance_from_dict(account) |
|||
|
|||
# Display account move lines |
|||
for line in account["move_lines"]: |
|||
line.update( |
|||
{ |
|||
"account": account["code"], |
|||
"journal": journals_data[line["journal_id"]]["code"], |
|||
} |
|||
) |
|||
if line["currency_id"]: |
|||
line.update( |
|||
{ |
|||
"currency_name": line["currency_id"][1], |
|||
"currency_id": line["currency_id"][0], |
|||
} |
|||
) |
|||
if line["ref_label"] != "Centralized entries": |
|||
taxes_description = "" |
|||
tags = "" |
|||
for tax_id in line["tax_ids"]: |
|||
taxes_description += taxes_data[tax_id]["tax_name"] + " " |
|||
for tag_id in line["tag_ids"]: |
|||
tags += tags_data[tag_id]["name"] + " " |
|||
line.update( |
|||
{"taxes_description": taxes_description, "tags": tags,} |
|||
) |
|||
self.write_line_from_dict(line) |
|||
# Display ending balance line for account |
|||
account.update( |
|||
{ |
|||
"final_debit": account["fin_bal"]["debit"], |
|||
"final_credit": account["fin_bal"]["credit"], |
|||
"final_balance": account["fin_bal"]["balance"], |
|||
} |
|||
) |
|||
if foreign_currency: |
|||
account.update( |
|||
{"final_bal_curr": account["fin_bal"]["bal_curr"],} |
|||
) |
|||
self.write_ending_balance_from_dict(account) |
|||
|
|||
else: |
|||
# For each partner |
|||
for partner in account["list_partner"]: |
|||
# Write partner title |
|||
self.write_array_title(partners_data[partner["id"]]["name"]) |
|||
|
|||
# Display array header for move lines |
|||
self.write_array_header() |
|||
|
|||
# Display initial balance line for partner |
|||
partner.update( |
|||
{ |
|||
"initial_debit": partner["init_bal"]["debit"], |
|||
"initial_credit": partner["init_bal"]["credit"], |
|||
"initial_balance": partner["init_bal"]["balance"], |
|||
"name": partners_data[partner["id"]]["name"], |
|||
"type": "partner", |
|||
"currency_id": accounts_data[account["id"]]["currency_id"], |
|||
} |
|||
) |
|||
if foreign_currency: |
|||
partner.update( |
|||
{"initial_bal_curr": partner["init_bal"]["bal_curr"],} |
|||
) |
|||
self.write_initial_balance_from_dict(partner) |
|||
|
|||
# Display account move lines |
|||
for line in partner["move_lines"]: |
|||
line.update( |
|||
{ |
|||
"account": account["code"], |
|||
"journal": journals_data[line["journal_id"]]["code"], |
|||
} |
|||
) |
|||
if line["currency_id"]: |
|||
line.update( |
|||
{ |
|||
"currency_name": line["currency_id"][1], |
|||
"currency_id": line["currency_id"][0], |
|||
} |
|||
) |
|||
if line["ref_label"] != "Centralized entries": |
|||
taxes_description = "" |
|||
tags = "" |
|||
for tax_id in line["tax_ids"]: |
|||
taxes_description += ( |
|||
taxes_data[tax_id]["tax_name"] + " " |
|||
) |
|||
for tag_id in line["tag_ids"]: |
|||
tags += tags_data[tag_id]["name"] + " " |
|||
line.update( |
|||
{"taxes_description": taxes_description, "tags": tags,} |
|||
) |
|||
self.write_line_from_dict(line) |
|||
|
|||
# Display ending balance line for partner |
|||
partner.update( |
|||
{ |
|||
"final_debit": partner["fin_bal"]["debit"], |
|||
"final_credit": partner["fin_bal"]["credit"], |
|||
"final_balance": partner["fin_bal"]["balance"], |
|||
} |
|||
) |
|||
if foreign_currency and partner["currency_id"]: |
|||
partner.update( |
|||
{ |
|||
"final_bal_curr": partner["fin_bal"]["bal_curr"], |
|||
"currency_name": partner["currency_id"].name, |
|||
"currency_id": partner["currency_id"].id, |
|||
} |
|||
) |
|||
self.write_ending_balance_from_dict(partner) |
|||
|
|||
# Line break |
|||
self.row_pos += 1 |
|||
|
|||
if not filter_partner_ids: |
|||
account.update( |
|||
{ |
|||
"final_debit": account["fin_bal"]["debit"], |
|||
"final_credit": account["fin_bal"]["credit"], |
|||
"final_balance": account["fin_bal"]["balance"], |
|||
} |
|||
) |
|||
if foreign_currency and account["currency_id"]: |
|||
account.update( |
|||
{ |
|||
"final_bal_curr": account["fin_bal"]["bal_curr"], |
|||
"currency_name": account["currency_id"].name, |
|||
"currency_id": account["currency_id"].id, |
|||
} |
|||
) |
|||
self.write_ending_balance_from_dict(account) |
|||
|
|||
# 2 lines break |
|||
self.row_pos += 2 |
|||
|
|||
def write_initial_balance_from_dict(self, my_object): |
|||
"""Specific function to write initial balance for General Ledger""" |
|||
if "partner" in my_object["type"]: |
|||
label = _("Partner Initial balance") |
|||
elif "account" in my_object["type"]: |
|||
label = _("Initial balance") |
|||
super(GeneralLedgerXslx, self).write_initial_balance_from_dict(my_object, label) |
|||
|
|||
def write_ending_balance_from_dict(self, my_object): |
|||
"""Specific function to write ending balance for General Ledger""" |
|||
if "partner" in my_object["type"]: |
|||
name = my_object["name"] |
|||
label = _("Partner ending balance") |
|||
elif "account" in my_object["type"]: |
|||
name = my_object["code"] + " - " + my_object["name"] |
|||
label = _("Ending balance") |
|||
super(GeneralLedgerXslx, self).write_ending_balance_from_dict( |
|||
my_object, name, label |
|||
) |
@ -1,365 +0,0 @@ |
|||
# Copyright 2019-20 ForgeFlow S.L. (https://www.forgeflow.com) |
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). |
|||
|
|||
import itertools |
|||
import operator |
|||
|
|||
from odoo import models |
|||
|
|||
|
|||
class JournalLedgerReport(models.AbstractModel): |
|||
_name = "report.account_financial_report.journal_ledger" |
|||
_description = "Journal Ledger Report" |
|||
|
|||
def _get_journal_ledger_data(self, journal): |
|||
return { |
|||
"id": journal.id, |
|||
"name": journal.name, |
|||
"currency_id": journal.currency_id.id, |
|||
"currency_name": journal.currency_id |
|||
and journal.currency_id.name |
|||
or journal.company_id.currency_id.name, |
|||
"debit": 0.0, |
|||
"credit": 0.0, |
|||
} |
|||
|
|||
def _get_journal_ledgers_domain(self, wizard, journal_ids, company): |
|||
domain = [] |
|||
if company: |
|||
domain += [("company_id", "=", company.id)] |
|||
if journal_ids: |
|||
domain += [("id", "in", journal_ids)] |
|||
return domain |
|||
|
|||
def _get_journal_ledgers(self, wizard, journal_ids, company): |
|||
journals = self.env["account.journal"].search( |
|||
self._get_journal_ledgers_domain(wizard, journal_ids, company), |
|||
order="name asc", |
|||
) |
|||
journal_ledgers_data = [] |
|||
for journal in journals: |
|||
journal_ledgers_data.append(self._get_journal_ledger_data(journal)) |
|||
return journal_ledgers_data |
|||
|
|||
def _get_moves_domain(self, wizard, journal_ids): |
|||
domain = [ |
|||
("journal_id", "in", journal_ids), |
|||
("date", ">=", wizard.date_from), |
|||
("date", "<=", wizard.date_to), |
|||
] |
|||
if wizard.move_target != "all": |
|||
domain += [("state", "=", wizard.move_target)] |
|||
else: |
|||
domain += [("state", "in", ["posted", "draft"])] |
|||
return domain |
|||
|
|||
def _get_moves_order(self, wizard, journal_ids): |
|||
search_order = "" |
|||
if wizard.sort_option == "move_name": |
|||
search_order = "name asc" |
|||
elif wizard.sort_option == "date": |
|||
search_order = "date asc, name asc" |
|||
return search_order |
|||
|
|||
def _get_moves_data(self, move): |
|||
return { |
|||
"move_id": move.id, |
|||
"journal_id": move.journal_id.id, |
|||
"entry": move.name, |
|||
} |
|||
|
|||
def _get_moves(self, wizard, journal_ids): |
|||
moves = self.env["account.move"].search( |
|||
self._get_moves_domain(wizard, journal_ids), |
|||
order=self._get_moves_order(wizard, journal_ids), |
|||
) |
|||
Moves = [] |
|||
move_data = {} |
|||
for move in moves: |
|||
move_data[move.id] = self._get_moves_data(move) |
|||
Moves.append(move_data[move.id]) |
|||
return moves.ids, Moves, move_data |
|||
|
|||
def _get_move_lines_domain(self, move_ids, wizard, journal_ids): |
|||
return [("display_type", "=", False), ("move_id", "in", move_ids)] |
|||
|
|||
def _get_move_lines_order(self, move_ids, wizard, journal_ids): |
|||
return "" |
|||
|
|||
def _get_move_lines_data(self, ml, wizard, ml_taxes, auto_sequence): |
|||
base_debit = ( |
|||
base_credit |
|||
) = tax_debit = tax_credit = base_balance = tax_balance = 0.0 |
|||
if ml.tax_exigible: |
|||
base_debit = ml_taxes and ml.debit or 0.0 |
|||
base_credit = ml_taxes and ml.credit or 0.0 |
|||
base_balance = ml_taxes and ml.balance or 0.0 |
|||
tax_debit = ml.tax_line_id and ml.debit or 0.0 |
|||
tax_credit = ml.tax_line_id and ml.credit or 0.0 |
|||
tax_balance = ml.tax_line_id and ml.balance or 0.0 |
|||
return { |
|||
"move_line_id": ml.id, |
|||
"move_id": ml.move_id.id, |
|||
"date": ml.date, |
|||
"journal_id": ml.journal_id.id, |
|||
"account_id": ml.account_id.id, |
|||
"partner_id": ml.partner_id.id, |
|||
"label": ml.name, |
|||
"debit": ml.debit, |
|||
"credit": ml.credit, |
|||
"company_currency_id": ml.company_currency_id.id, |
|||
"amount_currency": ml.amount_currency, |
|||
"currency_id": ml.currency_id.id, |
|||
"tax_line_id": ml.tax_line_id.id, |
|||
"tax_ids": list(ml_taxes.keys()), |
|||
"base_debit": base_debit, |
|||
"base_credit": base_credit, |
|||
"tax_debit": tax_debit, |
|||
"tax_credit": tax_credit, |
|||
"base_balance": base_balance, |
|||
"tax_balance": tax_balance, |
|||
"auto_sequence": str(auto_sequence).zfill(6), |
|||
} |
|||
|
|||
def _get_account_data(self, accounts): |
|||
data = {} |
|||
for account in accounts: |
|||
data[account.id] = self._get_account_id_data(account) |
|||
return data |
|||
|
|||
def _get_account_id_data(self, account): |
|||
return { |
|||
"name": account.name, |
|||
"code": account.code, |
|||
"internal_type": account.internal_type, |
|||
} |
|||
|
|||
def _get_partner_data(self, partners): |
|||
data = {} |
|||
for partner in partners: |
|||
data[partner.id] = self._get_partner_id_data(partner) |
|||
return data |
|||
|
|||
def _get_partner_id_data(self, partner): |
|||
return {"name": partner.name} |
|||
|
|||
def _get_currency_data(self, currencies): |
|||
data = {} |
|||
for currency in currencies: |
|||
data[currency.id] = self._get_currency_id_data(currency) |
|||
return data |
|||
|
|||
def _get_currency_id_data(self, currency): |
|||
return {"name": currency.name} |
|||
|
|||
def _get_tax_line_data(self, taxes): |
|||
data = {} |
|||
for tax in taxes: |
|||
data[tax.id] = self._get_tax_line_id_data(tax) |
|||
return data |
|||
|
|||
def _get_tax_line_id_data(self, tax): |
|||
return {"name": tax.name, "description": tax.description} |
|||
|
|||
def _get_query_taxes(self): |
|||
return """ |
|||
SELECT aml_at_rel.account_move_line_id, aml_at_rel.account_tax_id, |
|||
at.description, at.name |
|||
FROM account_move_line_account_tax_rel AS aml_at_rel |
|||
LEFT JOIN |
|||
account_tax AS at on (at.id = aml_at_rel.account_tax_id) |
|||
WHERE account_move_line_id IN %(move_line_ids)s |
|||
""" |
|||
|
|||
def _get_query_taxes_params(self, move_lines): |
|||
return {"move_line_ids": tuple(move_lines.ids)} |
|||
|
|||
def _get_move_lines(self, move_ids, wizard, journal_ids): |
|||
move_lines = self.env["account.move.line"].search( |
|||
self._get_move_lines_domain(move_ids, wizard, journal_ids), |
|||
order=self._get_move_lines_order(move_ids, wizard, journal_ids), |
|||
) |
|||
move_line_ids_taxes_data = {} |
|||
if move_lines: |
|||
# Get the taxes ids for the move lines |
|||
query_taxes_params = self._get_query_taxes_params(move_lines) |
|||
query_taxes = self._get_query_taxes() |
|||
self.env.cr.execute(query_taxes, query_taxes_params) |
|||
# Fetch the taxes associated to the move line |
|||
for ( |
|||
move_line_id, |
|||
account_tax_id, |
|||
tax_description, |
|||
tax_name, |
|||
) in self.env.cr.fetchall(): |
|||
if move_line_id not in move_line_ids_taxes_data.keys(): |
|||
move_line_ids_taxes_data[move_line_id] = {} |
|||
move_line_ids_taxes_data[move_line_id][account_tax_id] = { |
|||
"name": tax_name, |
|||
"description": tax_description, |
|||
} |
|||
Move_Lines = {} |
|||
accounts = self.env["account.account"] |
|||
partners = self.env["res.partner"] |
|||
currencies = self.env["res.currency"] |
|||
tax_lines = self.env["account.tax"] |
|||
auto_sequence = len(move_ids) |
|||
for ml in move_lines: |
|||
if ml.account_id not in accounts: |
|||
accounts |= ml.account_id |
|||
if ml.partner_id not in partners: |
|||
partners |= ml.partner_id |
|||
if ml.currency_id not in currencies: |
|||
currencies |= ml.currency_id |
|||
if ml.tax_line_id not in tax_lines: |
|||
tax_lines |= ml.tax_line_id |
|||
if ml.move_id.id not in Move_Lines.keys(): |
|||
Move_Lines[ml.move_id.id] = [] |
|||
auto_sequence -= 1 |
|||
taxes = ( |
|||
ml.id in move_line_ids_taxes_data.keys() |
|||
and move_line_ids_taxes_data[ml.id] |
|||
or {} |
|||
) |
|||
Move_Lines[ml.move_id.id].append( |
|||
self._get_move_lines_data(ml, wizard, taxes, auto_sequence) |
|||
) |
|||
account_ids_data = self._get_account_data(accounts) |
|||
partner_ids_data = self._get_partner_data(partners) |
|||
currency_ids_data = self._get_currency_data(currencies) |
|||
tax_line_ids_data = self._get_tax_line_data(tax_lines) |
|||
return ( |
|||
move_lines.ids, |
|||
Move_Lines, |
|||
account_ids_data, |
|||
partner_ids_data, |
|||
currency_ids_data, |
|||
tax_line_ids_data, |
|||
move_line_ids_taxes_data, |
|||
) |
|||
|
|||
def _get_journal_tax_lines(self, wizard, moves_data): |
|||
journals_taxes_data = {} |
|||
for move_data in moves_data: |
|||
report_move_lines = move_data["report_move_lines"] |
|||
for report_move_line in report_move_lines: |
|||
ml_data = report_move_line |
|||
tax_ids = [] |
|||
if ml_data["tax_line_id"]: |
|||
tax_ids.append(ml_data["tax_line_id"]) |
|||
if ml_data["tax_ids"]: |
|||
tax_ids += ml_data["tax_ids"] |
|||
tax_ids = list(set(tax_ids)) |
|||
journal_id = ml_data["journal_id"] |
|||
if journal_id not in journals_taxes_data.keys(): |
|||
journals_taxes_data[journal_id] = {} |
|||
taxes = self.env["account.tax"].browse(tax_ids) |
|||
for tax in taxes: |
|||
if tax.id not in journals_taxes_data[journal_id]: |
|||
journals_taxes_data[journal_id][tax.id] = { |
|||
"base_debit": 0.0, |
|||
"base_credit": 0.0, |
|||
"base_balance": 0.0, |
|||
"tax_debit": 0.0, |
|||
"tax_credit": 0.0, |
|||
"tax_balance": 0.0, |
|||
"tax_name": tax.name, |
|||
"tax_code": tax.description, |
|||
} |
|||
field_keys = [ |
|||
"base_debit", |
|||
"base_credit", |
|||
"base_balance", |
|||
"tax_debit", |
|||
"tax_credit", |
|||
"tax_balance", |
|||
] |
|||
for field_key in field_keys: |
|||
journals_taxes_data[journal_id][tax.id][field_key] += ml_data[ |
|||
field_key |
|||
] |
|||
journals_taxes_data_2 = {} |
|||
for journal_id in journals_taxes_data.keys(): |
|||
journals_taxes_data_2[journal_id] = [] |
|||
for tax_id in journals_taxes_data[journal_id].keys(): |
|||
journals_taxes_data_2[journal_id] += [ |
|||
journals_taxes_data[journal_id][tax_id] |
|||
] |
|||
return journals_taxes_data_2 |
|||
|
|||
def _get_report_values(self, docids, data): |
|||
wizard_id = data["wizard_id"] |
|||
wizard = self.env["journal.ledger.report.wizard"].browse(wizard_id) |
|||
company = self.env["res.company"].browse(data["company_id"]) |
|||
journal_ids = data["journal_ids"] |
|||
journal_ledgers_data = self._get_journal_ledgers(wizard, journal_ids, company) |
|||
move_ids, moves_data, move_ids_data = self._get_moves(wizard, journal_ids) |
|||
journal_moves_data = {} |
|||
for key, items in itertools.groupby( |
|||
moves_data, operator.itemgetter("journal_id") |
|||
): |
|||
if key not in journal_moves_data.keys(): |
|||
journal_moves_data[key] = [] |
|||
journal_moves_data[key] += list(items) |
|||
move_lines_data = ( |
|||
account_ids_data |
|||
) = ( |
|||
partner_ids_data |
|||
) = currency_ids_data = tax_line_ids_data = move_line_ids_taxes_data = {} |
|||
if move_ids: |
|||
move_lines = self._get_move_lines(move_ids, wizard, journal_ids) |
|||
move_lines_data = move_lines[1] |
|||
account_ids_data = move_lines[2] |
|||
partner_ids_data = move_lines[3] |
|||
currency_ids_data = move_lines[4] |
|||
tax_line_ids_data = move_lines[5] |
|||
for move_data in moves_data: |
|||
move_id = move_data["move_id"] |
|||
move_data["report_move_lines"] = [] |
|||
if move_id in move_lines_data.keys(): |
|||
move_data["report_move_lines"] += move_lines_data[move_id] |
|||
journals_taxes_data = {} |
|||
if moves_data: |
|||
journals_taxes_data = self._get_journal_tax_lines(wizard, moves_data) |
|||
for journal_ledger_data in journal_ledgers_data: |
|||
journal_id = journal_ledger_data["id"] |
|||
journal_ledger_data["tax_lines"] = journals_taxes_data.get(journal_id, []) |
|||
journal_totals = {} |
|||
for move_id in move_lines_data.keys(): |
|||
for move_line_data in move_lines_data[move_id]: |
|||
journal_id = move_line_data["journal_id"] |
|||
if journal_id not in journal_totals.keys(): |
|||
journal_totals[journal_id] = {"debit": 0.0, "credit": 0.0} |
|||
for item in ["debit", "credit"]: |
|||
journal_totals[journal_id][item] += move_line_data[item] |
|||
for journal_ledger_data in journal_ledgers_data: |
|||
journal_id = journal_ledger_data["id"] |
|||
if journal_id in journal_moves_data.keys(): |
|||
journal_ledger_data["report_moves"] = journal_moves_data[journal_id] |
|||
else: |
|||
journal_ledger_data["report_moves"] = [] |
|||
if journal_id in journal_totals.keys(): |
|||
for item in ["debit", "credit"]: |
|||
journal_ledger_data[item] += journal_totals[journal_id][item] |
|||
return { |
|||
"doc_ids": [wizard_id], |
|||
"doc_model": "journal.ledger.report.wizard", |
|||
"docs": self.env["journal.ledger.report.wizard"].browse(wizard_id), |
|||
"group_option": data["group_option"], |
|||
"foreign_currency": data["foreign_currency"], |
|||
"with_account_name": data["with_account_name"], |
|||
"company_name": company.display_name, |
|||
"currency_name": company.currency_id.name, |
|||
"date_from": data["date_from"], |
|||
"date_to": data["date_to"], |
|||
"move_target": data["move_target"], |
|||
"with_auto_sequence": data["with_auto_sequence"], |
|||
"account_ids_data": account_ids_data, |
|||
"partner_ids_data": partner_ids_data, |
|||
"currency_ids_data": currency_ids_data, |
|||
"move_ids_data": move_ids_data, |
|||
"tax_line_data": tax_line_ids_data, |
|||
"move_line_ids_taxes_data": move_line_ids_taxes_data, |
|||
"Journal_Ledgers": journal_ledgers_data, |
|||
"Moves": moves_data, |
|||
} |
@ -1,256 +0,0 @@ |
|||
# Author: Damien Crier |
|||
# Author: Julien Coux |
|||
# Copyright 2016 Camptocamp SA |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
|
|||
from odoo import _, models |
|||
|
|||
|
|||
class JournalLedgerXslx(models.AbstractModel): |
|||
_name = "report.a_f_r.report_journal_ledger_xlsx" |
|||
_description = "Journal Ledger XLSX Report" |
|||
_inherit = "report.account_financial_report.abstract_report_xlsx" |
|||
|
|||
def _get_report_name(self, report, data=False): |
|||
company_id = data.get("company_id", False) |
|||
report_name = _("Journal Ledger") |
|||
if company_id: |
|||
company = self.env["res.company"].browse(company_id) |
|||
suffix = " - {} - {}".format(company.name, company.currency_id.name) |
|||
report_name = report_name + suffix |
|||
return report_name |
|||
|
|||
def _get_report_columns(self, report): |
|||
columns = [ |
|||
{"header": _("Entry"), "field": "entry", "width": 18}, |
|||
{"header": _("Date"), "field": "date", "width": 11}, |
|||
{"header": _("Account"), "field": "account_code", "width": 9}, |
|||
] |
|||
|
|||
if report.with_auto_sequence: |
|||
columns.insert( |
|||
0, {"header": _("Sequence"), "field": "auto_sequence", "width": 10} |
|||
) |
|||
|
|||
if report.with_account_name: |
|||
columns.append( |
|||
{"header": _("Account Name"), "field": "account_name", "width": 15} |
|||
) |
|||
|
|||
columns += [ |
|||
{"header": _("Partner"), "field": "partner", "width": 25}, |
|||
{"header": _("Ref - Label"), "field": "label", "width": 40}, |
|||
{"header": _("Taxes"), "field": "taxes_description", "width": 11}, |
|||
{"header": _("Debit"), "field": "debit", "type": "amount", "width": 14}, |
|||
{"header": _("Credit"), "field": "credit", "type": "amount", "width": 14}, |
|||
] |
|||
|
|||
if report.foreign_currency: |
|||
columns += [ |
|||
{ |
|||
"header": _("Currency"), |
|||
"field": "currency_name", |
|||
"width": 14, |
|||
"type": "currency_name", |
|||
}, |
|||
{ |
|||
"header": _("Amount Currency"), |
|||
"field": "amount_currency", |
|||
"type": "amount", |
|||
"width": 18, |
|||
}, |
|||
] |
|||
|
|||
columns_as_dict = {} |
|||
for i, column in enumerate(columns): |
|||
columns_as_dict[i] = column |
|||
return columns_as_dict |
|||
|
|||
def _get_journal_tax_columns(self, report): |
|||
return { |
|||
0: {"header": _("Name"), "field": "tax_name", "width": 35}, |
|||
1: {"header": _("Description"), "field": "tax_code", "width": 18}, |
|||
2: { |
|||
"header": _("Base Debit"), |
|||
"field": "base_debit", |
|||
"type": "amount", |
|||
"width": 14, |
|||
}, |
|||
3: { |
|||
"header": _("Base Credit"), |
|||
"field": "base_credit", |
|||
"type": "amount", |
|||
"width": 14, |
|||
}, |
|||
4: { |
|||
"header": _("Base Balance"), |
|||
"field": "base_balance", |
|||
"type": "amount", |
|||
"width": 14, |
|||
}, |
|||
5: { |
|||
"header": _("Tax Debit"), |
|||
"field": "tax_debit", |
|||
"type": "amount", |
|||
"width": 14, |
|||
}, |
|||
6: { |
|||
"header": _("Tax Credit"), |
|||
"field": "tax_credit", |
|||
"type": "amount", |
|||
"width": 14, |
|||
}, |
|||
7: { |
|||
"header": _("Tax Balance"), |
|||
"field": "tax_balance", |
|||
"type": "amount", |
|||
"width": 14, |
|||
}, |
|||
} |
|||
|
|||
def _get_col_count_filter_name(self): |
|||
return 2 |
|||
|
|||
def _get_col_count_filter_value(self): |
|||
return 3 |
|||
|
|||
def _get_report_filters(self, report): |
|||
target_label_by_value = { |
|||
value: label |
|||
for value, label in self.env[ |
|||
"journal.ledger.report.wizard" |
|||
]._get_move_targets() |
|||
} |
|||
|
|||
sort_option_label_by_value = { |
|||
value: label |
|||
for value, label in self.env[ |
|||
"journal.ledger.report.wizard" |
|||
]._get_sort_options() |
|||
} |
|||
|
|||
return [ |
|||
[_("Company"), report.company_id.name], |
|||
[ |
|||
_("Date range filter"), |
|||
_("From: %s To: %s") % (report.date_from, report.date_to), |
|||
], |
|||
[ |
|||
_("Target moves filter"), |
|||
_("%s") % target_label_by_value[report.move_target], |
|||
], |
|||
[ |
|||
_("Entries sorted by"), |
|||
_("%s") % sort_option_label_by_value[report.sort_option], |
|||
], |
|||
[ |
|||
_("Journals"), |
|||
", ".join( |
|||
[ |
|||
"{} - {}".format(report_journal.code, report_journal.name) |
|||
for report_journal in report.journal_ids |
|||
] |
|||
), |
|||
], |
|||
] |
|||
|
|||
def _generate_report_content(self, workbook, report, data): |
|||
res_data = self.env[ |
|||
"report.account_financial_report.journal_ledger" |
|||
]._get_report_values(report, data) |
|||
group_option = report.group_option |
|||
if group_option == "journal": |
|||
for ledger in res_data["Journal_Ledgers"]: |
|||
self._generate_journal_content(workbook, report, res_data, ledger) |
|||
elif group_option == "none": |
|||
self._generate_no_group_content(workbook, report, res_data) |
|||
|
|||
def _generate_no_group_content(self, workbook, report, res_data): |
|||
self._generate_moves_content( |
|||
workbook, "Report", report, res_data, res_data["Moves"] |
|||
) |
|||
self._generate_no_group_taxes_summary(workbook, report, res_data) |
|||
|
|||
def _generate_journal_content(self, workbook, report, res_data, ledger): |
|||
journal = self.env["account.journal"].browse(ledger["id"]) |
|||
currency_name = ( |
|||
journal.currency_id |
|||
and journal.currency_id.name |
|||
or journal.company_id.currency_id.name |
|||
) |
|||
sheet_name = "{} ({}) - {}".format(journal.code, currency_name, journal.name) |
|||
self._generate_moves_content( |
|||
workbook, sheet_name, report, res_data, ledger["report_moves"] |
|||
) |
|||
self._generate_journal_taxes_summary(workbook, ledger) |
|||
|
|||
def _generate_no_group_taxes_summary(self, workbook, report, res_data): |
|||
self._generate_taxes_summary(workbook, "Tax Report", res_data["tax_line_data"]) |
|||
|
|||
def _generate_journal_taxes_summary(self, workbook, ledger): |
|||
journal = self.env["account.journal"].browse(ledger["id"]) |
|||
currency_name = ( |
|||
journal.currency_id |
|||
and journal.currency_id.name |
|||
or journal.company_id.currency_id.name |
|||
) |
|||
sheet_name = "Tax - {} ({}) - {}".format( |
|||
journal.code, currency_name, journal.name |
|||
) |
|||
self._generate_taxes_summary(workbook, sheet_name, ledger["tax_lines"]) |
|||
|
|||
def _generate_moves_content(self, workbook, sheet_name, report, res_data, moves): |
|||
self.workbook = workbook |
|||
self.sheet = workbook.add_worksheet(sheet_name) |
|||
self._set_column_width() |
|||
|
|||
self.row_pos = 1 |
|||
|
|||
self.write_array_title(sheet_name) |
|||
self.row_pos += 2 |
|||
|
|||
self.write_array_header() |
|||
account_ids_data = res_data["account_ids_data"] |
|||
partner_ids_data = res_data["partner_ids_data"] |
|||
currency_ids_data = res_data["currency_ids_data"] |
|||
move_ids_data = res_data["move_ids_data"] |
|||
for move in moves: |
|||
for line in move["report_move_lines"]: |
|||
currency_data = currency_ids_data.get(line["currency_id"], False) |
|||
currency_name = currency_data and currency_data["name"] or "" |
|||
account_data = account_ids_data.get(line["account_id"], False) |
|||
account_name = account_data and account_data["name"] or "" |
|||
account_code = account_data and account_data["code"] or "" |
|||
move_data = move_ids_data.get(line["move_id"], False) |
|||
move_entry = move_data and move_data["entry"] or "" |
|||
line["partner"] = self._get_partner_name( |
|||
line["partner_id"], partner_ids_data |
|||
) |
|||
line["auto_sequence"] = line["auto_sequence"] |
|||
line["account_code"] = account_code |
|||
line["account_name"] = account_name |
|||
line["currency_name"] = currency_name |
|||
line["entry"] = move_entry |
|||
line["taxes_description"] = report._get_ml_tax_description( |
|||
line, |
|||
res_data["tax_line_data"].get(line["tax_line_id"]), |
|||
res_data["move_line_ids_taxes_data"].get( |
|||
line["move_line_id"], False |
|||
), |
|||
) |
|||
self.write_line_from_dict(line) |
|||
self.row_pos += 1 |
|||
|
|||
def _generate_taxes_summary(self, workbook, sheet_name, tax_lines_dict): |
|||
self.workbook = workbook |
|||
self.sheet = workbook.add_worksheet(sheet_name) |
|||
|
|||
self.row_pos = 1 |
|||
self.write_array_title(sheet_name) |
|||
self.row_pos += 2 |
|||
|
|||
def _get_partner_name(self, partner_id, partner_data): |
|||
if partner_id in partner_data.keys(): |
|||
return partner_data[partner_id]["name"] |
|||
else: |
|||
return "" |
@ -1,272 +0,0 @@ |
|||
# © 2016 Julien Coux (Camptocamp) |
|||
# Copyright 2020 ForgeFlow S.L. (https://www.forgeflow.com) |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
|
|||
import operator |
|||
from datetime import date, datetime |
|||
|
|||
from odoo import api, models |
|||
from odoo.tools import float_is_zero |
|||
|
|||
|
|||
class OpenItemsReport(models.AbstractModel): |
|||
_name = "report.account_financial_report.open_items" |
|||
_description = "Open Items Report" |
|||
_inherit = "report.account_financial_report.abstract_report" |
|||
|
|||
def _get_account_partial_reconciled(self, company_id, date_at_object): |
|||
domain = [("max_date", ">", date_at_object), ("company_id", "=", company_id)] |
|||
fields = ["debit_move_id", "credit_move_id", "amount"] |
|||
accounts_partial_reconcile = self.env["account.partial.reconcile"].search_read( |
|||
domain=domain, fields=fields |
|||
) |
|||
debit_amount = {} |
|||
credit_amount = {} |
|||
for account_partial_reconcile_data in accounts_partial_reconcile: |
|||
debit_move_id = account_partial_reconcile_data["debit_move_id"][0] |
|||
credit_move_id = account_partial_reconcile_data["credit_move_id"][0] |
|||
if debit_move_id not in debit_amount.keys(): |
|||
debit_amount[debit_move_id] = 0.0 |
|||
debit_amount[debit_move_id] += account_partial_reconcile_data["amount"] |
|||
if credit_move_id not in credit_amount.keys(): |
|||
credit_amount[credit_move_id] = 0.0 |
|||
credit_amount[credit_move_id] += account_partial_reconcile_data["amount"] |
|||
account_partial_reconcile_data.update( |
|||
{"debit_move_id": debit_move_id, "credit_move_id": credit_move_id} |
|||
) |
|||
return accounts_partial_reconcile, debit_amount, credit_amount |
|||
|
|||
def _get_data( |
|||
self, |
|||
account_ids, |
|||
partner_ids, |
|||
date_at_object, |
|||
only_posted_moves, |
|||
company_id, |
|||
date_from, |
|||
): |
|||
domain = self._get_move_lines_domain_not_reconciled( |
|||
company_id, account_ids, partner_ids, only_posted_moves, date_from |
|||
) |
|||
ml_fields = [ |
|||
"id", |
|||
"name", |
|||
"date", |
|||
"move_id", |
|||
"journal_id", |
|||
"account_id", |
|||
"partner_id", |
|||
"amount_residual", |
|||
"date_maturity", |
|||
"ref", |
|||
"debit", |
|||
"credit", |
|||
"reconciled", |
|||
"currency_id", |
|||
"amount_currency", |
|||
"amount_residual_currency", |
|||
] |
|||
move_lines = self.env["account.move.line"].search_read( |
|||
domain=domain, fields=ml_fields |
|||
) |
|||
journals_ids = set() |
|||
partners_ids = set() |
|||
partners_data = {} |
|||
if date_at_object < date.today(): |
|||
( |
|||
acc_partial_rec, |
|||
debit_amount, |
|||
credit_amount, |
|||
) = self._get_account_partial_reconciled(company_id, date_at_object) |
|||
if acc_partial_rec: |
|||
ml_ids = list(map(operator.itemgetter("id"), move_lines)) |
|||
debit_ids = list( |
|||
map(operator.itemgetter("debit_move_id"), acc_partial_rec) |
|||
) |
|||
credit_ids = list( |
|||
map(operator.itemgetter("credit_move_id"), acc_partial_rec) |
|||
) |
|||
move_lines = self._recalculate_move_lines( |
|||
move_lines, |
|||
debit_ids, |
|||
credit_ids, |
|||
debit_amount, |
|||
credit_amount, |
|||
ml_ids, |
|||
account_ids, |
|||
company_id, |
|||
partner_ids, |
|||
only_posted_moves, |
|||
) |
|||
move_lines = [ |
|||
move_line |
|||
for move_line in move_lines |
|||
if move_line["date"] <= date_at_object |
|||
and not float_is_zero(move_line["amount_residual"], precision_digits=2) |
|||
] |
|||
|
|||
open_items_move_lines_data = {} |
|||
for move_line in move_lines: |
|||
journals_ids.add(move_line["journal_id"][0]) |
|||
acc_id = move_line["account_id"][0] |
|||
# Partners data |
|||
if move_line["partner_id"]: |
|||
prt_id = move_line["partner_id"][0] |
|||
prt_name = move_line["partner_id"][1] |
|||
else: |
|||
prt_id = 0 |
|||
prt_name = "Missing Partner" |
|||
if prt_id not in partners_ids: |
|||
partners_data.update({prt_id: {"id": prt_id, "name": prt_name}}) |
|||
partners_ids.add(prt_id) |
|||
|
|||
# Move line update |
|||
original = 0 |
|||
|
|||
if not float_is_zero(move_line["credit"], precision_digits=2): |
|||
original = move_line["credit"] * (-1) |
|||
if not float_is_zero(move_line["debit"], precision_digits=2): |
|||
original = move_line["debit"] |
|||
|
|||
if move_line["ref"] == move_line["name"]: |
|||
if move_line["ref"]: |
|||
ref_label = move_line["ref"] |
|||
else: |
|||
ref_label = "" |
|||
elif not move_line["ref"]: |
|||
ref_label = move_line["name"] |
|||
elif not move_line["name"]: |
|||
ref_label = move_line["ref"] |
|||
else: |
|||
ref_label = move_line["ref"] + str(" - ") + move_line["name"] |
|||
|
|||
move_line.update( |
|||
{ |
|||
"date": move_line["date"], |
|||
"date_maturity": move_line["date_maturity"] |
|||
and move_line["date_maturity"].strftime("%d/%m/%Y"), |
|||
"original": original, |
|||
"partner_id": prt_id, |
|||
"partner_name": prt_name, |
|||
"ref_label": ref_label, |
|||
"journal_id": move_line["journal_id"][0], |
|||
"move_name": move_line["move_id"][1], |
|||
"entry_id": move_line["move_id"][0], |
|||
"currency_id": move_line["currency_id"][0] |
|||
if move_line["currency_id"] |
|||
else False, |
|||
"currency_name": move_line["currency_id"][1] |
|||
if move_line["currency_id"] |
|||
else False, |
|||
} |
|||
) |
|||
|
|||
# Open Items Move Lines Data |
|||
if acc_id not in open_items_move_lines_data.keys(): |
|||
open_items_move_lines_data[acc_id] = {prt_id: [move_line]} |
|||
else: |
|||
if prt_id not in open_items_move_lines_data[acc_id].keys(): |
|||
open_items_move_lines_data[acc_id][prt_id] = [move_line] |
|||
else: |
|||
open_items_move_lines_data[acc_id][prt_id].append(move_line) |
|||
journals_data = self._get_journals_data(list(journals_ids)) |
|||
accounts_data = self._get_accounts_data(open_items_move_lines_data.keys()) |
|||
return ( |
|||
move_lines, |
|||
partners_data, |
|||
journals_data, |
|||
accounts_data, |
|||
open_items_move_lines_data, |
|||
) |
|||
|
|||
@api.model |
|||
def _calculate_amounts(self, open_items_move_lines_data): |
|||
total_amount = {} |
|||
for account_id in open_items_move_lines_data.keys(): |
|||
total_amount[account_id] = {} |
|||
total_amount[account_id]["residual"] = 0.0 |
|||
for partner_id in open_items_move_lines_data[account_id].keys(): |
|||
total_amount[account_id][partner_id] = {} |
|||
total_amount[account_id][partner_id]["residual"] = 0.0 |
|||
for move_line in open_items_move_lines_data[account_id][partner_id]: |
|||
total_amount[account_id][partner_id]["residual"] += move_line[ |
|||
"amount_residual" |
|||
] |
|||
total_amount[account_id]["residual"] += move_line["amount_residual"] |
|||
return total_amount |
|||
|
|||
@api.model |
|||
def _order_open_items_by_date( |
|||
self, open_items_move_lines_data, show_partner_details |
|||
): |
|||
new_open_items = {} |
|||
if not show_partner_details: |
|||
for acc_id in open_items_move_lines_data.keys(): |
|||
new_open_items[acc_id] = {} |
|||
move_lines = [] |
|||
for prt_id in open_items_move_lines_data[acc_id]: |
|||
for move_line in open_items_move_lines_data[acc_id][prt_id]: |
|||
move_lines += [move_line] |
|||
move_lines = sorted(move_lines, key=lambda k: (k["date"])) |
|||
new_open_items[acc_id] = move_lines |
|||
else: |
|||
for acc_id in open_items_move_lines_data.keys(): |
|||
new_open_items[acc_id] = {} |
|||
for prt_id in open_items_move_lines_data[acc_id]: |
|||
new_open_items[acc_id][prt_id] = {} |
|||
move_lines = [] |
|||
for move_line in open_items_move_lines_data[acc_id][prt_id]: |
|||
move_lines += [move_line] |
|||
move_lines = sorted(move_lines, key=lambda k: (k["date"])) |
|||
new_open_items[acc_id][prt_id] = move_lines |
|||
return new_open_items |
|||
|
|||
def _get_report_values(self, docids, data): |
|||
wizard_id = data["wizard_id"] |
|||
company = self.env["res.company"].browse(data["company_id"]) |
|||
company_id = data["company_id"] |
|||
account_ids = data["account_ids"] |
|||
partner_ids = data["partner_ids"] |
|||
date_at = data["date_at"] |
|||
date_at_object = datetime.strptime(date_at, "%Y-%m-%d").date() |
|||
date_from = data["date_from"] |
|||
only_posted_moves = data["only_posted_moves"] |
|||
show_partner_details = data["show_partner_details"] |
|||
|
|||
( |
|||
move_lines_data, |
|||
partners_data, |
|||
journals_data, |
|||
accounts_data, |
|||
open_items_move_lines_data, |
|||
) = self._get_data( |
|||
account_ids, |
|||
partner_ids, |
|||
date_at_object, |
|||
only_posted_moves, |
|||
company_id, |
|||
date_from, |
|||
) |
|||
|
|||
total_amount = self._calculate_amounts(open_items_move_lines_data) |
|||
open_items_move_lines_data = self._order_open_items_by_date( |
|||
open_items_move_lines_data, show_partner_details |
|||
) |
|||
return { |
|||
"doc_ids": [wizard_id], |
|||
"doc_model": "open.items.report.wizard", |
|||
"docs": self.env["open.items.report.wizard"].browse(wizard_id), |
|||
"foreign_currency": data["foreign_currency"], |
|||
"show_partner_details": data["show_partner_details"], |
|||
"company_name": company.display_name, |
|||
"company_currency": company.currency_id, |
|||
"currency_name": company.currency_id.name, |
|||
"date_at": date_at_object.strftime("%d/%m/%Y"), |
|||
"hide_account_at_0": data["hide_account_at_0"], |
|||
"target_move": data["target_move"], |
|||
"journals_data": journals_data, |
|||
"partners_data": partners_data, |
|||
"accounts_data": accounts_data, |
|||
"total_amount": total_amount, |
|||
"Open_Items": open_items_move_lines_data, |
|||
} |
Some files were not shown because too many files changed in this diff
Write
Preview
Loading…
Cancel
Save
Reference in new issue