please remove this, added by mistake
This question has been flagged
Well you could try debugging it using print. Put a print just before supering the function and check if you can see it in the log.
Hello,
It's difficult to say for certain what might be causing your function not to be called without seeing more of your code or understanding the specific circumstances of your issue. However, here are some possible reasons and solutions:
Check that the method is correctly defined: Make sure that the action_confirm method is defined within the correct class and that it is spelled and formatted correctly.
Check that the button is correctly configured: Ensure that the button you are clicking to trigger the action_confirm method is correctly defined in the XML view file and that it is calling the correct method.
Check that the method is not overridden: Check that no other modules or customizations have overridden the action_confirm method or that you haven't overridden it by mistake. To check this, you can use the Odoo Developer Mode and look at the module hierarchy and inheritance tree.
Try to trigger the function manually: If the button is not working, you can also try calling the action_confirm method manually from the Odoo shell or by server action,automated or schedule action
Make sure that the record is in the correct state: Depending on the implementation, the action_confirm method might only be callable if the record is in a certain state. Check that the record you are trying to confirm meets the necessary requirements to call the method.
Hopefully, one of these suggestions helps you solve the issue.
Thanks & Regards,
CandidRoot Solutions Pvt. Ltd.
Mobile: (+91) 8849036209
Email: info@candidroot.com
Skype: live:candidroot
Web: https://www.candidroot.com
Address: 1229-1230, Iconic Shyamal, Near Shyamal Cross Road, Ahmedabad, Gujarat
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up