Revert "[IMP] code"

This reverts commit dfa54dadc9ee5c3946e86b4521474afb764d6710.
This commit is contained in:
Bhavesh Odedra
2018-07-22 13:13:07 +05:30
committed by Chanakya Soni
parent dc2f9f8771
commit 0446f414d1
4 changed files with 65 additions and 5 deletions

View File

@@ -1,12 +1,16 @@
# 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, fields, models
from odoo import api, 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',
)