[IMP] improved form views

bzr revid: fp@tinyerp.com-20120608183518-7sllx2v50vsx3ohm
This commit is contained in:
Fabien Pinckaers 2012-06-08 20:35:18 +02:00
parent 4a80610352
commit 7c8e38b179
24 changed files with 539 additions and 582 deletions

View File

@ -16,24 +16,28 @@
<field name="model">pos.order</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form layout="manual">
<form string="PoS Orders">
<header>
<button name="%(action_pos_payment)d" string="Payment" type="action" states="draft"/>
<button name="%(action_report_pos_receipt)d" string="Reprint" type="action" states="paid,done,invoiced"/>
<button name="action_invoice" string="Invoice" icon="gtk-apply" type="object" states="paid" attrs="{'readonly': [('partner_id','=',False)]}"/>
<button name="done" string="Post Entries" icon="gtk-apply" type="workflow" states="paid"/>
<button name="refund" string="Return Products" type="object"
attrs="{'invisible':[('state','=','draft')]}"/>
<field name="state" widget="statusbar" statusbar_visible="draft,paid,done" statusbar_colors='{"cancel":"red"}'/>
</header>
<sheet string="PoS Orders" layout="auto">
<group col="7" colspan="4" class="oe_form_header">
<sheet>
<group>
<group>
<field name="partner_id" on_change="onchange_partner_id(partner_id)" context="{'search_default_customer':1}" attrs="{'readonly': [('state','=','invoiced')]}"/>
</group><group>
<field name="name"/>
<field name="date_order"/>
<field name="partner_id" on_change="onchange_partner_id(partner_id)" context="{'search_default_customer':1}" attrs="{'readonly': [('state','=','invoiced')]}"/>
<button name="action_invoice" string="Invoice" icon="gtk-apply" type="object" states="paid" attrs="{'readonly': [('partner_id','=',False)]}"/>
</group>
<notebook colspan="4">
</group>
<notebook>
<page string="Sale Order">
<field name="lines" colspan="4" nolabel="1">
<field name="lines">
<tree string="Order lines" editable="bottom">
<field name="product_id" on_change="onchange_product_id(parent.pricelist_id,product_id,qty,parent.partner_id)"/>
<field name="qty" on_change="onchange_qty(product_id, discount, qty, price_unit, context)"/>
@ -43,6 +47,7 @@
<field name="price_subtotal_incl"/>
</tree>
<form string="Order lines">
<group col="4">
<field name="product_id" on_change="onchange_product_id(parent.pricelist_id,product_id,qty,parent.partner_id)"/>
<field name="qty" on_change="onchange_qty(product_id, discount, qty, price_unit, context)"/>
<field name="discount" on_change="onchange_qty(product_id, discount, qty, price_unit, context)"/>
@ -50,52 +55,51 @@
<field name="price_subtotal" invisible="1"/>
<field name="price_subtotal_incl" invisible="1"/>
<field name="notice"/>
</group>
</form>
</field>
<group colspan="4" col="7">
<div class="oe_form_subtotal_footer">
<field name="amount_tax"/>
<field name="amount_total"/>
<button name="button_dummy" string="Update" icon="gtk-execute" states="draft" />
<button name="%(action_pos_discount)d" string="Discount" icon="gtk-remove" type="action" states="draft" />
</group>
</div>
</page>
<page string="Payment">
<field name="statement_ids" colspan="4" nolabel="1">
<field name="statement_ids">
<tree editable="bottom" string="Statement lines">
<field name="journal_id"/>
<field name="statement_id" />
<field name="amount"/>
</tree>
<form string="Statement lines">
<group col="4">
<field name="account_id"/>
<field name="amount"/>
<field name="statement_id" domain="[('company_id','=',parent.company_id),('state','=','open')]"/>
</group>
</form>
</field>
</page>
<page string="Extra Info">
<group colspan="2" col="2">
<separator string="General Information" colspan="2"/>
<group string="General Information">
<field name="company_id" groups="base.group_multi_company"/>
<field name="shop_id" widget="selection"/>
<field name="user_id"/>
<field name="pricelist_id" groups="product.group_sale_pricelist" domain="[('type','=','sale')]"/>
<field name="picking_id" readonly="1"/>
</group>
<group colspan="2" col="3">
<separator string="Accounting Information" colspan="3"/>
<group string="Accounting Information">
<field name="sale_journal" domain="[('type','=','sale')]"/>
<button name="done" string="Post Entries" icon="gtk-apply" type="workflow" states="paid"/>
<field name="invoice_id" colspan="2" readonly="1"
<field name="invoice_id" readonly="1"
attrs="{'invisible':[('state','&lt;&gt;','invoiced')]}"/>
<button name="%(pos_invoice_report)d" string="Re-Print"
icon="gtk-print" type="action" attrs="{'invisible':[('state','&lt;&gt;','invoiced')]}"/>
<field name="account_move" colspan="3" readonly="1"
<field name="account_move" readonly="1"
attrs="{'invisible':[('state','&lt;&gt;','done')]}"/>
</group>
</page>
<page string="Notes" >
<field colspan="4" name="note" nolabel="1"/>
<field name="note"/>
</page>
</notebook>
</sheet>
@ -201,11 +205,13 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="POS Order line">
<group col="4">
<field name="product_id" />
<field name="qty" />
<field name="discount" />
<field name="price_unit" />
<field name="create_date" />
</group>
</form>
</field>
</record>
@ -248,6 +254,7 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="POS ">
<group col="4">
<field name="user_id"/>
<field name="journal_id"/>
<field name="jl_id"/>
@ -255,6 +262,7 @@
<field name="no_trans"/>
<field name="amount"/>
<field name="invoice_id"/>
<group>
</form>
</field>
</record>
@ -339,10 +347,12 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="POS ">
<grouop col="4">
<field name="date_order" widget="date"/>
<field name="qty"/>
<field name="amount"/>
<field name="user_id"/>
</group>
</form>
</field>
</record>
@ -405,10 +415,12 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="POS ">
<group col="4">
<field name="date_order" widget="date"/>
<field name="qty"/>
<field name="amount"/>
<field name="user_id"/>
</group>
</form>
</field>
</record>
@ -471,12 +483,14 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="POS ">
<group col="4">
<field name="user_id"/>
<field name="product_name"/>
<field name="date_order" widget="date"/>
<field name="qty"/>
<field name="net_margin_per_qty"/>
<field name="total"/>
</group>
</form>
</field>
</record>
@ -538,12 +552,14 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="POS ">
<group col="4">
<field name="user_id"/>
<field name="product_name"/>
<field name="date_order" widget="date"/>
<field name="qty"/>
<field name="net_margin_per_qty"/>
<field name="total"/>
</group>
</form>
</field>
</record>
@ -606,8 +622,7 @@
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="arch" type="xml">
<group name="status" position="after">
<group colspan="2" col="2" name="pos">
<separator string="Point of Sale" colspan="2"/>
<group name="pos" string="Point of Sale">
<field name="pos_categ_id"/>
</group>
</group>
@ -636,7 +651,7 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="PoS Categories">
<group colspan="4" col="6">
<group col="4">
<field name="name"/>
<field name="parent_id"/>
<field name="sequence"/>

View File

@ -9,18 +9,16 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Put Money">
<separator string="Fill in this form if you put money in the cash register:" colspan="4"/>
<header>
<button name="get_in" string="Put Money" type="object" icon="gtk-apply" />
<button icon="gtk-stop" special="cancel" string="Cancel" />
</header>
<separator string="Fill in this form if you put money in the cash register:"/>
<group col="4">
<field name="name"/>
<field name="product_id"/>
<field name="journal_id"/>
<field name="amount"/>
<separator colspan="4"/>
<group colspan="4" col="4">
<group col="2" colspan="2"/>
<button icon="gtk-stop" special="cancel"
string="Cancel" />
<button name="get_in" string="Put Money"
colspan="1" type="object" icon="gtk-apply" />
</group>
</form>
</field>

View File

@ -9,18 +9,15 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Output Operation">
<separator string="Describe why you take money from the cash register:" colspan="4"/>
<header>
<button name="get_out" string="Take Money" type="object" icon="gtk-apply" />
<button icon="gtk-stop" special="cancel" string="Cancel" />
</header>
<group col="4" string="Describe why you take money from the cash register:">
<field name="name"/>
<field name="product_id"/>
<field name="journal_id"/>
<field name="amount"/>
<separator colspan="4"/>
<group colspan="4" col="4">
<group col="2" colspan="2"/>
<button icon="gtk-stop" special="cancel"
string="Cancel" />
<button name="get_out" string="Take Money"
colspan="1" type="object" icon="gtk-apply" />
</group>
</form>
</field>

View File

@ -9,18 +9,16 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Close Cash Registers">
<separator colspan="4" string="Do you want to close your cash registers?"/>
<label string="OpenERP will close all cash registers he can close automatically without validation. He will also open all cash registers for which you have to control the ending balance before closing manually."/>
<separator colspan="4"/>
<group col="4" colspan="4">
<group col="2" colspan="2"/>
<header>
<button name="close_statement" string="Yes"
type="object" icon="gtk-ok"/>
<button icon='gtk-stop' special="cancel"
string="No" invisible="context.get('cancel_action')"/>
<button icon='gtk-stop' type="object" name="cancel_wizard"
string="No" invisible="not context.get('cancel_action')"/>
<button name="close_statement" string="Yes"
type="object" icon="gtk-ok"/>
</group>
</header>
<separator string="Do you want to close your cash registers?"/>
<label string="OpenERP will close all cash registers he can close automatically without validation. He will also open all cash registers for which you have to control the ending balance before closing manually."/>
</form>
</field>
</record>

View File

@ -8,18 +8,12 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Post All Orders">
<separator string="Generate Journal Entries" colspan="4"/>
<label string="Generate all sale journal entries for non invoiced orders linked to a closed cash register or statement." colspan="4" align="0.0"/>
<newline/>
<separator colspan="4"/>
<group colspan="4" col="4">
<group colspan="2" col="2">
<button icon='gtk-cancel' special="cancel"
string="Cancel" />
<button name="action_confirm" string="Generate Entries"
colspan="1" type="object" icon="gtk-ok"/>
</group>
</group>
<header>
<button name="action_confirm" string="Generate Entries" type="object" icon="gtk-ok"/>
<button icon='gtk-cancel' special="cancel" string="Cancel" />
</header>
<separator string="Generate Journal Entries"/>
<label string="Generate all sale journal entries for non invoiced orders linked to a closed cash register or statement."/>
</form>
</field>
</record>

View File

@ -9,21 +9,17 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="POS Details">
<group col="4" colspan="4">
<separator string="Dates" colspan="4"/>
<field name="date_start"/>
<field name="date_end"/>
<separator string="User" colspan="4"/>
<field name="user_ids" nolabel="1" colspan="4"/>
<separator string="" colspan="4"/>
<label string="" colspan="2"/>
<group colspan="2" col="2">
<header>
<button icon='gtk-cancel' special="cancel"
string="Close" />
<button name="print_report" string="Print Report"
colspan="1" type="object" icon="gtk-print" />
</header>
<group col="4" string="Dates">
<field name="date_start"/>
<field name="date_end"/>
</group>
</group>
<field name="user_ids"/>
</form>
</field>
</record>

View File

@ -9,13 +9,11 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Apply Discount">
<field name="discount" colspan="4"/>
<separator colspan="4" string=""/>
<group colspan="2"/>
<button icon='gtk-cancel' special="cancel"
string="Close" />
<button name="apply_discount" string="Apply Discount"
colspan="1" type="object" icon="gtk-ok" />
<header>
<button icon='gtk-cancel' special="cancel" string="Close" />
<button name="apply_discount" string="Apply Discount" type="object" icon="gtk-ok" />
</header>
<field name="discount"/>
</form>
</field>
</record>

View File

@ -9,15 +9,13 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Open Statements">
<separator colspan="4" string="Do you want to open cash registers?"/>
<label string="The system will open all cash registers, so that you can start recording payments. We suggest you to control the opening balance of each register, using their CashBox tab." colspan="4" align="0.0"/>
<separator colspan="4"/>
<group col="4" colspan="4">
<group col="2" colspan="2"/>
<button icon='gtk-stop' special="cancel" string="Cancel"/>
<header>
<button name="open_statement" string="Open Registers"
type="object" icon="gtk-ok"/>
</group>
<button icon='gtk-stop' special="cancel" string="Cancel"/>
</header>
<separator string="Do you want to open cash registers?"/>
<label string="The system will open all cash registers, so that you can start recording payments. We suggest you to control the opening balance of each register, using their CashBox tab."/>
</form>
</field>
</record>

View File

@ -8,20 +8,15 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Add payment :">
<group colspan="4" col="4" >
<group colspan="4">
<header>
<button name="check" string="Make Payment" colspan="1" type="object" icon="gtk-apply"/>
<button icon="gtk-stop" special="cancel" string="Cancel"/>
</header>
<group col="4">
<field name="journal"/>
<field name="amount" />
<field name="payment_name"/>
</group>
<newline/>
<separator colspan="4"/>
<group colspan="2"/>
<group colspan="2">
<button icon="gtk-stop" special="cancel" string="Cancel"/>
<button name="check" string="Make Payment" colspan="1" type="object" icon="gtk-apply"/>
</group>
</group>
</form>
</field>
</record>

View File

@ -9,12 +9,8 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Payment Report">
<group col="2" colspan="4">
<button icon='gtk-cancel' special="cancel"
string="Close" />
<button name="print_report" string="Print Report"
colspan="1" type="object" icon="gtk-print" />
</group>
<button name="print_report" string="Print Report" type="object" icon="gtk-print" />
<button icon='gtk-cancel' special="cancel" string="Close" />
</form>
</field>
</record>

View File

@ -9,12 +9,10 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Pyament Report ">
<group col="2" colspan="4">
<button icon='gtk-cancel' special="cancel"
string="Close" />
<button name="print_report" string="Print Report"
colspan="1" type="object" icon="gtk-print" />
</group>
<header>
<button name="print_report" string="Print Report" type="object" icon="gtk-print" />
<button icon='gtk-cancel' special="cancel" string="Close" />
</header>
</form>
</field>
</record>

View File

@ -7,11 +7,13 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Sale by User">
<group col="2" colspan="4">
<field name="user_id"/>
<button icon='gtk-cancel' special="cancel" string="Close" />
<header>
<button name="print_report" string="Print Report" colspan="1" type="object" icon="gtk-print" />
</group >
<button icon='gtk-cancel' special="cancel" string="Close" />
</header>
<group>
<field name="user_id"/>
</group>
</form>
</field>
</record>

View File

@ -10,11 +10,11 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Receipt :">
<separator string="Print the Receipt of the Sale" colspan="4"/>
<button icon='gtk-cancel' special="cancel"
string="Cancel" />
<button name="print_report" string="Print Receipt"
colspan="1" type="object" icon="gtk-print" />
<header>
<button icon='gtk-cancel' special="cancel" string="Cancel" />
<button name="print_report" string="Print Receipt" type="object" icon="gtk-print" />
</header>
<label string="Print the Receipt of the Sale"/>
</form>
</field>
</record>

View File

@ -7,8 +7,8 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Return lines">
<button icon='gtk-cancel' special="cancel" string="Cancel" />
<button icon='gtk-ok' name= "create_returns" string="Return Products" type="object"/>
<button icon='gtk-cancel' special="cancel" string="Cancel" />
</form>
</field>
</record>
@ -40,9 +40,11 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form>
<group col="4">
<field name="product_id" />
<field name="quantity" />
<field name="line_id" invisible="1"/>
</group>
</form>
</field>
</record>

View File

@ -9,14 +9,16 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Sale By User">
<group col="2" colspan="4">
<field name="date_start"/>
<field name="date_end"/>
<field name="user_id"/>
<header>
<button icon='gtk-cancel' special="cancel"
string="Close" />
<button name="print_report" string="Print Report"
colspan="1" type="object" icon="gtk-ok" />
type="object" icon="gtk-ok" />
</header>
<group col="4">
<field name="date_start"/>
<field name="date_end"/>
<field name="user_id"/>
</group>
</form>
</field>

View File

@ -17,21 +17,17 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Add Portal Access">
<field name="portal_id" widget="selection"/>
<newline/>
<notebook colspan="4">
<page string="Users">
<field name="user_ids" nolabel="1" colspan="4"/>
</page>
<page string="Invitation message">
<label string="The following text will be included in the welcome email sent to users."/>
<field name="message" nolabel="1" colspan="4"/>
</page>
</notebook>
<label colspan="2"/>
<header>
<button string="Cancel" special="cancel" icon="gtk-cancel"/>
<button string="Send Invitations"
name="action_create" type="object" icon="gtk-ok"/>
</header>
<group col="4">
<field name="portal_id" widget="selection"/>
</group>
<field name="user_ids"/>
<label string="The following text will be included in the welcome email sent to users."/>
<field name="message"/>
</form>
</field>
</record>

View File

@ -14,7 +14,7 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Process">
<group colspan="4" col="6">
<group col="4">
<field name="name"/>
<field name="model_id"/>
<field name="active"/>
@ -159,19 +159,17 @@
<field name="flow_start"/>
<field name="kind" select="1"/>
<field name="subflow_id" attrs="{'invisible':[('kind','!=','subflow')]}"/>
</group>
<notebook colspan="4">
<notebook>
<page string="Properties">
<group colspan="4" col="6">
<field name="model_id" select="1"/>
<group col="4">
<field name="model_id"/>
<field name="menu_id"/>
<field name="help_url" widget="url"/>
</group>
<separator string="Conditions" colspan="4"/>
<field name="model_states"/>
<field name="condition_ids" nolabel="1" colspan="4">
<tree string="Other Conditions" editable="top">
</group>
<field name="condition_ids">
<tree string="Other Conditions" editable="bottom">
<field name="name"/>
<field name="model_id"/>
<field name="model_states"/>
@ -179,27 +177,21 @@
</field>
</page>
<page string="Transitions">
<group colspan="4" col="4">
<group colspan="2" col="2">
<field name="transition_in" nolabel="1" height="400">
<tree string="Incoming Transitions">
<field name="name"/>
<field name="source_node_id"/>
</tree>
</field>
</group>
<group colspan="2" col="2">
<field name="transition_out" nolabel="1" height="400">
<tree string="Outgoing Transitions">
<field name="name"/>
<field name="target_node_id"/>
</tree>
</field>
</group>
</group>
</page>
<page string="Notes">
<field name="note" nolabel="1" colspan="4"/>
<field name="note"/>
</page>
</notebook>
</form>
@ -260,35 +252,36 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Process Transition">
<group col="6" colspan="4">
<field name="name" select="1"/>
<field name="source_node_id" select="1"/>
<field name="target_node_id" select="1"/>
<group col="4">
<field name="name"/>
<field name="source_node_id"/>
<field name="target_node_id"/>
</group>
<notebook colspan="4">
<notebook>
<page string="Actions">
<field name="action_ids" nolabel="1" colspan="4">
<field name="action_ids">
<tree string="Actions">
<field name="name"/>
<field name="state"/>
<field name="action"/>
</tree>
<form string="Actions">
<group col="4">
<field name="name" colspan="4"/>
<newline/>
<field name="state"/>
<field name="action"/>
</group>
</form>
</field>
</page>
<page string="Workflow Transitions">
<field name="transition_ids" colspan="4" nolabel="1"/>
<field name="transition_ids"/>
</page>
<page string="Associated Groups">
<field name="group_ids" colspan="4" nolabel="1"/>
<field name="group_ids"/>
</page>
<page string="Notes">
<field name="note" nolabel="1" colspan="4"/>
<field name="note"/>
</page>
</notebook>
</form>

View File

@ -46,7 +46,7 @@
<field name="model">procurement.order</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form layout="manual">
<form string="Procurement">
<header>
<button name="button_confirm" states="draft" string="Confirm"/>
<button name="button_check" states="confirmed" string="Run Procurement"/>
@ -54,22 +54,22 @@
<button name="button_cancel" states="draft,exception,waiting" string="Cancel"/>
<field name="state" readonly="1" widget="statusbar" statusbar_visible="draft,confirmed" />
</header>
<sheet string="Procurement" layout="auto">
<group col="2" colspan="2" class="oe_form_header">
<separator colspan="2" string="References"/>
<field name="name" string="Procurement Reason"/>
<sheet>
<group>
<group string="References">
<field name="name"/>
<field name="origin"/>
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
</group>
<group col="2" colspan="2">
<separator colspan="2" string="Planification"/>
<group string="Planification">
<field name="date_planned"/>
<field name="procure_method"/>
<field name="priority"/>
</group>
<notebook colspan="4">
</group>
<notebook>
<page string="Procurement Details">
<separator colspan="4" string="Product &amp; Location"/>
<group string="Product &amp; Location" col="4">
<field name="product_id" on_change="onchange_product_id(product_id)"/>
<field name="location_id" domain="[('usage','=','internal')]"/>
<field name="product_qty"/>
@ -77,25 +77,25 @@
<field name="product_uos_qty" groups="product.group_uos"/>
<field name="product_uos" groups="product.group_uos"/>
<separator colspan="4" string="Status"/>
<field colspan="4" name="message" readonly="1"/>
</group>
<separator string="Status"/>
<field name="message"/>
</page>
<page string="Extra Information">
<separator colspan="4" string="Details"/>
<group string="Details" col="4">
<field name="move_id"/>
<field name="date_close"/>
<field name="close_move"/>
</group>
</page>
<page string="Notes">
<separator colspan="4" string="Note" />
<field name="note" colspan="4" nolabel="1"/>
<field name="note"/>
</page>
</notebook>
</sheet>
<div class="oe_form_sheet_width">
<field name="message_ids" colspan="4" widget="ThreadView" nolabel="1"/>
</div>
<footer>
<field name="message_ids" widget="ThreadView"/>
</footer>
</form>
</field>
</record>

View File

@ -10,19 +10,16 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Procurement Request">
<label string="This wizard will plan the procurement for this product. This procurement may generate task, production orders or purchase orders." colspan="4"/>
<header>
<button name="make_procurement" string="Ask New Products" type="object" icon="gtk-ok" />
<button icon='gtk-cancel' special="cancel" string="Cancel" />
</header>
<group col="4" string="This wizard will plan the procurement for this product. This procurement may generate task, production orders or purchase orders.">
<field name="product_id" on_change="onchange_product_id(product_id)"/>
<field name="qty"/>
<field name="uom_id"/>
<field name="date_planned"/>
<field name="warehouse_id" colspan="4"/>
<newline/>
<separator colspan="4"/>
<group col="2" colspan="4">
<button icon='gtk-cancel' special="cancel"
string="Cancel" />
<button name="make_procurement" string="Ask New Products"
colspan="1" type="object" icon="gtk-ok" />
<field name="warehouse_id"/>
</group>
</form>
</field>

View File

@ -10,14 +10,12 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Parameters">
<label string="This wizard will schedule procurements." colspan="4" align="0.0"/>
<newline/>
<group col="2" colspan="4">
<button icon='gtk-cancel' special="cancel"
string="Cancel" />
<header>
<button name="procure_calculation" string="Compute Procurements"
colspan="1" type="object" icon="gtk-ok" />
</group>
type="object" icon="gtk-ok" />
<button icon='gtk-cancel' special="cancel" string="Cancel" />
</header>
<label string="This wizard will schedule procurements."/>
</form>
</field>
</record>

View File

@ -10,15 +10,13 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Parameters">
<label string="Wizard checks all the stock minimum rules and generate procurement order." colspan="4"/>
<separator colspan="4"/>
<header>
<button name="procure_calculation" string="Compute Stock" type="object" icon="gtk-ok" />
<button icon='gtk-cancel' special="cancel" string="Cancel" />
</header>
<label string="Wizard checks all the stock minimum rules and generate procurement order."/>
<group col="2">
<field name="automatic"/>
<separator colspan="4"/>
<group col="2" colspan="4">
<button icon='gtk-cancel' special="cancel"
string="Cancel" />
<button name="procure_calculation" string="Compute Stock"
colspan="1" type="object" icon="gtk-ok" />
</group>
</form>
</field>

View File

@ -10,15 +10,12 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Scheduler Parameters">
<label string="This wizard allows you to run all procurement, production and/or purchase orders that should be processed based on their configuration. By default, the scheduler is launched automatically every night by OpenERP. You can use this menu to force it to be launched now. Note that it runs in the background, you may have to wait for a few minutes until it has finished computing." colspan="4"/>
<separator colspan="4"/>
<header>
<button name="procure_calculation" string="Compute Schedulers" type="object" icon="gtk-ok" />
<button icon='gtk-cancel' special="cancel" string="Cancel" />
</header>
<group string="This wizard allows you to run all procurement, production and/or purchase orders that should be processed based on their configuration. By default, the scheduler is launched automatically every night by OpenERP. You can use this menu to force it to be launched now. Note that it runs in the background, you may have to wait for a few minutes until it has finished computing."/>
<field name="automatic"/>
<separator colspan="4"/>
<group col="2" colspan="4">
<button icon='gtk-cancel' special="cancel"
string="Cancel" />
<button name="procure_calculation" string="Compute Schedulers"
colspan="1" type="object" icon="gtk-ok" />
</group>
</form>
</field>

View File

@ -69,107 +69,94 @@
<field eval="7" name="priority"/>
<field name="arch" type="xml">
<form string="Product" layout="auto">
<group colspan="4" col="8">
<group colspan="4" col="2">
<separator string="Name" colspan="2"/>
<field name="name"/>
<field groups="product.group_product_variant" name="variants" />
</group>
<group colspan="1" col="2">
<separator string="Codes" colspan="2"/>
<field name="product_image" widget='image' class="oe_form_avatar oe_right"/>
<label for="name" class="oe_form_readonly_hidden"/>
<h1><field name="name"/></h1>
<label for="categ_id" class="oe_form_readonly_hidden"/>
<h2><field name="categ_id"/></h2>
<notebook>
<page string="Information">
<group>
<group>
<field name="default_code"/>
<field name="ean13" placeholder="5901234123457" />
<field groups="product.group_product_variant" name="variants" />
</group>
<group colspan="1" col="2">
<separator string="Characteristics" colspan="2"/>
<group>
<field name="sale_ok"/>
<field name="purchase_ok"/>
</group>
<group colspan="1" col="1">
<field name="product_image" widget='image' nolabel="1"/>
</group>
</group>
<notebook colspan="4">
<page string="Information">
<group colspan="2" col="2">
<separator string="Procurement" colspan="2"/>
<group string="Procurement">
<field name="type"/>
<field name="procure_method"/>
<field name="supply_method"/>
</group>
<group colspan="2" col="2">
<separator string="Base Prices" colspan="2"/>
<group string="Base Prices">
<field name="list_price"/>
<field name="cost_method"/>
<field name="standard_price" attrs="{'readonly':[('cost_method','=','average')]}"/>
<newline/>
<field name="price_margin" groups="product.group_product_variant"/>
<field name="price_extra" groups="product.group_product_variant"/>
</group>
<group colspan="2" col="2" groups="product.group_stock_packaging">
<separator string="Weights" colspan="2"/>
<group groups="product.group_stock_packaging" string="Weights">
<field digits="(14, 3)" name="volume" attrs="{'readonly':[('type','=','service')]}"/>
<field name="weight" attrs="{'readonly':[('type','=','service')]}"/>
<field name="weight_net" attrs="{'readonly':[('type','=','service')]}"/>
</group>
<group colspan="2" col="2" name="status">
<separator string="Status" colspan="2"/>
<field name="categ_id"/>
<group name="status" string="Status">
<field name="state"/>
<field name="product_manager"/>
</group>
<group colspan="2" col="2" name="uom" groups="product.group_uom">
<separator string="Unit of Measure" colspan="2"/>
<group name="uom" groups="product.group_uom" string="Unit of Measure">
<field name="uom_id" on_change="onchange_uom(uom_id,uom_po_id)"/>
<field name="uom_po_id"/>
</group>
<group colspan="2" col="2" name="uos" groups="product.group_uos">
<separator string="Second Unit of Measure" colspan="2"/>
<group name="uos" groups="product.group_uos" string="Second Unit of Measure">
<field name="uos_id"/>
<field name="uos_coeff"/>
<field name="mes_type"/>
</group>
</group>
</page>
<page string="Procurement &amp; Locations">
<group colspan="2" col="2" name="delay">
<separator string="Delays" colspan="2"/>
<group>
<group name="delay" string="Delays">
<field name="sale_delay" attrs="{'readonly':[('sale_ok','=',0)]}"/>
<field name="produce_delay" attrs="{'invisible':[('type','=','service')]}"/>
<field name="warranty"/>
</group>
<group colspan="2" col="2" name="store">
<separator string="Storage Localisation" colspan="2"/>
<group name="store" string="Storage Localisation">
<field name="loc_rack" attrs="{'readonly':[('type','=','service')]}" />
<field name="loc_row" attrs="{'readonly':[('type','=','service')]}"/>
<field name="loc_case" attrs="{'readonly':[('type','=','service')]}"/>
</group>
<group colspan="2" col="2" name="misc">
<separator string="Miscellaneous" colspan="2"/>
<group name="misc" string="Miscellaneous">
<field name="active"/>
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
</group>
</group>
</page>
<page string="Suppliers">
<field colspan="4" name="seller_ids" nolabel="1" context="{'uom_id': uom_id}"/>
<field name="seller_ids" context="{'uom_id': uom_id}"/>
</page>
<page string="Descriptions">
<separator string="Description"/>
<field colspan="4" name="description" nolabel="1"/>
<field name="description"/>
<separator string="Sale Description"/>
<field colspan="4" name="description_sale" nolabel="1" placeholder="This note will be displayed on quotations..."/>
<field name="description_sale" placeholder="This note will be displayed on quotations..."/>
<separator string="Purchase Description"/>
<field colspan="4" name="description_purchase" nolabel="1" placeholder="This note will be displayed on requests for quotation..."/>
<field name="description_purchase" placeholder="This note will be displayed on requests for quotation..."/>
</page>
<page groups="product.group_stock_packaging" string="Packaging">
<field colspan="4" name="packaging" nolabel="1">
<field name="packaging">
<form string="Packaging">
<group col="4">
<field name="ean"/>
<field name="sequence" invisible="1"/>
<newline/>
@ -184,15 +171,16 @@
<field name="height"/>
<field name="width"/>
<field name="length"/>
</group>
<separator colspan="4" string="Description"/>
<field colspan="4" name="name" nolabel="1"/>
<field name="name"/>
</form>
</field>
</page>
</notebook>
<div class="oe_form_sheet_width">
<field name="message_ids" colspan="4" widget="ThreadView" nolabel="1"/>
</div>
<footer>
<field name="message_ids" widget="ThreadView"/>
</footer>
</form>
</field>
</record>
@ -317,11 +305,12 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Product Categories">
<group col="4">
<field name="name"/>
<field name="parent_id"/>
<field name="sequence" invisible="1"/>
<field name="type"/>
<newline/>
</group>
</form>
</field>
</record>