Step-1 Go to avalara_salestax module.
Step-2 avalara_salestax->account_tax.py.
Step-3 After that used below code in account_tax.py file.
avalara_obj = AvaTaxService(avatax_config.account_number, avatax_config.license_key,
avatax_config.service_url, avatax_config.request_timeout, avatax_config.logging)
avalara_obj.create_tax_service()
addSvc = avalara_obj.create_address_service().addressSvc
origin = BaseAddress(addSvc, ship_from_address.street or None,
ship_from_address.street2 or None,
ship_from_address.city, ship_from_address.zip,
ship_from_address.state_id and ship_from_address.state_id.code or None,
ship_from_address.country_id and ship_from_address.country_id.code or None, 0).data
destination = BaseAddress(addSvc, shipping_address.street or None,
shipping_address.street2 or None,
shipping_address.city, shipping_address.zip,
shipping_address.state_id and shipping_address.state_id.code or None,
shipping_address.country_id and shipping_address.country_id.code or None, 1).data
0 Comment(s)