int 17
BIN
app_base_chinese/static/description/banner.jpg
Normal file
|
After Width: | Height: | Size: 73 KiB |
BIN
app_base_chinese/static/description/banner.png
Normal file
|
After Width: | Height: | Size: 97 KiB |
BIN
app_base_chinese/static/description/cnreadme.png
Normal file
|
After Width: | Height: | Size: 75 KiB |
BIN
app_base_chinese/static/description/demo1.jpg
Normal file
|
After Width: | Height: | Size: 81 KiB |
BIN
app_base_chinese/static/description/demo2.jpg
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
app_base_chinese/static/description/demo3.jpg
Normal file
|
After Width: | Height: | Size: 54 KiB |
BIN
app_base_chinese/static/description/icon.png
Normal file
|
After Width: | Height: | Size: 162 KiB |
156
app_base_chinese/static/description/index.html
Normal file
@@ -0,0 +1,156 @@
|
||||
<section class="oe_container container">
|
||||
<div class="oe_row oe_spaced" >
|
||||
<div class="row">
|
||||
<h2 class="oe_slogan">Chinese Enhance All in One。 Local customize for china user </h2>
|
||||
<h3 class="oe_slogan">20+ chinese setting enhance.</h3>
|
||||
<div class="oe_row">
|
||||
<h3>Lastest update: v16.23.08.02</h3>
|
||||
<div class="oe_span12 oe_spaced">
|
||||
<div class="alert alert-info" style="padding:8px;font-weight: 300; font-size: 20px;">
|
||||
<i class="fa fa-hand-o-right"></i><b> Key features: </b>
|
||||
<ul class="list-unstyled">
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
1. Chinese address format, applicable to all Chinese customers, suppliers, partners, users, employee information etc.
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
2. Default values in Chinese such as country, time zone and currency. Processing module base, product.
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
3. Add customer abbreviation and display addresses in Chinese; prioritize displaying customer codes.
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
4. Display phone numbers along with mobile numbers for customer addresses.
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
5. Currency processing with added sorting display.
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
6. Fixed bug where the category list and m2o field did not display the name of the Chinese directory.
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
7. Fixed bug where warehouse location list and m2o field did not display the name of the Chinese directory.
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
8. Superuser changed time zone to China.
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
9. Date format is year-month-day (e.g., 2023-08-08) and time is 12:34
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
10.Country sorting added; China ranked first
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
11.Display payment-related information according to typical practices in China.
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
12.Default export translation is set to Mandarin (po).
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
13.Added 'name_en_US' field in base model which updates translation value when assigned a value.
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
14.Common decimal precision adjustments made.
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
15.Sales team changed to "China".
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
21. Multi-language Support. Multi-Company Support.
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
22. Support Odoo 16,15,14,13,12, Enterprise and Community and odoo.sh Edition.
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
23. Full Open Source..
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<img class="oe_demo oe_screenshot img img-fluid" src="cnreadme.png">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="oe_container container">
|
||||
<div class="oe_row oe_spaced">
|
||||
<h4 class="oe_slogan">Set the address format to chinese. Including all customer, supplier, users</h4>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="demo1.jpg">
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<section class="oe_container container">
|
||||
<div class="oe_row oe_spaced">
|
||||
<h4 class="oe_slogan">Set Default country, state, timezone, currency.</h4>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="demo2.jpg">
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="oe_container container">
|
||||
<div class="oe_row oe_spaced">
|
||||
<h4 class="oe_slogan">Fix Category Display not in english bug.</h4>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="demo3.jpg">
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="container oe_dark">
|
||||
<div class="oe_row oe_spaced text-center">
|
||||
<div class="row">
|
||||
<h2 class="oe_slogan">Technical Help & Support</h2>
|
||||
</div>
|
||||
<div class="col-md-12 pad0">
|
||||
<div class="oe_mt16">
|
||||
<p><h4>
|
||||
For any type of technical help & support requests, Feel free to contact us</h4></p>
|
||||
<a style="background: #002e5a none repeat scroll 0% 0%; color: rgb(255, 255, 255);position: relative; overflow: hidden;"
|
||||
class="btn btn-warning btn-lg" rel="nofollow" href="mailto:odoo@china.com"><span
|
||||
style="height: 354px; width: 354px; top: -147.433px; left: -6.93335px;" class="o_ripple"></span>
|
||||
<i class="fa fa-envelope"></i> odoo@china.com</a>
|
||||
<p><h4>
|
||||
Via QQ: 300883 (App user would not get QQ or any other IM support. Only for odoo project customize.)</h4></p>
|
||||
<a style="background: #002e5a none repeat scroll 0% 0%; color: rgb(255, 255, 255);position: relative; overflow: hidden;"
|
||||
class="btn btn-warning btn-lg" rel="nofollow" href="mailto:300883@qq.com"><span
|
||||
style="height: 354px; width: 354px; top: -147.433px; left: -6.93335px;" class="o_ripple"></span>
|
||||
<i class="fa fa-envelope"></i> 300883@qq.com</a>
|
||||
</div>
|
||||
<div class="oe_mt16">
|
||||
<h4>
|
||||
Visit our website for more support.</h4>
|
||||
<h4>https://www.odooai.cn</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="oe_row oe_spaced text-center">
|
||||
<h2>More Powerful addons, Make your odoo very easy to use, easy customize:
|
||||
<a class="btn btn-primary mb16" href="http://www.odoo.com/apps/modules/browse?author=odooai.cn">odooai.cn Odoo Addons</a>
|
||||
</h2>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
<t>
|
||||
<t t-call="master_input" />
|
||||
<div class="row mb-3">
|
||||
<label for="dbname" class="col-md-4 col-form-label">Database Name</label>
|
||||
<div class="col-md-8">
|
||||
<input id="dbname" type="text" name="name" class="form-control" required="required" autocomplete="off" t-att-pattern="pattern" title="Only alphanumerical characters, underscore, hyphen and dot are allowed"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<label for="login" class="col-md-4 col-form-label">Email</label>
|
||||
<div class="col-md-8">
|
||||
<input id="login" type="text" name="login" class="form-control" required="required" autocomplete="off"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<label for="password" class="col-md-4 col-form-label">Password</label>
|
||||
<div class="col-md-8">
|
||||
<div class="input-group">
|
||||
<input id="password" type="password" name="password" class="form-control" required="required" autocomplete="off"/>
|
||||
<span class="fa fa-eye o_little_eye input-group-text" aria-hidden="true" style="cursor: pointer;"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<label for="phone" class="col-md-4 col-form-label">Phone number</label>
|
||||
<div class="col-md-8">
|
||||
<input id="phone" type="tel" name="phone" class="form-control" autocomplete="off"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<label for="lang" class="col-md-4 col-form-label">Language</label>
|
||||
<div class="col-md-8">
|
||||
<select id="lang" name="lang" class="form-select" required="required" autocomplete="off">
|
||||
<t t-foreach="langs" t-as="lang">
|
||||
<t t-if="lang[0] == 'zh_CN'">
|
||||
<option t-att-value="lang[0]" t-out="lang[1]" selected="selected"/>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<option t-att-value="lang[0]" t-out="lang[1]"/>
|
||||
</t>
|
||||
</t>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<label for="country" class="col-md-4 col-form-label ">Country</label>
|
||||
<div class="col-md-8">
|
||||
<select id="country" name="country_code" class="form-select" autocomplete="off">
|
||||
<option value=""></option>
|
||||
<t t-foreach="countries" t-as="country">
|
||||
<t t-if="country[0] == 'cn'">
|
||||
<option t-att-value="country[0]" t-out="country[1]" selected="selected"/>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<option t-att-value="country[0]" t-out="country[1]"/>
|
||||
</t>
|
||||
</t>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<label for="load_demo_checkbox" class="col-md-4 col-form-label">Demo data</label>
|
||||
<div class="col-md-8">
|
||||
<input type="checkbox" id="load_demo_checkbox" class="form-control-sm" name="demo" value="1" />
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
39
app_base_chinese/static/src/scss/app_style.scss
Normal file
@@ -0,0 +1,39 @@
|
||||
//必须有 form ,故要特殊处理样式
|
||||
.o_form_view.o_form_nosheet.o_form_address_chinese, .o_form_view .o_form_nosheet.o_form_address_chinese {
|
||||
padding: 0 0 0 0;
|
||||
}
|
||||
.o_form_view .o_address_format.o_address_chinese {
|
||||
.o_address_country {
|
||||
display: -webkit-inline-flex;
|
||||
display: inline-flex;
|
||||
width: 38%;
|
||||
margin-right: 2%;
|
||||
}
|
||||
}
|
||||
.o_form_view .o_address_format.o_address_chinese {
|
||||
.o_address_country {
|
||||
display: -webkit-inline-flex;
|
||||
display: inline-flex;
|
||||
width: 38%;
|
||||
margin-right: 2%;
|
||||
}
|
||||
}
|
||||
|
||||
.o_form_view .o_form_editable .o_address_format.o_address_chinese {
|
||||
.o_address_zip{
|
||||
width: 38%;
|
||||
margin-right: 2%;
|
||||
}
|
||||
.o_address_state {
|
||||
width: 38%;
|
||||
margin-right: 2%;
|
||||
}
|
||||
.o_address_city{
|
||||
width: 38%;
|
||||
margin-right: 2%;
|
||||
}
|
||||
.o_address_city_id{
|
||||
width: 38%;
|
||||
margin-right: 2%;
|
||||
}
|
||||
}
|
||||
12
app_base_chinese/static/src/xml/views.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
<!--改search中英文-->
|
||||
<t t-extend="SearchPanel.Category">
|
||||
<t t-jquery="div.alert" t-operation="replace">
|
||||
<div t-if="category.limitAttained" class="alert alert-warning">
|
||||
<span>性能原因,只支持 200 条记录的显示</span>
|
||||
<span t-if="category.parentField">记录没有树状结构</span>
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
</templates>
|
||||