mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[9.0] rma: remove rma.rule and add that setting to product.category
This commit is contained in:
committed by
Florian da Costa
parent
51d233bca8
commit
7fdcf5e1e2
@@ -5,15 +5,10 @@
|
||||
from openerp import fields, models
|
||||
|
||||
|
||||
class ProductCategory(models.Model):
|
||||
_inherit = 'product.category'
|
||||
|
||||
rma_operation_id = fields.Many2one(
|
||||
comodel_name="rma.operation", string="RMA Operation")
|
||||
|
||||
|
||||
class ProductTemplate(models.Model):
|
||||
_inherit = 'product.template'
|
||||
|
||||
rma_operation_id = fields.Many2one(
|
||||
comodel_name="rma.operation", string="RMA Operation")
|
||||
rma_approval_policy = fields.Selection(
|
||||
related="categ_id.rma_approval_policy", readonly=True)
|
||||
|
||||
Reference in New Issue
Block a user