Skip to Content
Menu
This question has been flagged
2 Replies
7300 Views

<!--<?xml version="1.0" encoding="utf-8"?>-->

<openerp>

<data>

<record model = "ir.ui.view" id = "order_data">

<field name = 'date'>Order Date</field>

<field name = 'customer'>Customer</field>

<field name = 'product'>Product</field>

<field name = 'quantity'>Order Quantity</field>

<field name = 'deliverydate'>Delivery Date</field>

<field name = 'supplier'>Supplier</field>

<field name = 'vehiclenum'>Vehicle Number</field>

<field name = 'drivername'>Driver Name</field>

<field name = 'drivernum'>Driver Number</field>

<field name = 'deliveredquantity'>Delivered Quantity</field>

<field name = 'deliverylocation'>Delievery Location</field>

<field name = 'takinglocation'>Shipment From</field>

<field name = 'saleprice'>Sale Price</field>

<field name = 'Costprice'>Cost Price</field>

<field name = "model">oil.ordertaking</field>

<field name = "arch" type="xml">

<form string = "Oil Order Taking">

<sheet>

<group>

<field name= 'date' string="Order Date" />

<field name = 'customer' string="Customer"/>

<field name = 'product' string="Product"/>

<field name = 'quantity' string="Order Quantity"/>

<field name = 'deliverydate' string="Delivery Date"/>

<field name = 'supplier' string="Supplier"/>

<field name = 'vehiclenum' string="Vehicle Number"/>

<field name = 'drivername' string="Driver Name"/>

<field name = 'drivernum' string="Driver Number" />

<field name = 'deliveredquantity' string="Delivered Quantity"/>

<field name = 'deliverylocation' string="Delievery Location"/>

<field name = 'saleprice' string="Sale Price"/>

<field name = 'takinglocation' string="Shipment From"/>

<field name = 'Costprice' string="Cost Price"/>

</group>

</sheet>

</form>

</field>

</record>

<record model=s"ir.actions.act_window" id="order_data">

<field name='customer'>Order Date</field>

<field name='customer'>Customer</field>

<field name='product'>Product</field>

<field name='quantity'>Order Quantity</field>

<field name='customer'>Delivery Date</field>

<field name='supplier'>Supplier</field>

<field name='vehiclenum'>Vehicle Number</field>

<field name='drivername'>Driver Name</field>

<field name='drivernum'>Driver Number</field>

<field name='deliveredquantity'>Delivered Quantity</field>

<field name='deliverylocation'>Delievery Location</field>

<field name='takinglocation'>Shipment From</field>

<field name='saleprice'>Sale Price</field>

<field name='Costprice'>Cost Price</field>

<field name='res_model'>oil.ordertaking</field>

<field name='view_type'>form</field>

<field name='view_mode'>form</field>

</record>-->

<menuitem id="oil_main_head" action="order_data" name="Oil Kinetics Sale Order" sequence="10"/>

</data>

</openerp> 

Avatar
Discard

thank you Akhil 

Best Answer

Hi,

The syntax of your view definition is completely wrong. You may check the Odoo tutorial or refer some addons view definition in the xml files.

Here, you may change the code like following & check:

 <openerp>
     <data>
         <record model ="ir.ui.view" id="order_data_form_view">
<field name="name">order.data.form.view</field>
<field name ="model">oil.ordertaking</field>
<field name ="arch" type="xml">
<form string = "Oil Order Taking">
<sheet>
<group>
<field name= 'date' string="Order Date" />
<field name = 'customer' string="Customer"/>
<field name = 'product' string="Product"/>
<field name = 'quantity' string="Order Quantity"/>
<field name = 'deliverydate' string="Delivery Date"/>
<field name = 'supplier' string="Supplier"/>
<field name = 'vehiclenum' string="Vehicle Number"/>
<field name = 'drivername' string="Driver Name"/>
<field name = 'drivernum' string="Driver Number" />
<field name = 'deliveredquantity' string="Delivered Quantity"/>
<field name = 'deliverylocation' string="Delievery Location"/>
<field name = 'saleprice' string="Sale Price"/>
<field name = 'takinglocation' string="Shipment From"/>
<field name = 'Costprice' string="Cost Price"/>
</group>
</sheet>
</form>
</field>
</record>
<record model="ir.actions.act_window" id="order_data">
<field name="name">Order Details</field>
<field name="type">ir.actions.act_window</field>
<field name='res_model'>oil.ordertaking</field>
<field name='view_type'>form</field>
<field name='view_mode'>form</field>
</record>

<menuitem id="oil_main_head" action="order_data" name="Oil Kinetics Sale Order" sequence="10"/>
     
     </data>
</openerp>

Hope this helps

Avatar
Discard
Related Posts Replies Views Activity
2
Sep 18
2282
1
Apr 16
6641
1
Mar 16
2738
1
Dec 15
4027
0
Oct 17
2226