Skip to Content
Odoo Меню
  • Увійти
  • Спробуйте це безкоштовно
  • Додатки
    Фінанси
    • Бухоблік
    • Виставлення рахунку
    • Витрати
    • Електронні таблиці (BI)
    • Документи
    • Підпис
    Продажі
    • CRM
    • Продажі
    • POS Магазин
    • POS Ресторан
    • Підписки
    • Оренда
    Веб-сайти
    • Конструктор веб-сайту
    • Електронна комерція
    • Блог
    • Форум
    • Живий чат
    • Електронне навчання
    Ланцюг поставок
    • Склад
    • Виробництво
    • PLM
    • Купівлі
    • Технічне обслуговування
    • Якість
    Кадри
    • Співробітники
    • Рекрутинг
    • Відпустки
    • Оцінювання
    • Рекомендації
    • Автотранспорт
    Маркетинг
    • Маркетинг соцмереж
    • Email-маркетинг
    • SMS-маркетинг
    • Події
    • Автом. маркетингу
    • Опитування
    Послуги
    • Проект
    • Табелі
    • Виїзне обслуговування
    • Служба підтримки
    • Планування
    • Призначення
    Продуктивність
    • Обговорення
    • Схвалення
    • IoT
    • IP-телефонія
    • База знань
    • WhatsApp
    Сторонні модулі Odoo Studio Платформа Odoo Cloud
  • Сфери
    Роздрібна торгівля
    • Книжковий магазин
    • Магазин одягу
    • Магазин меблів
    • Продуктовий магазин
    • Магазин будівельних матеріалів
    • Магазин іграшок
    Food & Hospitality
    • Бар та паб
    • Ресторан
    • Фастфуд
    • Guest House
    • Дистриб'ютор напоїв
    • Hotel
    Нерухомість
    • Real Estate Agency
    • Архітектурна фірма
    • Будівництво
    • Управління нерухомістю
    • Садівництво
    • Асоціація власників нерухомості
    Консалтинг
    • Бухгалтерська компанія
    • Партнер Odoo
    • Агенція маркетингу
    • Юридична фірма
    • Придбання Талантів
    • Аудит та сертифікація
    Виробництво
    • Textile
    • Metal
    • Меблі
    • Їжа
    • Brewery
    • Корпоративні подарунки
    Здоров'я & Фітнес
    • Спортивний клуб
    • Оптика
    • Фітнес-центр
    • Практики здоров'я
    • Аптека
    • Салон краси
    Trades
    • Ремонтник
    • IT-обладнання та Підтримка
    • Системи сонячної енергії
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Інші
    • Nonprofit Organization
    • Екологічна агенція
    • Оренда білбордів
    • Фотографія
    • Лізинг велосипедів
    • Реселлер програмного забезпечення
    Browse all Industries
  • Спільнота
    Навчання
    • Навчальний посібник
    • Документація
    • Сертифікації
    • Тренування
    • Блог
    • Подкаст
    Сприяйте Освіті
    • Програма навчання
    • Бізнес гра Scale Up!
    • Відвідайте Odoo
    Отримайте програмне забезпечення
    • Завантаження
    • Порівняйте версії
    • Релізи
    Співпрацюйте
    • Github
    • Форум
    • Події
    • Переклади
    • Стати партнером
    • Services for Partners
    • Зареєструйте вашу бухгалтерську фірму
    Отримайте послуги
    • Знайдіть партнера
    • Знайдіть бухгалтера
    • Зустріньтеся з консультантом
    • Послуги з впровадження
    • Референси клієнтів
    • Підтримка
    • Оновлення
    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
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
All Posts Люди Значки
Мітки (View all)
odoo accounting v14 pos v15
Про цей форум
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
All Posts Люди Значки
Мітки (View all)
odoo accounting v14 pos v15
Про цей форум
Допомога

difference between server actions and client actions in Odoo?

Підписатися

Отримуйте сповіщення про активність щодо цієї публікації

Це запитання позначене
actionserver
3 Відповіді
13338 Переглядів
Аватар
rectangel technologies

What is the difference between server actions and client actions in Odoo?

0
Аватар
Відмінити
Аватар
Cybrosys Techno Solutions Pvt.Ltd
Найкраща відповідь

Hi, 

 1. Server Action(ir.actions.server)

Server Actions work on the base model and provide different types of actions that can be executed automatically.

For example, if you want to add actions to the More context menu and use basic action rules. 

Available server actions are: 

1. Python code execution: - A block of Python code is executed.

2. Create New Record: - Create a new record with new values.

3. Write to the record: - update the value of the record. 

4. Perform some actions: - Define actions that trigger other server actions.


2. Client Action( ir.actions.client)

Client actions are used to trigger actions that are fully implemented on the client.

tag: client-side identifier for the action, an arbitrary string that the client needs to know how to respond.

params: A Python dictionary containing additional data to be sent to the client along with the client action tag

target:

Target options are,

current: Used to open the main content area.

new: it is used to open the window like a popup.

full screen: it is used to open a window in fullscreen mode.

main: It is used to open the main content area without breadcrumbs.


For more information refer the blog:

https://www.cybrosys.com/blog/type-of-actions-in-odoo-16-erp


Hope it helps

1
Аватар
Відмінити
Аватар
Ksolves India Limited (Odoo Gold Partner)
Найкраща відповідь

Reply : In Odoo, server actions and client actions are two different types of actions that can be defined and triggered within the system. Here's the difference between them

Server Actions:
Server actions are executed on the server-side of Odoo.
They are defined using Python code and can perform complex server-side operations.
Server actions are triggered by events like button clicks, automated actions (cron jobs), or workflow transitions.
They can modify records, execute business logic, send emails, generate reports, update fields, and perform other server-side tasks.
Server actions are typically used for batch operations, data manipulation, or triggering complex workflows.

Client Actions:
Client actions are executed on the client-side of Odoo, which means they are executed within the user's web browser.
They are defined using JavaScript code and are used to enhance the user interface and provide interactive features.
Client actions are triggered by user events like button clicks, menu selections, or other user interactions.
They can manipulate the user interface, show/hide elements, perform validations, make API calls, and provide dynamic behavior.
Client actions are often used for user experience improvements, such as adding dynamic fields, triggering pop-up windows, or updating interface elements without page reloads.

Regards,

Ksolves Team!

0
Аватар
Відмінити
Аватар
Niyas Raphy (Walnut Software Solutions)
Найкраща відповідь

HI,

Server Action:
A server action in Odoo is executed on the server-side, typically triggered by an event such as a button click or an automated workflow. It is written in Python code and allows you to define complex business logic and perform operations on the server.



Client Action:
A client action in Odoo refers to an action performed on the client-side, typically within the user interface (UI) of the web browser. It is written in JavaScript and allows you to define interactive behaviors and perform actions without communicating with the server.



Odoo documentation: https://www.odoo.com/documentation/16.0/developer/reference/backend/actions.html


Thanks

0
Аватар
Відмінити
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Реєстрація
Related Posts Відповіді Переглядів Дія
Run server action only on certain products Вирішено
action server routes
Аватар
Аватар
2
лист. 23
3210
How to create server action incoming in human resources?
action server email
Аватар
0
бер. 15
4351
How to create server action incoming in human resources?
action server email
Аватар
Аватар
2
бер. 15
7870
Need Advice For Migrate Thousands of Messy SKUs
action
Аватар
0
лист. 25
8
Pickup Date for E-Commerce Вирішено
action
Аватар
Аватар
Аватар
2
лист. 25
187
Спільнота
  • Навчальний посібник
  • Документація
  • Форум
Open Source
  • Завантаження
  • Github
  • Runbot
  • Переклади
Послуги
  • Хостинг Odoo.sh
  • Підтримка
  • Оновлення
  • Кастомні доробки
  • Навчання
  • Знайдіть бухгалтера
  • Знайдіть партнера
  • Стати партнером
Про нас
  • Наша компанія
  • Торгові активи
  • Зв'яжіться з нами
  • Вакансії
  • Події
  • Подкаст
  • Блог
  • Клієнти
  • Юридичні документи • Конфіденційність
  • Безпека
الْعَرَبيّة 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, електронна комерція, бухгалтерський облік, склад, точка продажу, управління проектами тощо.

Унікальна пропозиція 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