purchase_add_multiple.xml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="search_barcode_purchase_view">
  5. <field name="name">search.barcode.purchase.form</field>
  6. <field name="model">search.barcode.purchase</field>
  7. <field name="arch" type="xml">
  8. <form string="Add Multiple">
  9. <group>
  10. <field name='product_code' />
  11. </group>
  12. <group>
  13. <field name="products_ids" nolabel='1'>
  14. <tree string="Product Variants">
  15. <field name="factory_reference"/>
  16. <field name="factory_barcode"/>
  17. <field name="product_tmpl_id"/>
  18. <field name="attribute_value_ids" widget="many2many_tags"/>
  19. <!-- <field name="standard_price" string="Precio coste"/> -->
  20. <!-- <field name="price" invisible="not context.get('pricelist',False)"/> -->
  21. <!-- <field name="uom_id"/> -->
  22. </tree>
  23. </field>
  24. </group>
  25. <footer>
  26. <button name="add_multiple" type="object" class="oe_highlight" string="Aceptar"/>
  27. </footer>
  28. </form>
  29. </field>
  30. </record>
  31. <record model="ir.actions.act_window" id="action_purchase_add_multiple">
  32. <field name="name">Purchase Order Add Multiple</field>
  33. <field name="res_model">search.barcode.purchase</field>
  34. <field name="view_type">form</field>
  35. <field name="view_mode">form</field>
  36. <field name="view_id" ref="search_barcode_purchase_view"/>
  37. <field name="target">new</field>
  38. </record>
  39. </data>
  40. </openerp>