El 03/12/13 11:31, Guillem Barba Domingo ha escrit:
Hi,
in account.journal there is a field 'sequence' defined with the domain
('code', '=', 'account.journal') [1], which is used in account.move
creation [2].
In account.fiscalyear there is another field pos_move_sequence with
domain ('code', '=', 'account.move') [3] which is used here [4].
I think these domains are contradictory because if both sequence are
used in account.move both must to have the same 'code'.
Is there a reason for these domains?
Each account move has two numbers, one assigned when is draft and the
other when is posted.
In the current design, the number for draft moves is computed from a
sequence defined in the journals. And the number for posted moves is
computed from a sequence defined in the periods (fiscal year). These
sequences are used for different things (draft moves vs posted moves)
and defined in different places (journals vs periods), so they have
different 'code'.
--
Jordi Esteve
Consultor Zikzakmedia SL
[email protected]
Mòbil 679 170 693
Zikzakmedia SL
Dr. Fleming, 28, baixos
08720 Vilafranca del Penedès
Tel 93 890 2108