Zum Inhalt springen
Odoo Menü
  • Anmelden
  • Jetzt gratis testen
  • Apps
    Finanzen
    • Buchhaltung
    • Rechnungsstellung
    • Spesenabrechnung
    • Tabellenkalkulation (BI)
    • Dokumente
    • E-Signatur
    Vertrieb
    • CRM
    • Vertrieb
    • Kassensystem – Shop
    • Kassensystem – Restaurant
    • Abonnements
    • Vermietung
    Websites
    • Website-Builder
    • E-Commerce
    • Blog
    • Forum
    • Livechat
    • E-Learning
    Lieferkette
    • Lager
    • Fertigung
    • PLM
    • Einkauf
    • Wartung
    • Qualität
    Personalwesen
    • Mitarbeiter
    • Personalbeschaffung
    • Abwesenheiten
    • Mitarbeiterbeurteilung
    • Personalempfehlungen
    • Fuhrpark
    Marketing
    • Social Marketing
    • E-Mail-Marketing
    • SMS-Marketing
    • Veranstaltungen
    • Marketing-Automatisierung
    • Umfragen
    Dienstleistungen
    • Projekte
    • Zeiterfassung
    • Außendienst
    • Kundendienst
    • Planung
    • Termine
    Produktivität
    • Dialog
    • Genehmigungen
    • IoT
    • VoIP
    • Wissensdatenbank
    • WhatsApp
    Apps von Drittanbietern Odoo Studio Odoo Cloud-Plattform
  • Branchen
    Einzelhandel
    • Buchladen
    • Kleidergeschäft
    • Möbelhaus
    • Lebensmittelgeschäft
    • Baumarkt
    • Spielwarengeschäft
    Essen & Gastgewerbe
    • Bar und Kneipe
    • Restaurant
    • Fast Food
    • Gästehaus
    • Getränkehändler
    • Hotel
    Immobilien
    • Immobilienagentur
    • Architekturbüro
    • Baugewerbe
    • Immobilienverwaltung
    • Gartenarbeit
    • Eigentümervereinigung
    Beratung
    • Buchhaltungsfirma
    • Odoo-Partner
    • Marketingagentur
    • Anwaltskanzlei
    • Talentakquise
    • Prüfung & Zertifizierung
    Fertigung
    • Textil
    • Metall
    • Möbel
    • Speisen
    • Brauerei
    • Firmengeschenke
    Gesundheit & Fitness
    • Sportklub
    • Brillengeschäft
    • Fitnessstudio
    • Therapeut
    • Apotheke
    • Friseursalon
    Handel
    • Handyman
    • IT-Hardware & -Support
    • Solarenergiesysteme
    • Schuster
    • Reinigungsdienstleistungen
    • HLK-Dienstleistungen
    Sonstiges
    • Gemeinnützige Organisation
    • Umweltschutzagentur
    • Plakatwandvermietung
    • Fotostudio
    • Fahrrad-Leasing
    • Software-Händler
    Alle Branchen ansehen
  • Community
    Lernen
    • Tutorials
    • Dokumentation
    • Zertifizierungen
    • Schulung
    • Blog
    • Podcast
    Bildung fördern
    • Bildungsprogramm
    • Scale-Up! Planspiel
    • Odoo besuchen
    Software anfragen
    • Herunterladen
    • Editionen vergleichen
    • Releases
    Zusammenarbeiten
    • Github
    • Forum
    • Veranstaltungen
    • Übersetzungen
    • Partner werden
    • Dienstleistungen für Partner
    • Buchhaltungsfirma registrieren
    Services anfragen
    • Partner finden
    • Buchhalter finden
    • Einen Experten treffen
    • Implementierungsservices
    • Kundenreferenzen
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Eine Demo erhalten
  • Preiskalkulation
  • Hilfe

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

  • CRM
  • e-Commerce
  • Buchhaltung
  • Lager
  • PoS
  • Projekte
  • MRP
All apps
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Hilfe

[SOLVED] [V8] Is it possible to concatenate fields after filter them?

Abonnieren

Erhalten Sie eine Benachrichtigung, wenn es eine Aktivität zu diesem Beitrag gibt

Diese Frage wurde gekennzeichnet
v8pythonpospersonalizationconcatenate
1 Antworten
5508 Ansichten
Avatar
FEDERICO LEONI


I'm creating a new view for a personalized POS module for my restaurant. It's a specific view for kitchen, already filtered to show just kitchen's related items of a POS order.

Now I would like to show a particular series of product with the name starting with "#" as a unique in a column populated by a new field side by side with the "standard" products. In fact I'm speaking of a set of instructions coded as products to be available on POS and since I was unable to edit the js and css of the pos for suit my needs I decided to create kitchen instructions as a product (service). In my POS there are 3 categories that are not products but instructions (ADD, SUBTRACT, ADDITIONAL NOTE).

What I would like to archive is a view like:

Product 
Note
Quantity
[1007] Pom. Secchi
# + Búfala # - Mussarela
1
[2002] Nutella banana
# + Mussarela
1
[3002] Fanta Uva 350ml

1

The original view is: 

Product
Category
Quantity
[1007] Pom. Secchi
Piadine
1
# + Búfala
Extra-Rid
1
# - Mussarela
Extra-Rid
1
[2002] Nutella banana
Piadine Dolci
1
# + Mussarela
Extra-Rid
1
[3002] Fanta Uva 350ml
Bebida
1

I know I can group field values in a unique, new field with fields.function(_get_concatenate_values) but my problem is how to filter the products before write them respecting the id sequence for the new view. Other than this I need to select just the "#" product between two internal code starting with "[code]" and this is the hard thing to do.

Someone could gently drive me to the right direction?


EDIT:

I can see added pictures on my post during creation/edit but not when I save the post. Is because I don't have enough Karma? 

0
Avatar
Verwerfen
Avatar
FEDERICO LEONI
Autor Beste Antwort

Solved creating a new module and using directly python and psycopg2. Was complicated but works!

0
Avatar
Verwerfen
Yenthe Van Ginneken (Mainframe Monkey)

Why don't you open source this somewhere on Github for others to learn from Federico? :D I think quite some people would like that.

FEDERICO LEONI
Autor

Nah Yenthe, it's not a "quality job" for now. Is just a bunch of .py and sql query mixed with xml. And all need to be optimized. There are so many things still not working as I would. Beside, the module is incomplete and needs some manual works to have it done for example I was unable to build the server actions I need on my templates.xml. Lack of documentation, again. But I'll think on it when I'll have it completely working on V9. Probably I'll need some help from the outside and Git could be a good solution for a alpha/beta test.

Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!

Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!

Registrieren
Verknüpfte Beiträge Antworten Ansichten Aktivität
[V8] [WORKAROUND] Bind a report to a workflow: some guides around here? Gelöst
v8 pos personalization point_of_sale workflows
Avatar
Avatar
1
Mai 21
5631
[Solved] Print order instead of coupon on POS: what Qweb view? Gelöst
v8 pos restaurant personalization point_of_sale
Avatar
Avatar
Avatar
3
Jan. 17
11312
[V8]Use on_change to calculate a timedate field?
v8 python pos timestamp definition
Avatar
0
Juni 15
5905
[V8] [WORKAROUND] How to bypass Proxy IP Address on orders printers (V8 pos Restaurant module) and using an USB printer? Gelöst
v8 pos restaurant personalization point_of_sale
Avatar
1
Mai 15
9829
Any method to group products in POS terminal?
v8 pos
Avatar
Avatar
1
Juli 19
4997
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Herunterladen
  • Github
  • Runbot
  • Übersetzungen
Dienstleistungen
  • Odoo.sh-Hosting
  • Support
  • Upgrade
  • Individuelle Entwicklungen
  • Bildung
  • Buchhalter finden
  • Partner finden
  • Partner werden
Über uns
  • Unsere Firma
  • Markenwerte
  • Kontakt
  • Karriere
  • Veranstaltungen
  • Podcast
  • Blog
  • Kunden
  • Rechtliches • Datenschutz
  • Sicherheit
الْعَرَبيّة 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 ist eine Suite von Open-Source-Betriebsanwendungen, die alle Bedürfnisse Ihres Unternehmens abdecken: CRM, E-Commerce, Buchhaltung, Lager, Kassensystem, Projektmanagement etc.

Das einzigartige Wertversprechen von Odoo ist, dass es gleichzeitig sehr einfach zu bedienen und voll integriert ist.

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