flectra/addons/l10n_fr_certification/data/account_move.xml

28 lines
1.2 KiB
XML

<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>
<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",
"url": "https://www.flectrahq.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"/>
</flectra>