تخطي للذهاب إلى المحتوى
أودو القائمة
  • تسجيل الدخول
  • جرب مجاناً
  • التطبيقات
    المالية
    • المحاسبة
    • فوترة
    • النفقات
    • جدول البيانات (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
حول هذا المنتدى
المساعدة

How to inherit / modify point of sale pages & create restrictions?

اشتراك

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

لقد تم الإبلاغ عن هذا السؤال
inheritancepoint_of_saleodoo8.0
1 الرد
7992 أدوات العرض
الصورة الرمزية
Yenthe Van Ginneken (Mainframe Monkey)

Hi guys,

Since a while I've been tinkering around in the point_of_sale module. I have no good knowledge about the JS library that is used in the point of sale and so I lack some knowledge. I want to accomplish a few things but I have no clue how and there really is no documentation about point of sale modifications despite the blogpost about Thierry.

What I want to do:

When the point of sale opens I want to directly show the screen to select a customer. A customer has to be filled in before this view can be exited. I've found out the views are defined in point_of_sale/static/src/xml/pos.xml and the template for selecting a customer is 'ClientDetails'. How do I trigger this view to open directly and how can I make sure it has to be filled in before any other view will open? (the product overview page)

Secondly when a person selects a product in the point of sale there need to happen some checks:

  • The product has to be in a product category (pos.category model) that is set in the many2many that I've added on the customer (res.partner model):

     class aa_maatwerk_vzw(models.Model):
        _inherit = 'res.partner'
        product_category_ids = fields.Many2many('pos.category', 'product_template_rel', 'product_id', 'category_id', 'Categories')

  • They can only buy xx items per month per category. The max amount per month is set on the model pos.category. The sum of all already bought products cannot be higher than the limit per month on the category:

     class aa_maatwerk_vzw_produt(models.Model):
        _inherit = 'pos.category'
        MaxAmountMonthly = fields.Integer('# pieces/month', help="Max number of products buyable on this category for this month.")

So how can I build in limits checking against categories, quantities, earlier made orders, ...? I'd really like to know how I can do these checks on a product click and how I can secure it. For example when a condition is not met a pop-up should show a message "Monthly quota reached" for example.

Could anybody give me some ideas / help in the good way? All the knowledge that I gain will be used to create a blog post about how to inherit/modify the point of sale. This way other people benefit from this too! So any help is welcome!

Thanks,
Yenthe

0
الصورة الرمزية
إهمال
الصورة الرمزية
Parikshit Vaghasiya
أفضل إجابة

Hello,

This will help you.
First you have to inherit widget and widget method in your module like this :

module.PosWidget.include{(
build_widgets: function() {
var self = this;
this.screen_selector = new module.ScreenSelector({
pos: this.pos, screen_set:{ 'products': this.product_screen,
'payment' : this.payment_screen, 'scale': this.scale_screen, 'receipt' : this.receipt_screen, 'clientlist': this.clientlist_screen, }, popup_set:{ 'error': this.error_popup, 'error-barcode': this.error_barcode_popup, 'error-traceback': this.error_traceback_popup, 'confirm': this.confirm_popup, 'unsent-orders': this.unsent_orders_popup, }, default_screen: 'clientlist', #here you select your default screen default_mode: 'cashier', });
};
)}; 

For second change you have to add field in models.js where all fields and models are added, after addind field you have to defind and show field in xml file and extend that template in your module. For more Customization you can contact me on parikshitvaghasiya@gmail.com. 

Thank you !!

4
الصورة الرمزية
إهمال
Yenthe Van Ginneken (Mainframe Monkey)
الكاتب

Thanks for this, I'm sure it will be a nice start! +1

Parikshit Vaghasiya

if my answer is helpful to you Please accept answer. thank you!!

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

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

تسجيل
المنشورات ذات الصلة الردود أدوات العرض النشاط
How to inherit calendar popup? تم الحل
inheritance popup odoo8.0
الصورة الرمزية
6
فبراير 21
16272
How to fix the timezone issue in sale details report? تم الحل
report point_of_sale odoo8.0
الصورة الرمزية
2
يوليو 19
7592
How to Restrict User To View His Default POS only in odoo 8?
point_of_sale odooV8 odoo8.0
الصورة الرمزية
الصورة الرمزية
1
أكتوبر 16
5284
how to inherit the timesheet view in my new modul.
modules inheritance odoo8.0
الصورة الرمزية
1
يونيو 16
4151
Price List per Point Of Sale
pricelist point_of_sale odoo8.0
الصورة الرمزية
الصورة الرمزية
1
أبريل 16
3734
المجتمع
  • دروس
  • التوثيق
  • المنتدى
مصدر مفتوح
  • تحميل
  • جيت هاب "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