Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
lut 17
5
2
paź 21
3912
1
mar 16
6140
5
lip 18
23437
1
lis 21
3512