How to get a record by xml id?

  • language
      English
  • type
      technical
  • info created for version
      14.0
  • mvc
      Python (models/controllers)
Add to Cart

record_id = self.env.ref("model_name.xml_id", False)