2012-05-16 15:12:46 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
2012-08-21 11:01:35 +00:00
|
|
|
<data noupdate="1">
|
2012-05-16 15:12:46 +00:00
|
|
|
|
2012-12-11 15:18:37 +00:00
|
|
|
<!-- The portal group -->
|
|
|
|
<record id="group_portal" model="res.groups">
|
|
|
|
<field name="name">Portal</field>
|
|
|
|
<field name="comment">Portal members have specific access rights (such as record rules and restricted menus).
|
|
|
|
They usually do not belong to the usual OpenERP groups.</field>
|
|
|
|
<field name="is_portal" eval="True"/>
|
|
|
|
<!-- Insert the template user from auth_signup in the portal members group -->
|
|
|
|
<field name="users" eval="[(4,ref('auth_signup.default_template_user'))]"/>
|
|
|
|
</record>
|
|
|
|
|
2012-07-16 13:52:09 +00:00
|
|
|
<!-- Mail group for the company's news -->
|
2012-07-02 21:56:04 +00:00
|
|
|
<record id="company_news_feed" model="mail.group">
|
2012-08-21 11:01:35 +00:00
|
|
|
<field name="name">Company's news</field>
|
2012-09-17 10:07:06 +00:00
|
|
|
<field name="public">public</field>
|
2012-07-02 21:56:04 +00:00
|
|
|
</record>
|
|
|
|
|
2012-11-26 13:36:42 +00:00
|
|
|
<record id="action_news" model="ir.actions.client">
|
2012-07-02 21:56:04 +00:00
|
|
|
<field name="name">News</field>
|
2012-11-26 13:36:42 +00:00
|
|
|
<field name="tag">mail.wall</field>
|
|
|
|
<field name="model">mail.group</field>
|
|
|
|
<field name="params" eval="{
|
|
|
|
'domain': [
|
|
|
|
('model', '=', 'mail.group'),
|
|
|
|
('res_id', '=', ref('company_news_feed'))
|
|
|
|
],
|
|
|
|
'context':{
|
2012-11-27 14:37:13 +00:00
|
|
|
'search_default_message_unread': False,
|
2012-11-26 13:36:42 +00:00
|
|
|
'default_model': 'mail.group',
|
|
|
|
'default_res_id': ref('company_news_feed'),
|
|
|
|
},
|
2012-11-30 16:01:57 +00:00
|
|
|
'show_link': False,
|
2012-11-26 13:36:42 +00:00
|
|
|
'res_model': 'mail.message',
|
|
|
|
'thread_level': 1,
|
|
|
|
}"/>
|
|
|
|
<field name="help" type="html">
|
|
|
|
<p>
|
|
|
|
Youd don't have unread company's news.
|
|
|
|
</p>
|
|
|
|
</field>
|
2012-07-02 21:56:04 +00:00
|
|
|
</record>
|
|
|
|
|
2012-08-13 13:38:27 +00:00
|
|
|
<!-- Mail group for the company's jobs -->
|
|
|
|
<record id="company_jobs" model="mail.group">
|
2012-08-13 15:26:04 +00:00
|
|
|
<field name="name">Company's jobs</field>
|
2012-09-17 10:07:06 +00:00
|
|
|
<field name="public">public</field>
|
2012-08-13 13:38:27 +00:00
|
|
|
</record>
|
|
|
|
|
2012-11-26 13:36:42 +00:00
|
|
|
<record id="action_jobs" model="ir.actions.client">
|
2012-08-13 13:38:27 +00:00
|
|
|
<field name="name">Jobs</field>
|
2012-11-26 13:36:42 +00:00
|
|
|
<field name="tag">mail.wall</field>
|
|
|
|
<field name="res_model">mail.message</field>
|
2012-08-13 13:38:27 +00:00
|
|
|
<field name="res_id" ref="company_jobs"/>
|
2012-11-26 13:36:42 +00:00
|
|
|
<field name="params" eval="{
|
|
|
|
'domain':[
|
|
|
|
('model', '=', 'mail.group'),
|
|
|
|
('res_id', '=', ref('company_jobs'))
|
|
|
|
],
|
|
|
|
'context':{
|
2012-11-27 14:37:13 +00:00
|
|
|
'search_default_message_unread': False,
|
2012-11-26 13:36:42 +00:00
|
|
|
'default_model': 'mail.group',
|
|
|
|
'default_res_id': ref('company_jobs'),
|
|
|
|
},
|
2012-11-30 16:01:57 +00:00
|
|
|
'show_link': False,
|
2012-11-26 13:36:42 +00:00
|
|
|
'res_model': 'mail.message',
|
|
|
|
'thread_level': 1,
|
|
|
|
}"/>
|
|
|
|
<field name="help" type="html">
|
|
|
|
<p>
|
|
|
|
Youd don't have unread job offers.
|
|
|
|
</p>
|
|
|
|
</field>
|
2012-08-13 13:38:27 +00:00
|
|
|
</record>
|
2012-12-11 15:20:06 +00:00
|
|
|
|
|
|
|
<!--
|
|
|
|
A group dedicated to the anonymous user only, making groups
|
|
|
|
restrictions more convenient.
|
|
|
|
-->
|
|
|
|
<record id="group_anonymous" model="res.groups">
|
2012-12-11 15:32:18 +00:00
|
|
|
<field name="name">Anonymous</field>
|
2012-12-12 08:14:17 +00:00
|
|
|
<field name="comment">Anonymous users have specific access rights (such as record rules and restricted menus).
|
|
|
|
They usually do not belong to the usual OpenERP groups.</field>
|
2012-12-11 15:20:06 +00:00
|
|
|
</record>
|
2012-10-24 13:15:54 +00:00
|
|
|
|
|
|
|
<record id="paypal_acquirer" model="portal.payment.acquirer">
|
|
|
|
<field name="name">Paypal</field>
|
|
|
|
<field name="form_template"><![CDATA[
|
|
|
|
% if object.company_id.paypal_account:
|
2012-10-25 11:35:02 +00:00
|
|
|
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
|
|
|
|
<input type="hidden" name="cmd" value="_xclick"/>
|
|
|
|
<input type="hidden" name="business" value="${object.company_id.paypal_account}"/>
|
|
|
|
<input type="hidden" name="item_name" value="${object.company_id.name} ${kind.title()} ${reference}"/>
|
|
|
|
<input type="hidden" name="amount" value="${amount}"/>
|
|
|
|
<input type="hidden" name="currency_code" value="${currency.name}"/>
|
|
|
|
<input type="image" name="submit" src="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif"/>
|
|
|
|
</form>
|
2012-10-24 13:15:54 +00:00
|
|
|
% endif
|
|
|
|
]]></field>
|
|
|
|
</record>
|
2012-08-13 13:38:27 +00:00
|
|
|
|
2012-05-16 15:12:46 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|