overrid invoice

conv_bal
watcha.h 2015-02-03 15:47:22 +07:00
parent 053c5613af
commit 42e31b16d5
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ class AccountInvoice(Model):
#override netforce_account/account_invoice
def post(self,ids,context={}):
print("override ")
print("override post invoice")
t0=time.time()
settings=get_model("settings").browse(1)
for obj in self.browse(ids):

View File

@ -405,7 +405,7 @@ class HDCase(Model):
if not account_id:
account_id=prod.sale_account_id.id
if not account_id:
raise Exception("Please define sale account for product [%s] %s"%(prod.code, prod.name))
raise Exception("Please define account for product [%s] %s"%(prod.code, prod.name))
if line.reimbursable=='yes':
rmb_lines.append(('create',{
"product_id": prod.id,