trytond-account_invoice_mil.../milestone.xml
2015-07-22 17:36:45 +02:00

525 lines
24 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<tryton>
<data>
<record model="res.group" id="group_invoice_milestone_admin">
<field name="name">Invoice Milestone Administration</field>
</record>
<record model="res.user-res.group"
id="user_admin_group_invoice_milestone_admin">
<field name="user" ref="res.user_admin"/>
<field name="group" ref="group_invoice_milestone_admin"/>
</record>
<record model="res.user-res.group"
id="user_trigger_group_invoice_milestone_admin">
<field name="user" ref="res.user_trigger"/>
<field name="group" ref="group_invoice_milestone_admin"/>
</record>
<record model="res.group" id="group_invoice_milestone">
<field name="name">Invoice Milestone</field>
</record>
<record model="res.user-res.group"
id="user_admin_group_invoice_milestone">
<field name="user" ref="res.user_admin"/>
<field name="group" ref="group_invoice_milestone"/>
</record>
<record model="res.user-res.group"
id="user_trigger_group_invoice_milestone">
<field name="user" ref="res.user_trigger"/>
<field name="group" ref="group_invoice_milestone"/>
</record>
<!-- account.invoice.milestone.group -->
<record model="ir.ui.view" id="invoice_milestone_group_view_form">
<field name="model">account.invoice.milestone.group</field>
<field name="type">form</field>
<field name="name">account_invoice_milestone_group_form</field>
</record>
<record model="ir.ui.view" id="invoice_milestone_group_view_list">
<field name="model">account.invoice.milestone.group</field>
<field name="type">tree</field>
<field name="name">account_invoice_milestone_group_list</field>
</record>
<record model="ir.action.act_window" id="act_invoice_milestone_group">
<field name="name">Milestone Groups</field>
<field name="res_model">account.invoice.milestone.group</field>
</record>
<record model="ir.action.act_window.view"
id="act_invoice_milestone_group_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="invoice_milestone_group_view_list"/>
<field name="act_window" ref="act_invoice_milestone_group"/>
</record>
<record model="ir.action.act_window.view"
id="act_invoice_milestone_group_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="invoice_milestone_group_view_form"/>
<field name="act_window" ref="act_invoice_milestone_group"/>
</record>
<record model="ir.model.button"
id="milestone_group_check_triggers_button">
<field name="name">check_triggers</field>
<field name="model"
search="[('model', '=', 'account.invoice.milestone.group')]"/>
</record>
<record model="ir.model.button-res.group"
id="milestone_group_check_triggers_button_group_milestone">
<field name="button" ref="milestone_group_check_triggers_button"/>
<field name="group" ref="group_invoice_milestone"/>
</record>
<record model="ir.model.button" id="milestone_group_close_button">
<field name="name">close</field>
<field name="model"
search="[('model', '=', 'account.invoice.milestone.group')]"/>
</record>
<record model="ir.model.button-res.group"
id="milestone_group_close_button_group_milestone">
<field name="button" ref="milestone_group_close_button"/>
<field name="group" ref="group_invoice_milestone"/>
</record>
<record model="ir.model.access"
id="access_invoice_milestone_group_milestone">
<field name="model"
search="[('model', '=', 'account.invoice.milestone.group')]"/>
<field name="group" ref="group_invoice_milestone"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.model.access"
id="access_invoice_milestone_group_sale">
<field name="model"
search="[('model', '=', 'account.invoice.milestone.group')]"/>
<field name="group" ref="sale.group_sale"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access"
id="access_invoice_milestone_group_account">
<field name="model"
search="[('model', '=', 'account.invoice.milestone.group')]"/>
<field name="group" ref="account.group_account"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.action.act_window" id="act_open_sales">
<field name="name">Sales</field>
<field name="res_model">sale.sale</field>
<field name="domain">[('milestone_group', 'in', Eval('active_ids'))]</field>
</record>
<record model="ir.action.keyword" id="act_open_sales_keyword1">
<field name="keyword">form_relate</field>
<field name="model">account.invoice.milestone.group,-1</field>
<field name="action" ref="act_open_sales"/>
</record>
<record model="ir.action.act_window" id="act_open_invoices">
<field name="name">Invoices</field>
<field name="res_model">account.invoice</field>
<field name="domain">[('milestone_group', 'in', Eval('active_ids'))]</field>
</record>
<record model="ir.action.keyword"
id="act_open_invoices_keyword1">
<field name="keyword">form_relate</field>
<field name="model">account.invoice.milestone.group,-1</field>
<field name="action" ref="act_open_invoices"/>
</record>
<!-- account.invoice.milestone -->
<record model="ir.ui.view" id="invoice_milestone_view_form">
<field name="model">account.invoice.milestone</field>
<field name="type">form</field>
<field name="name">account_invoice_milestone_form</field>
</record>
<record model="ir.ui.view" id="invoice_milestone_view_list">
<field name="model">account.invoice.milestone</field>
<field name="type">tree</field>
<field name="name">account_invoice_milestone_list</field>
</record>
<record model="ir.action.act_window" id="act_invoice_milestone">
<field name="name">Milestone</field>
<field name="res_model">account.invoice.milestone</field>
</record>
<record model="ir.action.act_window.view"
id="act_invoice_milestone_view1">
<field name="act_window" ref="act_invoice_milestone"/>
<field name="sequence" eval="10"/>
<field name="view" ref="invoice_milestone_view_list"/>
</record>
<record model="ir.action.act_window.view"
id="act_invoice_milestone_view2">
<field name="act_window" ref="act_invoice_milestone"/>
<field name="sequence" eval="20"/>
<field name="view" ref="invoice_milestone_view_form"/>
</record>
<record model="ir.action.act_window.domain"
id="act_milestone_domain_draft">
<field name="act_window" ref="act_invoice_milestone"/>
<field name="sequence" eval="10"/>
<field name="name">Draft</field>
<field name="domain">[('state', '=', 'draft')]</field>
</record>
<record model="ir.action.act_window.domain"
id="act_milestone_domain_approved">
<field name="act_window" ref="act_invoice_milestone"/>
<field name="sequence" eval="20"/>
<field name="name">Confirmed</field>
<field name="domain">[('state', '=', 'confirmed')]</field>
</record>
<record model="ir.action.act_window.domain"
id="act_milestone_domain_processing">
<field name="act_window" ref="act_invoice_milestone"/>
<field name="sequence" eval="30"/>
<field name="name">Processing</field>
<field name="domain">[('state', '=', 'processing')]</field>
</record>
<record model="ir.action.act_window.domain"
id="act_milestone_domain_succeeded">
<field name="act_window" ref="act_invoice_milestone"/>
<field name="sequence" eval="40"/>
<field name="name">Succeeded</field>
<field name="domain">[('state', '=', 'succeeded')]</field>
</record>
<record model="ir.action.act_window.domain"
id="act_milestone_domain_failed">
<field name="act_window" ref="act_invoice_milestone"/>
<field name="sequence" eval="50"/>
<field name="name">Failed</field>
<field name="domain">[('state', '=', 'failed')]</field>
</record>
<record model="ir.action.act_window.domain"
id="act_milestone_domain_all">
<field name="act_window" ref="act_invoice_milestone"/>
<field name="sequence" eval="9999"/>
<field name="name">All</field>
</record>
<record model="ir.model.button" id="milestone_draft_button">
<field name="name">draft</field>
<field name="model"
search="[('model', '=', 'account.invoice.milestone')]"/>
</record>
<record model="ir.model.button-res.group"
id="milestone_draft_button_group_milestone">
<field name="button" ref="milestone_draft_button"/>
<field name="group" ref="group_invoice_milestone"/>
</record>
<record model="ir.model.button" id="milestone_confirm_button">
<field name="name">confirm</field>
<field name="model"
search="[('model', '=', 'account.invoice.milestone')]"/>
</record>
<record model="ir.model.button-res.group"
id="milestone_confirm_button_group_milestone">
<field name="button" ref="milestone_confirm_button"/>
<field name="group" ref="group_invoice_milestone"/>
</record>
<record model="ir.model.button" id="milestone_do_invoice_button">
<field name="name">do_invoice</field>
<field name="model"
search="[('model', '=', 'account.invoice.milestone')]"/>
</record>
<record model="ir.model.button-res.group"
id="milestone_do_invoice_button_group_milestone">
<field name="button" ref="milestone_do_invoice_button"/>
<field name="group" ref="group_invoice_milestone"/>
</record>
<record model="ir.model.button" id="milestone_cancel_button">
<field name="name">cancel</field>
<field name="model"
search="[('model', '=', 'account.invoice.milestone')]"/>
</record>
<record model="ir.model.button-res.group"
id="milestone_cancel_button_group_milestone">
<field name="button" ref="milestone_cancel_button"/>
<field name="group" ref="group_invoice_milestone"/>
</record>
<record model="ir.model.access" id="access_invoice_milestone_milestone">
<field name="model"
search="[('model', '=', 'account.invoice.milestone')]"/>
<field name="group" ref="group_invoice_milestone"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.model.access" id="access_invoice_milestone_sale">
<field name="model"
search="[('model', '=', 'account.invoice.milestone')]"/>
<field name="group" ref="sale.group_sale"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_invoice_milestone_account">
<field name="model"
search="[('model', '=', 'account.invoice.milestone')]"/>
<field name="group" ref="account.group_account"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<!-- account.invoice.milestone.group.type -->
<record model="ir.ui.view"
id="invoice_milestone_group_type_view_form">
<field name="model">account.invoice.milestone.group.type</field>
<field name="type">form</field>
<field name="name">account_invoice_milestone_group_type_form</field>
</record>
<record model="ir.ui.view"
id="invoice_milestone_group_type_view_list">
<field name="model">account.invoice.milestone.group.type</field>
<field name="type">tree</field>
<field name="name">account_invoice_milestone_group_type_list</field>
</record>
<record model="ir.action.act_window"
id="act_invoice_milestone_group_type">
<field name="name">Milestone Group Types</field>
<field name="res_model">account.invoice.milestone.group.type</field>
</record>
<record model="ir.action.act_window.view"
id="act_invoice_milestone_group_type_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="invoice_milestone_group_type_view_list"/>
<field name="act_window" ref="act_invoice_milestone_group_type"/>
</record>
<record model="ir.action.act_window.view"
id="act_invoice_milestone_group_type_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="invoice_milestone_group_type_view_form"/>
<field name="act_window" ref="act_invoice_milestone_group_type"/>
</record>
<record model="ir.model.access"
id="access_invoice_milestone_group_type_admin">
<field name="model"
search="[('model', '=', 'account.invoice.milestone.group.type')]"/>
<field name="group" ref="group_invoice_milestone_admin"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.model.access"
id="access_invoice_milestone_group_type_milestone">
<field name="model"
search="[('model', '=', 'account.invoice.milestone.group.type')]"/>
<field name="group" ref="group_invoice_milestone"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access"
id="access_invoice_milestone_group_type_sale">
<field name="model"
search="[('model', '=', 'account.invoice.milestone.group.type')]"/>
<field name="group" ref="sale.group_sale"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<!-- account.invoice.milestone.type -->
<record model="ir.ui.view" id="invoice_milestone_type_view_form">
<field name="model">account.invoice.milestone.type</field>
<field name="type">form</field>
<field name="name">account_invoice_milestone_type_form</field>
</record>
<record model="ir.ui.view" id="invoice_milestone_type_view_list">
<field name="model">account.invoice.milestone.type</field>
<field name="type">tree</field>
<field name="name">account_invoice_milestone_type_list</field>
</record>
<record model="ir.action.act_window" id="act_invoice_milestone_type">
<field name="name">Milestone Types</field>
<field name="res_model">account.invoice.milestone.type</field>
</record>
<record model="ir.action.act_window.view"
id="act_invoice_milestone_type_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="invoice_milestone_type_view_list"/>
<field name="act_window" ref="act_invoice_milestone_type"/>
</record>
<record model="ir.action.act_window.view"
id="act_invoice_milestone_type_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="invoice_milestone_type_view_form"/>
<field name="act_window" ref="act_invoice_milestone_type"/>
</record>
<record model="ir.model.access" id="access_invoice_milestone_type_admin">
<field name="model"
search="[('model', '=', 'account.invoice.milestone.type')]"/>
<field name="group" ref="group_invoice_milestone_admin"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.model.access"
id="access_invoice_milestone_type_milestone">
<field name="model"
search="[('model', '=', 'account.invoice.milestone.type')]"/>
<field name="group" ref="group_invoice_milestone"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_invoice_milestone_type_sale">
<field name="model"
search="[('model', '=', 'account.invoice.milestone.type')]"/>
<field name="group" ref="sale.group_sale"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<!-- account.configuration -->
<record model="ir.ui.view" id="configuration_view_form">
<field name="model">account.configuration</field>
<field name="type">form</field>
<field name="inherit" ref="account.configuration_view_form"/>
<field name="name">configuration_form</field>
</record>
<!-- account.invoice -->
<record model="ir.ui.view" id="account_invoice_view_form">
<field name="model">account.invoice</field>
<field name="type">form</field>
<field name="inherit" ref="account_invoice.invoice_view_form"/>
<field name="name">invoice_form</field>
</record>
<!-- Menus -->
<menuitem id="menu_milestone_configuration" name="Milestones"
parent="account.menu_account_configuration" sequence="30"/>
<record model="ir.ui.menu-res.group"
id="menu_milestone_configuration_group_invoice_milestone_admin">
<field name="menu" ref="menu_milestone_configuration"/>
<field name="group" ref="group_invoice_milestone_admin"/>
</record>
<menuitem action="act_invoice_milestone_group_type"
id="menu_invoice_milestone_group_type"
parent="menu_milestone_configuration" sequence="10"/>
<menuitem id="menu_milestone" name="Milestones"
parent="account.menu_account" sequence="30"/>
<record model="ir.ui.menu-res.group"
id="menu_milestone_group_invoice_milestone">
<field name="menu" ref="menu_milestone"/>
<field name="group" ref="group_invoice_milestone"/>
</record>
<menuitem action="act_invoice_milestone_group"
id="menu_invoice_milestone_group"
parent="menu_milestone" sequence="10"/>
<menuitem action="act_invoice_milestone"
id="menu_invoice_milestone"
parent="menu_invoice_milestone_group" sequence="10"/>
<!-- Sequences -->
<record model="ir.sequence.type" id="sequence_type_milestone_group">
<field name="name">Account Invoice Milestone Group</field>
<field name="code">account.invoice.milestone.group</field>
</record>
<record model="ir.sequence.type-res.group"
id="sequence_type_milestone_group_group_admin">
<field name="sequence_type" ref="sequence_type_milestone_group"/>
<field name="group" ref="res.group_admin"/>
</record>
<record model="ir.sequence.type-res.group"
id="sequence_type_milestone_group_group_milestone_admin">
<field name="sequence_type" ref="sequence_type_milestone_group"/>
<field name="group" ref="group_invoice_milestone_admin"/>
</record>
<record model="ir.sequence" id="sequence_milestone_group">
<field name="name">Milestone Group</field>
<field name="code">account.invoice.milestone.group</field>
</record>
<record model="ir.sequence.type" id="sequence_type_milestone">
<field name="name">Account Invoice Milestone</field>
<field name="code">account.invoice.milestone</field>
</record>
<record model="ir.sequence.type-res.group"
id="sequence_type_milestone_group_admin">
<field name="sequence_type" ref="sequence_type_milestone"/>
<field name="group" ref="res.group_admin"/>
</record>
<record model="ir.sequence.type-res.group"
id="sequence_type_milestone_group_milestone_admin">
<field name="sequence_type" ref="sequence_type_milestone"/>
<field name="group" ref="group_invoice_milestone_admin"/>
</record>
<record model="ir.sequence" id="sequence_milestone">
<field name="name">Milestone</field>
<field name="code">account.invoice.milestone</field>
</record>
<!-- cron task -->
<record model="res.user" id="user_check_triggers">
<field name="login">user_cron_milestone_triggers</field>
<field name="name">Cron Milestone Triggers</field>
<field name="signature"></field>
<field name="active" eval="False"/>
</record>
<record model="res.user-res.group"
id="user_check_triggers_group_invoice_milestone">
<field name="user" ref="user_check_triggers"/>
<field name="group" ref="group_invoice_milestone"/>
</record>
<record model="ir.cron" id="cron_check_milestone_triggers">
<field name="name">Check Milestone Triggers</field>
<field name="request_user" ref="res.user_admin"/>
<field name="user" ref="user_check_triggers"/>
<field name="active" eval="True"/>
<field name="interval_number" eval="1"/>
<field name="interval_type">days</field>
<field name="number_calls" eval="-1"/>
<field name="repeat_missed" eval="False"/>
<field name="model">account.invoice.milestone.group</field>
<field name="function">check_triggers</field>
</record>
</data>
</tryton>