How to override create method in Odoo | Odoo ORM Methods

How to override create method in Odoo | Odoo ORM Methods

WebLearns

3 года назад

8,158 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@johannesmoreno4202
@johannesmoreno4202 - 29.06.2023 04:44

You are great friend , thanks. where can contact you ?

Ответить
@mohamedkhaled-jy1ti
@mohamedkhaled-jy1ti - 27.09.2022 13:19

awesome

Ответить
@mohamedkhalid5018
@mohamedkhalid5018 - 18.09.2022 23:58

i like the way of you teach

Ответить
@ngochung207
@ngochung207 - 07.06.2021 02:25

The work you are doing is wonderful. Will you continue to make more advanced videos, following this basic series?

Ответить
@supreetlaghate22
@supreetlaghate22 - 28.03.2021 14:49

Please make a tutorial on API

Ответить
@bram5782
@bram5782 - 12.03.2021 00:41

Is it possible to use create method, to automatically create list of transaction according to date range?

for example : I have original Fields:
start date | end date | choose date (day = Wednesday)
3/1/2021 | 3/15/2021 | blank

when I click a button, the data will be generated as follow:
start date | end date | choose date
3/1/2021 | 3/15/2021 | 3/3/2021
3/1/2021 | 3/15/2021 | 3/10/2021
note: choose date will be filled from the date range (start date-->end date) in which the day's name = Wednesday.

Ответить
@muslimalaran
@muslimalaran - 19.01.2021 19:17

Great videos. You are really doing a good job.

When I try to run the code

studnet_list = [ { 'name' : 'Student123'}, { 'name' : 'Student456'}, ...] and also called

std_list = self.env[ 'school.student].create (studnet_list)

I get the error

name 'self' is not defined.

Any idea how I can solve it

Ответить
@muslimalaran
@muslimalaran - 19.01.2021 19:16

Great videos. You are really doing a good job.

When I try to run the code

studnet_list = [ { 'name' : 'Student123'}, { 'name' : 'Student456'}, ...] and also called

std_list = self.env[ 'school.student].create (studnet_list)

I get the error

name 'self' is not defined.

Any idea how I can solve it

Ответить
@leoe.r.7338
@leoe.r.7338 - 16.01.2021 18:35

Great. One question, what happens to the other create method with the regular decorator ?

Ответить
@prakharrathore7312
@prakharrathore7312 - 06.01.2021 14:30

keep using sunny leaone as example

Ответить
@user-jt5mc2kr4m
@user-jt5mc2kr4m - 05.01.2021 19:45

Brilliant, great explanation

Ответить
@kotadiyadhrupesh7809
@kotadiyadhrupesh7809 - 08.09.2020 08:39

Keep it , You are doing best

Ответить