añadido product_secuence y product_code_unique para crear secuencias de productos por categoría

related 6
This commit is contained in:
santiky 2021-08-08 14:53:02 +02:00
parent 46d66821ec
commit 4fe2e3d368
Signed by: snt
GPG key ID: A9FD34930EADBE71
73 changed files with 5643 additions and 0 deletions

View file

@ -0,0 +1,4 @@
# Copyright (C) 2018 - TODAY, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import product

View file

@ -0,0 +1,12 @@
# Copyright (C) 2018 - TODAY, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models
class ProductProduct(models.Model):
_inherit = 'product.product'
_sql_constraints = [
('default_code_uniq', 'unique(default_code)',
'Internal Reference must be unique across the database!'), ]