You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

124 lines
5.8 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Action definition for the sale consignment menu-->
<record id="sale_consignment_action" model="ir.actions.act_window">
<field name="name">Consignment</field>
<field name="res_model">sale.consignment</field>
<field name="view_mode">tree,form</field>
</record>
<!--Form view for the sale consignment-->
<record model="ir.ui.view" id="sale_consignment_view_form">
<field name="name">sale.consignment.view.form</field>
<field name="model">sale.consignment</field>
<field name="arch" type="xml">
<form string="Consignment">
<header>
<field name="state" widget="statusbar"/>
<button name="action_order_confirm" string="Confirm"
type="object" class="btn-primary"
invisible=" state != 'draft'"/>
<button name="create_sale_order" string="Create Sale Order"
type="object" class="btn-primary"
invisible=" state != 'confirm'"/>
</header>
<sheet>
<div class="oe_button_box" name="button_box">
<button name="action_view_order"
invisible="sale_count == 0"
string="Sale order"
type="object"
class="oe_stat_button"
icon="fa-pencil-square-o">
<field name="sale_count" widget="statinfo"
invisible="sale_count == 0"
string=" Sale order"> </field>
</button>
<button name="action_view_pickings"
invisible="picking_count == 0"
string="Pickings"
type="object"
class="oe_stat_button"
icon="fa-pencil-square-o">
<field name="picking_count" widget="statinfo"
invisible="picking_count == 0"
string=" Pickings"> </field>
</button>
</div>
<div class="oe_title">
<h1>
<field name="name" readonly="1"/>
</h1>
</div>
<group>
<group col="4">
<field name="partner_id" domain="condition_check"/>
<field name="user_id"/>
<field name="company_id"/>
<field name="location_id"/>
<field name="customer_domain" invisible="1"/>
<field name="condition_check" invisible="1"/>
</group>
<group col="4">
<field name="date"/>
<field name="price_list_id"/>
<field name="end_date"/>
</group>
</group>
<notebook>
<page string="Order line" name="Order line">
<field name="consignment_line_ids" readonly="state == 'confirm'">
<tree string="Order lines" editable="bottom">
<field name="product_id"
domain="condition_check_line"/>
<field name="demand_quantity"/>
<field name="done_quantity"/>
<field name="remaining_quantity"/>
<field name="condition_check_line"
column_invisible="1"/>
<field name="product_domain"
column_invisible="1"/>
<field name="price"/>
</tree>
</field>
</page>
<page string="Other Info" name="Other Info">
<group>
<field name="location_dest_id"/>
<field name="ware_house_id"/>
</group>
</page>
</notebook>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids" groups="base.group_user"
options="{'post_refresh': 'recipients'}"/>
<field name="activity_ids"/>
<field name="message_ids"/>
</div>
</form>
</field>
</record>
<!--Tree view for sale consignment model-->
<record model="ir.ui.view" id="sale_consignment_view_tree">
<field name="name">sale.consignment.view.tree</field>
<field name="model">sale.consignment</field>
<field name="arch" type="xml">
<tree>
<field name="name"/>
<field name="user_id"/>
<field name="partner_id"/>
<field name="date"/>
<field name="end_date"/>
</tree>
</field>
</record>
<!--Menu for consignment model-->
<menuitem
name="Consignment"
id="sale_consignment_menu"
parent="sale.sale_menu_root"
action="sale_consignment_action"
groups="sale_consignment.group_consignment_order"
sequence="20"/>
</odoo>