[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 ahenriquez
parent 8939fc8c7a
commit b0e497af12
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)