Coding in Odoo is Easier Than You Think
ODOO IT YOURSELF
0:00 / 0:00
Coding in Odoo is Easier Than You Think
3 344 просмотра · Трансляция закончилась 3 мес. назад
ODOO IT YOURSELF
19,7 тыс. подписчиков
3 344 просмотра · Трансляция закончилась 3 мес. назад
Want a bit more help? Let's talk! www.odooityourself.com
Coding in Odoo sounds intimidating, but you can do a surprising amount right from the front end without ever touching a custom module. In this coaching session I walk through the three places you can drop code into Odoo: server actions, automations, and scheduled actions, and when to reach for each one.
We start with server actions, the safest place to begin, building simple examples and then chaining Odoo's own methods together for things like bulk cancel and delete, reassigning a salesperson, unlocking orders, and marking sales orders fully invoiced and fully delivered. Then we move to automations, where the real skill is getting your trigger to fire exactly when you want, plus diagnosing the order of operations issues that trip everyone up. Finally we cover scheduled actions for the heavier jobs that would time out anywhere else, including how to select the right population of records and test your filter before you run anything.
Plenty of live Q&A too: bulk setting vendors on products, generating a job number sequence, and auto updating product cost from a vendor bill.
If you have ever wanted to make Odoo do something it does not do out of the box, this is where to start.
Chapters
0:00 Writing code in Odoo, where to start
0:19 How to enable Odoo developer (debug) mode
0:54 Creating your first Odoo server action
2:10 Odoo server actions, for record in records explained
3:53 Creating a contextual action so it shows up
5:01 Adding a server action button with Odoo Studio
6:38 Chaining server actions, bulk cancel and delete
8:37 Setting field values on records, many2one and database IDs
11:35 Unlock and set to quotation with action_unlock
13:33 Set Odoo orders to fully invoiced and fully delivered
17:01 Moving from server actions to Odoo automations
18:02 Building an Odoo automation trigger that actually fires
19:33 Testing your automation trigger with a user error
21:06 The order of operations problem in Odoo automations
23:05 Auto-unlock a sales order on confirmation
25:16 Runtime limits, automations vs scheduled actions
26:45 Creating an Odoo scheduled action
27:48 Selecting the records a scheduled action runs on
28:48 Building a record filter in debug mode
30:48 Checking your record count before running code
32:03 Looping records and setting the schedule interval
33:42 String manipulation example in Odoo Python
37:24 Q&A, setting vendors on products in bulk
38:44 Bulk-pushing a vendor to the vendor price list
45:02 Creating a number sequence in Odoo
46:04 Auto-generating a job number on project creation
49:16 Auto-updating product cost when a vendor bill is posted
52:27 Wrap-up
#Odoo #OdooDevelopment #ServerActions #Automation #ERP