Перейти к содержимому
Odoo Меню
  • Войти
  • Попробовать бесплатно
  • Модули
    Финансы
    • Бухгалтерия
    • Выставление счетов
    • Расходы
    • Таблицы
    • Документооборот
    • Подпись
    Продажи
    • CRM
    • Продажи
    • POS Магазин
    • POS Ресторан
    • Подписки
    • Аренда
    Вебсайты
    • Конструктор вебсайтов
    • eCommerce
    • Блог
    • Форум
    • Онлайн-чат
    • Электронное обучение
    Логистика
    • Склад
    • Производство
    • PLM
    • Закупки
    • Обслуживание
    • Качество
    Отдел кадров
    • Сотрудники
    • Подбор персонала
    • Отпуска
    • Оценка персонала
    • Реферальная программа
    • Автопарк
    Маркетинг
    • SMM
    • E-mail рассылки
    • СМС рассылки
    • Мероприятия
    • Автоматизация маркетинга
    • Опросы
    Услуги
    • Проекты
    • Табели
    • Выездной сервис
    • Поддержка
    • Планирование
    • Встречи
    Продуктивность
    • Обсуждения
    • Согласование
    • IoT
    • VoIP-телефония
    • Knowledge
    • WhatsApp
    Сторонние приложения Модуль Студия Odoo Платформа Odoo Cloud
  • Индустрии
    Розничная торговля
    • Книжный магазин
    • Магазин одежды
    • Мебельный магазин
    • Продуктовый магазин
    • Строительный магазин
    • Магазин игрушек
    Гостинично-ресторанный бизнес
    • Бар и паб
    • Ресторан
    • Фастфуд
    • Гостевой дом
    • Дистрибьютор напитков
    • Отель
    Недвижимость
    • Агентство недвижимости
    • Архитектурное бюро
    • Строительство
    • Управление недвижимостью
    • Ландшафтный дизайн
    • Товарищество собственников жилья
    Консалтинг
    • Бухгалтерская фирма
    • Партнер Odoo
    • Маркетинговое агентство
    • Юридическая фирма
    • Подбор персонала
    • Аудиторское бюро
    Производство
    • Текстиль
    • Металл
    • Мебель
    • Продукты питания
    • Пивоварня
    • Корпоративные сувениры
    Здоровье и фитнес
    • Спортивный комплекс
    • Магазин оптики
    • Фитнес-клуб
    • Велнес-центр
    • Аптека
    • Салон красоты
    Услуги
    • Специалист по бытовым услугам
    • Продажа и обслуживание IT-оборудования
    • Солнечные энергосистемы
    • Производство обуви
    • Клининг
    • Системы ОВКВ
    Прочее
    • Некоммерческая организация
    • Консалтинг в сфере устойчивого развития
    • Аренда рекламных щитов
    • Бизнес по фотосъемке
    • Прокат велосипедов
    • Реселлер программного обеспечения
    Все индустрии
  • Community
    Обучение
    • Видео уроки
    • Документация
    • Сертификация
    • Тренинг
    • Блог
    • Подкаст
    Образование и развитие
    • Образовательная программа
    • Деловая игра Scale Up!
    • Экскурсия в офис Odoo
    ПО
    • Скачать
    • Сравнить версии
    • Релизы
    Сотрудничество
    • 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:

  • CRM
  • 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 Ответы
5488 Представления
Аватар
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
4222
Automated Action on ODOO13
leavemanagement Odoo13.0 AutomatedActions
Аватар
0
сент. 21
2170
How to obtain the serial number of a product from a sales order?
serial_number sale.order Odoo13.0 rma
Аватар
0
июн. 24
1542
How to validate delivery order forcefully in Odoo 13? Решено
sale.order picking_out Odoo13.0 odoo13CE
Аватар
Аватар
1
июн. 22
2990
Button to reach specific record of a module
mail button_url Odoo13.0 AutomatedActions
Аватар
0
мар. 22
2116
Сообщество
  • Видео уроки
  • Документация
  • Форум
Открытый исходный код
  • Скачать
  • Github
  • Runbot
  • Перевод
Услуги
  • Хостинг Odoo.sh
  • Поддержка
  • Обновление
  • Индивидуальные решения по доработке
  • Образование
  • Найти бухгалтера
  • Найти партнера
  • Стать партнером
О нас
  • Наша компания
  • Активы бренда
  • Cвяжитесь с нами
  • Вакансии
  • Мероприятия
  • Подкаст
  • Блог
  • Клиенты
  • Правовые документы • Конфиденциальность
  • Безопасность
الْعَرَبيّة 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 – это набор бизнес-модулей с открытым исходным кодом, который закроет все потребности вашей компании: CRM, E-commerce, Бухгалтерия, Склад, POS, управление проектами и др.

Odoo сочетает в себе простоту использования и полную интеграцию всех бизнес-процессов в одной системе.

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