flectra/addons/l10n_fr_certification/data/account_move.xml

28 lines
1.2 KiB
XML
Raw Normal View History

2018-01-16 11:34:37 +01:00
<flectra>
<record model="ir.actions.server" id="action_check_hash_integrity">
<field name="name">Data Inalterability Check</field>
<field name="model_id" ref="account.model_account_move"/>
<field name="type">ir.actions.server</field>
<field name="state">code</field>
<field name="code">
action = env['account.move']._check_hash_integrity(env.user.company_id.id)
</field>
</record>
2018-01-16 11:34:37 +01:00
<record model="ir.actions.server" id="flectra_french_certification">
<field name="name">Get the certification now!</field>
<field name="type">ir.actions.server</field>
<field name="model_id" ref="account.model_res_company"/>
<field name="state">code</field>
<field name="code">
db_uuid = env['ir.config_parameter'].sudo().get_param('database.uuid')
action = {"type": "ir.actions.act_url",
2018-01-16 11:34:37 +01:00
"url": "https://www.flectra.com/my/contract/french-certification/db/" + db_uuid,
"target": "new",}
</field>
</record>
<menuitem action="action_check_hash_integrity" id="menu_check_move_integrity_reporting" parent="l10n_fr.account_reports_fr_statements_menu" sequence="90"/>
2018-01-16 11:34:37 +01:00
</flectra>