2014-04-08 11:39:35 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
|
|
|
|
<!-- Stock Landed Cost Form View -->
|
|
|
|
<record id='view_stock_landed_cost_form' model='ir.ui.view'>
|
|
|
|
<field name="name">stock.landed.cost.form</field>
|
|
|
|
<field name="model">stock.landed.cost</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Landed Costs" version="7.0">
|
|
|
|
<header>
|
|
|
|
<button name="button_validate" string="Validate" states="draft" class="oe_highlight" type="object"/>
|
2014-04-10 10:28:25 +00:00
|
|
|
<field name="state" widget="statusbar" statusbar_visible="draft,open"/>
|
2014-04-08 11:39:35 +00:00
|
|
|
</header>
|
|
|
|
<sheet>
|
|
|
|
<div class="oe_title">
|
|
|
|
<label for="name" class="oe_edit_only"/>
|
|
|
|
<h1>
|
|
|
|
<field name="name" class="oe_inline"/>
|
|
|
|
</h1>
|
|
|
|
</div>
|
|
|
|
<group>
|
|
|
|
<group>
|
|
|
|
<field name="date"/>
|
|
|
|
</group>
|
|
|
|
<group>
|
2014-04-09 09:25:51 +00:00
|
|
|
<field name="picking_ids" widget="many2many_tags" domain="[('state', '=', 'done')]"
|
|
|
|
on_change="onchange_pickings(picking_ids)"/>
|
2014-04-08 11:39:35 +00:00
|
|
|
</group>
|
|
|
|
</group>
|
2014-04-09 09:59:10 +00:00
|
|
|
<group>
|
|
|
|
<separator string="Cost Lines" colspan="4"/>
|
|
|
|
<group>
|
|
|
|
<field name="cost_lines" nolabel="1">
|
2014-04-08 11:39:35 +00:00
|
|
|
<form string="Cost Lines" version="7.0">
|
|
|
|
<group>
|
|
|
|
<group>
|
|
|
|
<field name="product_id"
|
2014-04-10 10:28:25 +00:00
|
|
|
on_change="onchange_product_id(product_id)"/>
|
2014-04-08 11:39:35 +00:00
|
|
|
<field name="price_unit"/>
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<field name="split_method"/>
|
|
|
|
<field name="account_id"/>
|
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
<label for="name"/>
|
|
|
|
<field name="name"/>
|
|
|
|
</form>
|
2014-04-09 09:59:10 +00:00
|
|
|
<tree string="Cost Lines" editable="bottom">
|
2014-04-10 10:28:25 +00:00
|
|
|
<field name="product_id" on_change="onchange_product_id(product_id)"/>
|
2014-04-08 11:39:35 +00:00
|
|
|
<field name="name"/>
|
|
|
|
<field name="account_id"/>
|
|
|
|
<field name="split_method"/>
|
|
|
|
<field name="price_unit"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
2014-04-09 09:59:10 +00:00
|
|
|
</group>
|
|
|
|
</group>
|
2014-04-09 13:11:55 +00:00
|
|
|
<button name="compute_landed_cost" string="Compute" type="object" class="oe_right"/>
|
2014-04-09 09:59:10 +00:00
|
|
|
<group>
|
|
|
|
<separator string="Valuation Adjustments" colspan="4"/>
|
|
|
|
<group>
|
|
|
|
<field name="valuation_adjustment_lines" nolabel="1">
|
2014-04-09 08:52:58 +00:00
|
|
|
<form string="Valuation Adjustments" version="7.0">
|
|
|
|
<group>
|
|
|
|
<group>
|
|
|
|
<field name="product_id"/>
|
|
|
|
<field name="quantity"/>
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<field name="former_cost"/>
|
|
|
|
<field name="additional_landed_cost"/>
|
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
</form>
|
2014-04-09 09:59:10 +00:00
|
|
|
<tree string="Valuation Adjustments" editable="bottom">
|
2014-04-09 08:52:58 +00:00
|
|
|
<field name="product_id"/>
|
|
|
|
<field name="quantity"/>
|
2014-04-11 04:46:08 +00:00
|
|
|
<field name="weight"/>
|
|
|
|
<field name="volume"/>
|
2014-04-11 09:39:57 +00:00
|
|
|
<field name="cost_line_id"/>
|
2014-04-11 12:54:30 +00:00
|
|
|
<field name="account_move_id"/>
|
2014-04-09 08:52:58 +00:00
|
|
|
<field name="former_cost"/>
|
2014-04-10 05:49:01 +00:00
|
|
|
<field name="former_cost_per_unit"/>
|
2014-04-09 08:52:58 +00:00
|
|
|
<field name="additional_landed_cost"/>
|
|
|
|
<field name="final_cost"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
2014-04-09 09:59:10 +00:00
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
<group class="oe_subtotal_footer oe_right">
|
|
|
|
<field name="amount_total"/>
|
|
|
|
</group>
|
2014-04-08 11:39:35 +00:00
|
|
|
<div class="oe_clear">
|
|
|
|
<label for="description"/>
|
|
|
|
</div>
|
|
|
|
<field name="description" class="oe_inline" placeholder="Additional note..."/>
|
|
|
|
</sheet>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- Stock Landed Cost Tree View -->
|
|
|
|
<record id='view_stock_landed_cost_tree' model='ir.ui.view'>
|
|
|
|
<field name="name">stock.landed.cost.tree</field>
|
|
|
|
<field name="model">stock.landed.cost</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Landed Costs">
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="date"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2014-04-08 12:00:33 +00:00
|
|
|
<!-- Stock Landed Cost Search View -->
|
|
|
|
<record id="view_stock_landed_cost_search" model="ir.ui.view">
|
|
|
|
<field name="name">stock.landed.cost.search</field>
|
|
|
|
<field name="model">stock.landed.cost</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Landed Costs">
|
|
|
|
<field name="name" string="Name"/>
|
|
|
|
<field name="date"/>
|
|
|
|
<separator/>
|
|
|
|
<filter string="Draft" name="draft" domain="[('state','=','draft')]"/>
|
|
|
|
<filter string="Open" name="open" domain="[('state','=','open')]"/>
|
|
|
|
<group expand="0" string="Group By...">
|
|
|
|
<filter string="Month" context="{'group_by': 'date'}"/>
|
|
|
|
<filter string="Status" context="{'group_by': 'state'}"/>
|
|
|
|
</group>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2014-04-08 11:39:35 +00:00
|
|
|
<!-- Stock Landed Cost Action -->
|
|
|
|
<record id='action_stock_landed_cost' model='ir.actions.act_window'>
|
|
|
|
<field name="name">Landed Costs</field>
|
|
|
|
<field name="res_model">stock.landed.cost</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
<field name="context">{}</field>
|
|
|
|
<field name="help" type="html">
|
|
|
|
<p class="oe_view_nocontent_create">
|
|
|
|
Click to create a new landed cost.
|
|
|
|
</p>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- Stock Landed Cost Menu -->
|
2014-04-10 10:28:25 +00:00
|
|
|
<menuitem name="Landed Costs" parent="stock.menu_stock_root" id="menu_stock_landed_cost_main" sequence="1"/>
|
2014-04-08 11:39:35 +00:00
|
|
|
<menuitem action="action_stock_landed_cost" name="Landed Costs" parent="menu_stock_landed_cost_main" id="menu_stock_landed_cost" sequence="1"/>
|
|
|
|
|
|
|
|
</data>
|
|
|
|
</openerp>
|