[MERGE] forward port branch 9.0 up to e0c0a5f
This commit is contained in:
@@ -128,7 +128,7 @@ class AccountAccount(models.Model):
|
||||
if name:
|
||||
domain = ['|', ('code', '=ilike', name + '%'), ('name', operator, name)]
|
||||
if operator in expression.NEGATIVE_TERM_OPERATORS:
|
||||
domain = ['&'] + domain
|
||||
domain = ['&', '!'] + domain[1:]
|
||||
accounts = self.search(domain + args, limit=limit)
|
||||
return accounts.name_get()
|
||||
|
||||
|
||||
@@ -99,7 +99,8 @@ class AccountInvoiceRefund(models.TransientModel):
|
||||
'tax_line_ids': tax_lines,
|
||||
'date': date,
|
||||
'name': description,
|
||||
'origin': inv.origin
|
||||
'origin': inv.origin,
|
||||
'fiscal_position': inv.fiscal_position.id,
|
||||
})
|
||||
for field in ('partner_id', 'account_id', 'currency_id',
|
||||
'payment_term_id', 'journal_id'):
|
||||
|
||||
@@ -3,66 +3,6 @@
|
||||
|
||||
# Copyright (c) 2009 Veritos - Jan Verlaan - www.veritos.nl
|
||||
|
||||
#
|
||||
# Deze module werkt in Odoo 5.0.0 (en waarschijnlijk hoger).
|
||||
# Deze module werkt niet in Odoo versie 4 en lager.
|
||||
#
|
||||
# Status 1.0 - getest op Odoo 5.0.3
|
||||
#
|
||||
# Versie 5.0.0.1
|
||||
# account.account.type
|
||||
# Basis gelegd voor alle account type
|
||||
#
|
||||
# account.account.template
|
||||
# Basis gelegd met alle benodigde grootboekrekeningen welke via een menu-
|
||||
# structuur gelinkt zijn aan rubrieken 1 t/m 9.
|
||||
# De grootboekrekeningen gelinkt aan de account.account.type
|
||||
# Deze links moeten nog eens goed nagelopen worden.
|
||||
#
|
||||
# account.chart.template
|
||||
# Basis gelegd voor het koppelen van rekeningen aan debiteuren, crediteuren,
|
||||
# bank, inkoop en verkoop boeken en de BTW configuratie.
|
||||
#
|
||||
# Versie 5.0.0.2
|
||||
# account.tax.code.template
|
||||
# Basis gelegd voor de BTW configuratie (structuur)
|
||||
# Heb als basis het BTW aangifte formulier gebruikt. Of dit werkt?
|
||||
#
|
||||
# account.tax.template
|
||||
# De BTW rekeningen aangemaakt en deze gekoppeld aan de betreffende
|
||||
# grootboekrekeningen
|
||||
#
|
||||
# Versie 5.0.0.3
|
||||
# Opschonen van de code en verwijderen van niet gebruikte componenten.
|
||||
# Versie 5.0.0.4
|
||||
# Aanpassen a_expense van 3000 -> 7000
|
||||
# record id='btw_code_5b' op negatieve waarde gezet
|
||||
# Versie 5.0.0.5
|
||||
# BTW rekeningen hebben typeaanduiding gekregen t.b.v. purchase of sale
|
||||
# Versie 5.0.0.6
|
||||
# Opschonen van module.
|
||||
# Versie 5.0.0.7
|
||||
# Opschonen van module.
|
||||
# Versie 5.0.0.8
|
||||
# Foutje in l10n_nl_wizard.xml gecorrigeerd waardoor de module niet volledig installeerde.
|
||||
# Versie 5.0.0.9
|
||||
# Account Receivable en Payable goed gedefinieerd.
|
||||
# Versie 5.0.1.0
|
||||
# Alle user_type_xxx velden goed gedefinieerd.
|
||||
# Specifieke bouw en garage gerelateerde grootboeken verwijderd om een standaard module te creeeren.
|
||||
# Deze module kan dan als basis worden gebruikt voor specifieke doelgroep modules te creeeren.
|
||||
# Versie 5.0.1.1
|
||||
# Correctie van rekening 7010 (stond dubbel met 7014 waardoor installatie verkeerd ging)
|
||||
# versie 5.0.1.2
|
||||
# Correctie op diverse rekening types van user_type_asset -> user_type_liability en user_type_equity
|
||||
# versie 5.0.1.3
|
||||
# Kleine correctie op BTW te vorderen hoog, id was hetzelfde voor beide, waardoor hoog werd overschreven door # overig. Verduidelijking van omschrijvingen in belastingcodes t.b.v. aangifte overzicht.
|
||||
# versie 5.0.1.4
|
||||
# BTW omschrijvingen aangepast, zodat rapporten er beter uitzien. 2a en 5b e.d. verwijderd en enkele omschrijvingen toegevoegd.
|
||||
# versie 5.0.1.5 - Switch to English
|
||||
# Added properties_stock_xxx accounts for correct stock valuation, changed 7000-accounts from type cash to type expense
|
||||
# Changed naming of 7020 and 7030 to Kostprijs omzet xxxx
|
||||
|
||||
{
|
||||
'name' : 'Netherlands - Accounting',
|
||||
'version' : '2.0',
|
||||
@@ -70,27 +10,16 @@
|
||||
'description': """
|
||||
This is the module to manage the accounting chart for Netherlands in Odoo.
|
||||
=============================================================================
|
||||
This module installs the a standard chart of accounts and also the Dutch Tax codes and
|
||||
fiscal positions for deliveries inside and outside the UE.
|
||||
|
||||
Read changelog in file __openerp__.py for version information.
|
||||
Dit is een basismodule om een uitgebreid grootboek- en BTW schema voor
|
||||
Nederlandse bedrijven te installeren in Odoo versie 7.0.
|
||||
|
||||
De BTW rekeningen zijn waar nodig gekoppeld om de juiste rapportage te genereren,
|
||||
denk b.v. aan intracommunautaire verwervingen waarbij u 21% BTW moet opvoeren,
|
||||
maar tegelijkertijd ook 21% als voorheffing weer mag aftrekken.
|
||||
|
||||
Na installatie van deze module word de configuratie wizard voor 'Accounting' aangeroepen.
|
||||
* U krijgt een lijst met grootboektemplates aangeboden waarin zich ook het
|
||||
Nederlandse grootboekschema bevind.
|
||||
|
||||
* Als de configuratie wizard start, wordt u gevraagd om de naam van uw bedrijf
|
||||
in te voeren, welke grootboekschema te installeren, uit hoeveel cijfers een
|
||||
grootboekrekening mag bestaan, het rekeningnummer van uw bank en de currency
|
||||
om Journalen te creeren.
|
||||
|
||||
Let op!! -> De template van het Nederlandse rekeningschema is opgebouwd uit 4
|
||||
cijfers. Dit is het minimale aantal welk u moet invullen, u mag het aantal verhogen.
|
||||
De extra cijfers worden dan achter het rekeningnummer aangevult met 'nullen'.
|
||||
In the company settings you can make the following settings:
|
||||
- The number of digits of the chart of accounts.
|
||||
By default the chart of accounts are 6 digits. 4 is the minimum number of digits.
|
||||
- If you want to use Anglosaxon acounting
|
||||
- The prefix of the bank accounts, by default 1100
|
||||
- The prefix of the cash account, by default 1000
|
||||
- The way of rounding the VAT.
|
||||
|
||||
""",
|
||||
'author' : 'Veritos - Jan Verlaan',
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * sale_stock
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 8.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2015-01-21 14:08+0000\n"
|
||||
"PO-Revision-Date: 2015-01-21 14:08+0000\n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#. module: sale_stock
|
||||
#: code:addons/sale_stock/sale_stock.py:343
|
||||
#, python-format
|
||||
msgid "You plan to sell %.2f %s but you only have %.2f %s available !\n"
|
||||
"The real stock is %.2f %s. (without reservations)"
|
||||
msgstr "You plan to sell %s %s but you only have %s %s available !\n"
|
||||
"The real stock is %s %s. (without reservations)"
|
||||
@@ -437,7 +437,7 @@ class product_template(osv.osv):
|
||||
fnct_search=_search_product_quantity, type='float', string='Outgoing'),
|
||||
'location_id': fields.dummy(string='Location', relation='stock.location', type='many2one'),
|
||||
'warehouse_id': fields.dummy(string='Warehouse', relation='stock.warehouse', type='many2one'),
|
||||
'route_ids': fields.many2many('stock.location.route', 'stock_route_product', 'product_id', 'route_id', 'Routes', domain="[('product_selectable', '=', True)]",
|
||||
'route_ids': fields.many2many('stock.location.route', 'stock_route_product', 'product_id', 'route_id', 'Routes', domain=[('product_selectable', '=', True)],
|
||||
help="Depending on the modules installed, this will allow you to define the route of the product: whether it will be bought, manufactured, MTO/MTS,..."),
|
||||
'nbr_reordering_rules': fields.function(_compute_nbr_reordering_rules, string='Reordering Rules', type='integer', multi=True),
|
||||
'reordering_min_qty': fields.function(_compute_nbr_reordering_rules, type='float', multi=True),
|
||||
|
||||
@@ -1154,7 +1154,7 @@ class survey_user_input_line(osv.Model):
|
||||
if old_uil:
|
||||
self.unlink(cr, SUPERUSER_ID, old_uil, context=context)
|
||||
|
||||
ca = dict_keys_startswith(post, answer_tag)
|
||||
ca = dict_keys_startswith(post, answer_tag+"_")
|
||||
comment_answer = ca.pop(("%s_%s" % (answer_tag, 'comment')), '').strip()
|
||||
if len(ca) > 0:
|
||||
for a in ca:
|
||||
@@ -1186,7 +1186,7 @@ class survey_user_input_line(osv.Model):
|
||||
self.unlink(cr, SUPERUSER_ID, old_uil, context=context)
|
||||
|
||||
no_answers = True
|
||||
ca = dict_keys_startswith(post, answer_tag)
|
||||
ca = dict_keys_startswith(post, answer_tag+"_")
|
||||
|
||||
comment_answer = ca.pop(("%s_%s" % (answer_tag, 'comment')), '').strip()
|
||||
if comment_answer:
|
||||
|
||||
@@ -47,8 +47,13 @@ class GoogleMap(http.Controller):
|
||||
'latitude': escape(str(partner.partner_latitude)),
|
||||
'longitude': escape(str(partner.partner_longitude)),
|
||||
})
|
||||
if 'customers' in post.get('partner_url', ''):
|
||||
partner_url = '/customers/'
|
||||
else:
|
||||
partner_url = '/partners/'
|
||||
|
||||
values = {
|
||||
'partner_url': post.get('partner_url'),
|
||||
'partner_url': partner_url,
|
||||
'partner_data': json.dumps(partner_data)
|
||||
}
|
||||
return request.website.render("website_google_map.google_map", values)
|
||||
|
||||
@@ -170,7 +170,7 @@ Worker number calculation
|
||||
|
||||
* Rule of thumb : (#CPU * 2) + 1
|
||||
* Cron workers need CPU
|
||||
* 1 worker ~= 6 concurent users
|
||||
* 1 worker ~= 6 concurrent users
|
||||
|
||||
memory size calculation
|
||||
-----------------------
|
||||
@@ -196,7 +196,7 @@ Configuration sample
|
||||
--------------------
|
||||
|
||||
* Server with 4 CPU, 8 Thread
|
||||
* 60 concurent users
|
||||
* 60 concurrent users
|
||||
|
||||
* 60 users / 6 = 10 <- theorical number of worker needed
|
||||
* (4 * 2) + 1 = 9 <- theorical maximal number of worker
|
||||
@@ -208,8 +208,8 @@ in ``/etc/odoo.conf``:
|
||||
.. code-block:: apacheconf
|
||||
|
||||
[options]
|
||||
limit_memory_hard = 629145600
|
||||
limit_memory_soft = 1677721600
|
||||
limit_memory_hard = 1677721600
|
||||
limit_memory_soft = 629145600
|
||||
limit_request = 8192
|
||||
limit_time_cpu = 600
|
||||
limit_time_real = 1200
|
||||
|
||||
Reference in New Issue
Block a user