[IMP]Improve voew in account

bzr revid: tch@tinyerp.com-20120806132301-oj3zlxxn3tzo1glo
This commit is contained in:
Twinkle Christian (OpenERP) 2012-08-06 18:53:01 +05:30
parent 5b960994db
commit a5f6f9426a
12 changed files with 34 additions and 32 deletions

View File

@ -149,7 +149,7 @@
<field name="type">form</field>
<field name="priority">2</field>
<field name="arch" type="xml">
<form version="7.0">
<form string="Supplier Invoice" version="7.0">
<header>
<span groups="base.group_user">
<button name="invoice_open" states="draft,proforma2" string="Validate" class="oe_highlight"/>
@ -289,7 +289,7 @@
<field name="model">account.invoice</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form version="7.0">
<form string="Invoice" version="7.0">
<header>
<span groups="base.group_user">
<button name="action_invoice_sent" type="object" string="Send by Email" attrs="{'invisible':['|',('sent','=',True), ('state', '!=', 'open')]}" class="oe_highlight"/>

View File

@ -11,7 +11,7 @@
<field name="model">account.fiscalyear</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form version="7.0">
<form string="Fiscal year" version="7.0">
<header>
<button name="create_period" states="draft" string="Create Monthly Periods" type="object" class="oe_highlight"/>
<button name="create_period3" states="draft" string="Create 3 Months Periods" type="object" class="oe_highlight"/>
@ -104,7 +104,7 @@
<field name="model">account.period</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form version="7.0">
<form string="Account Period" version="7.0">
<header>
<button name="action_draft" states="done" string="Set to Draft" type="object" groups="account.group_account_manager"/>
<field name="state" widget="statusbar" nolabel="1"/>
@ -1368,7 +1368,7 @@
<field name="model">account.move</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form version="7.0">
<form string="Account Entry" version="7.0">
<header>
<button name="button_validate" states="draft" string="Post" type="object" class="oe_highlight"/>
<button name="button_cancel" states="posted" string="Cancel" type="object"/>
@ -2625,7 +2625,7 @@ action = pool.get('res.config').next(cr, uid, [], context)
<field name="model">account.bank.statement</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form version="7.0">
<form string="Statement" version="7.0">
<header>
<button name="button_confirm_cash" states="open" string="Close CashBox" type="object" class="oe_highlight"/>
<button name="button_open" states="draft" string="Open CashBox" type="object" class="oe_highlight"/>

View File

@ -107,7 +107,7 @@
<field name="model">crossovered.budget</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form version="7.0">
<form string="Budget" version="7.0">
<header>
<button string="Confirm" name="confirm" states="draft" type="workflow" class="oe_highlight"/>
<button string="Approve" name="validate" states="confirm" type="workflow" class="oe_highlight"/>

View File

@ -101,7 +101,7 @@
<field name="model">payment.order</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form version="7.0">
<form string="Payment Order" version="7.0">
<header>
<button name="open" states="draft" string="Confirm Payments" class="oe_highlight"/>
<button name="set_done" states="open" string="Make Payments" type="object" class="oe_highlight"/>

View File

@ -6,18 +6,20 @@
<field name="model">account.voucher</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree colors="blue:state == 'draft';gray:state == 'cancel';red:audit" string="Voucher Entries">
<field name="date"/>
<field name="number"/>
<field name="reference"/>
<field name="partner_id"/>
<field name="journal_id" groups="account.group_account_user"/>
<field name="period_id" invisible="context.get('visible', True)"/>
<field name="type" invisible="context.get('visible', True)"/>
<field name="amount" sum="Total Amount"/>
<field name="audit" invisible="1"/>
<field name="state"/>
</tree>
<form string="Accounting Vouchers" version="7.0">
<tree colors="blue:state == 'draft';gray:state == 'cancel';red:audit" string="Voucher Entries">
<field name="date"/>
<field name="number"/>
<field name="reference"/>
<field name="partner_id"/>
<field name="journal_id" groups="account.group_account_user"/>
<field name="period_id" invisible="context.get('visible', True)"/>
<field name="type" invisible="context.get('visible', True)"/>
<field name="amount" sum="Total Amount"/>
<field name="audit" invisible="1"/>
<field name="state"/>
</tree>
</form>
</field>
</record>
<record model="ir.ui.view" id="view_voucher_line_form">
@ -41,7 +43,7 @@
<field name="model">account.voucher</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form version="7.0">
<form string="Accounting Voucher" version="7.0">
<header>
<button name="proforma_voucher" string="Post" states="draft" class="oe_highlight"/>
<button name="cancel_voucher" string="Cancel" type="object" states="posted" confirm="Are you sure to unreconcile this record?"/>

View File

@ -123,7 +123,7 @@
<field name="model">account.voucher</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form version="7.0">
<form string="Voucher Payment" version="7.0">
<header>
<button name="proforma_voucher" string="Validate" states="draft" invisible="context.get('line_type', False)" class="oe_highlight"/>
<button name="cancel_voucher" string="Cancel" states="draft,proforma" invisible="context.get('line_type', False)"/>
@ -288,7 +288,7 @@
<field name="model">account.voucher</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form version="7.0">
<form string="Receipt" version="7.0">
<header>
<button name="proforma_voucher" string="Validate" states="draft" invisible="context.get('line_type', False)" class="oe_highlight"/>
<button name="cancel_voucher" string="Cancel" states="draft,proforma" invisible="context.get('line_type', False)"/>

View File

@ -62,7 +62,7 @@
<field name="model">account.voucher</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form version="7.0">
<form string="Sale voucher" version="7.0">
<header>
<button name="proforma_voucher" string="Validate" states="draft" class="oe_highlight"/>
<button name="%(act_pay_voucher)d" context="{'narration':narration, 'title':'Customer Payment', 'type':'receipt', 'partner_id':partner_id, 'reference':reference, 'amount':amount}" type="action" string="Pay" attrs="{'invisible':['|',('pay_now','=','pay_now'),'|',('state','=','draft'), ('paid','=',True)]}" class="oe_highlight"/>
@ -206,7 +206,7 @@
<field name="model">account.voucher</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form version="7.0">
<form string="Purchase Voucher" version="7.0">
<header>
<button name="proforma_voucher" string="Validate" states="draft" class="oe_highlight"/>
<button name="%(act_pay_bills)d" context="{'narration':narration, 'title':'Bill Payment', 'type':'payment', 'partner_id': partner_id, 'reference':reference}" type="action" string="Pay Bill" attrs="{'invisible':['|',('pay_now','=','pay_now'),'|',('state','=','draft'), ('paid','=',True)]}" class="oe_highlight"/>

View File

@ -7,7 +7,7 @@
<field name="model">account.analytic.account</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form version="7.0">
<form string="Analytic Account" version="7.0">
<sheet string="Analytic Account">
<label for="name" class="oe_edit_only"/>
<h1>

View File

@ -523,7 +523,7 @@
<group>
<group>
<field name="product_id" readonly="1"/>
<label name="product_uom_qty"/>
<label for="product_uom_qty"/>
<div>
<field name="product_uom_qty" readonly="1" class="oe_inline"/>
<field name="product_uom" groups="product.group_uom" class="oe_inline"/>

View File

@ -20,7 +20,7 @@
<field name="model">stock.partial.move</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form version="7.0">
<form string="Stock Move" version="7.0">
<separator string="Products"/>
<field name="move_ids"/>
<footer>
@ -56,7 +56,7 @@
<field name="model">stock.partial.move.line</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form version="7.0">
<form string="Stock Partial Move Line" version="7.0">
<group>
<field name="product_id" />
<field name="quantity" />

View File

@ -15,7 +15,7 @@
<field name="model">stock.partial.picking</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form version="7.0">
<form string="Stock partial Picking" version="7.0">
<field name="hide_tracking" invisible="1"/>
<separator string="Transfer Products" name="product_separator"/>
<field name="move_ids" context="{'hide_tracking': hide_tracking}">
@ -63,7 +63,7 @@
<field name="model">stock.partial.picking.line</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form version="7.0">
<form string="Stock Picking Line" version="7.0">
<group col="4">
<field name="product_id" />
<field name="quantity" />

View File

@ -44,7 +44,7 @@
<field name="model">stock.return.picking.memory</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form version="7.0">
<form string="Return Picking Memory" version="7.0">
<group col="4">
<field name="product_id" />
<field name="quantity" />