[9.0] rma: remove rma.rule and add that setting to product.category

This commit is contained in:
lreficent
2017-08-02 14:04:18 +02:00
committed by Florian da Costa
parent 51d233bca8
commit 7fdcf5e1e2
13 changed files with 59 additions and 140 deletions

View File

@@ -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)