61. Transient Model In Odoo || Odoo 15 Development Tutorials || Odoo Advanced Tutorials

  Рет қаралды 7,999

Odoo Mates

Odoo Mates

Күн бұрын

Transient model in odoo. Working of transient model in Odoo. Odoo transient model. Odoo 15 development tutorials. Building module in Odoo 15. How to create module in Odoo. How to create transient model in Odoo. Create wizard in odoo. Create wizard model in odoo. Odoo 15 development 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...

Пікірлер: 20
@TheArchCoder
@TheArchCoder Ай бұрын
I made a transient model and its wizard. Before it was working fine, but now i changed the button position from a menu item on the top, to a button in the contacts app. But after changing where the button is located, It says "Can't fetch record(s) 7. They might have been deleted." If you can help, that would be really nice.
@libertadcapital2395
@libertadcapital2395 2 жыл бұрын
Great this saga of videos and very ordered. Are you thinking of making videos on how to extend odoo core modules? Thank you so much!
@OdooMates
@OdooMates 2 жыл бұрын
Thanks for the support, inheritance videos are on the way ;)
@libertadcapital2395
@libertadcapital2395 2 жыл бұрын
@@OdooMates you made my day!, your videos are the best course that someone could buy
@OdooMates
@OdooMates 2 жыл бұрын
@@libertadcapital2395
@mohammedbalfaqih1264
@mohammedbalfaqih1264 2 жыл бұрын
Thank so much for great lessons I hope you can help in the following case: I inherited a wizard "account.payment.register" and added a field to it (called X1). And I inherited a model "account.payment" and added a field to it (called X2). My question is what the method should I override it and how to pass the vale from X1 to X2 Thank you
@OdooMates
@OdooMates 2 жыл бұрын
did you checked the function that getting executed on clicking the button in the wizard
@mohammedbalfaqih1264
@mohammedbalfaqih1264 2 жыл бұрын
@@OdooMates yes it's (action_create_payments) but i don't know how add the new key and value to it. i tried to override (def _create_payment_vals_from_wizard(self)) to add the new key and value but got the following error: Validation Error The operation cannot be completed: another model requires the record being deleted. If possible, archive it instead. Model: Journal Entry (account.move), Constraint: account_move_contract_id_fkey
@OdooMates
@OdooMates 2 жыл бұрын
Can you show us the code that you have tried with
@mohammedbalfaqih1264
@mohammedbalfaqih1264 2 жыл бұрын
@@OdooMates it's in : addons/account/wizard/account_payment_register.py the code is : def action_create_payments(self): payments = self._create_payments() if self._context.get('dont_redirect_to_payments'): return True action = { 'name': _('Payments'), 'type': 'ir.actions.act_window', 'res_model': 'account.payment', 'context': {'create': False}, } if len(payments) == 1: action.update({ 'view_mode': 'form', 'res_id': payments.id, }) else: action.update({ 'view_mode': 'tree,form', 'domain': [('id', 'in', payments.ids)], }) return action And: def _create_payment_vals_from_wizard(self): payment_vals = { 'date': self.payment_date, 'amount': self.amount, 'payment_type': self.payment_type, 'partner_type': self.partner_type, 'ref': self.communication, 'journal_id': self.journal_id.id, 'currency_id': self.currency_id.id, 'partner_id': self.partner_id.id, 'partner_bank_id': self.partner_bank_id.id, 'payment_method_id': self.payment_method_id.id, 'destination_account_id': self.line_ids[0].account_id.id } if not self.currency_id.is_zero(self.payment_difference) and self.payment_difference_handling == 'reconcile': payment_vals['write_off_line_vals'] = { 'name': self.writeoff_label, 'amount': self.payment_difference, 'account_id': self.writeoff_account_id.id, } return payment_vals
@OdooMates
@OdooMates 2 жыл бұрын
did you check this function payments = self._create_payments()
@shahzaibanwar8368
@shahzaibanwar8368 Жыл бұрын
Plz Sir Can you upload a video on how to customize odoo POS and restrict out of stock products. Its a request from Pakistan
@OdooMates
@OdooMates Жыл бұрын
hi brother, there are few apps in the store for this functionality i think, can you make a search
@shahzaibanwar8368
@shahzaibanwar8368 Жыл бұрын
@@OdooMates Sir They are all paid apps. Is there any free app?
@ShadHastam
@ShadHastam 8 ай бұрын
Thanks
@OdooMates
@OdooMates 3 ай бұрын
welcome
@ahmedabdien3558
@ahmedabdien3558 2 жыл бұрын
from odoo import api, fields, models class CancelAppointmentWizard(models.TransientModel): _name = 'cancel.appointment.wizard' _description = 'Cancel Appointment Wizard' appointment_id = fields.Many2one( string='Appointment', comodel_name='hospital.appointment' )
@OdooMates
@OdooMates 2 жыл бұрын
just shared this or any issues ?
Which One Is The Best - From Small To Giant #katebrush #shorts
00:17
Un coup venu de l’espace 😂😂😂
00:19
Nicocapone
Рет қаралды 9 МЛН
My Daughter's Dumplings Are Filled With Coins #funny #cute #comedy
00:18
Funny daughter's daily life
Рет қаралды 27 МЛН
Зу-зу Күлпаш 2. Дартс
41:09
ASTANATV Movie
Рет қаралды 431 М.
What is Abstract Model in Odoo 16 | Odoo 16 Development Tutorials
5:18
Cybrosys Technologies
Рет қаралды 2,4 М.
How To Execute SQL Queries In Odoo || Query Execution In Odoo
11:24
Prevent Closing Of Wizard In Odoo
6:35
Odoo Mates
Рет қаралды 3,8 М.
Bank configuration | Odoo Accounting
6:03
Odoo
Рет қаралды 6 М.
Which One Is The Best - From Small To Giant #katebrush #shorts
00:17