text: Odoo Help
  Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
  CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
  How to fix yml onchange issue?
  Hello,
  I have created onchange method and am trying to trigger it from yml.
  where context is also one parameter for onchange method.
  but here context return blank dictionary !?
  Is it a framework issue?
  Here is my YML code:
  I create a phonecall record to call a partner onchange method. !record {model: crm.phonecall, id: crm_phonecall_5}: name: 'Bad time' partner_id: base.res_partner_5
  Am I right in thinking you are trying to trigger your onchange function from YML by creating a related record?
  onchange functions are only triggered by the view UI by setting the on_change attribute for a field to the name of your onchange function, for example:
  def my_onchange_function(...): ... <field name="my_field" on_change="my_onchange_function" />
  Well perhaps if you gave us more information and put the effort into writing a more comprehendable answer, I could be of more help. I did take the time out of my day to try and help you, perhaps you could be a bit more cooperative...
  Nobody understood your question, the idea was to have a starting point and then we could jointly improve the answer together.. Besides, one person answering does not mean nobody else can
  About This Community
  Odoo Training Center
  Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
  Please do not modify original question.
  Please reformulate the question it is not understandable. You may add some sample code too.
  Let me know what you not understand ?
  We don't understand what your problem is. Is it that, when you run your onchange function from a yml test, the context is a blank dictionary?
  When you add details to your question, please edit your original question instead of adding them in an answer. I have moved the information you added you your original question. Can you delete the answer you created?