Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

Create Tree View with exisiting fields in Accounting

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
accountingcontactsvendor
2 Răspunsuri
2698 Vizualizări
Imagine profil
Kevin

Hi, I'm trying to create a new tree view with vendor invoice information, but the information displays all the accounting entries of the 'account.move' model and I only want vendor invoices. I also want to export the information to xslx.
This is my xml code.

Thanks.



id="view_libro_compra" model="ir.ui.view">
name="name">Libro de iva compra
name="model">account.move
name="arch" type="xml">

string="Libro compra">
name="currency_id" invisible="1"/>
name="empty_field"/>
name="invoice_date"/>
name="name" string="Número de correlativo"/>
name="document_nrc"/>
name="partner_id" string="Nombre"/>
name="empty_field"/>
name="empty_field"/>
name="amount_untaxed" widget="monetary" options="{'currency_field': 'currency_id'}"/>
name="amount_tax" widget="monetary" options="{'currency_field': 'currency_id'}"/>
name="empty_field"/>
name="amount_total" widget="monetary" options="{'currency_field': 'currency_id'}"/>
name="empty_field"/>







id="action_purchase_order_new" model="ir.actions.act_window">
name="name">Libro de iva compra4
name="res_model">account.move
name="view_mode">tree
name="view_id" ref="view_libro_compra"/>


id="menu_purchase_order_new"
name="Libro de iva compra4"
parent="account.menu_finance_payables"
action="action_purchase_order_new"/>


0
Imagine profil
Abandonează
Imagine profil
Kevin
Autor Cel mai bun răspuns

I was able to solve the related fields and you are right, they are done with Python so the fields I need are already in the new tree view, the only thing I need is to add a filter that only shows the data from the vendor invoice.

Do you have any idea how to solve it?

Thanks

0
Imagine profil
Abandonează
Imagine profil
Mohammad Ahsan Maqbool
Cel mai bun răspuns

Hi,
As far I know related field works in Python not in xml so either you need to create a new field in account.move model if you want to move forward with python related as follows

partner_vat = fields.Char('res.partner', related='partner_id.vat')

Or Either you can call it in xml file like this if the field you are looking for is with Many2one relation like in account.move partner field is with a relation of many2one so you can try it with following method and get all of its related table values 

name="partner_id.vat"/>



See if this will resolve your issue

If my answer help you please up vote 
If not clear or not solved let me know I will assist you
Thanks

0
Imagine profil
Abandonează
Enjoying the discussion? Don't just read, join in!

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

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
Enter vendor bill without a product
accounting vendor
Imagine profil
Imagine profil
Imagine profil
2
dec. 24
2042
ERREUR le champ "hide_peppol_fields" n'existe pas dans le modèle "res.partner" Apres migration de base 15 vers v17 via odoo upgrade
accounting contacts upgrade
Imagine profil
Imagine profil
Imagine profil
3
mai 25
2425
I odoo 1 can i have field to enter vendor Bank name and Branch Rezolvat
accounting payment vendor
Imagine profil
Imagine profil
2
mai 24
2907
Error in Payment Followup
accounting contacts odoo16features
Imagine profil
Imagine profil
1
mar. 24
1941
Contacts as Vendors
filter contacts vendor
Imagine profil
Imagine profil
Imagine profil
Imagine profil
3
mar. 24
5299
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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