@@ -15,27 +15,25 @@ def setUpClass(cls):
1515 # included with tax not included (B2B case)
1616 # Also for this version, the included use case using tax is broken because
1717 # of a bug in Odoo core (check readme)
18- cls .invoice_tax .price_include = False
18+ cls .invoice_tax .price_include_override = "tax_excluded"
1919 cls .invoice_ecotax_account = cls .env ["account.account" ].create (
2020 {
2121 "code" : "707120" ,
2222 "name" : "Ecotax Account" ,
2323 "account_type" : "income" ,
24- "company_id" : cls .env .user .company_id .id ,
2524 }
2625 )
2726 cls .invoice_fixed_ecotax = cls .env ["account.tax" ].create (
2827 {
2928 "name" : "Fixed Ecotax" ,
3029 "type_tax_use" : "sale" ,
3130 "company_id" : cls .env .user .company_id .id ,
32- "price_include " : False ,
31+ "price_include_override " : "tax_excluded" ,
3332 "amount_type" : "code" ,
3433 "include_base_amount" : True ,
3534 "sequence" : 0 ,
3635 "is_ecotax" : True ,
37- "python_compute" : "result = (quantity and"
38- " product.fixed_ecotax * quantity or 0.0)" ,
36+ "formula" : "quantity and product.fixed_ecotax * quantity or 0.0" ,
3937 "tax_exigibility" : "on_invoice" ,
4038 "invoice_repartition_line_ids" : [
4139 (
@@ -84,11 +82,10 @@ def setUpClass(cls):
8482 "company_id" : cls .env .user .company_id .id ,
8583 "amount_type" : "code" ,
8684 "include_base_amount" : True ,
87- "price_include " : False ,
85+ "price_include_override " : "tax_excluded" ,
8886 "sequence" : 0 ,
8987 "is_ecotax" : True ,
90- "python_compute" : "result = (quantity and"
91- " product.weight_based_ecotax * quantity or 0.0)" ,
88+ "formula" : "quantity and product.weight_based_ecotax * quantity or 0.0" ,
9289 "tax_exigibility" : "on_invoice" ,
9390 "invoice_repartition_line_ids" : [
9491 (
0 commit comments