78. Active Id In Odoo Development || Odoo active_id || Get Data From Main Model inside Wizard Model

  Рет қаралды 8,595

Odoo Mates

Odoo Mates

Күн бұрын

Working and use of active_id in odoo. Get data from main model inside wizard model. Usage of active_id in odoo development. Odoo 15 tutorial. Odoo 15 development videos. Working of active_id in Odoo. Odoo mates videos.
Odoo 15 Playlist: • How To Configure Odoo1...
Website: www.odoomates....
Instgram: / odoomates
Github: github.com/odo...
Email : odoomates@gmail.com
Facebook: / odoomate
Twitter: / odoomates
Support Us in Ko Fi : ko-fi.com/odoo...

Пікірлер: 23
@altelasoftware2992
@altelasoftware2992 Жыл бұрын
good video, do you have tutorial regarding passing one2many fields record from models.Model to transientModel?
@SamirSELLAMI
@SamirSELLAMI 2 жыл бұрын
Hi, I have two questions please: - How can we load the values of other fields (ex. "date") of the main model active record other then the "id" ? - How to save back changes done in wizard fields record into the main model record ?
@OdooMates
@OdooMates 2 жыл бұрын
From the default_get method, we can get main record, by browsing the active_id and then we can access any value from the main model
@OdooMates
@OdooMates 2 жыл бұрын
To save back value to original model, main_rec = self.env['main_model'].browse(active_id) main_rec.field = new_value
@SamirSELLAMI
@SamirSELLAMI 2 жыл бұрын
@@OdooMates I tried: res[‘field_name’] = self.env.context.get(‘active_id.field_name’) but it return context none.
@SamirSELLAMI
@SamirSELLAMI 2 жыл бұрын
@@OdooMates U mean I should use the “Browse” method instead of “Get” ?
@OdooMates
@OdooMates 2 жыл бұрын
@@SamirSELLAMI we have to browse the record by getting the active_id from context
@wildbeauty9257
@wildbeauty9257 2 жыл бұрын
Thanks 👍👍👍
@OdooMates
@OdooMates 2 жыл бұрын
Welcome 👍
@MuhammadUmarAkram4
@MuhammadUmarAkram4 2 жыл бұрын
Can we upload documents to attachments via wizard?
@ShadHastam
@ShadHastam 8 ай бұрын
Thanks
@OdooMates
@OdooMates 7 ай бұрын
Welcome
@sarathisarathi318
@sarathisarathi318 Жыл бұрын
how to acess many2many field in wizard .it shows not allowed to access error
@melvinguerra9563
@melvinguerra9563 2 жыл бұрын
how to point to specific active_id in active_ids?
@OdooMates
@OdooMates 2 жыл бұрын
active_ids is list, lets say, it is [4,3,2,1] from this list on what basis you need to get a specific one ?
@melvinguerra9563
@melvinguerra9563 2 жыл бұрын
@@OdooMates if you use browse method it would retrieve a list?
SHAPALAQ 6 серия / 3 часть #aminkavitaminka #aminak #aminokka #расулшоу
00:59
Аминка Витаминка
Рет қаралды 3,1 МЛН
Ozoda - Lada ( Official Music Video 2024 )
06:07
Ozoda
Рет қаралды 27 МЛН
Epic Reflex Game vs MrBeast Crew 🙈😱
00:32
Celine Dept
Рет қаралды 35 МЛН
Security - Foundations of Computing 2024s2 - Lecture 21
50:39
Shaanan Cohney
Рет қаралды 4
API vs. SDK: What's the difference?
9:21
IBM Technology
Рет қаралды 1,4 МЛН
Learn Power Apps from Scratch for Free: Beginner's Course Available Now
47:50
Technoobie Tutorials
Рет қаралды 82 М.
Odoo Development Tutorial: Create & Use Wizards in Odoo | Enhance User Interactions
21:16
Relational fields | Odoo Studio
5:10
Odoo
Рет қаралды 11 М.
The Problem With Microservices
17:47
Continuous Delivery
Рет қаралды 435 М.
Top 5 Most-Used Deployment Strategies
10:00
ByteByteGo
Рет қаралды 271 М.
SHAPALAQ 6 серия / 3 часть #aminkavitaminka #aminak #aminokka #расулшоу
00:59
Аминка Витаминка
Рет қаралды 3,1 МЛН