تخطي للذهاب إلى المحتوى
أودو القائمة
  • تسجيل الدخول
  • جرب مجاناً
  • التطبيقات
    المالية
    • المحاسبة
    • فوترة
    • النفقات
    • جدول البيانات (BI)
    • المستندات
    • توقيع إلكتروني
    المبيعات
    • إدارة علاقات العملاء
    • المبيعات
    • نقطة البيع للمتاجر
    • نقطة البيع للمطاعم
    • الاشتراكات
    • تأجير
    المواقع الإلكترونية
    • أداة بناء المواقع الإلكترونية
    • متاجر إلكترونية
    • مدونة
    • المنتدى
    • دردشة مباشرة
    • التعليم الإلكتروني
    سلسلة التوريد
    • المستودعات
    • التصنيع
    • إدارة دورة حياة المنتج
    • المشتريات
    • الصيانة
    • الجودة
    الموارد البشرية
    • موظفون
    • التوظيف
    • إجازة عمل
    • التقييمات
    • الإحالات
    • تطبيق الأسطول
    التسويق
    • التسويق الإجتماعي
    • التسويق عبر البريد الإلكتروني
    • التسويق عبر الرسائل النصية
    • فعاليات
    • أتمتة التسويق
    • الاستطلاعات
    الخدمات
    • المشاريع
    • الجداول الزمنية
    • الخدمة الميدانية
    • مكتب المساعدة
    • التخطيط
    • مواعيد
    اﻹنتاجية
    • مناقشة
    • الموافقات
    • إنترنت الأشياء "IoT"
    • بروتوكول ربط المحادثات الصوتية عبر الإنترنت
    • المعرفة
    • WhatsApp
    التطبيقات الخارجية ستوديو أودو منصة أودو السحابية
  • قطاعات الأعمال
    البيع بالتجزئة
    • متجر كتب
    • متجر ملابس
    • متجر أثاث
    • متجر بقالة
    • متجر معدات
    • متجر ألعاب
    الطعام والضيافة
    • بار وحانة
    • المطعم
    • مطعم للوجبات السريعة
    • نزل للضيوف
    • موزّع مشروبات
    • فندق
    العقارات
    • وكالة عقارات
    • شركة هندسة معمارية
    • البناء
    • إدارة العقارات
    • العناية بالحدائق
    • اتحاد مُلاّك العقارات
    استشارة
    • مؤسسة محاسبية
    • شريك أودو
    • وكالة تسويقية
    • منشأة قانونية
    • استقطاب المواهب
    • التدقيق والتوثيق
    التصنيع
    • الأقمشة
    • معدني
    • الأثاث
    • الطعام
    • مصنع خمور
    • هدايا الشركات
    الصحة واللياقة البدنية
    • نادي رياضي
    • متجر نظارات
    • مركز لياقة بدنية
    • الممارسون الصحيون
    • صيدلية
    • صالون تصفيف الشعر
    التجارة
    • عامل صيانة
    • الأجهزة والمعدات التقنية ودعمها
    • أنظمة الطاقة الشمسية
    • صانع أحذية
    • خدمات التنظيف
    • خدمات التكييف (HVAC)
    غير ذلك
    • منظمة غير ربحية
    • وكالة بيئية
    • تأجير لوحات إعلانية
    • تصوير
    • تأجير دراجات
    • بائع وسيط للبرمجيات
    تصفح كافة قطاعات الأعمال
  • مجتمع أودو
    تعلم
    • دروس
    • التوثيق
    • شهادات
    • التدريب
    • مدونة
    • بودكاست
    قم بتعزيز التعليم
    • برنامج تعليم
    • Scale UP! لعبة الأعمال
    • قم بزيارة أودو
    احصل على البرنامج
    • تحميل
    • قارنْ الإصدارات
    • إطلاق
    تعاون
    • جيت هاب "Github"
    • المنتدى
    • فعاليات
    • الترجمات
    • كنْ شريكاً
    • خدمات الشركاء
    • سجل مكتب المحاسبة الخاص بك
    احصل على الخدمات
    • اعثر على شريك
    • اعثر على محاسب
    • قابل أحد مرشدي الأعمال
    • خدمات التنفيذ
    • مراجع العملاء
    • الدعم
    • الترقيات
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    الحصول على عرض توضيحي
  • الأسعار
  • المساعدة

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

  • إدارة علاقات العملاء
  • e-Commerce
  • المحاسبة
  • المخزون
  • PoS
  • المشروع
  • MRP
All apps
يجب أن تكون مسجلاً حتى تتفاعل مع المجتمع.
كافة المنشورات الأفراد الشارات
علامات التصنيف (عرض الكل)
odoo accounting v14 pos v15
حول هذا المنتدى
يجب أن تكون مسجلاً حتى تتفاعل مع المجتمع.
كافة المنشورات الأفراد الشارات
علامات التصنيف (عرض الكل)
odoo accounting v14 pos v15
حول هذا المنتدى
المساعدة

Students and Faculty Query in pgAdmin

اشتراك

تسلم الإشعارات عندما يكون هناك نشاط في هذا المنشور

لقد تم الإبلاغ عن هذا السؤال
querypgadminodoo
3 الردود
2656 أدوات العرض
الصورة الرمزية
SmithJohn45

i have listed out Employees from hr_employee, now how to list students, faculty and Inventory Items in pgAdmin Query Tool writing query (sql statement) something like e.g.:

select * from tablename where ??

i just want to create Template files to import related data.

please help.

regards

0
الصورة الرمزية
إهمال
SmithJohn45
الكاتب

any help please?

SmithJohn45
الكاتب

is here anyone know how to retrieve the required data in pgAdmin using Query Tool??

الصورة الرمزية
Kiran K
أفضل إجابة

Hi Smith,

In your custom module, check how it differentiates between students and faculty.

For example,

Let's assume that there is a selection field called "type," where the options are  [('student', 'Student'), ('faculty', 'Faculty'), ('others', 'Others')], 

Then query for students will be  

SELECT * FROM hr_employee WHERE type = 'student'

If the students have separate model, for example, 'student.student' in odoo.
Then the query will be,

SELECT * FROM student_student.

Remember to replace the '.' in the model name with '_' when mentioning the table name in the query.

Hope it helps,
Kiran K

0
الصورة الرمزية
إهمال
SmithJohn45
الكاتب

so, there is nothing in existing Odoo ERP... thanks to all. what about Inventory Items?
regards

الصورة الرمزية
Arshad Zayn
أفضل إجابة

For example, let's assume the following table names for Odoo:

  • Students: school_student
  • Faculty: school_faculty
  • Inventory Items: product_template

Your queries might look like this:

sqlCopy code-- List Students
SELECT * FROM school_student;

-- List Faculty
SELECT * FROM school_faculty;

-- List Inventory Items
SELECT * FROM product_template;

Note: The table names I provided are just placeholders. You need to replace them with the actual table names or models used in your Odoo instance. You can find this information by checking the database structure or consulting the Odoo documentation.

Additionally, you may want to refine your queries by specifying conditions or joining tables based on the relationships between different entities in your Odoo system. For example, if students are associated with a particular faculty, you might use a JOIN clause to retrieve data from both the school_student and school_faculty tables.

Here's a simple example assuming there's a foreign key relationship between school_student and school_faculty:

 code-- List Students with Faculty Information
SELECT school_student.*, school_faculty.*
FROM school_student
JOIN school_faculty ON school_student.faculty_id = school_faculty.id;

Again, you should adapt these queries based on your actual Odoo database structure and relationships.

0
الصورة الرمزية
إهمال
SmithJohn45
الكاتب

thank you @Arshad, i know how to " write query " but i don't know what are the tables in Odoo (PostgreSQL database) and what are the fields which i can reference to get "Students" or others like category_id or product_id. i want to know these informations that's why i mentioned "example" in my opening post above.

Arshad Zayn

eg : You can get employee details by select * from hr_employee where id = 2
product : product_product

SmithJohn45
الكاتب

i think still i failed to convey... i want something like :

select * from res_partner where customer_rank > 0

this will retrieve all Customers and if i write:

select * from res_partner where supplier_rank > 0

this will retrieve all Suppliers

your query for hr_employee will return just what is stored with id=2 no matter he/she is student or not.

hope this clear what i want to achieve. and as mentioned in opening post, i just want to create Template files to import.

regards

Arshad Zayn

Based on what I understand from your statement:
Create a new field in hr_employee to differentiate if an employee is a student or a faculty member and use it in queries ,
As a selection field, you can create

هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!

أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!

تسجيل
المنشورات ذات الصلة الردود أدوات العرض النشاط
Can i query _ids column data in pgAdmin?
query pgadmin
الصورة الرمزية
الصورة الرمزية
1
فبراير 24
2126
customers & vendors query in pgAdmin تم الحل
pgadmin odoo
الصورة الرمزية
الصورة الرمزية
الصورة الرمزية
3
نوفمبر 23
2323
[Widget Javascript]: How to make a query on a model odoo?
javascript query odoo
الصورة الرمزية
0
سبتمبر 16
5463
Reports to excel with ODBC, queries and database schema?
query excel odoo
الصورة الرمزية
0
سبتمبر 15
6435
how to data query in , can view in page/tree ui
query appointment odoo V16
الصورة الرمزية
0
يوليو 24
1484
المجتمع
  • دروس
  • التوثيق
  • المنتدى
مصدر مفتوح
  • تحميل
  • جيت هاب "Github"
  • المشغل الآلي رنبوت
  • الترجمات
خدماتنا
  • استضافة أودو إس إتش
  • الدعم
  • الترقية
  • التطويرات المخصصة
  • التعليم
  • اعثر على محاسب
  • اعثر على شريك
  • كنْ شريكاً
معلومات عنا
  • شركتنا
  • أصول العلامة التجارية
  • اتصلْ بنا
  • الوظائف
  • فعاليات
  • بودكاست
  • مدونة
  • عملاء
  • قانوني • الخصوصية
  • الحماية
الْعَرَبيّة 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

أودو هو عبارة عن مجموعة من تطبيقات الأعمال مفتوحة المصدر التي تغطي جميع احتياجات شركتك، مثل: إدارة علاقات العملاء والتجارة الإلكترونية والمحاسبة والمخزون ونقاط البيع وإدارة المشاريع وما إلى ذلك.

ما يجعل من أودو مميزاً هو هدفه بأن يكون سهل الاستخدام للغاية ومتكاملاً تمامًا في الوقت ذاته.

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