[MIG] Purchase policy

This commit is contained in:
Bhavesh Odedra
2018-07-22 16:02:54 +05:30
committed by Chanakya Soni
parent d59834f518
commit 7b4e40d959
6 changed files with 25 additions and 42 deletions

View File

@@ -1,16 +1,12 @@
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
from odoo import api, models
from odoo import api, fields, models
class PurchaseOrderLine(models.Model):
_inherit = "purchase.order.line"
# TODO: to be removed on migration to v10:
# This is needed because odoo misspelled `store` in v9 :facepalm:
state = fields.Selection(related='order_id.state', store=True)
rma_line_id = fields.Many2one(
comodel_name='rma.order.line', string='RMA',
)