mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update izi and common misc
This commit is contained in:
@@ -38,8 +38,8 @@
|
||||
##############################################################################
|
||||
|
||||
{
|
||||
'name': "odooai Odooapp Common Func",
|
||||
'version': '16.23.10.10',
|
||||
'name': "odooAi Common Util and Tools",
|
||||
'version': '16.23.10.24',
|
||||
'author': 'odooai.cn',
|
||||
'category': 'Base',
|
||||
'website': 'https://www.odooai.cn',
|
||||
@@ -50,18 +50,25 @@
|
||||
'currency': 'EUR',
|
||||
'images': ['static/description/banner.png'],
|
||||
'summary': '''
|
||||
Core for common use odooai apps.
|
||||
Core for common use for odooai.cn apps.
|
||||
基础核心,必须没有要被依赖字段及视图等,实现auto_install
|
||||
''',
|
||||
'description': '''
|
||||
Support Odoo 16, Enterprise and Community Edition
|
||||
'description': '''
|
||||
need to setup odoo.conf, add follow:
|
||||
server_wide_modules = web,app_common
|
||||
1.
|
||||
2.
|
||||
3. Multi-language Support.
|
||||
4. Multi-Company Support.
|
||||
5. Support Odoo 16, Enterprise and Community Edition
|
||||
1. Quick import data from excel with .py code
|
||||
2. Quick m2o default value
|
||||
3. Filter for useless field
|
||||
4. UTC local timezone convert
|
||||
5. Get browser ua, user-agent
|
||||
6. Image to local, image url to local, media to local attachment
|
||||
7. Log cron job
|
||||
8. Boost for less no use mail
|
||||
9. Customize .rng file
|
||||
10. Misc like get distance between two points
|
||||
11. Multi-language Support. Multi-Company Support
|
||||
12. Support Odoo 17,16,15,14,13,12, Enterprise and Community and odoo.sh Edition.
|
||||
13. Full Open Source.
|
||||
==========
|
||||
1.
|
||||
2.
|
||||
@@ -84,6 +91,7 @@
|
||||
# 'pre_init_hook': 'pre_init_hook',
|
||||
# 'post_init_hook': 'post_init_hook',
|
||||
# 'uninstall_hook': 'uninstall_hook',
|
||||
'external_dependencies': {'python': ['pyyaml', 'ua-parser', 'user-agents']},
|
||||
'installable': True,
|
||||
'application': True,
|
||||
'auto_install': True,
|
||||
|
||||
@@ -23,7 +23,7 @@ def app_relaxng(view_type):
|
||||
relaxng_doc = etree.parse(frng)
|
||||
_relaxng_cache[view_type] = etree.RelaxNG(relaxng_doc)
|
||||
except Exception:
|
||||
_logger.error('Failed to load RelaxNG XML schema for views validation')
|
||||
_logger.error('You can Ignore this. Failed to load RelaxNG XML schema for views validation')
|
||||
_relaxng_cache[view_type] = None
|
||||
return _relaxng_cache[view_type]
|
||||
|
||||
|
||||
@@ -11,6 +11,13 @@ class MailMail(models.Model):
|
||||
# 猴子补丁模式,改默认发邮件逻辑
|
||||
def _send(self, auto_commit=False, raise_exception=False, smtp_session=None):
|
||||
for m in self:
|
||||
if m.email_to and (m.email_to.find('example.com') != -1 or m.email_to.find('@odooai.cn') != -1 or m.email_to.find('@odooapp.cn') != -1):
|
||||
email_to = m.email_to
|
||||
# 忽略掉无效email,避免被ban
|
||||
if email_to.find('no-reply@odooai.cn') != -1 or email_to.find('postmaster-odoo@odooai.cn') != -1:
|
||||
pass
|
||||
elif email_to.find('example.com') != -1 or email_to.find('@sunpop.cn') != -1 or email_to.find('@odooapp.cn') != -1:
|
||||
_logger.error(_("=================Email to ignore: %s") % email_to)
|
||||
self = self - m
|
||||
if not self:
|
||||
return True
|
||||
return super(MailMail, self)._send(auto_commit, raise_exception, smtp_session)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<section class="oe_container container">
|
||||
<div class="oe_row oe_spaced" >
|
||||
<div class="row">
|
||||
<h2 class="oe_slogan"> </h2>
|
||||
<h3 class="oe_slogan"> </h3>
|
||||
<h2 class="oe_slogan">odooAi Common Util and Tools</h2>
|
||||
<h3 class="oe_slogan"> Network and media and base tools </h3>
|
||||
<div class="oe_row">
|
||||
<h3>Lastest update: v16.22.02.02</h3>
|
||||
<div class="row">
|
||||
@@ -14,19 +14,59 @@
|
||||
<ul class="list-unstyled">
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
Put key function here.
|
||||
1. Quick import data from excel with .py code
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
3. Multi-language Support.
|
||||
2. Quick m2o default value
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
4. Multi-Company Support.
|
||||
3. Filter for useless field
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
5. Support Odoo 16, 15, 14, 13, 12, 11, Enterprise and Community Edition.
|
||||
4. UTC local timezone convert
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
5. Get browser ua, user-agent
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
6. Image to local, image url to local, media to local attachment
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
7. Log cron job
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
8. Boost for less no use mail
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
9. Customize .rng file
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
10. Misc like get distance between two points
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
11. Multi-language Support. Multi-Company Support
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
12. Support Odoo 17,16,15,14,13,12, Enterprise and Community and odoo.sh Edition.
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
11. Multi-language Support. Multi-Company Support
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
13. Full Open Source.
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -40,33 +80,11 @@
|
||||
<div class="oe_row oe_spaced">
|
||||
<h2 class="bg-warning text-center pt8 pb8">Setup, please run the follow command to install the lib.</h2>
|
||||
<h4 class="oe_slogan"> pip install pyyaml ua-parser user-agents </h4>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src=".jpg"/>
|
||||
</div>
|
||||
<h4 class="oe_slogan"> After that, install the app_common </h4>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<section class="oe_container container">
|
||||
<div class="oe_row oe_spaced">
|
||||
<h2 class="bg-warning text-center pt8 pb8">So Easy to navigator and search any data.</h2>
|
||||
<h4 class="oe_slogan"> </h4>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src=".jpg"/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="oe_container container">
|
||||
<div class="oe_row oe_spaced">
|
||||
<h2 class="bg-warning text-center pt8 pb8">Multi-language Support..</h2>
|
||||
<h4 class="oe_slogan"> </h4>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="cnreadme.jpg"/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="container oe_dark">
|
||||
<div class="oe_row oe_spaced text-center">
|
||||
<div class="row">
|
||||
|
||||
Reference in New Issue
Block a user