70. How To Inherit A Function In Odoo || Odoo Inheritance || Odoo 15 Tutorials | Odoo 15 Development
HTML-код
- Опубликовано: 15 апр 2022
- How to inherit a function in Odoo. How to inherit an existing function in Odoo. Steps to inherit existing method in Odoo. Odoo 15 inheritance. Create module in odoo 15. Odoo 15 development tutorials. Build module in Odoo. Odoo 15 development tutorials. Inheritance mechanism in odoo 15. Odoo inheritance. Odoo functions. Inherit odoo function in custom module. Inherit function in custom module.
Odoo 15 Playlist: • How To Configure Odoo1...
Website: www.odoomates.tech/
Instgram: / odoomates
Github: github.com/odoomates
Email : odoomates@gmail.com
Facebook: / odoomate
Twitter: / odoomates
Support Us in Ko Fi : ko-fi.com/odoomates Наука
Thanks sir!
welcome
chat.whatsapp.com/L8LahnQbriE82M5gR4dxKT
thanks ..many thanks
Welcome brother
More informative
glad to hear it and thanks for the support
Is it possible to inherit a function inside a function? I want to inherit _get_payment_terms_account() inside _recompute_payment_terms_lines() in account_move class.
have you solved?
is that possible to change the username ?
from ui or from code ?
Hi thanks for your material that it's really useful, i have favor to ask,can you do this example with the message_post method from mail.thread model? because i follow the same steps but i have a lot of errors.
this is the function:
def message_post(self, *,
body='', subject=None, message_type='notification',
email_from=None, author_id=None, parent_id=False,
subtype_xmlid=None, subtype_id=False, partner_ids=None,
attachments=None, attachment_ids=None,
add_sign=True, record_name=False,
**kwargs):
Greetings
Hello Thanks for the tutorials
I'm here after an issue, if you help I will be thankful (paid assistance is Ok)
Issue is I have a module for credit limit approbation, I need to custom it more :
After click action_confirm() I need to launch a wizard with a description text and a button "Ask Over Limit Approval"
>> After user click that button on wizard, sale order should go into state waiting_over_limit_approval
def _action_confirm(self):
if self.partner_id.active_limit and self.partner_id.enable_credit_limit and self.is_in_account_customer:
if self.due_amount >= self.partner_id.blocking_stage:
if self.partner_id.blocking_stage != 0 and not self.user_has_groups('sales_credit_limit.group_account_credit_limit_approver'):
action = self.env.ref('sales_credit_limit.sale_confirm_action').read()[0]
return action
return super(SaleOrder, self)._action_confirm()
Sincerely
is it resolved ?
@@OdooMates n
Hello not yet
Thanks sir!
Most welcome! and advance happy new year brother