odoo/addons/esale_osc/esale_osc_view.xml

204 lines
8.8 KiB
XML

<?xml version="1.0"?>
<terp>
<data>
<menuitem name="Sales Management/Internet Sales" id="menu_esale_osc_root"/>
<record model="ir.ui.view" id="view_esale_osc_form">
<field name="name">esale_osc.web.form</field>
<field name="model">esale_osc.web</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="esale_osc Web Shop">
<notebook>
<page string="General Informations">
<separator string="esale_osc Shop Info" colspan="4"/>
<field name="name" select="1" colspan="3"/>
<field name="url" widget="url" required="1"/>
<field name="active" select="1"/>
<field name="shop_id" select="1" required="1"/>
<field name="partner_anonymous_id" required="1"/>
<label string="Proceed with the mappings BEFORE the definitions of the active products!!" colspan="4"/>
<separator string="Active Products" colspan="4"/>
<button name="add_all_products" string="Add all products" type="object"/>
<field name="product_ids" colspan="4" view="esale_osc.product.web.form" widget="one2many_list" />
</page>
<page string="Taxes Mapping">
<button type="object" string="Import Taxes" name="tax_import"/>
<field colspan="4" name="tax_ids" widget="one2many_list" view="esale_osc.tax.web.form"/>
</page>
<page string="Languages Mapping">
<button type="object" string="Import Languages" name="lang_import"/>
<field colspan="4" name="language_ids" widget="one2many_list" view="esale_osc.language.web.form"/>
</page>
<page string="Categories Mapping">
<button type="object" string="Import categories" name="category_import"/>
<field colspan="4" name="category_ids" widget="one2many_list" view="esale_osc.category.web.form"/>
</page>
</notebook>
</form>
</field>
</record>
<record model="ir.actions.act_window" id="action_esale_osc_form">
<field name="name">esale_osc.web</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">esale_osc.web</field>
<field name="view_type">form</field>
<field name="view_id" ref="view_esale_osc_form"/>
</record>
<menuitem name="Sales Management/Internet Sales/Websites" id="menu_action_esale_osc_web" action="action_esale_osc_form" groups="admin"/>
<record model="ir.ui.view" id="esale_osc_language_web_form">
<field name="name">esale_osc.language.web.form</field>
<field name="model">esale_osc.lang</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Language">
<separator colspan="4" string="Language mapping"/>
<field colspan="4" name="name" select="1" required="1"/>
<field name="language_id" select="1"/>
<field name="esale_osc_id" readonly="1" select="1"/>
</form>
</field>
</record>
<record model="ir.ui.view" id="esale_osc_tax_web_form">
<field name="name">esale_osc.tax.web.form</field>
<field name="model">esale_osc.tax</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Taxes">
<separator colspan="4" string="Taxes mapping"/>
<field colspan="4" name="name" select="1" required="1"/>
<field name="tax_id" select="1"/>
<field name="esale_osc_id" readonly="1" select="1"/>
</form>
</field>
</record>
<record model="ir.ui.view" id="esale_osc_category_web_form">
<field name="name">esale_osc.category.web.form</field>
<field name="model">esale_osc.category</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Categories">
<separator colspan="4" string="taxes"/>
<field name="name" select="1" colspan="4" required="1"/>
<field name="category_id" select="1"/>
<field name="esale_osc_id" select="1" readonly="1"/>
</form>
</field>
</record>
<record model="ir.ui.view" id="esale_osc_product_web_form">
<field name="name">esale_osc.product.web.form</field>
<field name="model">esale_osc.product</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Product">
<separator colspan="4" string="Product Information"/>
<field name="name" colspan="4" select="1" required="1"/>
<field name="product_id" on_change="onchange_product_id(product_id, web_id)" select="1" required="1"/>
<field name="esale_osc_id" readonly="1" select="1"/>
</form>
</field>
</record>
<record model="ir.ui.view" id="esale_osc_saleorder_tree">
<field name="name">esale_osc.saleorder.tree</field>
<field name="model">sale.order</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Sales Orders">
<field name="name"/>
<field name="shipped"/>
<field name="esale_osc_id"/>
<field name="esale_osc_web"/>
<field name="invoiced"/>
<field name="date_order"/>
<field name="partner_id"/>
<field name="partner_shipping_id"/>
<field name="amount_untaxed"/>
</tree>
</field>
</record>
<record model="ir.ui.view" id="esale_osc_saleorder_form">
<field name="name">esale_osc.saleorder.form</field>
<field name="model">sale.order</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Sales Order">
<notebook>
<page string="Order Line">
<field name="name" select="1"/>
<group col="4" colspan="2">
<field name="shipped" select="1"/>
<field name="invoiced" select="1"/>
</group>
<newline/>
<field name="esale_osc_id" select="1"/>
<field name="esale_osc_web" on_change="onchange_esale_osc_web(esale_osc_web)" select="1"/>
<field name="date_order" select="1"/>
<field name="shop_id" on_change="onchange_shop_id(shop_id)" select="1"/>
<field name="partner_id" on_change="onchange_partner_id(partner_id)" required="1" select="1"/>
<field domain="[('partner_id','=',partner_id)]" name="partner_order_id"/>
<field domain="[('partner_id','=',partner_id)]" name="partner_invoice_id"/>
<field domain="[('partner_id','=',partner_id)]" name="partner_shipping_id"/>
<field domain="[('type','=','sale')]" name="pricelist_id"/>
<field name="project_id" select="1"/>
<newline/>
<field colspan="4" name="order_line" nolabel="1" widget="one2many_list"/>
<newline/>
<group col="7" colspan="4">
<field name="amount_untaxed"/>
<field name="amount_tax"/>
<field name="amount_total"/>
<button name="button_dummy" states="draft" string="Compute" type="object"/>
</group>
<group col="13" colspan="4">
<field name="state" select="1"/>
<button name="order_confirm" states="draft" string="Confirm Order"/>
<button name="osc_action_cancel" states="manual,progress" string="Cancel Order" type="object"/>
<button name="cancel" states="draft" string="Cancel Order"/>
<button name="invoice_cancel" states="invoice_except" string="Cancel Order"/>
<button name="invoice_recreate" states="invoice_except" string="Recreate Invoice"/>
<button name="invoice_corrected" states="invoice_except" string="Invoice Corrected"/>
<button name="ship_cancel" states="shipping_except" string="Cancel Order"/>
<button name="ship_recreate" states="shipping_except" string="Recreate Procurement"/>
<button name="ship_corrected" states="shipping_except" string="Procurement Corrected"/>
<button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object"/>
<button name="manual_invoice" states="manual" string="Create Invoice"/>
</group>
</page>
<page string="Other data">
<field name="incoterm"/>
<field name="picking_policy" required="True"/>
<field name="user_id"/>
<field name="order_policy"/>
<field name="origin"/>
<field name="invoice_quantity"/>
<field name="client_order_ref"/>
<separator colspan="4" string="Notes"/>
<field colspan="4" name="note" nolabel="1"/>
</page>
<page string="History">
<separator colspan="4" string="Generated Invoices"/>
<field colspan="4" name="invoice_ids" nolabel="1"/>
<separator colspan="4" string="Generated Pickings"/>
<field colspan="4" name="picking_ids" nolabel="1"/>
</page>
</notebook>
</form>
</field>
</record>
<record model="ir.actions.act_window" id="action_saleorder_form">
<field name="name">esale_osc.saleorder</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">sale.order</field>
<field name="view_type">form</field>
<field name="view_id" ref="esale_osc_saleorder_form"/>
<field name="domain">[('esale_osc_id','!=', 0)]</field>
</record>
<menuitem name="Sales Management/Internet Sales/Sale orders" id="menu_action_esale_osc_saleorder" action="action_saleorder_form" groups="admin"/>
</data>
</terp>