[MERGE]
bzr revid: apa@tinyerp.com-20120820162940-javt031p9qz9s30l bzr revid: apa@tinyerp.com-20120822052202-1lnirhxl5ik9khrf
This commit is contained in:
@@ -1106,7 +1106,8 @@ class account_voucher(osv.osv):
|
||||
# otherwise we use the rates of the system (giving the voucher date in the context)
|
||||
amount_currency = currency_obj.compute(cr, uid, company_currency, line.move_line_id.currency_id.id, move_line['debit']-move_line['credit'], context=ctx)
|
||||
if line.amount == line.amount_unreconciled and line.move_line_id.currency_id.id == voucher_currency:
|
||||
foreign_currency_diff = line.move_line_id.amount_residual_currency + amount_currency
|
||||
sign = voucher_brw.type in ('payment', 'purchase') and -1 or 1
|
||||
foreign_currency_diff = sign * line.move_line_id.amount_residual_currency + amount_currency
|
||||
|
||||
move_line['amount_currency'] = amount_currency
|
||||
voucher_line = move_line_obj.create(cr, uid, move_line)
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
'depends' : [
|
||||
'base',
|
||||
'share',
|
||||
'auth_anonymous',
|
||||
'auth_signup',
|
||||
],
|
||||
'author' : 'OpenERP SA',
|
||||
@@ -45,8 +46,8 @@ very handy when used in combination with the module 'share'.
|
||||
'data': [
|
||||
'security/portal_security.xml',
|
||||
'security/ir.model.access.csv',
|
||||
'portal_view.xml',
|
||||
'portal_data.xml',
|
||||
'portal_view.xml',
|
||||
'wizard/portal_wizard_view.xml',
|
||||
'wizard/share_wizard_view.xml',
|
||||
],
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<data noupdate="1">
|
||||
|
||||
<record id="portal" model="res.portal">
|
||||
<field name="name">Portal</field>
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
<!-- Mail group for the company's news -->
|
||||
<record id="company_news_feed" model="mail.group">
|
||||
<field name="name">Company's news feed</field>
|
||||
<field name="name">Company's news</field>
|
||||
</record>
|
||||
|
||||
<record id="action_news" model="ir.actions.act_window">
|
||||
@@ -32,24 +32,5 @@
|
||||
<field name="view_mode">form</field>
|
||||
</record>
|
||||
|
||||
<!-- Top menu item -->
|
||||
<menuitem name="Portal"
|
||||
id="portal_menu"
|
||||
groups="base.group_no_one,portal.group_portal_member,auth_anonymous.group_anonymous"
|
||||
sequence="20"/>
|
||||
|
||||
<menuitem name="Our company" id="portal_company" parent="portal_menu" sequence="10"/>
|
||||
<menuitem name="News" id="portal_company_news" parent="portal_company" sequence="10" action="action_news"/>
|
||||
<menuitem name="Jobs" id="portal_jobs" parent="portal_company" sequence="20" action="action_jobs"/>
|
||||
|
||||
<!--
|
||||
Create menu items that we'll leave empty for now - they'll be
|
||||
filled up by other portal modules.
|
||||
-->
|
||||
<menuitem name="Orders" id="portal_orders" parent="portal_menu" sequence="20"/>
|
||||
<menuitem name="Invoices and Payments" id="portal_invoices_payements" parent="portal_menu" sequence="30"/>
|
||||
<menuitem name="Projects" id="portal_projects" parent="portal_menu" sequence="40"/>
|
||||
<menuitem name="After Sale Services" id="portal_after_sales" parent="portal_menu" sequence="50"/>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
|
||||
@@ -2,6 +2,25 @@
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<!-- Top menu item -->
|
||||
<menuitem name="Portal"
|
||||
id="portal_menu"
|
||||
groups="base.group_no_one,portal.group_portal_member,auth_anonymous.group_anonymous"
|
||||
sequence="20"/>
|
||||
|
||||
<menuitem name="Our company" id="portal_company" parent="portal_menu" sequence="10"/>
|
||||
<menuitem name="News" id="portal_company_news" parent="portal_company" sequence="10" action="action_news"/>
|
||||
<menuitem name="Jobs" id="portal_jobs" parent="portal_company" sequence="20" action="action_jobs"/>
|
||||
|
||||
<!--
|
||||
Create menu items that we'll leave empty for now - they'll be
|
||||
filled up by other portal modules.
|
||||
-->
|
||||
<menuitem name="Orders" id="portal_orders" parent="portal_menu" sequence="20"/>
|
||||
<menuitem name="Invoices and Payments" id="portal_invoices_payements" parent="portal_menu" sequence="30"/>
|
||||
<menuitem name="Projects" id="portal_projects" parent="portal_menu" sequence="40"/>
|
||||
<menuitem name="After Sale Services" id="portal_after_sales" parent="portal_menu" sequence="50"/>
|
||||
|
||||
<!-- portal tree view -->
|
||||
<record id="portal_list_view" model="ir.ui.view">
|
||||
<field name="name">Portal List</field>
|
||||
|
||||
@@ -270,6 +270,7 @@ openerp.web_linkedin = function(instance) {
|
||||
template: "LinkedIn.KeyWizard",
|
||||
init: function(parent, text) {
|
||||
this._super(parent, {title:_t("LinkedIn API Key")});
|
||||
this.api_domain = window.location.origin;
|
||||
},
|
||||
start: function() {
|
||||
this._super();
|
||||
|
||||
@@ -41,8 +41,7 @@
|
||||
<li>Log into LinkedIn.</li>
|
||||
<li>Add a new application and fill the form:
|
||||
<ul>
|
||||
<li>JavaScript API Domain is Your domain name (e.g. https://yourcompany.my.openerp.com)</li>
|
||||
<li>You can give multiple domain (e.g. yourcompany.my.openerp.com)</li>
|
||||
<li>JavaScript API Domain: <t t-esc="widget.api_domain"/></li>
|
||||
<li>The programming tool is Javascript</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user