16 lines
383 B
Python
16 lines
383 B
Python
import logging
|
|
|
|
_logger = logging.getLogger(__name__)
|
|
_logger.info("post-migration-custom_test.py : Begin of script ...")
|
|
|
|
env = env # noqa: F821
|
|
|
|
for i in range(0, 10):
|
|
partner_name = "Partner #%d" % (i)
|
|
_logger.info("Create Partner %s")
|
|
env["res.partner"].create({"name": partner_name})
|
|
|
|
_logger.info("post-migration-custom_test.py : End of script.")
|
|
|
|
env.cr.commit()
|