You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
508 B
17 lines
508 B
# © 2020 Le Filament (<http://www.le-filament.com>)
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
|
|
from odoo import api, fields, models
|
|
|
|
|
|
class ProductTempleate(models.Model):
|
|
_inherit = "product.template"
|
|
|
|
is_returnable = fields.Boolean('Est une consigne')
|
|
return_product_ids = fields.Many2many(
|
|
'product.product',
|
|
'product_returnable_rel',
|
|
'src_id',
|
|
'dest_id',
|
|
domain=[('is_returnable', '=', True)],
|
|
string='Consignes')
|