|
1.
|
|
|
Code should always set a variable named `result` with the result of your test, that can be a list or
a dictionary. If `result` is an empty list, it means that the test was succesful. Otherwise it will
try to translate and print what is inside `result`.
If the result of your test is a dictionary, you can set a variable named `column_order` to choose in
what order you want to print `result`'s content.
Should you need them, you can also use the following variables into your code:
* cr: cursor to the database
* uid: ID of the current user
In any ways, the code must be legal python statements with correct indentation (if needed).
Example:
sql = '''SELECT id, name, ref, date
FROM account_move_line
WHERE account_id IN (SELECT id FROM account_account WHERE type = 'view')
'''
cr.execute(sql)
result = cr.dictfetchall()
|
|
|
module: account_test
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
Suggestions: |
|
|
Le code devrait définir une variable nommée 'result' avec pour valeur le résultat de votre test, et de type liste ou
dictionnaire. Si 'result' est une liste vide, alors le test fut réussi. Autrement il essaiera
de traduire et d'imprimer le contenu de 'result'.
Si le 'result' de votre test est un dictionnaire, vous pouvez définir une variable nommée 'column_order' pour indiquer
dans quel ordre vous voulez imprimer le contenu de 'result'.
En cas de besoin, vous pouvez aussi utiliser les variables suivantes dans votre code:
* cr: curseur de base de données
* uid: ID de l'utilisateur actuel
Dans tous les cas, le code doit être des déclarations python correctes avec une indentation correcte (si besoin).
Exemple:
sql = '''SELECT id, name, ref, date
FROM account_move_line
WHERE account_id IN (SELECT id FROM account_account WHERE type = 'view')
'''
cr.execute(sql)
result = cr.dictfetchall()
|
|
|
French
account-test in OpenERP Community Backports (Addons) 7.0
by
Maxime Chambreuil (http://www.savoirfairelinux.com)
|
|
|
|
Located in
view:accounting.assert.test:0
|
|
2.
|
|
|
Test 2: Opening a fiscal year
|
|
|
module: account_test
|
|
|
|
(no translation yet)
|
|
Suggestions: |
|
|
Test 2: Ouverture d'un exercice
|
|
|
French
account-test in OpenERP Community Backports (Addons) 7.0
by
Maxime Chambreuil (http://www.savoirfairelinux.com)
|
|
|
|
Located in
model:accounting.assert.test,name:account_test.account_test_02
|
|
3.
|
|
|
Check that reconciled invoice for Sales/Purchases has reconciled entries for Payable and Receivable Accounts
|
|
|
module: account_test
|
|
|
|
(no translation yet)
|
|
|
|
Located in
model:accounting.assert.test,desc:account_test.account_test_05
|
|
4.
|
|
|
Check if movement lines are balanced and have the same date and period
|
|
|
module: account_test
|
|
|
|
(no translation yet)
|
|
Suggestions: |
|
|
Vérifier si les pièces comptables sont équilibrées et ont la même date et période.
|
|
|
French
account-test in OpenERP Community Backports (Addons) 7.0 by
Olivier Dony (Odoo)
|
|
|
|
Located in
model:accounting.assert.test,desc:account_test.account_test_03
|
|
5.
|
|
|
Test Name
|
|
|
module: account_test
|
|
|
|
(no translation yet)
|
|
Suggestions: |
|
|
Nom du test
|
|
|
French
account-test in OpenERP Community Backports (Addons) 7.0
by
Maxime Chambreuil (http://www.savoirfairelinux.com)
|
|
|
|
Located in
field:accounting.assert.test,name:0
|
|
6.
|
|
|
Accouting tests on
|
|
|
module: account_test
|
|
|
|
(no translation yet)
|
|
Suggestions: |
|
|
Comptabilité - Tests en cours
|
|
|
French
account-test in OpenERP Community Backports (Addons) 7.0
by
Maxime Chambreuil (http://www.savoirfairelinux.com)
|
|
|
|
Located in
report:account.test.assert.print:0
|
|
7.
|
|
|
Test 1: General balance
|
|
|
module: account_test
|
|
|
|
(no translation yet)
|
|
Suggestions: |
|
|
Test 1: Solde global
|
|
|
French
account-test in OpenERP Community Backports (Addons) 7.0
by
Maxime Chambreuil (http://www.savoirfairelinux.com)
|
|
|
|
Located in
model:accounting.assert.test,name:account_test.account_test_01
|
|
8.
|
|
|
Check that paid/reconciled invoices are not in 'Open' state
|
|
|
module: account_test
|
|
|
|
(no translation yet)
|
|
Suggestions: |
|
|
Vérifier que les factures payées/lettrées ne sont pas en statut "Ouverte"
|
|
|
French
account-test in OpenERP Community Backports (Addons) 7.0 by
Olivier Dony (Odoo)
|
|
|
|
Located in
model:accounting.assert.test,desc:account_test.account_test_06
|
|
9.
|
|
|
Check that reconciled account moves, that define Payable and Receivable accounts, are belonging to reconciled invoices
|
|
|
module: account_test
|
|
|
|
(no translation yet)
|
|
|
|
Located in
model:accounting.assert.test,desc:account_test.account_test_05_2
|
|
10.
|
|
|
Tests
|
|
|
module: account_test
|
|
|
|
(no translation yet)
|
|
Suggestions: |
|
|
Tests
|
|
|
French
account-test in OpenERP Community Backports (Addons) 7.0
by
Maxime Chambreuil (http://www.savoirfairelinux.com)
|
|
|
|
Located in
view:accounting.assert.test:0
|