Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

118
Views
Obtenga el filtro de búsqueda utilizado en la vista de lista para contextualizar Odoo

Tengo una vista de lista como cualquier otra: ingrese la descripción de la imagen aquí

ahora, cuando hago clic en el botón "imprimer", aparece un asistente, quiero pasar el valor de búsqueda como contexto, por ejemplo aquí: partenaire tiene "Woo" y no tengo idea de cómo acceder a él ,no me importa si es con JS

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Encontré una solución con JS: en la función del botón:

 action_def: function (e) { var self = this; var active_id = this.model.get(this.handle).getContext()['active_ids']; var model_name = this.model.get(this.handle).getContext()['active_model']; var context = this.model.get(this.handle).getContext() var datas = self.model.localData var domain ; for (const [key, value] of Object.entries(datas)) { domain = value.domain; break; }; self.do_action({ type: 'ir.actions.act_window', res_model: 'imprimer.rapport', view_mode: 'form', view_type: 'form', view_id: 'imprimer_livre_tiers_view', views: [[false, 'form']], target: 'new', context:{"default_domain_record": domain}, }); },
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!