Skip to content

Commit 3519695

Browse files
committed
[FIX] l10n_in: Use partner autocomplete data to set GST Treatment
Before this commit: We used to set `regular` treatment when using QR Vendor Scan or Fetching bill with IRN After this commit: We use the GST Treatment received from Partner Autocomplete to set the GST Treatment task-none closes odoo#234136 Signed-off-by: Josse Colpaert (jco) <[email protected]>
1 parent 4d6c482 commit 3519695

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/l10n_in/models/res_partner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def _l10n_in_get_partner_vals_by_vat(self, vat):
9191
'country_id': partner_data.get('country_id', {}).get('id'),
9292
'state_id': partner_data.get('state_id', {}).get('id'),
9393
'company_type': 'company',
94-
'l10n_in_gst_treatment': 'regular',
94+
'l10n_in_gst_treatment': partner_data.get('l10n_in_gst_treatment', 'regular'),
9595
})
9696
return partner_data
9797

0 commit comments

Comments
 (0)