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)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Show Chart of Accounts in Sales and Purchase receipts for Odoo 8.0

Subscriure's

Get notified when there's activity on this post

This question has been flagged
purchasesalesaccountingchartofaccount
2 Respostes
5456 Vistes
Avatar
Franz Bautista

Good day!

I have a issue that I need to show all accounts under the Chart of Accounts (Expense, income, liability, assets etc) once I choose the drop down under Sales/Purchase receipts. I tried editing the domain but only succeeded in getting income or expense. Would you have an idea how to do this?  This is the line I edit, and am not sure if this is all I need to edit:

<field name="account_id" domain="[('user_type.report_type','=','income'),('type','!=','view')]" widget="selection"/>

0
Avatar
Descartar
Avatar
Sarga
Best Answer

Hi,

if you need to get the entire accounts in drop down avoid domain.Just redefine the field account_id and replace the field in xml with out domain.

1
Avatar
Descartar
Avatar
fasluca
Best Answer

Make this line like this
<field name="account_id" widget="selection"/>

1
Avatar
Descartar
Franz Bautista
Autor

I had better include full script for Sales receipt:

<?xml version="1.0"?>

<form string="Sales Receipt">

<header>

<button name="proforma_voucher" string="Validate" states="draft" class="oe_highlight"/>

<button name="293" context="{'narration':narration, 'title':'Customer Payment', 'type':'receipt', 'partner_id':partner_id, 'reference':reference, 'amount':amount}" type="action" string="Validate Payment" attrs="{'invisible':['|',('pay_now','=','pay_now'),'|',('state','=','draft'), ('paid','=',True)]}" class="oe_highlight"/>

<button name="cancel_voucher" string="Cancel Receipt" states="draft,proforma"/>

<button name="cancel_voucher" string="Cancel Receipt" type="object" states="posted" confirm="Are you sure you want to cancel this receipt?"/>

<button name="action_cancel_draft" type="object" states="cancel" string="Set to Draft"/>

<field name="state" widget="statusbar" statusbar_visible="draft,posted" statusbar_colors="{&quot;proforma&quot;:&quot;blue&quot;}"/>

</header>

<sheet string="Sales Receipt">

<h1><label for="number" string="Sales Receipt"/> <field name="number" class="oe_inline" readonly="1"/></h1>

<group>

<group>

<field name="type" invisible="True"/>

<field name="company_id" widget="selection" on_change="onchange_company(partner_id, journal_id, currency_id, company_id)" groups="base.group_multi_company"/>

<field name="partner_id" domain="[('customer','=',True)]" on_change="onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)" string="Customer" context="{'search_default_customer':1, 'show_address': 1}" options="{&quot;always_reload&quot;: True}"/>

<field name="account_id"/>

/*<field name="account_id" domain="[('type','in', ['liquidity', 'receivable'])]"/>*/

<field name="pay_now" on_change="onchange_payment(pay_now, journal_id, partner_id)" required="1"/>

<field name="date_due" attrs="{'invisible':[('pay_now','=','pay_now')]}"/>

<field name="reference" attrs="{'invisible':[('pay_now','!=','pay_now')]}"/>

</group>

<group>

<field name="journal_id" domain="[('type','in',['sale','sale_refund'])]" widget="selection" on_change="onchange_journal(journal_id, line_cr_ids, tax_id, partner_id, date, amount, type, company_id, context)" groups="account.group_account_user"/>

<field name="date" on_change="onchange_date(date, currency_id, currency_id, amount, company_id, context)"/>

<field name="name"/>

<field name="paid" invisible="1"/>

<field name="paid_amount_in_company_currency" invisible="1"/>

<field name="currency_id" invisible="1"/>

</group>

</group>

<notebook>

<page string="Sales Information">

<field name="line_cr_ids" on_change="onchange_price(line_cr_ids, tax_id, partner_id)" context="{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}">

<tree string="Sales Lines" editable="bottom">

<field name="account_id" widget="selection"/>

<field name="name"/>

<field name="amount" sum="Total"/>

<field name="account_analytic_id" groups="analytic.group_analytic_accounting"/>

</tree>

</field>

<group>

<field name="narration" placeholder="Internal Notes" nolabel="1"/>

<group class="oe_subtotal_footer oe_right">

<field name="tax_id" on_change="onchange_price(line_cr_ids, tax_id, partner_id)" widget="selection" nolabel="1" placeholder="Tax" domain="[('type_tax_use','in',('sale','all')), ('parent_id', '=', False)]"/>

<field name="tax_amount" nolabel="1"/>

<div class="oe_subtotal_footer_separator">

<label for="amount"/>

<button type="object" class="oe_link oe_edit_only" name="compute_tax" string="(update)" attrs="{'invisible': [('state','!=','draft')]}"/>

</div>

<field name="amount" class="oe_subtotal_footer_separator" nolabel="1"/>

</group>

</group>

</page>

<page string="Journal Items" attrs="{'invisible': [('state','!=','posted')]}">

<group col="4">

<field name="period_id"/>

<field name="audit"/>

</group>

<field name="move_ids" readonly="1">

<tree string="Journal Items">

<field name="move_id"/>

<field name="ref"/>

<field name="date"/>

<field name="statement_id"/>

<field name="partner_id"/>

<field name="account_id"/>

<field name="name"/>

<field name="debit"/>

<field name="credit"/>

<field name="state"/>

<field name="reconcile_id"/>

</tree>

</field>

</page>

</notebook>

<group col="4" invisible="1">

<field name="is_multi_currency" invisible="1"/>

<field name="currency_help_label" invisible="1"/>

<field name="payment_rate" invisible="1"/>

<field name="payment_rate_currency_id" invisible="1"/>

<field name="paid_amount_in_company_currency" colspan="4" invisible="1"/>

</group>

</sheet>

<div class="oe_chatter">

<field name="message_follower_ids" widget="mail_followers"/>

<field name="message_ids" widget="mail_thread"/>

</div>

</form>

Changing the above only showed all cash and receivable accounts, income accounts can not be seen now. It did not show all chart of accounts. I think since this a sales receipt there is another parameter which i am missing. Any ideas?

fasluca

Then try making the domain like this

[('user_type.report_type','in',['expense','income','liability','asset']),('type','!=','view')]

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
Related Posts Respostes Vistes Activitat
currency exchange sale
purchase sales accounting
Avatar
Avatar
1
de maig 25
2166
Cash Basis Accounting
purchase sales accounting
Avatar
0
de juny 15
4220
Reset my inventory, Sales, Purchasing and accounting database
purchase sales accounting finance
Avatar
Avatar
2
de març 25
2931
Creation de demo sur odoo.com
purchase sales accounting inventory
Avatar
0
de juny 22
3911
accounting sales and purchase
purchase sales accounting inventory
Avatar
Avatar
1
de nov. 19
4378
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