[MIG] Contract Payment Mode to 12.0

This commit is contained in:
Thomas Binsfeld
2018-12-18 10:54:18 +01:00
committed by sygel
parent 33a4ea9400
commit d1ea58f70e
36 changed files with 818 additions and 259 deletions

View File

@@ -11,7 +11,7 @@ def post_init_hook(cr, registry):
"""Copy payment mode from partner to the new field at contract."""
with api.Environment.manage():
env = api.Environment(cr, SUPERUSER_ID, {})
m_contract = env['account.analytic.account']
m_contract = env['contract.contract']
contracts = m_contract.search([
('payment_mode_id', '=', False),
])