mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
11 lines
327 B
Python
11 lines
327 B
Python
# -*- coding: utf-8 -*-
|
|
from . import models
|
|
|
|
|
|
def copy_recurring_invoice(cr, registry):
|
|
"""Copy recurring invoice on contract."""
|
|
cr.execute("UPDATE account_invoice "
|
|
"SET contract_id=aaa.id "
|
|
"FROM account_analytic_account aaa "
|
|
"WHERE aaa.code = account_invoice.origin")
|