Company required on analytic_account

41 views
Skip to first unread message

Luciano Rossi

unread,
Mar 1, 2017, 12:40:42 PM3/1/17
to try...@googlegroups.com
Hi everybody,

After this change[0] company is required to create an analytic account.
I developed a module, cooperative_ar[1], sometime ago and I want to
upgraded to the new tryton version (4.2). One of the things that the
module do is to create analytic accounts from an xml[2]. Now that the
company is required, I do not know which is the best solution to add
this field to the xml. Any idea is welcome.

Thanks!

[0] http://hg.tryton.org/modules/analytic_account/rev/d8afdf11e486/#l2.17
[1] https://github.com/gcoop-libre/cooperative_ar
[2]
https://github.com/gcoop-libre/cooperative_ar/blob/master/analytic_account_coop_ar.xml
--
Luciano Rossi - lu...@gcoop.coop
http://gcoop.coop | Cooperativa de Software Libre
Julián Alvarez 958 CABA C1414DRT +54 11 4771-0055

Cédric Krier

unread,
Mar 1, 2017, 1:25:07 PM3/1/17
to try...@googlegroups.com
On 2017-03-01 14:40, Luciano Rossi wrote:
> Hi everybody,
>
> After this change[0] company is required to create an analytic account. I
> developed a module, cooperative_ar[1], sometime ago and I want to upgraded
> to the new tryton version (4.2). One of the things that the module do is to
> create analytic accounts from an xml[2]. Now that the company is required, I
> do not know which is the best solution to add this field to the xml. Any
> idea is welcome.

I guess the solution is to implement the same design as the account
module with the template.

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Luciano Rossi

unread,
Oct 24, 2017, 6:57:43 AM10/24/17
to try...@googlegroups.com
El 01/03/17 a las 15:20, Cédric Krier escribió:
> On 2017-03-01 14:40, Luciano Rossi wrote:
>> Hi everybody,
>>
>> After this change[0] company is required to create an analytic account. I
>> developed a module, cooperative_ar[1], sometime ago and I want to upgraded
>> to the new tryton version (4.2). One of the things that the module do is to
>> create analytic accounts from an xml[2]. Now that the company is required, I
>> do not know which is the best solution to add this field to the xml. Any
>> idea is welcome.
>
> I guess the solution is to implement the same design as the account
> module with the template.
>

Hi Cédric,

Finally I implement what you suggested. I created a new module called
*analytic_account_chart_template*[0] that the only thing that do is to
create analytic accounts from a chart template. Here is the
implementation of cooperative_ar module[1]. Perhaps, this kind a feature
would be nice to have it into analytic_account module directly. What do
you think?

[0] https://github.com/gcoop-libre/trytond-analytic_account_chart_template
[1]
https://github.com/gcoop-libre/trytond-cooperative_ar/commit/fd5ce0b310743f4e1634e1355a8895bc6cb7e2cf

Cheers,
--
Luciano Rossi - lu...@gcoop.coop
http://gcoop.coop - Cooperativa de Software Libre
Julián Alvarez 958 CABA C1414DRT +54 11 4771-0055

Visitá www.tiendas.coop - www.nube.coop

Cédric Krier

unread,
Oct 24, 2017, 7:30:06 AM10/24/17
to try...@googlegroups.com
On 2017-10-24 07:57, Luciano Rossi wrote:
> Finally I implement what you suggested. I created a new module called
> *analytic_account_chart_template*[0] that the only thing that do is to
> create analytic accounts from a chart template. Here is the
> implementation of cooperative_ar module[1]. Perhaps, this kind a feature
> would be nice to have it into analytic_account module directly. What do
> you think?

I do not really know what to think about that.
I have always considered analytic charts are a configuration thing which
is different in every companies.
What are the use case for it? When is an analytic chart normalized?
Reply all
Reply to author
Forward
0 new messages