[IMP] purchase: Improve the form view of order_line
bzr revid: sbh@tinyerp.com-20100916093825-1jju5nlti7gld94k
This commit is contained in:
parent
21c7ee711d
commit
0cc3c5ce1f
|
@ -264,19 +264,19 @@
|
|||
domain="[('parent_id','=',False),('type_tax_use','!=','sale')]"/>
|
||||
</group>
|
||||
</page>
|
||||
<page string="Notes">
|
||||
<field colspan="4" name="notes" nolabel="1"/>
|
||||
</page>
|
||||
<page string="History" groups="base.group_extended">
|
||||
<separator colspan="4" string="Stock Moves"/>
|
||||
<field colspan="4" name="move_ids" nolabel="1" widget="many2many"/>
|
||||
</page>
|
||||
<page string="Invoicing" groups="base.group_extended">
|
||||
<separator colspan="4" string="Manual Invoices"/>
|
||||
<field name="invoiced"/>
|
||||
<newline/>
|
||||
<field colspan="4" name="invoice_lines" nolabel="1" widget="many2many"/>
|
||||
</page>
|
||||
<page string="Notes">
|
||||
<field colspan="4" name="notes" nolabel="1"/>
|
||||
</page>
|
||||
<page string="History" groups="base.group_extended">
|
||||
<separator colspan="4" string="Stock Moves"/>
|
||||
<field colspan="4" name="move_ids" nolabel="1" widget="many2many"/>
|
||||
</page>
|
||||
</notebook>
|
||||
</form>
|
||||
</field>
|
||||
|
|
|
@ -46,6 +46,7 @@ class purchase_order_group(osv.osv_memory):
|
|||
if context.get('active_model','') == 'purchase.order' and len(context['active_ids']) < 2:
|
||||
raise osv.except_osv(_('Warning'),
|
||||
_('Please select multiple order inventories to merge in the list view.'))
|
||||
return res
|
||||
def merge_orders(self, cr, uid, ids, context):
|
||||
"""
|
||||
To merge similar type of purchase orders.
|
||||
|
|
Loading…
Reference in New Issue