diff options
| author | Achraf (abz) <abz@odoo.com> | 2021-04-16 12:02:55 +0000 |
|---|---|---|
| committer | Achraf (abz) <abz@odoo.com> | 2021-04-29 12:34:03 +0000 |
| commit | 36582d08dee3688ea6e839bccfeaf8877e812122 (patch) | |
| tree | e55c498578f55227ae22d5b7a72413e761befa68 | |
| parent | 44693ca2689d736849d708aa9bf917db65c4b8a0 (diff) | |
[FIX] l10n_in_sale: Set automatically GST Treatment on invoice creation
What are the steps to reproduce your issue ?
1. Create a contact and set 'VAT' to "20AAACT2803M2ZO". The 'GST Treatment' will be automatically set correctly.
2. Create a sale order for this new contact. GST Treatment is automatically filled in correctly.
3. Confirm the order.
4. Create an invoice.
What is currently happening ?
The related invoice does not fetch the 'GST Treatment' automatically
What are you expecting to happen ?
The related invoice must set the 'GST Treatment' automatically.
opw-2499503
closes odoo/odoo#69392
Signed-off-by: Achraf <abz-odoo@users.noreply.github.com>
| -rw-r--r-- | addons/l10n_in_sale/wizard/sale_make_invoice_advance.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/l10n_in_sale/wizard/sale_make_invoice_advance.py b/addons/l10n_in_sale/wizard/sale_make_invoice_advance.py index f067495d77f..c47d97c342d 100644 --- a/addons/l10n_in_sale/wizard/sale_make_invoice_advance.py +++ b/addons/l10n_in_sale/wizard/sale_make_invoice_advance.py @@ -11,4 +11,8 @@ class SaleAdvancePaymentInv(models.TransientModel): res = super()._prepare_invoice_values(order, name, amount, so_line) if order.l10n_in_journal_id: res['journal_id'] = order.l10n_in_journal_id.id + if order.l10n_in_company_country_code == 'IN': + res['l10n_in_gst_treatment'] = order.l10n_in_gst_treatment + if order.l10n_in_reseller_partner_id: + res['l10n_in_reseller_partner_id'] = order.l10n_in_reseller_partner_id return res |
