Skip to Content
Menu
This question has been flagged

In Odoo 10 POS,i have created a Popup window , Data displayed from model "stock.production.lot" in Grid.

Model Called like below code using "web_client.do_action" 


display_lot_popup: function() {

var order_line = this.get_selected_orderline();

 if (order_line){ var pack_lot_lines = order_line.compute_lot_lines();

var product = this.get_selected_orderline().product;

web_client.do_action({ name: _t("Select serial number for:" + product.display_name),

type: "ir.actions.act_window",

res_model: "stock.production.lot",

views: [[false, "list"],[false, "tree"]],

target: 'new',

flags:{ action_buttons:true, search_view:true, list: {'selectable': true} },

domain: [['product_id','=',product.id]], }); }

},


I can list the data from model. 

I have selected a row and want to do the save action :

<button accesskey="s" class="btn btn-primary btn-sm o_list_button_save" type="button"> Save </button>


$(".o_list_button_save").click(function () {

alert('test') });


But click doesn't work .

Avatar
Discard
Related Posts Replies Views Activity
2
Jun 23
40696
1
Sep 21
7558
1
Jul 19
8342
3
Jul 17
15459
1
Jun 23
2272