mirror of
https://gitlab.com/sonalarora/tra_backend.git
synced 2026-01-04 23:23:03 +02:00
add 2 mayur modules
This commit is contained in:
74
tradex_backend_2/views/inventory_view.xml
Normal file
74
tradex_backend_2/views/inventory_view.xml
Normal file
@@ -0,0 +1,74 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2015 DevIntelle Consulting Service Pvt.Ltd (<http://www.devintellecs.com>).
|
||||
|
||||
For Module Support : devintelle@gmail.com or Skype : devintelle
|
||||
-->
|
||||
<odoo>
|
||||
<!--form-->
|
||||
<record id="form_backend_inventory_view" model="ir.ui.view">
|
||||
<field name="name">form.backend.inventory.view</field>
|
||||
<field name="model">stock.move.location.lines</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Inventory View Form View">
|
||||
<sheet>
|
||||
<group>
|
||||
<group>
|
||||
<field name="product_id" options="{'no_create': True}"/>
|
||||
<field name="location_id" options="{'no_create': True}"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="qty"/>
|
||||
<field name="uom"/>
|
||||
</group>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!--Tree-->
|
||||
<record id="tree_backend_inventory_view" model="ir.ui.view">
|
||||
<field name="name">tree.backend.inventory.view</field>
|
||||
<field name="model">stock.move.location.lines</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Inventory View Tree View">
|
||||
<field name="product_id"/>
|
||||
<field name="qty"/>
|
||||
<field name="uom"/>
|
||||
<field name="location_id"/>
|
||||
<field name="company_id"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!--search view-->
|
||||
<record id="search_backend_inventory_view" model="ir.ui.view">
|
||||
<field name="name">Inventory View - Search</field>
|
||||
<field name="model">stock.move.location.lines</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Inventory View Search">
|
||||
<field name="product_id"/>
|
||||
<group expand="0" string="Group By">
|
||||
<filter name="location_id" string="Location" context="{'group_by':'location_id'}"/>
|
||||
<filter name="company_id" string="Owner" context="{'group_by':'company_id'}"/>
|
||||
</group>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!--Action-->
|
||||
<record id="action_backend_inventory_view" model="ir.actions.act_window">
|
||||
<field name="name">Inventory View</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">stock.move.location.lines</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
|
||||
<!--Menus-->
|
||||
<menuitem name="Inventory View"
|
||||
id="menu_backend_inventory_view"
|
||||
parent="stock.menu_warehouse_report"
|
||||
action="action_backend_inventory_view"
|
||||
sequence="0"/>
|
||||
</odoo>
|
||||
20
tradex_backend_2/views/sale_order_views.xml
Executable file
20
tradex_backend_2/views/sale_order_views.xml
Executable file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
Copyright (C) 2015 DevIntelle Consulting Service Pvt.Ltd (<http://www.devintellecs.com>).
|
||||
|
||||
For Module Support : devintelle@gmail.com or Skype : devintelle
|
||||
-->
|
||||
<odoo>
|
||||
<record id="view_odoo_sale_order_inherit_form" model="ir.ui.view">
|
||||
<field name="name">view.odoo.sale.order.inherit.form</field>
|
||||
<field name="model">sale.order</field>
|
||||
<field name="inherit_id" ref="sale.view_order_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='order_line']//tree//field[@name='company_id']" position="after">
|
||||
<button name="%(tradex_backend_2.action_stock_location_quantity)d" string="location" type="action" icon="fa-list" width="0.1" context="{'default_product_id':product_id}"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
</odoo>
|
||||
49
tradex_backend_2/views/stock_move_views.xml
Executable file
49
tradex_backend_2/views/stock_move_views.xml
Executable file
@@ -0,0 +1,49 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
Copyright (C) 2015 DevIntelle Consulting Service Pvt.Ltd (<http://www.devintellecs.com>).
|
||||
|
||||
For Module Support : devintelle@gmail.com or Skype : devintelle
|
||||
-->
|
||||
<odoo>
|
||||
<record id="view_stock_move_views_inherit_form" model="ir.ui.view">
|
||||
<field name="name">view.stock.move.views.inherit.form</field>
|
||||
<field name="model">stock.move</field>
|
||||
<field name="inherit_id" ref="stock.view_stock_move_operations"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='move_line_ids']" position="after">
|
||||
<field name="move_location_lines" context="{'default_product_id':product_id,'default_uom':product_uom}">
|
||||
<tree editable="bottom">
|
||||
<field name="product_id" readonly="1" force_save="1"/>
|
||||
<field name="qty"/>
|
||||
<field name="uom" readonly="1" force_save="1"/>
|
||||
<field name="location_id"/>
|
||||
<field name="company_id" invisible="1"/>
|
||||
</tree>
|
||||
</field>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_stock_move_location_views_inherit_form" model="ir.ui.view">
|
||||
<field name="name">view.stock.move.location.views.inherit.form</field>
|
||||
<field name="model">stock.move</field>
|
||||
<field name="inherit_id" ref="stock.view_move_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//group[1]" position="after">
|
||||
<group string='Location Products'>
|
||||
<field name="move_location_lines" context="{'default_product_id':product_id,'default_uom':product_uom}" nolabel="1">
|
||||
<tree editable="bottom">
|
||||
<field name="product_id"/>
|
||||
<field name="qty"/>
|
||||
<field name="uom"/>
|
||||
<field name="location_id"/>
|
||||
<field name="company_id" invisible="1"/>
|
||||
</tree>
|
||||
</field>
|
||||
</group>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user