[IMP] in contract no order to invoice string shoud be seen until sale order is not confirmed
bzr revid: fka@tinyerp.com-20130304072341-uo0b9ibjp2sehyrd
This commit is contained in:
parent
b46c9dae1b
commit
9e037ba34f
|
@ -295,7 +295,7 @@ class account_analytic_account(osv.osv):
|
|||
res = {}
|
||||
for account in self.browse(cr, uid, ids, context=context):
|
||||
res[account.id] = 0.0
|
||||
sale_ids = sale_obj.search(cr, uid, [('project_id','=', account.id), ('partner_id', '=', account.partner_id.id)], context=context)
|
||||
sale_ids = sale_obj.search(cr, uid, [('project_id','=', account.id), ('partner_id', '=', account.partner_id.id), ('state', '=', 'manual')], context=context)
|
||||
for sale in sale_obj.browse(cr, uid, sale_ids, context=context):
|
||||
if not sale.invoiced:
|
||||
res[account.id] += sale.amount_untaxed
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
<span attrs="{'invisible': [('fix_price_to_invoice','=',0.0)]}" class="oe_grey">
|
||||
<button name="open_sale_order_lines"
|
||||
class="oe_link"
|
||||
string="⇒ Invoice" type="object"
|
||||
string="⇒ To invoice" type="object"
|
||||
context="{'default_partner_id': [partner_id],'default_project_id': active_id,'search_default_uninvoiced': 1,'search_default_project_id': active_id,'search_default_partner_id': [partner_id]}"/>
|
||||
or view
|
||||
</span>
|
||||
|
|
Loading…
Reference in New Issue