[FIX] pos_sale: add delivery address when generating invoice
When invoicing via POS delivery address is missing on the invoice. This value is needed in some localizations (i.e. l10n_co) to correctly validate the invoice opw-2653661 closes odoo/odoo#77556 X-original-commit: d57a44d875eabba0586e24245a9af435169fda22 Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
This commit is contained in:
@@ -31,6 +31,8 @@ class PosOrder(models.Model):
|
||||
def _prepare_invoice_vals(self):
|
||||
invoice_vals = super(PosOrder, self)._prepare_invoice_vals()
|
||||
invoice_vals['team_id'] = self.crm_team_id
|
||||
addr = self.partner_id.address_get(['delivery'])
|
||||
invoice_vals['partner_shipping_id'] = addr['delivery']
|
||||
return invoice_vals
|
||||
|
||||
@api.model
|
||||
|
||||
Reference in New Issue
Block a user