17.How To Override Create Method In Odoo || Odoo Create Function

17.How To Override Create Method In Odoo || Odoo Create Function

Odoo Mates

3 года назад

15,361 Просмотров

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


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

@byassinmostafa8635
@byassinmostafa8635 - 24.12.2022 16:02

What is the use of api.model decorator?

Ответить
@MohamedSaad-hc3ol
@MohamedSaad-hc3ol - 29.11.2022 16:57

how to override the edit function

Ответить
@erickindratara3307
@erickindratara3307 - 14.10.2022 12:24

HI odoo mates. I am asking you a question. why vals doesnt return all of the field on my class.. in example, I have field many2one that is not appear in vals. neither or some related field. why is that?

Ответить
@irisgabrielaarronacardoza1296
@irisgabrielaarronacardoza1296 - 08.07.2022 03:02

Thanks odoo mates! can we override the create method and add inside the action to also print a report?

Ответить
@malikkamil6596
@malikkamil6596 - 28.06.2022 10:05

hi how to over ride function which showing id =195 (return button in purchase order shoes action id 195 )how i can over ride

Ответить
@malikkamil6596
@malikkamil6596 - 09.06.2022 15:43

hi I am trying to over write invoice total (amount_total)
def action_confirm(self):
result = super(AccountMove, self).action_confirm()
result.update({'amount_total': self.amount_untaxed + self.mrp_tax
})
return result
i tried different way but not succeed
def action_confirm(self):
result = super(AccountMove, self).action_confirm()
for record in self:
record.update({
'amount_total': record.amount_untaxed + record.mrp_tax,
})
return result
help plz

Ответить
@EAnime4K60Fps
@EAnime4K60Fps - 01.06.2022 11:49

how i can pass self.activity_schedule to create method?

Ответить
@effessservices3859
@effessservices3859 - 27.04.2022 15:53

realy nice teaching method Thank you so much dear.

Ответить
@reditaga6795
@reditaga6795 - 01.04.2022 16:21

Hi, i have created a model. For this model i created a menu with its form view. Now i created another menu for the same model, but i want this menu to have its own form view not the same form view as the first menu. Because even than created a form view to the xml file of the 2nd menu it shows me the same form view as the first menu. How can i do it ?

Ответить
@amrmoneer5881
@amrmoneer5881 - 20.03.2022 17:16

why do you have to repeat yourself so many times through the video? if i miss something i can go back!

Ответить
@ihsannuruliman3656
@ihsannuruliman3656 - 17.03.2022 16:16

what's the use of @api.model? Just to tell Odoo to call the function automatically?

Ответить
@engineerasmaa4658
@engineerasmaa4658 - 12.12.2021 00:18

This is the Video very nice 👌👏

Ответить
@osmoh6738
@osmoh6738 - 15.08.2021 21:27

My friend
How to add field my model after inherit but no show old model
Exple....
inherit model product
I want add field number_tage or anything but no show to old model product....
I can that?

Ответить
@zolaesuye9074
@zolaesuye9074 - 17.06.2021 07:42

Hello Odoo Mate Kindly Thanks for your valuable tutorial, please tell me how can I make the field mandatory when anyone clicks the cancel button in the status bar to enter reason(if cancel button is clicked there should be reason)

Ответить
@jamesT008
@jamesT008 - 06.06.2021 03:37

Please create a detailed vdo on How super method works in override? When and how to use?

Ответить
@abdalwahedfrea3415
@abdalwahedfrea3415 - 05.06.2021 12:16

hello Odoo Mates, thanks a lot for your efforts explaining Odoo in easy way,
regarding this lesson, is it possible to add some use case where override methods is needed, and why we need to use it in general.

again thanks a lot

Ответить