On Delete Policy In Odoo || Ondelete Policy for selection Field

  Рет қаралды 4,709

Odoo Mates

Odoo Mates

Күн бұрын

Пікірлер: 39
@theeedits9024
@theeedits9024 2 жыл бұрын
If i used that product in order line and confirm the sale order then i deleted what will happened
@OdooMates
@OdooMates 2 жыл бұрын
Deleting the product? It yes, currently it will block you from deleting it, as it is referenced in another table
@theeedits9024
@theeedits9024 2 жыл бұрын
@@OdooMates thank you
@OdooMates
@OdooMates 2 жыл бұрын
❤️❤️❤️
@muneebhaider5861
@muneebhaider5861 2 жыл бұрын
i created a field 'total_amount' in model 'sale.order' now i want this field to show in form view of 'account.move' when i create the invoice. can you please tell me how can i get it done. Do i have to override 'create_invoices' method ? if yes how to do it ? Thank You
@OdooMates
@OdooMates 2 жыл бұрын
Overide the _prepare_invoice function and pass the value to invoice
@OdooMates
@OdooMates 2 жыл бұрын
kzbin.info/www/bejne/i5awg3iGrrqWiK8
@muneebhaider5861
@muneebhaider5861 2 жыл бұрын
@@OdooMates i am using odoo 13 and overiding the create_invioce method and when i click on create invoice the my method also gets triggered but i dont know how to pass the value
@OdooMates
@OdooMates 2 жыл бұрын
@@muneebhaider5861 did you checked the original function ? did you succeeding in supering the existing method ?
@muneebhaider5861
@muneebhaider5861 2 жыл бұрын
@@OdooMates yes, the create_invoices method is created in 'sale.advance.payment.inv' and i overided it and it my function also gets called when i create an invoice but i dont know how to pass the value of my field 'total_amount' in 'sale.order' model to 'account.move'
@ihzaputra8054
@ihzaputra8054 4 ай бұрын
do you know how to fix this warning Field certification.agreement.agreement_ids: unknown parameter 'ondelete', if this is an actual parameter you may want to override the method _valid_field_parameter on the relevant model in order to allow it its a one2many field and i also have many2one and many2many that has ondelete and has that warning. is there any requirement for using ondelete parameter?
@OdooMates
@OdooMates 4 ай бұрын
Can I see your field definition
@ihzaputra8054
@ihzaputra8054 4 ай бұрын
@@OdooMates agreement_ids = fields.One2many('certification.agreement.line', 'agreement_id', string='Agreement Line', ondelete='cascade') here is one of the example that shows a warning
@majdhazem8718
@majdhazem8718 2 жыл бұрын
When I was trying to implement this video with you, I uninstalled the module(om_hospital ), and when I wanted to reinstall it, unfortunately, it gave me errors like this: ValueError: External ID not found in the system: om_hospital.action_hospital_appointment I have applied everything in this tutorial and I do not want my work to be in vain ,What is the solution؟
@OdooMates
@OdooMates 2 жыл бұрын
Do you have record with this id in your module ? If yes, files are correctly ordered in the manifest file ?
@majdhazem8718
@majdhazem8718 2 жыл бұрын
@@OdooMates yes I have this record , this is my order for files 'data': ['security/ir.model.access.csv', 'data/data.xml', 'wizard/create_appointment_view.xml', 'views/sale.xml', 'views/partner.xml', 'views/patient_view.xml', 'views/kids_view.xml', 'views/patient_gender_view.xml', 'views/appointment_view.xml', 'views/doctor_view.xml', 'report/report.xml', 'report/patient_card.xml', 'report/patient_details_template.xml', ],
@majdhazem8718
@majdhazem8718 2 жыл бұрын
@@OdooMates Finally its work, Thank you from the heart
@OdooMates
@OdooMates 2 жыл бұрын
Happy that you fixed it
@majdhazem8718
@majdhazem8718 2 жыл бұрын
@@OdooMates I don't know where is it exactly because I was trying to comment every line in the manifest file but in the last it appear an error I think in the action _patient_appointments in view_id (ref="om_hospital.view_appointment_tree") I make it as a comment after that it's installed successfully I put my order of files in the previous reply here you can see it
@David_Tsintskiladze
@David_Tsintskiladze 2 жыл бұрын
Please make tutorial about making photo gallery in odoo with widgets bootstrap
@OdooMates
@OdooMates 2 жыл бұрын
Will this widget helps ? github.com/OCA/web/tree/10.0/web_widget_slick
@vanetti8771
@vanetti8771 4 ай бұрын
good
@OdooMates
@OdooMates 4 ай бұрын
Thanks
@mehdishad-z8o
@mehdishad-z8o 7 ай бұрын
Thanks
@OdooMates
@OdooMates 6 ай бұрын
welcome :)
@jamesT008
@jamesT008 2 жыл бұрын
Nice
@OdooMates
@OdooMates 2 жыл бұрын
Thanks ❤️
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
How I'd learn ML in 2025 (if I could start over)
16:24
Boris Meinardus
Рет қаралды 566
How to Install Odoo 18 with Pycharm || Odoo 18 Development
14:13
How To Focus On The Right Problems
16:57
Y Combinator
Рет қаралды 32 М.