You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
327 B
10 lines
327 B
# -*- 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")
|