mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
Revert "[IMP] code"
This reverts commit dfa54dadc9ee5c3946e86b4521474afb764d6710.
This commit is contained in:
committed by
Chanakya Soni
parent
dc2f9f8771
commit
0446f414d1
@@ -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',
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user