Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DO NOT MERGE [12.0]AFR extensions #3

Open
wants to merge 27 commits into
base: 12.0-afr-open_items-refactor
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
e644f12
[12.0] account_financial_report: refactor
JoanSForgeFlow Jan 23, 2020
721ba40
[IMP] account_financial_report:
JoanSForgeFlow Mar 5, 2020
c5af274
[FIX] account_financial_report: general_ledger
JoanSForgeFlow Apr 1, 2020
a5344ff
[IMP] account_financial_report: open_items
JoanSForgeFlow Apr 29, 2020
44e36b3
[IMP] account_financial_report: open_items & aged_partner_balance
JoanSForgeFlow Apr 30, 2020
71f243e
[IMP] account_financial_report: select accounts between two codes
JoanSForgeFlow Apr 30, 2020
de51471
fix foreign currency display
JordiBForgeFlow May 1, 2020
ffc3e82
[IMP] general_ledger: complete tax name
JoanSForgeFlow May 4, 2020
5755c4b
[FIX] account_financial_report: open_items
JoanSForgeFlow May 11, 2020
f1ee812
[IMP] account_financial_report: general_ledger
JoanSForgeFlow May 13, 2020
82e4b2d
[IMP] account_financial_report: Open Items
JoanSForgeFlow May 13, 2020
ee9d6bd
[IMP] account_financial_reports:
JoanSForgeFlow May 15, 2020
7b2ae46
[IMP] account_financial_report:
JoanSForgeFlow May 15, 2020
070dd3a
[IMP] account_financial_report:
JoanSForgeFlow May 15, 2020
a7c2437
[IMP] account_financial_report: General Ledger
JoanSForgeFlow May 18, 2020
f88f6cb
update spanish PO file
JordiBForgeFlow May 21, 2020
f6b2c29
[FIX] aCCount_financial_report: Vat Report
JoanSForgeFlow May 21, 2020
f732039
[IMP] account_financial_report: Aged Partner Balance
JoanSForgeFlow May 22, 2020
a56a338
[IMP] account_financial_report: General Ledger
JoanSForgeFlow May 22, 2020
30c4858
[FIX] account_financial_report: Aged Partner Balance
JoanSForgeFlow May 25, 2020
82b4334
[FIX] account_financial_report: Vat Report
JoanSForgeFlow May 26, 2020
2170fb8
[FIX] account_financial_report: general_ledger
JoanSForgeFlow May 28, 2020
9979b4e
[UPT]afr, improve extensibility
AaronHForgeFlow Jun 3, 2020
08d9ede
[ADD]account_financial_report_analytic (open items only)
AaronHForgeFlow Jun 3, 2020
e52f009
[UPT]account_financial_report_analytic for aged_partner_balance
AaronHForgeFlow Jun 3, 2020
43342fd
[ADD]account_financial_report_operating_unit
AaronHForgeFlow Jun 4, 2020
d45cd79
[IMP]account_financial_report_analytic analytic filter
AaronHForgeFlow Jun 12, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions account_financial_report/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# 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': '12.0.1.2.2',
'version': '12.0.2.0.0',
'category': 'Reporting',
'summary': 'OCA Financial Reports',
'author': 'Camptocamp SA,'
'initOS GmbH,'
'redCOR AG,'
'Eficent,'
'ForgeFlow,'
'Odoo Community Association (OCA)',
"website": "https://odoo-community.org/",
'depends': [
Expand Down
1,576 changes: 409 additions & 1,167 deletions account_financial_report/i18n/es.po

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions account_financial_report/models/account_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,28 @@ class AccountGroup(models.Model):
'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 = '%s/%s' % (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 = '%s/%s' % (self.parent_id.complete_code,
self.code_prefix)
else:
self.complete_code = self.code_prefix

@api.multi
@api.depends('parent_id', 'parent_id.level')
Expand Down
5 changes: 3 additions & 2 deletions account_financial_report/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* Jordi Ballester <jordi.ballester@eficient.com>
* Jordi Ballester <jordi.ballester@forgeflow.com>
* Yannick Vaucher <[email protected]>
* Simone Orsi <[email protected]>
* Leonardo Pistone <[email protected]>
Expand All @@ -14,7 +14,8 @@
* Akim Juillerat <[email protected]>
* Alexis de Lattre <[email protected]>
* Mihai Fekete <[email protected]>
* Miquel Raïch <[email protected]>
* Miquel Raïch <[email protected]>
* Joan Sisquella <[email protected]>
* `Tecnativa <https://www.tecnativa.com>`__:

* Pedro M. Baeza
Expand Down
1 change: 0 additions & 1 deletion account_financial_report/report/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# © 2016 Julien Coux (Camptocamp)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).-

from . import abstract_report
from . import abstract_report_xlsx
from . import aged_partner_balance
from . import aged_partner_balance_xlsx
Expand Down
23 changes: 0 additions & 23 deletions account_financial_report/report/abstract_report.py

This file was deleted.

Loading