How to call onchange function in kanban view in openerp? -


I want to call a on-conversion function in Kanban view. But I do not know how can I say this? I tried several ways, but still error. But there is no output and I have another question in the Kanban view: When I pull from one to the other, some values ​​will change. How can I apply it?

  & lt; Record model = "ir.ui.view" id = "hr_kanban_view_transfer" & gt; & Lt; Area name = "name" & gt; Employee Transfer Kanban & lt; / Field & gt; & Lt; Area name = "model" & gt; Employee.transfer & lt; / Field & gt; & Lt; Field name = "arch" type = "xml" & gt; & Lt; Kannaban default_group_by = "site1" & gt; & Lt; Area name = "site1" /> & Lt; Field name = "color" /> & Lt; Area name = "location1" /> & Lt; Area Name = "Location 2" /> & Lt; Area name = "site2" /> & Lt; Templates & gt; & Lt; T t-name = "cannon-tooltip" & gt; & Lt; Ul class = "oe_kanban_tooltip" & gt; & Lt; Li t-if = "record.employee_id.raw_value" & gt; & Lt; B & gt; Employee: & lt; / B & gt; & Lt; Field name = "employee_id" /> & lt; / Li & gt; & Lt; Li t-if = "record.site1.raw_value" & gt; & Lt; B & gt; Current project: & lt; / B & gt; & Lt; Field name = "site1" /> & Lt; / Li & gt; & Lt; Li t-if = "record.location1.raw_value" & gt; & Lt; B & gt; Source Location: & lt; / B & gt; & Lt; Field name = "location1" /> & lt; / Li & gt; & Lt; Li t-if = "record.date.raw_value" & gt; & Lt; B & gt; Date: & lt; / B & gt; & Lt; Field name = "date" /> gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / T & gt; & Lt; T t-name = "kanban-box" & gt; & Lt; Div t-attf-class = "oe_kanban_color _ # {kanban_getcolor (record. color.raw_value)} oe_kanban_card oe_kanban_global_click oe_semantic_html_override" & gt; & Lt; Div class = "oe_dropdown_toggle oe_dropdown_kanban" & gt; & Lt; Span class = "oe_e" & gt; I & lt; / Span & gt; & Lt; Ul class = "oe_dropdown_menu" & gt; & Lt; T t-if = "widget.view.is_action_enabled ('delete')" & gt; 
  • li> gt; Remove & gt; Remove & lt; / A & gt; & Lt; / Li & gt; & Lt; / T> & Lt ;! - & lt; Li & gt; & Lt; A name = "action_make meeting" type = "object" & gt; Schedule interviews & lt; / A & gt; & Lt; / Li & gt; - & gt; & Lt; Li & gt; & Lt; Ul class = "oe_kanban_colorpicker" data-field = "color" /> & lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt; & Lt; Div class = "oe_kanban_content" tooltip = "cannon-tooltip" & gt; & Lt; Div & gt; & Lt; T t-if = "record.employee_id.raw_value"> gt; & Lt; B & gt; & Lt; Field name = "employee_id" /> gt; & Lt; / B & gt; & Lt; Br / & gt; & Lt; / T> & Lt; I & gt; & Lt; Field name = "employee_id" /> & lt; / I & gt; & Lt; Br / & gt; & Lt; Field name = "site1" /> & Lt; Br / & gt; & Lt; Area name = "site2" /> gt; & Lt; Br / & gt; & Lt; T t-if = "record.source_location.raw_value" & gt; Source Location: & lt; Field name = "location1" /> & lt; Br / & gt; & Lt; / T> & Lt ;! - & lt; T t-if = "record.title_action.raw_value" & gt; & Lt; Field Name = "Title_Application" /> & Lt; Br / & gt; & Lt; / T> - & gt; & Lt; Area name = "date" /> & Lt; / Div & gt; & Lt; Div class = "oe_kanban_right" & gt; & Lt; Img t-att-src = "kanban_image ('hr.employee', 'image_small', record.employee_id.raw_value)" T-at-title = "record.employee_id.value" width = "24" height = "24" Class = "oe_kanban_avatar" /> & Lt; / Div & gt; & Lt ;! - & lt; Div class = "oe_kanban_footer_left" style = "margin-top: 5px;" & Gt; & Lt; T t-raw = "record.message_summary.raw_value" /> & Lt; Field name = "categ_ids" /> & Lt; / Div & gt; - & gt; & Lt; / Div & gt; & Lt; Div class = "oe_clear" & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / T & gt; & Lt; / Templates & gt; & Lt; / Kanban & gt; & Lt; / Region & gt; & Lt; / Record & gt;

    When I move employees from one site to another, i.e. site 1 to site 2, how can I change my code? What is possible in the Kanban scene?

    You can override the write method Check prices in the site1 field if it exists and changes, whatever you like. Write

      def (self, cr, user, id, wall, reference = none): If 'Site 1' contains: # (Your_model, self). The article (CR, Id, wall, context)    

  • Comments

    Popular posts from this blog

    java - ImportError: No module named py4j.java_gateway -

    python - Receiving "KeyError" after decoding json result from url -

    .net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -