[IMP] change name of method.
bzr revid: tpa@tinyerp.com-20121109063531-ywqipjlza24tl48x
This commit is contained in:
parent
96dedd0a61
commit
1d49a96089
|
@ -264,7 +264,7 @@ class sale_order(osv.osv):
|
|||
|
||||
return osv.osv.unlink(self, cr, uid, unlink_ids, context=context)
|
||||
|
||||
def new_quotation(self, cr, uid, ids, default=None, context=None):
|
||||
def copy_quotation(self, cr, uid, ids, context=None):
|
||||
id = self.copy(cr, uid, ids[0], context=None)
|
||||
view_ref = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'sale', 'view_order_form')
|
||||
view_id = view_ref and view_ref[1] or False,
|
||||
|
@ -277,6 +277,7 @@ class sale_order(osv.osv):
|
|||
'view_mode': 'form',
|
||||
'view_id': view_id,
|
||||
'target': 'current',
|
||||
'nodestroy': True,
|
||||
}
|
||||
|
||||
def onchange_pricelist_id(self, cr, uid, ids, pricelist_id, order_lines, context=None):
|
||||
|
|
|
@ -176,7 +176,7 @@
|
|||
attrs="{'invisible': [('invoice_exists', '=', False)]}" groups="base.group_user"/>
|
||||
<button name="%(action_view_sale_advance_payment_inv)d" string="Create Invoice"
|
||||
type="action" states="manual" class="oe_highlight" groups="base.group_user"/>
|
||||
<button name="new_quotation" states="cancel" string="New Copy of Quotation" type="object"/>
|
||||
<button name="copy_quotation" states="cancel" string="New Copy of Quotation" type="object"/>
|
||||
<button name="cancel" states="draft,sent" string="Cancel" groups="base.group_user"/>
|
||||
<button name="action_cancel" states="manual,progress" string="Cancel" type="object" groups="base.group_user"/>
|
||||
<button name="invoice_cancel" states="invoice_except" string="Cancel" groups="base.group_user"/>
|
||||
|
|
Loading…
Reference in New Issue