Skip to Content
Menu
This question has been flagged

Hi friends,

I want to create a excel file that has data from sales, products and stock 

ex:

| consumer[key] | Country | product | Inventory Units | Sales Units | 


I think I know how to create the file but not sure how to get the information 

I added a button to the action [sales] so the user can filter then select the records 

but not don't know how to get the recored selected into my function


can you please advice on how to do it


<record id="test_report" model="ir.actions.act_window">
  <field name="name">test report</field>
  <field name="type">ir.actions.act_window</field>
  <field name="res_model">test_report.test_sales_inv_pro</field>
  <field name="view_mode">form</field>
  <field name="target">new</field>
  <field name="binding_model_id" ref="sale.model_sale_order" />
  <field name="binding_view_types">list</field>
</record>
class test_sales_inv_pro(models.TransientModel):
    _name = 'test_report.test_sales_inv_pro'


 




Avatar
Discard
Related Posts Replies Views Activity
0
Jan 21
67
0
Sep 23
41
4
Mar 23
15291
2
Jul 22
2453
0
May 22
1139