|
13.
|
|
|
Check that there's no move for any account with «[nbsp] View[nbsp] » account type
|
|
|
module: account_test
|
|
|
|
Controla che non ci siano movimenti per nessun account con tipo di conto «[nbsp] Vista[nbsp] »
|
|
Translated by
Nicola Riolini - Micronaet
|
|
|
|
Located in
model:accounting.assert.test,desc:account_test.account_test_06_1
|
|
14.
|
|
|
Check the balance: Debit sum = Credit sum
|
|
|
module: account_test
|
|
|
|
Controlla che il saldo sia: Somma debiti = Somma crediti
|
|
Translated by
Nicola Riolini - Micronaet
|
|
|
|
Located in
model:accounting.assert.test,desc:account_test.account_test_01
|
|
15.
|
|
|
Code Help
|
|
|
module: account_test
|
|
|
|
Aiuto codice
|
|
Translated by
Nicola Riolini - Micronaet
|
|
|
|
Located in
view:accounting.assert.test:account_test.account_assert_form
|
|
16.
|
|
|
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.
|
|
|
|
Il codice dovrebbe sempre impostare una variabile nominata 'risultato' con l'esito del test, può essere una lista
o un dizionario. Se 'risultato' è una lista vuota significa che il test ha avuto successo. Altrimenti cercherà di
tradurre e stampare il contenuto dentro il 'risultato'.
Se il risultato del vostro test è un dizionario potete impostare delle variabili chiamate "column_order" per schegliere in
che ordine vorrete stamapre il "risultato" contenuto.
Nel caso vi servano potrete ance accedere alle sequenti variabili all'interno del vosto codice:
* cr: cursore del database
* uid: ID dell'utente corrente
In ogni caso il codice deve essere una dichiarazione corretta in python con la corretta indentazione (se necessaria).
Esempio:
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()
|
|
Translated by
Nicola Riolini - Micronaet
|
|
|
|
Located in
view:accounting.assert.test:account_test.account_assert_form
|
|
17.
|
|
|
Created by
|
|
|
module: account_test
|
|
|
|
Creato da
|
|
Translated by
Nicola Riolini - Micronaet
|
|
|
|
Located in
field:accounting.assert.test,create_uid:0
|
|
18.
|
|
|
Created on
|
|
|
module: account_test
|
|
|
|
Creato il
|
|
Translated by
Nicola Riolini - Micronaet
|
|
|
|
Located in
field:accounting.assert.test,create_date:0
|
|
19.
|
|
|
Description
|
|
|
module: account_test
|
|
|
|
Descrizione
|
|
Translated by
Nicola Riolini - Micronaet
|
|
|
|
Located in
view:accounting.assert.test:account_test.account_assert_form
|
|
20.
|
|
|
Description:
|
|
|
module: account_test
|
|
|
|
Descrizione:
|
|
Translated by
Nicola Riolini - Micronaet
|
|
|
|
Located in
view:website:account_test.report_accounttest
|
|
21.
|
|
|
Expression
|
|
|
module: account_test
|
|
|
|
Espressione
|
|
Translated by
Nicola Riolini - Micronaet
|
|
|
|
Located in
view:accounting.assert.test:account_test.account_assert_form
|
|
22.
|
|
|
ID
|
|
|
module: account_test
|
|
|
|
ID
|
|
Translated by
Nicola Riolini - Micronaet
|
|
|
|
Located in
field:accounting.assert.test,id:0
field:report.account_test.report_accounttest,id:0
|