😱😱 How to reuse code in

Описание к видео 😱😱 How to reuse code in

Has it happened to you that you have to define a functionality, in several models at the same time? Stay because I will tell you how to solve it very simply using Mixin
The mixin are the possibility that Odoo offers to reuse code, they are a set of models, usable, modifiable methods with common functionalities for all the models of the system.
for example mail.thread, adding chat and followers to documents, or portal.mixin to define common functionalities. In this video we will be creating a mixin to define validations and reuse them very simply.
#odoo time

Oficial Doc: https://www.odoo.com/documentation/17...

Timeline:

00:00 Intro
01:04 Creating validation mixin
03:30 Adding mixin inheritance to sale.order model
10:25 Adding mixin inheritance to account.move model

Комментарии

Информация по комментариям в разработке