[IMP] code

This commit is contained in:
Bhavesh Odedra
2018-07-20 20:12:02 +05:30
committed by Chanakya Soni
parent e0647a7381
commit bd8da45abe
4 changed files with 5 additions and 65 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',
)