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

  1. # -*- coding: utf-8 -*-
  2. from . import models
  3. def copy_recurring_invoice(cr, registry):
  4. """Copy recurring invoice on contract."""
  5. cr.execute("UPDATE account_invoice "
  6. "SET contract_id=aaa.id "
  7. "FROM account_analytic_account aaa "
  8. "WHERE aaa.code = account_invoice.origin")