mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[MIG] Contract Payment Mode to 12.0
This commit is contained in:
committed by
AmmarOSI
parent
f85aca1ad7
commit
84b84dc41e
@@ -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),
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user