Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4373 มุมมอง

Hi, I have inherited the account.invoice.tax in the account modules and overridden the compute method adding to it some of my own calculations, bu the first thing i am doing is calling the super method. I have also inherited purchase.order and overridden action_invoice_create method from the purchase module, here as well i first call the parent method using super.

The original order of execution is action_invoice_create and then compute

but after inheritance the order of execution is action_invoice_create(original)-> compute(original)->compute(custom)->action_invoice_create(custom)

Why is that and not action_invoice_create(original)-> action_invoice_create(custom)->compute(original)->compute(custom) and how can i make it this way?

Here's the relevant code in pastebin as its too long to paste here http://pastebin.com/W0AtKk4n

Thanks

อวตาร
ละทิ้ง

Hello,

I have the same problem, have you found any solution?

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 15
4641
1
ส.ค. 21
6690
Account invoice inheritance แก้ไขแล้ว
1
ส.ค. 18
5362
0
ธ.ค. 15
7038
0
มี.ค. 15
5943