Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • E-learning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Sociale media-marketing
    • E-mailmarketing
    • Sms-marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Artificiële Intelligentie
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Horeca & Hospitality
    • Bar en café
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van mede-eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brouwerij
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Diensten
    • Klusjesman
    • IT-hardware & ondersteuning
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Alle bedrijfstakken bekijken
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijsprogramma
    • Scale Up! Business Game
    • Odoo bezoeken
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Partner worden
    • Diensten voor partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

work with postgres function into openerp 6.1

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
functionpostgresql6.1openerp
4918 Weergaven
Avatar
Joaquin

Hello.
I have a module for OpenERP itself must travel a table that has many rows.
The first time the module is invoked, it takes a lot, and that makes the total length of the entire table and depending on certain securities are securities acumiulan Python local variables which are then displayed in OpenERP:

SAMPLE CODE:

        for fact in exp.facturas_line:
            if fact.afecta == 'goods':
                tot_merc = tot_merc + fact.emitido
                tot_merc = tot_merc - fact.recibido
                tot_merc_fe = tot_merc_fe + fact.emitido
                tot_merc_fr = tot_merc_fr + fact.recibido
                tot_fact_emi = tot_fact_emi + fact.emitido
                tot_fact_reci = tot_fact_reci + fact.recibido
            if fact.afecta == 'vessels':
                tot_buq = tot_buq + fact.emitido
                tot_buq = tot_buq - fact.recibido
                tot_buq_fe = tot_buq_fe + fact.emitido
                tot_buq_fr = tot_buq_fr + fact.recibido
                tot_fact_emi = tot_fact_emi + fact.emitido
                tot_fact_reci = tot_fact_reci + fact.recibido
            if fact.afecta == 'no':
                tot_no = tot_no + fact.emitido
                tot_no = tot_no - fact.recibido
                tot_no_fe = tot_no_fe + fact.emitido
                tot_no_fr = tot_no_fr + fact.recibido
                tot_fact_emi = tot_fact_emi + fact.emitido
                tot_fact_reci = tot_fact_reci + fact.recibido
        tot_merc_f = tot_merc
        tot_buq_f = tot_buq



Then make another run in another table that has too many records.

My experience in other ERP, is that this can be created in a stored procedure in database and then this is invoked from the application to display these data in either mode or leave the settings variables in a temporary table and then collect them to viewing.

From OpenERP there any way to make a call to a function or stored procedure in PostgreSQL database easily and that does not conflict and that this information can be treated from OpenERP?

0
Avatar
Annuleer
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
GL, PnL , Balance-sheet and other Accounting reports with particular Partner wise
6.1 openerp
Avatar
Avatar
1
sep. 20
6964
Wrong Data posted in openerp
postgresql openerp
Avatar
0
mrt. 15
4582
what is the maximum user of openerp ?
postgresql openerp odoo
Avatar
Avatar
1
mrt. 15
7018
Installting OpenERP 7 - PostgreSQL issues
postgresql ubuntu openerp
Avatar
Avatar
1
mrt. 15
9617
How to stop or restrict creating more than 2 users in odoo? Opgelost
development postgresql openerp odoo8
Avatar
Avatar
1
apr. 15
6675
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Partner worden
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo is een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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