SHOW:
|
|
- or go back to the newest paste.
1 | ERROR:tryton.common.common:Traceback (most recent call last): | |
2 | File "/trytond/protocols/jsonrpc.py", line 123, in _marshaled_dispatch | |
3 | response['result'] = dispatch_method(method, params) | |
4 | File "/trytond/protocols/jsonrpc.py", line 156, in _dispatch | |
5 | res = dispatch(*args) | |
6 | File "/trytond/protocols/dispatcher.py", line 154, in dispatch | |
7 | result = rpc.result(meth(*args, **kwargs)) | |
8 | File "/trytond/ir/sequence.py", line 195, in delete | |
9 | return super(Sequence, cls).delete(sequences) | |
10 | File "/trytond/model/modelsql.py", line 1074, in delete | |
11 | field_name: False, | |
12 | File "/trytond/modules/account_invoice/account.py", line 213, in write | |
13 | super(Period, cls).write(periods, vals) | |
14 | File "/trytond/modules/account/period.py", line 223, in write | |
15 | super(Period, cls).write(periods, vals) | |
16 | File "/trytond/model/modelsql.py", line 932, in write | |
17 | cls._validate(records) | |
18 | File "/trytond/model/modelsql.py", line 2231, in _validate | |
19 | super(ModelSQL, cls)._validate(records) | |
20 | File "/trytond/model/modelstorage.py", line 884, in _validate | |
21 | if not call(field[0]): | |
22 | File "/trytond/model/modelstorage.py", line 882, in call | |
23 | return all(method(r) for r in records) | |
24 | File "/trytond/model/modelstorage.py", line 882, in <genexpr> | |
25 | return all(method(r) for r in records) | |
26 | File "/trytond/modules/account_invoice/account.py", line 174, in check_invoice_sequences | |
27 | (sequence_name, '=', sequence.id), | |
28 | AttributeError: 'NoneType' object has no attribute 'id' | |
29 | ||
30 | - | 'NoneType' object has no attribute 'id' |
30 | + | 'NoneType' object has no attribute 'id' |
31 | ||
32 | ||
33 | ||
34 | En 2.8 cela semble fixé par issue2916. | |
35 | ||
36 | Après ajout du test sur "sequence" (http://hg.tryton.org/modules/account_invoice/file/4d3e00bb65ca/account.py#l182), ce message apparait: | |
37 | ||
38 | The field "Customer Credit Note Sequence" on "Period" is required. (alors que la séquence n'est pas utilisée "Fiscal years/Sequences/Customer Credit note sequence"). |