Nimesh Contractor(Open ERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-accounting-view-imp-atp-invoice_view_improvement-nco
 into lp:~openerp-dev/openobject-addons/trunk-accounting-view-imp-atp.

Requested reviews:
  Atul Patel(OpenERP) (atp-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-accounting-view-imp-atp-invoice_view_improvement-nco/+merge/112032

Hello sir,

         I have improve the customer invoice view as per the specification.

Thanks,
 NCO.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-accounting-view-imp-atp-invoice_view_improvement-nco/+merge/112032
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-accounting-view-imp-atp.
=== modified file 'account/account_invoice_view.xml'
--- account/account_invoice_view.xml	2012-06-22 05:52:30 +0000
+++ account/account_invoice_view.xml	2012-06-26 09:16:26 +0000
@@ -52,20 +52,25 @@
             <field name="arch" type="xml">
                 <form string="Invoice Line" version="7.0">
                     <group col="4">
-                        <field name="product_id" on_change="product_id_change(product_id, uos_id, quantity, name, parent.type, parent.partner_id, parent.fiscal_position, price_unit, parent.currency_id, context, parent.company_id)"/>
-                        <field name="name"/>
-                        <label string="Quantity" for="quantity" align="1.0"/>
-                        <div>
-                            <field name="quantity" class="oe_inline"/>
-                            <field name="uos_id" class="oe_inline"
-                              on_change="uos_id_change(product_id, uos_id, quantity, name, parent.type, parent.partner_id, parent.fiscal_position, price_unit, parent.currency_id, context, parent.company_id)"/>
-                        </div>
-                        <field name="price_unit"/>
-                        <field domain="[('company_id', '=', parent.company_id), ('journal_id', '=', parent.journal_id), ('type', '&lt;&gt;', 'view')]" name="account_id" on_change="onchange_account_id(product_id, parent.partner_id, parent.type, parent.fiscal_position,account_id)"/>
-                        <field name="discount"/>
-                        <field name="invoice_line_tax_id" context="{'type':parent.type}" domain="[('parent_id','=',False),('company_id', '=', parent.company_id)]" widget="many2many_tags"/>
-                        <field domain="[('type','&lt;&gt;','view'), ('company_id', '=', parent.company_id), ('parent_id', '!=', False)]" name="account_analytic_id" groups="analytic.group_analytic_accounting"/>
-                        <field name="company_id" groups="base.group_multi_company" readonly="1"/>
+                    	<group>
+	                        <field name="product_id" on_change="product_id_change(product_id, uos_id, quantity, name, parent.type, parent.partner_id, parent.fiscal_position, price_unit, parent.currency_id, context, parent.company_id)"/>
+	                        <field name="name"/>
+	                        <label string="Quantity" for="quantity" align="1.0"/>
+	                        <div>
+	                            <field name="quantity" class="oe_inline"/>
+	                            <field name="uos_id" class="oe_inline"
+	                              on_change="uos_id_change(product_id, uos_id, quantity, name, parent.type, parent.partner_id, parent.fiscal_position, price_unit, parent.currency_id, context, parent.company_id)"/>
+	                        </div>
+	                        <field name="price_unit"/>
+	                        <field name="discount"/>
+                        </group>
+                        
+                        <group>
+                        	<field domain="[('company_id', '=', parent.company_id), ('journal_id', '=', parent.journal_id), ('type', '&lt;&gt;', 'view')]" name="account_id" on_change="onchange_account_id(product_id, parent.partner_id, parent.type, parent.fiscal_position,account_id)"/>
+                        	<field name="company_id" groups="base.group_multi_company" readonly="1"/>
+                        	<field name="invoice_line_tax_id" context="{'type':parent.type}" domain="[('parent_id','=',False),('company_id', '=', parent.company_id)]" widget="many2many_tags"/>
+                        	<field domain="[('type','&lt;&gt;','view'), ('company_id', '=', parent.company_id), ('parent_id', '!=', False)]" name="account_analytic_id" groups="analytic.group_analytic_accounting"/>
+                        </group>
                     </group>
                     <separator string="Notes"/>
                     <field name="note"/>
@@ -156,34 +161,43 @@
                     <field name="state" widget="statusbar" statusbar_visible="draft,open,paid" statusbar_colors='{"proforma":"blue","proforma2":"blue"}'/>
                 </header>
                 <sheet string="Supplier Invoice">
-                    <group>
-                        <group>
-                            <field string="Supplier" name="partner_id"
+                	<h1>
+                		<label string="Draft Invoice " attrs="{'invisible': [('state','not in',('draft',))]}"/>
+                		<label string="Pro Forma Invoice " attrs="{'invisible': [('state','not in',('proforma','proforma2'))]}"/>
+                		<label string="Invoice " attrs="{'invisible': [('state','in',('draft','proforma','proforma2'))]}"/>
+                		<field name="number" readonly="1" class="oe_inline"/>
+            		</h1>
+                    <label string="Concerns" for="origin" class="oe_edit_only"/>
+                    <h2>
+                        <field name="origin" placeholder="PO 002"/>
+                        <field string="Supplier" name="partner_id"
                               on_change="onchange_partner_id(type,partner_id,date_invoice,payment_term, partner_bank_id,company_id)"
                               context="{'default_customer': 0, 'search_default_supplier': 1, 'default_supplier': 1}"
                               domain="[('supplier', '=', True)]"/>
-                            <field name="fiscal_position" widget="selection"/>
+                    </h2>
+                    <group>
+                    	<group>
+	                    	<field name="date_invoice"/>
+	                    	<field name="date_due"/>
+	                    	<field domain="[('partner_id', '=', partner_id)]" name="partner_bank_id" on_change="onchange_partner_bank(partner_bank_id)"/>
+	                        <label for="reference"/>
+                            <div>
+                                <field name="reference_type"/>
+                                <field name="reference" placeholder="Payment Reference"/>
+                            </div>
                         </group>
                         <group>
-                            <field name="number"/>
-                            <field name="date_invoice"/>
-                            <field name="period_id" domain="[('state', '=', 'draft')]"
-                                groups="account.group_account_user" widget="selection"/>
-                            <field name="journal_id" on_change="onchange_journal_id(journal_id)" widget="selection"
-                                groups="account.group_account_user"/>
-                            <field domain="[('company_id', '=', company_id), ('type', '=', 'payable')]"
-                                name="account_id" groups="account.group_account_user"/>
+                        	<field name="fiscal_position" widget="selection"/>
+                        	<field name="journal_id" on_change="onchange_journal_id(journal_id)" widget="selection"
+	                                groups="account.group_account_user"/>
+	                        <field domain="[('company_id', '=', company_id), ('type', '=', 'payable')]"
+	                                name="account_id" groups="account.group_account_user"/>
                             <field name="currency_id"/>
+                           
+                        </group>
+                        <group>
                             <field name="type" invisible="1"/>
                         </group>
-                        <group>
-                            <label for="reference"/>
-                            <div>
-                                <field name="reference_type"/>
-                                <field name="reference" placeholder="Payment Reference"/>
-                            </div>
-                            <field name="date_due"/>
-                        </group>
                     </group>
                     <notebook>
                         <page string="Invoice">
@@ -232,15 +246,13 @@
                         </page>
                         <page string="Other Info">
                             <group col="4">
-                                <field domain="[('partner_id', '=', partner_id)]" name="partner_bank_id" on_change="onchange_partner_bank(partner_bank_id)"/>
+                            	<field name="payment_term" widget="selection"/>
+                            	<field name="user_id"/>
+                            	<field name="move_id" groups="account.group_account_user"/>
+                            	<field name="name"/>
+                                <field name="period_id" domain="[('state', '=', 'draft')]"
+                                groups="account.group_account_user" widget="selection"/>
                                 <field name="company_id" on_change="onchange_company_id(company_id,partner_id,type,invoice_line,currency_id)" widget="selection" groups="base.group_multi_company"/>
-                                <newline/>
-                                <field name="payment_term" widget="selection"/>
-                                <field name="name"/>
-                                <newline/>
-                                <field name="origin" placeholder="PO0025"/>
-                                <field name="user_id"/>
-                                <field name="move_id" groups="account.group_account_user"/>
                             </group>
                         </page>
                         <page string="Payments">
@@ -364,16 +376,14 @@
                         </page>
                         <page string="Other Info">
                             <group col="4">
+                            	<field name="user_id"/>
+                            	<field name="origin" placeholder="SO0032"/>
                                 <field name="company_id" on_change="onchange_company_id(company_id,partner_id,type,invoice_line,currency_id)" widget="selection" groups="base.group_multi_company"/>
-                                <newline/>
                                 <field name="date_due"/>
-                                <field name="user_id"/>
-                                <newline/>
+                                <field name="move_id" groups="account.group_account_user"/>
                                 <field domain="[('partner_id.ref_companies', 'in', [company_id])]" name="partner_bank_id"/>
-                                <field name="origin" placeholder="SO0032"/>
-                                <field name="move_id" groups="account.group_account_user"/>
                             </group>
-                            <field name="comment" placeholder="Add an additional information in the invoice..."/>
+                            <field name="comment" placeholder="Terms and Conditions..."/>
                         </page>
                         <page string="Payments">
                             <field name="payment_ids">

=== modified file 'account_invoice_layout/account_invoice_layout.py'
--- account_invoice_layout/account_invoice_layout.py	2011-12-09 06:03:08 +0000
+++ account_invoice_layout/account_invoice_layout.py	2012-06-26 09:16:26 +0000
@@ -160,7 +160,7 @@
                 ('line','Separator Line'),
                 ('break','Page Break'),]
             ,'Type', select=True, required=True),
-        'sequence': fields.integer('Sequence Number', select=True, help="Gives the sequence order when displaying a list of invoice lines."),
+        'sequence': fields.integer('Sequence', select=True, help="Gives the sequence order when displaying a list of invoice lines."),
         'functional_field': fields.function(_fnct, arg=None, fnct_inv=None, fnct_inv_arg=None, type='char', fnct_search=None, obj=None, store=False, string="Source Account"),
     }
 

=== modified file 'account_invoice_layout/account_invoice_layout_view.xml'
--- account_invoice_layout/account_invoice_layout_view.xml	2012-06-22 10:29:59 +0000
+++ account_invoice_layout/account_invoice_layout_view.xml	2012-06-26 09:16:26 +0000
@@ -9,8 +9,10 @@
             <field name="inherit_id" ref="account.view_invoice_line_form"/>
             <field name="type">form</field>
             <field name="arch" type="xml">
-                <field name="name" position="before">
+                <field name="product_id" position="before">
                     <field name="state" on_change="onchange_invoice_line_view(state)" />
+                </field>
+                <field name="account_id" position="before">
                     <field name="sequence"/>
                 </field>
             </field>

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to