añadido product_secuence y product_code_unique para crear secuencias de productos por categoría
related 6
This commit is contained in:
parent
46d66821ec
commit
4fe2e3d368
73 changed files with 5643 additions and 0 deletions
4
product_code_unique/models/__init__.py
Normal file
4
product_code_unique/models/__init__.py
Normal 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
|
12
product_code_unique/models/product.py
Normal file
12
product_code_unique/models/product.py
Normal 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!'), ]
|
Loading…
Add table
Add a link
Reference in a new issue