Hi!
I have a problem. I've added button in my kanban view in hr_applicant addon.
My XML file looks like this:
?xml version="1.0" encoding="UTF-8"?
templates xml:space="preserve"
t t-name="my_addon.KanbanViewExtension" t-inherit="web.KanbanView" t-inherit-mode="extension"
xpath expr="//t[@t-if='canCreate and props.showButtons']" position="after"
button type="button"
t-if="model.root.resModel == 'hr.applicant'"
class="btn btn-primary"
id="my_addon_vacancy_parser_button"
Update Vacancy
/button
/xpath
/t
/templates
But I don't know how to connect my method from model hr.applicant for this button.
I will accept any help, maybe you just indicate where to find something similar or in which direction to move.
Thank you for all your answers.