mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
add product sequence
This commit is contained in:
60
app_product_sequence/__openerp__.py
Normal file
60
app_product_sequence/__openerp__.py
Normal file
@@ -0,0 +1,60 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Created on 2017-11-05
|
||||
# author: 广州尚鹏,http://www.sunpop.cn
|
||||
# email: 300883@qq.com
|
||||
# resource of Sunpop
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
# Odoo在线中文用户手册(长期更新)
|
||||
# http://www.sunpop.cn/documentation/user/10.0/zh_CN/index.html
|
||||
|
||||
# Odoo10离线中文用户手册下载
|
||||
# http://www.sunpop.cn/odoo10_user_manual_document_offline/
|
||||
# Odoo10离线开发手册下载-含python教程,jquery参考,Jinja2模板,PostgresSQL参考(odoo开发必备)
|
||||
# http://www.sunpop.cn/odoo10_developer_document_offline/
|
||||
# description:
|
||||
{
|
||||
'name': 'App Product Auto Sequence, Auto Code(Variants Supported)',
|
||||
'summary': 'Auto Internal Reference.',
|
||||
"version": '10.0.2.2',
|
||||
'category': 'Sales',
|
||||
'author': 'Sunpop.cn',
|
||||
'website': 'http://www.sunpop.cn',
|
||||
'license': 'AGPL-3',
|
||||
'sequence': 0,
|
||||
'installable': True,
|
||||
'auto_install': False,
|
||||
'application': True,
|
||||
'images': ['static/description/set2.jpg'],
|
||||
'currency': 'EUR',
|
||||
'price': 98,
|
||||
'description': u"""
|
||||
App Product Auto Sequence, Auto Code(Variants Supported)
|
||||
|
||||
This module allows to associate a sequence to the product reference.<br/>
|
||||
The reference (default code) is unique (SQL constraint) and required.<br/>
|
||||
Support Product with or without Variants.
|
||||
1.Auto Sequence or code for every product.自动产品编码。
|
||||
2.Auto Sequence or for every product variants, like product20171130-001.自动多规格产品编码,形式为 主产品编码-001。
|
||||
3.Product code must be Unique.产品编码强制要求唯一。
|
||||
4.Define different product type, each product type use own rule of sequence.可自定义产品类型,不同产品类型使用不同编码规则。
|
||||
5.Quick access in sale , inventory, system menu.可以在销售、库存、系统菜单中快速定义。
|
||||
6.Multi language support.<br/>多语种支持。
|
||||
""",
|
||||
'pre_init_hook': 'pre_init_hook',
|
||||
'depends': [
|
||||
'product',
|
||||
'sale',
|
||||
'stock',
|
||||
],
|
||||
'data': [
|
||||
# 视图
|
||||
'views/product_template_view.xml',
|
||||
'views/product_product_view.xml',
|
||||
'views/product_internal_type_view.xml',
|
||||
'data/product_sequence.xml',
|
||||
],
|
||||
'demo': [
|
||||
],
|
||||
}
|
||||
Reference in New Issue
Block a user