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

Odoo 13 / Sale order / Automated task to use button "send by email" method action_quotation_send

اشتراك

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

لقد تم الإبلاغ عن هذا السؤال
sale.ordermethodsOdoo13.0AutomatedActions
3 الردود
5493 أدوات العرض
الصورة الرمزية
florent.uagolf@gmail.com

Hi !
I've looked at few messages about this topic but no one has the same objective/solution.

I want to create an automated action to "click" on the sale order button "send by email" aka method action_quotation_send

I've tried many ways  based on previous experience that worked on similar case :
I've created an automated action triggered on creation :
- 1 :
record.action_quotation_send()

-2:

for rec in record:

  if rec.state == "draft":

        rec.action_quotation_send()

     also tried  : action = rec.action_quotation_send()

 

-3:

records.action_confirm()


I've successfuly done something similar ton confirm sale ordrer ( action_confirm() ) but not succeded to this one....


thanks,

0
الصورة الرمزية
إهمال
الصورة الرمزية
Jainesh Shah(Aktiv Software)
أفضل إجابة

Hello florent

Base on your comments when you call automated action it will be clicked send by email button 

--> on that button click wizard(a popup will open)

So, you have to click that send button from wizard then it will work.

Thanks

Regards,




Email:      odoo@aktivsoftware.com  

Skype: kalpeshmaheshwari

1
الصورة الرمزية
إهمال
Divyansh Tripathi

I don't think a wizard will open from that automated action

Leonardo de Abreu Ladeira

Jainesh,

How do I click second button by python code?
could you please give an example of the code?

Best regards,

الصورة الرمزية
Divyansh Tripathi
أفضل إجابة

Action Quotation send isn't working because that method doesn't actually send email to the customer but returns a widget with the values rendered necessary to compose the email. Then when you press on the "Send" button in that wizard then only your email gets sent. In order to send that email, you'll need to use the values returned by the method and then call send method from there.


The following snippet is of automated action to send email


The following snippet is of automated action to update stage


The following snippet is of calling multiple actions at once



Try it and let me know.

Thanks and Regards,

Divyansh

0
الصورة الرمزية
إهمال
florent.uagolf@gmail.com
الكاتب

Hi both,

So I'v tried using a multiple action that :

- 1st : send email

- 2nd : execute python code to change 'state' to 'sent'

But the 2nd doesn't work I got a message "A quotation can't be modified if not in "draft" '.

Is there is another "ghost" state before "Draft" ?

Divyansh Tripathi

Hey,

First of all, Draft is the first stage, there's no ghost stage before that.

Second why are you trying to use the python code to update the stage, in the "Actions to do" field just select the option of "Update the record", the in the fields to update table in the bottom, just select the field , in your case it would be "State" and for value write "sent".

Third, In order to fire the automated actions you created, create on more automated action, and in it's "Action To do" field just select the option of "Execute Several Actions", in the bottom an Actions table will appear and in that table select both your actions, it'll all work.

Thanks and Regards,

Divyansh

florent.uagolf@gmail.com
الكاتب

Hi !

Strange, I've posted another comment wich is not published !?

In fact I tried the multiple action 1st send the email, 2nd update the record to 'sent' but nothing more.

I have an error message telling that it's not possible to update a sale order that is not in 'draft'.......

If I did the action I want in a module it's ok I'm able to change state to 'sent' but not in automated action.

Divyansh Tripathi

I'll post another answer with screenshots of automated actions that I tried on my local which is workingn because I can't post screenshot in comments

Divyansh Tripathi

I updated my answer please check

florent.uagolf@gmail.com
الكاتب

Hi !

Following your update :

That's what I did, but I got this message when I ADD PRODUCT in cart before confirming order !! ? (the reason of my question about "ghost") :

"

Oops! Something went wrong.

Take a look at the error message below.

Message d'erreur :

Il est interdit de modifier un bon de commande qui n'est pas en l'étape Brouillon. "

Wich means its forbidden to change state of a sale order that's not in draft !

thanks a lot

Divyansh Tripathi

all the scenarios u said are working for me, not sure what issue are u facing now....

florent.uagolf@gmail.com
الكاتب

Hum ! Not my day ! I'll investigate further so.....

Thanks a lot !

Why do you delay the state update for 1 min ?

Divyansh Tripathi

divyansht40@gmail.com you can drop me an email if u need further help and you've trouble asking here

الصورة الرمزية
florent.uagolf@gmail.com
الكاتب أفضل إجابة

Hi both,

So I'v tried using a multiple action that :
- 1st  : send email
- 2nd : execute python code to change 'state' to 'sent'

But the 2nd doesn't work I got a message "A quotation can't be modified if not in "draft" '.
Is there is another "ghost" state before "Draft" ?

0
الصورة الرمزية
إهمال
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!

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

تسجيل
المنشورات ذات الصلة الردود أدوات العرض النشاط
How to set value when create stock picking via confirming a sale order? تم الحل
stock_picking sale.order Odoo13.0
الصورة الرمزية
الصورة الرمزية
2
يونيو 24
4229
Automated Action on ODOO13
leavemanagement Odoo13.0 AutomatedActions
الصورة الرمزية
0
سبتمبر 21
2179
How to obtain the serial number of a product from a sales order?
serial_number sale.order Odoo13.0 rma
الصورة الرمزية
0
يونيو 24
1549
How to validate delivery order forcefully in Odoo 13? تم الحل
sale.order picking_out Odoo13.0 odoo13CE
الصورة الرمزية
الصورة الرمزية
1
يونيو 22
2995
Button to reach specific record of a module
mail button_url Odoo13.0 AutomatedActions
الصورة الرمزية
0
مارس 22
2118
المجتمع
  • دروس
  • التوثيق
  • المنتدى
مصدر مفتوح
  • تحميل
  • جيت هاب "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