Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
Elearning Bug Tests courses multiple
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
Elearning Bug Tests courses multiple
About this forum
  1. eLearning
  2. Fòrum

[18.0] Accounting : While creating a new financial report, can't get the correct value from other report

Subscriure's

Get notified when there's activity on this post

This question has been flagged
1 Respondre
3476 Vistes
Avatar
Mouyasser Maaoui

Hi, 
I was implementing a new financial report that inherit from cash flow report. In this report, I want to get some account.report.line from balance sheet report. After investing the documentation, I found that I need to create account.report.expression. So I used the "aggregation" engine and "cross_report" subformula but I found some difficulties trying to get the same value from the balance sheet report.
Here's the code of cash flow report :

<record id="l10n_tn_bs_cash_flow_report" model="account.report">
<field name="name">Cash Flow Statement</field>
<field name="root_report_id" ref="account_reports.cash_flow_report"/>
<field name="filter_unfold_all" eval="True"/>
<field name="filter_date_range" eval="False"/>
<field name="filter_analytic_groupby" eval="True"/>
<field name="filter_journals" eval="True"/>
<field name="country_id" ref="base.tn"/>
<field name="filter_multi_company">selector</field>
<field name="default_opening_date_filter">today</field>
<field name="column_ids">
<record id="l10n_tn_cfr_balance" model="account.report.column">
<field name="name">Balance</field>
<field name="expression_label">balance</field>
</record>
</field>
<field name="line_ids">
​ ​ ​<record id="l10n_tn_cfr_depreciation_provisions" model="account.report.line">
<field name="name">Depreciation and provisions</field>
<field name="code">l10n_tn_cfr_depreciation_provisions</field>
<field name="foldable" eval="True"/>
<field name="expression_ids">
<record id="l10n_tn_cfr_depreciation_provisions_balance"
model="account.report.expression">
<field name="label">balance</field>
<field name="engine">aggregation</field>
<field name="subformula">cross_report</field>
<field name="formula">l10n_tn_intangible_assets_depr.balance + l10n_tn_tangible_assets_depr.balance</field>
<field name="date_scope">from_beginning</field>
</record>
</field>
</record>
​ ​</field>
</record>


And here's the code balance sheet report :


<record id="l10n_tn_bs_account_report" model="account.report">
<field name="name">Balance Sheet</field>
<field name="root_report_id" ref="account_reports.balance_sheet" />
<field name="filter_unfold_all" eval="True" />
<field name="filter_date_range" eval="False" />
<field name="filter_analytic_groupby" eval="True" />
<field name="filter_journals" eval="True" />
<field name="country_id" ref="base.tn" />
<field name="filter_multi_company">selector</field>
<field name="column_ids">
<record id="l10n_tn_bs_column_balance" model="account.report.column">
<field name="name">Balance</field>
<field name="expression_label">balance</field>
</record>
</field>
<field name="line_ids">
​ ​<record id="l10n_tn_bs_intangible_assets_depr" model="account.report.line">
<field name="name">Less: depreciation</field>
<field name="code">l10n_tn_intangible_assets_depr</field>
<field name="groupby">account_id</field>
<field name="foldable" eval="True" />
<field name="account_codes_formula">281 + 291 + 2931</field>
</record>
​ ​<record id="l10n_tn_bs_tangible_assets_depr" model="account.report.line">
<field name="name">Less: depreciation</field>
<field name="code">l10n_tn_tangible_assets_depr</field>
<field name="groupby">account_id</field>
<field name="foldable" eval="True" />
<field name="account_codes_formula">282 + 292 + 2932 + 294
​ ​ ​ ​ ​</field>
</record>
​ </field>
</record>


And there are the some screen shots of values :

** Balance sheet : Intangible assets depreciation **


** Balance sheet : Tangible assets depreciation **



** Cash flow : Depreciation and provisions **



The value in cash flow should be -126127.240 DT but I'm getting 0.
What I'm doing wrong ?
Thank you.

0
Avatar
Descartar
Avatar
Mouyasser Maaoui
Autor Best Answer

Hello, 
I've tried to remove this line from the cash flow code 

<field name="root_report_id" ref="account_reports.cash_flow_report"/>

and create a new menu item to be able to consult the report and the report was fixed.
I think it was related to the original cash flow statement report which makes a restriction on some values needed in my new report.

0
Avatar
Descartar
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now