diff --git a/app_base/__init__.py b/app_base/__init__.py deleted file mode 100644 index a1125039..00000000 --- a/app_base/__init__.py +++ /dev/null @@ -1,6 +0,0 @@ -# -*- coding: utf-8 -*- - -from . import models -from .hooks import pre_init_hook -from .hooks import post_init_hook -from .hooks import uninstall_hook \ No newline at end of file diff --git a/app_base/__manifest__.py b/app_base/__manifest__.py deleted file mode 100644 index 3cf03084..00000000 --- a/app_base/__manifest__.py +++ /dev/null @@ -1,87 +0,0 @@ -# -*- coding: utf-8 -*- - -# Created on 2019-09-02 -# author: 广州尚鹏,https://www.sunpop.cn -# email: 300883@qq.com -# resource of Sunpop -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). - -# Odoo12在线用户手册(长期更新) -# https://www.sunpop.cn/documentation/user/12.0/zh_CN/index.html - -# Odoo12在线开发者手册(长期更新) -# https://www.sunpop.cn/documentation/12.0/index.html - -# Odoo10在线中文用户手册(长期更新) -# https://www.sunpop.cn/documentation/user/10.0/zh_CN/index.html - -# Odoo10离线中文用户手册下载 -# https://www.sunpop.cn/odoo10_user_manual_document_offline/ -# Odoo10离线开发手册下载-含python教程,jquery参考,Jinja2模板,PostgresSQL参考(odoo开发必备) -# https://www.sunpop.cn/odoo10_developer_document_offline/ - -############################################################################## -# Copyright (C) 2009-TODAY Sunpop.cn Ltd. https://www.sunpop.cn -# Author: Ivan Deng,300883@qq.com -# You can modify it under the terms of the GNU LESSER -# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. -# See . -# -# It is forbidden to publish, distribute, sublicense, or sell copies -# of the Software or modified copies of the Software. -############################################################################## - -{ - 'name': "Partner set customer vendor", - 'version': '13.19.11.13', - 'author': 'Sunpop.cn', - 'category': 'Base', - 'website': 'https://www.sunpop.cn', - 'license': 'LGPL-3', - 'sequence': 2, - 'price': 18.00, - 'currency': 'EUR', - 'images': ['static/description/banner.png'], - 'depends': [ - 'sale', - 'purchase', - ], - 'summary': """ - Add customer, vendor (supplier) field to partner model and views. - Set and view partner type: customer or vendor. - Odoo App of Sunpop.cn - """, - 'description': """ - Support Odoo 13, Enterprise and Community Edition - 1. Add customer, vendor field to partner - 3. Multi-language Support. - 4. Multi-Company Support. - 5. Support Odoo 13,12, 11, Enterprise and Community Edition - ========== - 1. - 2. - 3. 多语言支持 - 4. 多公司支持 - 5. Odoo 12, 11, 企业版,社区版,多版本支持 - """, - 'data': [ - # 'security/*.xml', - # 'security/ir.model.access.csv.csv', - # 'data/.xml', - 'views/res_partner_views.xml', - # 'report/.xml', - ], - 'qweb': [ - 'static/src/xml/*.xml', - ], - 'demo': [], - 'test': [], - 'css': [], - 'js': [], - 'pre_init_hook': 'pre_init_hook', - 'post_init_hook': 'post_init_hook', - 'uninstall_hook': 'uninstall_hook', - 'installable': True, - 'application': True, - 'auto_install': True, -} diff --git a/app_base/hooks.py b/app_base/hooks.py deleted file mode 100644 index 31f2b42a..00000000 --- a/app_base/hooks.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- - -# Created on 2018-10-12 -# author: 广州尚鹏,https://www.sunpop.cn -# email: 300883@qq.com -# resource of Sunpop -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). - -# Odoo在线中文用户手册(长期更新) -# https://www.sunpop.cn/documentation/user/10.0/zh_CN/index.html - -# Odoo10离线中文用户手册下载 -# https://www.sunpop.cn/odoo10_user_manual_document_offline/ -# Odoo10离线开发手册下载-含python教程,jquery参考,Jinja2模板,PostgresSQL参考(odoo开发必备) -# https://www.sunpop.cn/odoo10_developer_document_offline/ -# description: - -from odoo import api, SUPERUSER_ID, _ - - -def pre_init_hook(cr): - pass - # cr.execute("") - -def post_init_hook(cr, registry): - try: - # - sql = "UPDATE res_partner SET customer = TRUE WHERE customer_rank >= 1;" - cr.execute(sql) - sql = "UPDATE res_partner SET supplier = TRUE WHERE supplier_rank >= 1" - cr.execute(sql) - cr.commit() - except Exception as e: - pass - pass - # cr.execute("") - -def uninstall_hook(cr, registry): - pass - # cr.execute("") - diff --git a/app_base/i18n/zh_CN.po b/app_base/i18n/zh_CN.po deleted file mode 100644 index f1e36e3e..00000000 --- a/app_base/i18n/zh_CN.po +++ /dev/null @@ -1,14 +0,0 @@ -# Translation of Odoo Server. -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 10.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-01-08 14:28+0000\n" -"PO-Revision-Date: 2018-01-08 14:28+0000\n" -"Last-Translator: <>\n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: \n" diff --git a/app_base/models/__init__.py b/app_base/models/__init__.py deleted file mode 100644 index b4164e2c..00000000 --- a/app_base/models/__init__.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Part of Sunpop.cn. See LICENSE file for full copyright and licensing details. - -# Created on 2019-04-20 -# author: 广州尚鹏,http://www.sunpop.cn -# email: 300883@qq.com -# resource of Sunpop -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -# Odoo12在线用户手册(长期更新) -# http://www.sunpop.cn/documentation/user/12.0/en/index.html - -# Odoo12在线开发者手册(长期更新) -# http://www.sunpop.cn/documentation/12.0/index.html - -# Odoo10在线中文用户手册(长期更新) -# 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: - -from . import res_partner - diff --git a/app_base/models/res_partner.py b/app_base/models/res_partner.py deleted file mode 100644 index 898dfc64..00000000 --- a/app_base/models/res_partner.py +++ /dev/null @@ -1,64 +0,0 @@ -# -*- coding: utf-8 -*- -# Part of Odoo. See LICENSE file for full copyright and licensing details. - -import base64 -import collections -import datetime -import hashlib -import pytz -import threading -import re - -from email.utils import formataddr - -import requests -from lxml import etree -from werkzeug import urls - -from odoo import api, fields, models, tools, SUPERUSER_ID, _ -from odoo.modules import get_module_resource -from odoo.osv.expression import get_unaccent_wrapper -from odoo.exceptions import UserError, ValidationError -from odoo.tools import pycompat - - -class Partner(models.Model): - _inherit = 'res.partner' - - def _get_default_customer(self): - search_partner_mode = self.env.context.get('res_partner_search_mode') - is_customer = search_partner_mode == 'customer' - if is_customer and not self.env.context.get('default_customer'): - return is_customer - else: - return None - - def _get_default_supplier(self): - search_partner_mode = self.env.context.get('res_partner_search_mode') - is_supplier = search_partner_mode == 'supplier' - if is_supplier and not self.env.context.get('default_supplier'): - return is_supplier - else: - return None - - customer = fields.Boolean(string='Is a Customer', default=_get_default_customer, inverse='_set_customer', - help="Check this box if this contact is a customer. It can be selected in sales orders.") - supplier = fields.Boolean(string='Is a Vendor', default=_get_default_supplier, inverse='_set_supplier', - help="Check this box if this contact is a vendor. It can be selected in purchase orders.") - - def _set_customer(self): - for rec in self: - if rec.customer: - if rec.customer_rank < 1 or not rec.customer_rank: - rec.customer_rank = 1 - else: - rec.customer_rank = 0 - - def _set_supplier(self): - for rec in self: - if rec.supplier: - if rec.supplier_rank < 1 or not rec.supplier_rank: - rec.supplier_rank = 1 - else: - rec.supplier_rank = 0 - diff --git a/app_base/report/__init__.py b/app_base/report/__init__.py deleted file mode 100644 index 633f8661..00000000 --- a/app_base/report/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -# -*- coding: utf-8 -*- - diff --git a/app_base/security/app_security.xml b/app_base/security/app_security.xml deleted file mode 100644 index a4b85605..00000000 --- a/app_base/security/app_security.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - acc_module_user - - - - - - - - - - App... - Helps you manage your ... - 8 - - - - - App User - - - The user will be able to ... - - - - - App Admin - - - The user will be able to config ... - - - - - - - - - - Users are allowed to access their own m/// - - ['|', ('partner_id', 'in', [user.partner_id.id]), ('user_id.id', '=', user.id)] - - - - - diff --git a/app_base/security/ir.model.access.csv b/app_base/security/ir.model.access.csv deleted file mode 100644 index 58262d44..00000000 --- a/app_base/security/ir.model.access.csv +++ /dev/null @@ -1 +0,0 @@ -id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink \ No newline at end of file diff --git a/app_base/static/description/banner.png b/app_base/static/description/banner.png deleted file mode 100644 index b798122f..00000000 Binary files a/app_base/static/description/banner.png and /dev/null differ diff --git a/app_base/static/description/demo1.jpg b/app_base/static/description/demo1.jpg deleted file mode 100644 index 696f76f5..00000000 Binary files a/app_base/static/description/demo1.jpg and /dev/null differ diff --git a/app_base/static/description/icon.png b/app_base/static/description/icon.png deleted file mode 100644 index 193af764..00000000 Binary files a/app_base/static/description/icon.png and /dev/null differ diff --git a/app_base/static/description/index.html b/app_base/static/description/index.html deleted file mode 100644 index 32449166..00000000 --- a/app_base/static/description/index.html +++ /dev/null @@ -1,87 +0,0 @@ - - - - Partner set customer vendor - Set and view partner type: customer or vendor. - - Lastest update: v13.19.10.28 - - - - - - Key features: - - - - Add customer, vendor field to partner model and views. Like odoo 12. - - - - Set and view partner type: customer or supplier. - - - - - - - - - - - - So Easy to set and show customer or vendor. - - - - - - - - - - Multi-language Support.. - - - - - - - - - - - Technical Help & Support - - - - - For any type of technical help & support requests, Feel free to contact us - - guohuadeng@hotmail.com - - Via QQ: 300883 - - 300883@qq.com - - - - Visit our website for more support. - - https://www.sunpop.cn - - - - - More Powerful addons, Make your odoo very easy to use, easy customize: - Supop.cn Odoo Addons - - - - diff --git a/app_base/static/img/icon_sunpop.png b/app_base/static/img/icon_sunpop.png deleted file mode 100644 index aa490954..00000000 Binary files a/app_base/static/img/icon_sunpop.png and /dev/null differ diff --git a/app_base/static/img/logo_sunpop.png b/app_base/static/img/logo_sunpop.png deleted file mode 100644 index bc32c24e..00000000 Binary files a/app_base/static/img/logo_sunpop.png and /dev/null differ diff --git a/app_base/views/product_product_views.xml b/app_base/views/product_product_views.xml deleted file mode 100644 index d8aa0a84..00000000 --- a/app_base/views/product_product_views.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - app.product.product.tree - product.product - - - - - - - - - diff --git a/app_base/views/res_partner_views.xml b/app_base/views/res_partner_views.xml deleted file mode 100644 index 80cde94a..00000000 --- a/app_base/views/res_partner_views.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - res.partner.form - res.partner - - - - - - - - - - - - -