mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
opt qty
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': 'Odoo Customize(Debranding, My Odoo)',
|
'name': 'Odoo Customize(Debranding, My Odoo)',
|
||||||
'version': '12.19.04.17',
|
'version': '12.19.04.18',
|
||||||
'author': 'Sunpop.cn',
|
'author': 'Sunpop.cn',
|
||||||
'category': 'Productivity',
|
'category': 'Productivity',
|
||||||
'website': 'https://www.sunpop.cn',
|
'website': 'https://www.sunpop.cn',
|
||||||
@@ -65,6 +65,7 @@
|
|||||||
22. Update online manual and developer document to odoo12
|
22. Update online manual and developer document to odoo12
|
||||||
23. Add reset or clear website blog data
|
23. Add reset or clear website blog data
|
||||||
24. Customize Odoo Native Module(eg. Enterprise) Url
|
24. Customize Odoo Native Module(eg. Enterprise) Url
|
||||||
|
25. Add remove expense data
|
||||||
|
|
||||||
This module can help to white label the Odoo.
|
This module can help to white label the Odoo.
|
||||||
Also helpful for training and support for your odoo end-user.
|
Also helpful for training and support for your odoo end-user.
|
||||||
|
|||||||
@@ -117,6 +117,8 @@ class ResConfigSettings(models.TransientModel):
|
|||||||
# 清除销售单据
|
# 清除销售单据
|
||||||
['sale.order.line', ],
|
['sale.order.line', ],
|
||||||
['sale.order', ],
|
['sale.order', ],
|
||||||
|
# 销售提成,自用
|
||||||
|
['sale.commission.line', ],
|
||||||
# 不能删除报价单模板
|
# 不能删除报价单模板
|
||||||
# ['sale.order.template.option', ],
|
# ['sale.order.template.option', ],
|
||||||
# ['sale.order.template.line', ],
|
# ['sale.order.template.line', ],
|
||||||
@@ -130,7 +132,9 @@ class ResConfigSettings(models.TransientModel):
|
|||||||
sql = "delete from %s" % obj._table
|
sql = "delete from %s" % obj._table
|
||||||
self._cr.execute(sql)
|
self._cr.execute(sql)
|
||||||
# 更新序号
|
# 更新序号
|
||||||
seqs = self.env['ir.sequence'].search([('code', '=', 'sale.order')])
|
seqs = self.env['ir.sequence'].search([
|
||||||
|
'|', ('code', '=', 'sale.order'),
|
||||||
|
('code', '=', 'sale.commission.line')])
|
||||||
for seq in seqs:
|
for seq in seqs:
|
||||||
seq.write({
|
seq.write({
|
||||||
'number_next': 1,
|
'number_next': 1,
|
||||||
@@ -233,6 +237,32 @@ class ResConfigSettings(models.TransientModel):
|
|||||||
pass # raise Warning(e)
|
pass # raise Warning(e)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
@api.multi
|
||||||
|
def remove_expense(self):
|
||||||
|
to_removes = [
|
||||||
|
# 清除采购单据
|
||||||
|
['hr.expense.sheet', ],
|
||||||
|
['hr.expense', ],
|
||||||
|
]
|
||||||
|
try:
|
||||||
|
for line in to_removes:
|
||||||
|
obj_name = line[0]
|
||||||
|
obj = self.pool.get(obj_name)
|
||||||
|
if obj:
|
||||||
|
sql = "delete from %s" % obj._table
|
||||||
|
self._cr.execute(sql)
|
||||||
|
# 更新序号
|
||||||
|
seqs = self.env['ir.sequence'].search([
|
||||||
|
('code', '=', 'hr.expense.invoice')])
|
||||||
|
for seq in seqs:
|
||||||
|
seq.write({
|
||||||
|
'number_next': 1,
|
||||||
|
})
|
||||||
|
self._cr.execute(sql)
|
||||||
|
except Exception as e:
|
||||||
|
pass # raise Warning(e)
|
||||||
|
return True
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
def remove_mrp(self):
|
def remove_mrp(self):
|
||||||
to_removes = [
|
to_removes = [
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ You can config odoo, make it look like your own platform.
|
|||||||
22. Update online manual and developer document to odoo12
|
22. Update online manual and developer document to odoo12
|
||||||
23. Add reset or clear website blog data
|
23. Add reset or clear website blog data
|
||||||
24. Customize Odoo Native Module(eg. Enterprise) Url
|
24. Customize Odoo Native Module(eg. Enterprise) Url
|
||||||
|
25. Add remove expense data
|
||||||
|
|
||||||
This module can help to white label the Odoo.
|
This module can help to white label the Odoo.
|
||||||
Also helpful for training and support for your odoo end-user.
|
Also helpful for training and support for your odoo end-user.
|
||||||
@@ -63,6 +64,7 @@ https://www.sunpop.cn
|
|||||||
22. 全新升级将odoo12用户及开发手册导航至国内网站,或者自己定义的网站
|
22. 全新升级将odoo12用户及开发手册导航至国内网站,或者自己定义的网站
|
||||||
23. 增加清除网站数据功能
|
23. 增加清除网站数据功能
|
||||||
24. 自定义 odoo 原生模块跳转的url(比如企业版模块)
|
24. 自定义 odoo 原生模块跳转的url(比如企业版模块)
|
||||||
|
25. 增加删除费用
|
||||||
|
|
||||||
使用方法:将解压后的 app_odoo_customize 放到 odoo的 addons目录下,激活开发者模式,应用-->更新应用列表,
|
使用方法:将解压后的 app_odoo_customize 放到 odoo的 addons目录下,激活开发者模式,应用-->更新应用列表,
|
||||||
找到 "App odoo Customize"模块,安装即可。
|
找到 "App odoo Customize"模块,安装即可。
|
||||||
|
|||||||
@@ -12,6 +12,8 @@
|
|||||||
<p>This moduld allows user to quickly customize and debranding Odoo. Quick debug, Language Switcher,
|
<p>This moduld allows user to quickly customize and debranding Odoo. Quick debug, Language Switcher,
|
||||||
Online Documentation Access,Quick Data Clear. </p>
|
Online Documentation Access,Quick Data Clear. </p>
|
||||||
<p>Support Odoo 12, 11, 10, 9. Including communicate and enterprise version. </p>
|
<p>Support Odoo 12, 11, 10, 9. Including communicate and enterprise version. </p>
|
||||||
|
<h3>Update: v12.19.04.18</h3>
|
||||||
|
<p>25. Add remove expense data</p>
|
||||||
<h3>Update: v12.19.04.17</h3>
|
<h3>Update: v12.19.04.17</h3>
|
||||||
<p>Add Customize Odoo Native Module(eg. Enterprise) Url</p>
|
<p>Add Customize Odoo Native Module(eg. Enterprise) Url</p>
|
||||||
<h3>Update: v12.19.3.15</h3>
|
<h3>Update: v12.19.3.15</h3>
|
||||||
|
|||||||
@@ -121,6 +121,11 @@
|
|||||||
<button string="Delete All Purchase Order and Requisition" type="object" name="remove_purchase"
|
<button string="Delete All Purchase Order and Requisition" type="object" name="remove_purchase"
|
||||||
confirm="Please confirm to delete the select data?" class="oe_highlight"/>
|
confirm="Please confirm to delete the select data?" class="oe_highlight"/>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-12 col-lg-12 mb4">
|
||||||
|
<span class="col-3 col-lg-2 text-left">Expense</span>
|
||||||
|
<button string="Delete All Expense and Sheet" type="object" name="remove_expense"
|
||||||
|
confirm="Please confirm to delete the select data?" class="oe_highlight"/>
|
||||||
|
</div>
|
||||||
<div class="col-12 col-lg-12 mb4">
|
<div class="col-12 col-lg-12 mb4">
|
||||||
<span class="col-3 col-lg-2 text-left">MRP</span>
|
<span class="col-3 col-lg-2 text-left">MRP</span>
|
||||||
<button string="Delete All Manufacturing Order" type="object" name="remove_mrp"
|
<button string="Delete All Manufacturing Order" type="object" name="remove_mrp"
|
||||||
|
|||||||
Reference in New Issue
Block a user