mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[MIG] Purchase policy
This commit is contained in:
committed by
Chanakya Soni
parent
d59834f518
commit
7b4e40d959
@@ -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',
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user