fix order dict

This commit is contained in:
ivan deng
2020-03-05 18:58:37 +08:00
parent 49f7a9e2ed
commit 883168d640
9 changed files with 115 additions and 12 deletions

View File

@@ -23,7 +23,7 @@
{
'name': 'Customize odoo OEM (Boost, My Odoo)',
'version': '13.20.03.04',
'version': '13.20.03.05',
'author': 'Sunpop.cn',
'category': 'Productivity',
'website': 'https://www.sunpop.cn',

View File

@@ -421,11 +421,10 @@ class ResConfigSettings(models.TransientModel):
['account.bank.statement', ],
['account.tax.account.tag', ],
['account.tax', ],
['account.tax', ],
['account.account.account.tag', ],
['wizard_multi_charts_accounts'],
['account.account', ],
['account.journal', ],
['account.account', ],
]
# todo: 要做 remove_hr因为工资表会用到 account
# 更新account关联很多是多公司字段故只存在 ir_property故在原模型只能用update
@@ -435,7 +434,9 @@ class ResConfigSettings(models.TransientModel):
field2 = self.env['ir.model.fields']._get('product.template', "supplier_taxes_id").id
sql = ("delete from ir_default where field_id = %s or field_id = %s") % (field1, field2)
sql2 = ("update account_journal set bank_account_id=NULL;")
self._cr.execute(sql)
self._cr.execute(sql2)
self._cr.commit()
except Exception as e:
pass # raise Warning(e)

View File

@@ -62,7 +62,7 @@
</field>
</record>
<!--默认打开可更新模块-->
<record id="base.open_module_tree" model="ir.module.module">
<record id="base.open_module_tree" model="ir.actions.act_window">
<field name="context">{'search_default_is_local_updatable':1}</field>
</record>
</odoo>