[IMP]Purchase Invoice Control Based on Purchase Order Line Comma is remove

bzr revid: hsa@tinyerp.com-20120621113638-ceunkw3zl7144pe2
This commit is contained in:
Hardik 2012-06-21 17:06:38 +05:30
parent f278880a55
commit d2033d21b5
2 changed files with 11 additions and 4 deletions

View File

@ -156,7 +156,11 @@
<field name="state" widget="statusbar" statusbar_visible="draft,open,paid" statusbar_colors='{"proforma":"blue","proforma2":"blue"}'/>
</header>
<sheet string="Supplier Invoice">
<group col="4" colspan="4">
<group>
<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)]" invisible="1"/>
<group>
<field name="date_invoice"/>
<field name="date_due"/>
@ -180,6 +184,7 @@
<field context="{'partner_id': partner_id, 'price_type': 'price_type' in dir() and price_type or False, 'type': type}" name="invoice_line">
<tree string="Invoice lines">
<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 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="invoice_line_tax_id" view_mode="2" context="{'type':parent.type}" domain="[('parent_id','=',False)]"/>
<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="quantity"/>
@ -225,8 +230,6 @@
<field name="user_id"/>
<newline/>
<field name="payment_term" widget="selection"/>
<newline/>
<field name="name"/>
<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"/>
</group>
</page>
@ -238,6 +241,10 @@
<field name="name"/>
<field name="amount_currency"/>
<field name="currency_id"/>
<field name="move_id" invisible="1"/>
<field name="journal_id" invisible="1"/>
<field name="debit" invisible="1"/>
<field name="credit" invisible="1"/>
</tree>
</field>
</page>

View File

@ -395,7 +395,7 @@
<sheet>
<label for="order_id" class="oe_edit_only"/>
<h1>
<field name="order_id" class="oe_inline"/>,
<field name="order_id" class="oe_inline"/>
<field name="date_order" class="oe_inline"/>
</h1>
<label for="partner_id" class="oe_edit_only"/>