hobbes
(Rémi)
July 28, 2022, 3:09pm
1
Hello,
Belgian chart of accounts here.
I received an invoice from a supplier with an amount that is similar to a deposit: I’ll receive that amount back when I quit that supplier.
That amount is not a cost, it cannot go to a 6xx account. It should go to a 288 account (or child of 288). But when I encode that invoice, there is no possibility to chose a 2 account, only 6 and some 4.
What is the canonical way to solve that kind of problem ?
Thanks
ced
(Cédric Krier)
July 28, 2022, 3:40pm
2
It looks like the account type actif_IV_C_2 should have deposit (from account_deposit
module) checked.
hobbes
(Rémi)
July 28, 2022, 3:58pm
3
hmmm, I had a look at the account_deposit module description, and it seems to be used if I want to receive deposits from my customers.
Is it also required for handling deposits to my suppliers ?
ced
(Cédric Krier)
July 28, 2022, 4:43pm
4
The module supports both.
ced
(Cédric Krier)
July 29, 2022, 11:03am
6
Can you submit a patch: Tryton - How to Develop
hobbes
(Rémi)
July 29, 2022, 3:48pm
7
damn, I tried, but the codereview system needs a google account and I don’t want to use such a thing. Is there any other way to authenticate to the codereview system ?
Anyway the patch is tiny, so here it is, to be applied to account_be :
diff -r d0c06095caf4 account_be.xml
--- a/account_be.xml Mon May 02 17:48:16 2022 +0200
+++ b/account_be.xml Fri Jul 29 17:45:49 2022 +0200
@@ -189,6 +189,7 @@
<field name="parent" ref="actif_IV_C"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
+ <field name="deposit" depends="account_deposit" eval="True"/>
</record>
<record model="account.account.type.template" id="actif_circulant">
diff -r d0c06095caf4 account_be_fr.xml
--- a/account_be_fr.xml Mon May 02 17:48:16 2022 +0200
+++ b/account_be_fr.xml Fri Jul 29 17:45:49 2022 +0200
@@ -189,6 +189,7 @@
<field name="parent" ref="actif_IV_C_fr"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
+ <field name="deposit" depends="account_deposit" eval="True"/>
</record>
<record id="actif_circulant_fr" model="account.account.type.template">
diff -r d0c06095caf4 account_be_nl.xml
--- a/account_be_nl.xml Mon May 02 17:48:16 2022 +0200
+++ b/account_be_nl.xml Fri Jul 29 17:45:49 2022 +0200
@@ -189,6 +189,7 @@
<field name="parent" ref="actif_IV_C_nl"/>
<field name="statement">balance</field>
<field name="assets" eval="True"/>
+ <field name="deposit" depends="account_deposit" eval="True"/>
</record>
<record id="actif_circulant_nl" model="account.account.type.template">
ced
(Cédric Krier)
July 29, 2022, 10:46pm
8
For me it is more complex because not all accounts in this type are deposit so we need to create new sub-types. So I filled Issue 11618: Add missing receivable/payable and deposit flags - Tryton issue tracker
system
(system)
Closed
August 28, 2022, 10:46pm
9
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.