legaladdress_from_customer

This commit is contained in:
Kristof Bernaert
2026-02-02 11:17:29 +01:00
parent 9603264055
commit 41869d9494
9 changed files with 75 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
from odoo import api, models
class AccountMove(models.Model):
_inherit = "account.move"
@api.onchange("partner_id")
def _onchange_partner_copy_to_invoice_address(self):
for move in self:
if move.partner_id:
# Copy Klant exactly to Factuuradres
move.partner_invoice_id = move.partner_id