Skip to content

Commit

Permalink
product_sequence (OCA#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
SodexisTeam authored and dc-oerp committed Jul 19, 2024
1 parent a0c86c3 commit 68750a1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 38 deletions.
30 changes: 6 additions & 24 deletions product_sequence/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,30 +1,12 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (c) 2011 Zikzakmedia S.L. (http://zikzakmedia.com)
# All Rights Reserved.
# $Id$
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
# © 2004 Tiny SPRL
# © 2016 Sodexis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
'name': 'Product Sequence',
'version': '0.1',
'author': 'Zikzakmedia SL',
'version': '9.0.1.0.0',
'author': "Zikzakmedia SL,Sodexis,Odoo Community Association (OCA)",
'website': 'http://www.zikzakmedia.com',
'license': 'AGPL-3',
'category': 'Generic Modules/Inventory Control',
Expand All @@ -37,7 +19,7 @@
'demo': [
'demo/product_product.xml'
],
'pre_init_hook': 'update_null_and_slash_codes',
'pre_init_hook': 'pre_init_hook',
'auto_install': False,
'installable': True,
}
31 changes: 17 additions & 14 deletions product_sequence/demo/product_product.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="0">
<record id="product.product_product_consultant" model="product.product">
<field name="default_code">SERVICE</field>
</record>
<!--
product_sequence for Odoo
Copyright (C) 2004 Tiny SPRL
Copyright (C) 2016 Sodexis
The licence is in the file __openerp__.py
-->

<record id="product.product_product_1" model="product.product">
<field name="default_code">OSM</field>
</record>

<record id="product.product_product_2" model="product.product">
<field name="default_code">OSA</field>
</record>
</data>
</openerp>
<odoo>
<record id="product.product_product_0" model="product.product">
<field name="default_code">SERVICE</field>
</record>
<record id="product.product_product_1" model="product.product">
<field name="default_code">OSM</field>
</record>
<record id="product.product_product_2" model="product.product">
<field name="default_code">OSA</field>
</record>
</odoo>

0 comments on commit 68750a1

Please sign in to comment.