Bỏ qua để đến Nội dung
Odoo Menu
  • Đăng nhập
  • Dùng thử miễn phí
  • Ứng dụng
    Tài chính
    • Kế toán
    • Hóa đơn
    • Chi phí
    • Bảng tính (BI)
    • Tài liệu
    • Ký tên
    Bán hàng
    • CRM
    • Bán hàng
    • POS Cửa hàng
    • POS Nhà hàng
    • Đăng ký
    • Cho thuê
    Trang web
    • Trình tạo trang web
    • Thương mại điện tử
    • Blog
    • Diễn đàn
    • Trò chuyện trực tiếp
    • Học trực tuyến
    Chuỗi cung ứng
    • Tồn kho
    • Sản xuất
    • PLM
    • Mua hàng
    • Bảo dưỡng
    • Chất lượng
    Nhân sự
    • Nhân viên
    • Tuyển dụng
    • Ngày nghỉ
    • Đánh giá
    • Giới thiệu
    • Đội xe
    Marketing
    • Marketing trên MXH
    • Marketing qua email
    • Marketing qua SMS
    • Sự kiện
    • Tự động hóa Marketing
    • Khảo sát
    Dịch vụ
    • Dự án
    • Bảng chấm công
    • Dịch vụ hiện trường
    • Hỗ trợ
    • Kế hoạch
    • Lịch hẹn
    Năng suất
    • Thảo luận
    • Phê duyệt
    • IoT
    • VoIP
    • Kiến thức
    • WhatsApp
    Ứng dụng của bên thứ ba Studio Odoo Nền tảng Đám mây Odoo
  • Ngành
    Bán lẻ
    • Nhà sách
    • Cửa hàng quần áo
    • Cửa hàng nội thất
    • Cửa hàng tạp hóa
    • Cửa hàng đồ kim khí
    • Cửa hàng đồ chơi
    Ẩm thực & Dịch vụ lưu trú
    • Bar và quán rượu
    • Nhà hàng
    • Đồ ăn nhanh
    • Guest house
    • Nhà phân phối đồ uống
    • Khách sạn
    Bất động sản
    • Công ty môi giới bất động sản
    • Công ty kiến trúc
    • Xây dựng
    • Quản lý bất động sản
    • Làm vườn
    • Hiệp hội chủ sở hữu bất động sản
    Tư vấn
    • Công ty kế toán
    • Đối tác Odoo
    • Công ty marketing
    • Công ty luật
    • Tuyển dụng
    • Thanh tra & chứng nhận
    Sản xuất
    • Dệt may
    • Kim loại
    • Nội thất
    • Ẩm thực
    • Nhà máy bia
    • Quà tặng doanh nghiệp
    Sức khoẻ & fitness
    • CLB thể thao
    • Cửa hàng kính mắt
    • Trung tâm fitness
    • Chuyên gia chăm sóc sức khỏe
    • Hiệu thuốc
    • Tiệm làm tóc
    Thương mại
    • Dịch vụ sửa chữa
    • Phần cứng CNTT & Hỗ trợ
    • Hệ thống năng lượng mặt trời
    • Công ty sản xuất giày
    • Dịch vụ vệ sinh
    • Dịch vụ HVAC
    Khác
    • Tổ chức phi lợi nhuận
    • Cơ quan môi trường
    • Cho thuê biển quảng cáo
    • Nhiếp ảnh
    • Cho thuê xe đạp
    • Đại lý phần mềm
    Xem tất cả ngành
  • Cộng đồng
    Học tập
    • Khóa học
    • Tài liệu
    • Chứng chỉ
    • Đào tạo
    • Blog
    • Podcast
    Thúc đẩy đào tạo
    • Chương trình đào tạo
    • Trò chơi kinh doanh Scale Up!
    • Tham quan Odoo
    Nhận phần mềm
    • Tải xuống
    • So sánh các phiên bản
    • Phiên bản
    Hợp tác
    • Github
    • Diễn đàn
    • Sự kiện
    • Dịch thuật
    • Trở thành đối tác
    • Dịch vụ dành cho Đối tác
    • Đăng ký công ty kế toán của bạn
    Nhận dịch vụ
    • Tìm đối tác
    • Tìm kế toán
    • Gặp chuyên gia hỗ trợ
    • Dịch vụ Triển khai
    • Khách hàng tham khảo
    • Hỗ trợ
    • Nâng cấp
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Nhận một buổi demo
  • Bảng giá
  • Trợ giúp

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

  • CRM
  • e-Commerce
  • Kế toán
  • Tồn kho
  • PoS
  • Dự án
  • MRP
All apps
Bạn cần phải đăng ký để tương tác với cộng đồng.
Tất cả bài viết Người Huy hiệu
Thẻ (Xem tất cả)
odoo accounting v14 pos v15
Về diễn đàn này
Bạn cần phải đăng ký để tương tác với cộng đồng.
Tất cả bài viết Người Huy hiệu
Thẻ (Xem tất cả)
odoo accounting v14 pos v15
Về diễn đàn này
Hỗ trợ

How to call a server action depending of the state of the record ?

Đăng ký nhận tin

Nhận thông báo khi có hoạt động trên bài viết này

Câu hỏi này đã bị gắn cờ
localhoststudio
1 Trả lời
5589 Lượt xem
Ảnh đại diện
Mandresy Randriatavy

Hi,

I started using Docker to create a local instance of Odoo but I can't download the Studio App.. I realised that the Automated Action option create a Server Action to call but I don't understand how it's detect the state of the record to call the action dependending of if it's a new record, an update, a deletion etc..

I don't want to go into the code because with the Dev Mode + Studio + Attachements + Assets I can do all the things without the need of coding (my head is also in 3 differents languages at the same time so it's burning the head to switch everytime, so let's not talk about adding Python) so it's allow me to go fast and work in multple project..

Does someone have an answer to the way it's detect the state ?


Yours faithfully,

RANDRIATAVY Mandresy

0
Ảnh đại diện
Huỷ bỏ
Peter Park

Yes, it is possible to call a server action depending on the state of the record. Odoo allows you to use triggers to detect when a record is created, modified, or deleted. You can then use the appropriate server action to respond accordingly.

To set up a trigger for a record, you need to go to the Settings page and select Automated Actions. From there, you can set up a trigger for a particular record. You can choose which action to take when the record is created, modified, or deleted. You can also specify what type of action to take (e.g. create a task, send an email, etc.).

Once you have configured the trigger, you can then create a server action and specify the conditions that must be met for it to be executed. In the Conditions tab, you can select the record state (created, modified, or deleted). When the record meets the conditions, the server action will be triggered and the action will take place.

I hope this has been helpful in understanding how to call a server action depending on the state of the record. you want to call depending of the record state.

Click “Save” and you are done.

Now, whenever the state of the record is changed, the server action will be called automatically.

Mandresy Randriatavy
Tác giả

Thanks you Peter spark, but the thing is without Studio the option Automated Action are unavailable..

Mandresy Randriatavy
Tác giả

Peter Park*

Bhavin Patel

To call a server action in Odoo depending on the state of the record, you can use Automated Actions. Automated Actions are a way to automate certain actions in Odoo based on specific events or conditions.

To set up an Automated Action that calls a server action depending on the state of the record, follow these steps:

Go to the model that you want to create the Automated Action for (e.g. Sales Order, Purchase Order, etc.).
Open the "Automation" tab in the model's configuration.
Click on "Create" to create a new Automated Action.
Give the Automated Action a name and select the event that should trigger the action (e.g. "On Creation", "On Update", etc.).
In the "Conditions" section, define the conditions that must be met in order for the Automated Action to be triggered. For example, you can specify that the server action should only be called if a certain field has a specific value, or if a related record meets certain criteria.
In the "Actions" section, select "Create a Server Action" and choose the server action that you want to execute when the Automated Action is triggered. You can specify additional parameters to pass to the server action, such as the record ID or values of specific fields.
Save the Automated Action.

When the specified event occurs and the conditions are met, the Automated Action will trigger and execute the server action. The server action can then perform various actions based on the state of the record, such as sending an email, updating a record, or creating a new record.

Ảnh đại diện
Bhavin Patel
Câu trả lời hay nhất

When creating an Automated Action in Odoo, you can configure it to trigger on specific events, such as when a new record is created, an existing record is updated, or a record is deleted.

To do this, you can set the "Trigger Condition" field in the Automated Action configuration to one of the following values:

On Creation
On Update
On Deletion
On Change

When you select one of these options, the Automated Action will be triggered based on the corresponding event. For example, if you select "On Creation", the Automated Action will be triggered whenever a new record is created.

Under the "Action to Do" field, you can then select the "Server Action" option, which allows you to create a new server action that will be executed when the Automated Action is triggered. The server action can perform various actions based on the event that triggered the Automated Action, such as sending an email, updating a record, or creating a new record.

Regarding the Studio App, it is possible that it is not available in your Docker instance of Odoo because it may require additional dependencies or configurations that are not included in the Docker image. If you require the Studio App, you may want to consider setting up a local instance of Odoo outside of Docker, or contacting the Odoo support team for assistance with installing the Studio App in your Docker instance.

1
Ảnh đại diện
Huỷ bỏ
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!

Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!

Đăng ký
Bài viết liên quan Trả lời Lượt xem Hoạt động
debit and credit in currency
studio
Ảnh đại diện
Ảnh đại diện
1
thg 11 25
2119
Menu's with different default filter Đã xử lý
studio
Ảnh đại diện
Ảnh đại diện
1
thg 7 25
2218
Digest mails - any good resources for Studio Đã xử lý
studio
Ảnh đại diện
Ảnh đại diện
2
thg 3 25
2366
Payment terms format change
studio
Ảnh đại diện
0
thg 2 25
1938
V18 of odoo, How to add a computed field in a stock report? Example: Total weight of my available product.
studio
Ảnh đại diện
0
thg 2 25
2407
Cộng đồng
  • Khóa học
  • Tài liệu
  • Diễn đàn
Open source
  • Tải xuống
  • Github
  • Runbot
  • Dịch thuật
Dịch vụ
  • Lưu trữ Odoo.sh
  • Hỗ trợ
  • Nâng cấp
  • Phát triển tùy chỉnh
  • Đào tạo
  • Tìm kế toán
  • Tìm đối tác
  • Trở thành đối tác
Giới thiệu công ty
  • Công ty của chúng tôi
  • Tài sản thương hiệu
  • Liên hệ
  • Việc làm
  • Sự kiện
  • Podcast
  • Blog
  • Khách hàng
  • Pháp lý • Riêng tư
  • Bảo mật
الْعَرَبيّة 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 là bộ ứng dụng kinh doanh có open source đáp ứng tất cả các nhu cầu của công ty bạn: CRM, thương mại điện tử, kế toán, tồn kho, POS, quản lý dự án, v.v.

Định hướng giá trị riêng biệt của Odoo là tích hợp hoàn toàn và dễ dàng sử dụng.

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