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

Hello all, 

could anybody help me with this. In account_tax.py

https://github.com/odoo/odoo/blob/18.0/addons/account/models/account_tax.py#L1847

There is method _get_tax_totals_summary(....) and inside this method is another subtotal_grouping_function(....) how to override this child method? 

def _get_tax_totals_summary(self, base_lines, currency, company, cash_rounding=None):
​...
def subtotal_grouping_function(base_line, tax_data):
return tax_data['tax'].tax_group_id.preceding_subtotal or untaxed_amount_subtotal_label

Thank you for your help

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.พ. 17
5
2
ต.ค. 21
3862
1
มี.ค. 16
6113
how to override an inherited method? แก้ไขแล้ว
5
ก.ค. 18
23424
Javascript overriding/inheritance แก้ไขแล้ว
1
พ.ย. 21
3496