mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[IMP] contract: Automatic prices for lines
This commit is contained in:
committed by
Pedro M. Baeza
parent
33f25e346a
commit
b0778770c7
13
contract/migrations/11.0.2.0.0/pre-migration.py
Normal file
13
contract/migrations/11.0.2.0.0/pre-migration.py
Normal file
@@ -0,0 +1,13 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright 2015-2017 Tecnativa - Pedro M. Baeza
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
|
||||
def migrate(cr, version):
|
||||
"""Rename column for specific price for keeping backwards compatibility."""
|
||||
if not version:
|
||||
return
|
||||
cr.execute(
|
||||
"ALTER TABLE account_analytic_invoice_line "
|
||||
"RENAME price_unit TO specific_price"
|
||||
)
|
||||
Reference in New Issue
Block a user