If the partner has a fiscal position and this fiscal position has been removed by the user on the PO, it's certainly for a good reason, so we don't fallback to copying the payment term from the partner
Remove a debug print bzr revid: alexis@via.ecp.fr-20120711131433-9sgffawe5qgmp3y3
This commit is contained in:
parent
42ffccfa96
commit
fc66fdc81a
|
@ -734,7 +734,6 @@ class account_invoice(osv.osv):
|
|||
def action_date_assign(self, cr, uid, ids, *args):
|
||||
for inv in self.browse(cr, uid, ids):
|
||||
res = self.onchange_payment_term_date_invoice(cr, uid, inv.id, inv.payment_term.id, inv.date_invoice)
|
||||
print "action_date_assign res=", res
|
||||
if res and res['value']:
|
||||
self.write(cr, uid, [inv.id], res['value'])
|
||||
return True
|
||||
|
|
|
@ -467,7 +467,7 @@ class purchase_order(osv.osv):
|
|||
'journal_id': len(journal_ids) and journal_ids[0] or False,
|
||||
'invoice_line': [(6, 0, inv_lines)],
|
||||
'origin': order.name,
|
||||
'fiscal_position': order.fiscal_position.id or order.partner_id.property_account_position.id,
|
||||
'fiscal_position': order.fiscal_position.id or False,
|
||||
'payment_term': order.payment_term.id or False,
|
||||
'company_id': order.company_id.id,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue