|  宣一敏
					
				
				
						00a249896c
						
				
				
				
				增加开票模块 | 3 年之前 | |
|---|---|---|
| doc | 3 年之前 | |
| oec_base | 3 年之前 | |
| oec_im_wecom_api | 3 年之前 | |
| oec_im_wecom_base | 3 年之前 | |
| oec_im_wecom_contacts | 3 年之前 | |
| oec_im_wecom_contacts_sync | 3 年之前 | |
| oec_im_wecom_material | 3 年之前 | |
| oec_im_wecom_widget | 3 年之前 | |
| oec_l10n | 3 年之前 | |
| oec_tax_base | 3 年之前 | |
| oec_theme_backend | 3 年之前 | |
| oec_widget | 3 年之前 | |
| .gitignore | 3 年之前 | |
| LICENSE | 3 年之前 | |
| README.md | 3 年之前 | |
| requirements.txt | 3 年之前 | |
Open Erp China - 一个基于odoo扩展的中国本土化ERP项目Open Erp China 介绍上海开源信息技术协会 发起的基于Odoo扩展的中国本土化ERP项目,汇集各Odoo资深从业人员的本土化开源Odoo模块。OEC。Open Erp China 目标16.0 版本的根路径   git clone https://github.com/odoo/odoo.git --depth 1 --branch 16.0 --single-branch src
   git clone http://osbzr.com/odoochina/china_addons.git --depth 1 --branch 16.0 --single-branch oec
Odoo 需要的依赖   cd src
   pip install -r requirements.txt -i https://pypi.doubanio.com/simple
ChinaERP 需要的依赖   cd oec
   pip install -r requirements.txt -i https://pypi.doubanio.com/simple
src/debian/ 复制文件 odoo.conf 到根路径16.0下,修改内容为:   [options]
   ; admin_passwd 是数据库管理密码
   admin_passwd = admin
   ; 数据库访问的相关参数
   db_host = localhost
   db_port = False
   db_user = odoo
   db_password = odoo
   db_maxconn = 1200
   ; addons_path 是模块路径
   addons_path = src/odoo/addons,src/addons,oec
   ; dbfilter 指定数据库
   dbfilter = oec
   ; 是否启用代理模式
   proxy_mode = True
   ; PG bin安装路径
   pg_path = C:\Program Files\PostgreSQL\14\bin
   data_dir = data_dir
   geoip_database = GeoIP\GeoLite2-City.mmdb
oec_ 开头oec_ 开头,后面跟业务名。例如如 oec_sale 表示销售模块;oec_account 表示财务模块;oec_hr 表示人力资源模块oec_ 开头,后面跟业务名,再跟功能名。例如如 oec_sale_order 表示销售订单模块;oec_account_invoice 表示财务发票模块;oec_hr_employee 表示人力资源员工模块开发者可以在 视图 res_config_settings_view_form 中添加标签 <widget name="oec_pro_upgrade_boolean" /> 来引流到自己的项目中。
具体如下:
   <div class="col-12 col-lg-6 o_setting_box" id="rainbow_community_theme_install">
      <div class="o_setting_left_pane">
            <field name="module_rainbow_community_theme" widget="oec_pro_upgrade_boolean"/>
      </div>
      <div class="o_setting_right_pane" id="rainbow_community_theme_settings">
         <label for="module_rainbow_community_theme"/>
         <div class="text-muted">
            This module modifies the web addon to provide responsiveness.
         </div>
         <div class="content-group" attrs="{'invisible': [('module_rainbow_community_theme', '=', False)]}" id="rainbow_community_theme_warning">
            <div class="mt4 text-warning">
               <strong>Save</strong> this page and come back here to set up other feature.
            </div>
         </div>
      </div>
      </div>
   </div>
<widget name="oec_pro_upgrade_boolean" /> 中的 url 参数是指向开发者的项目地址,如果不填写则默认为 http://osbzr.com/odoochina/china_addons"。<widget name="oec_pro_upgrade_boolean" /> 中的 image 参数用于加载开发定义图片,如果不填写暂时默认为 /web/static/img/enterprise_upgrade.jpg。