# Create analytic lines for past moves before analytic module install

**URL:** https://discuss.tryton.org/t/create-analytic-lines-for-past-moves-before-analytic-module-install/5663
**Category:** User
**Created:** [November 3, 2022, 8:38am UTC](https://discuss.tryton.org/t/create-analytic-lines-for-past-moves-before-analytic-module-install/5663 "2022-11-03T08:38:38Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Simon](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/simon/32/1150_2.png) [@Simon](https://discuss.tryton.org/u/Simon)
#### Post date: [November 3, 2022, 8:38am UTC](https://discuss.tryton.org/t/create-analytic-lines-for-past-moves-before-analytic-module-install/5663/1 "2022-11-03T08:38:38Z")

</div>

Hi all,  
I’ve installed the analytic accounting modules one month after starting the accouting. Is there a way to create analytics lines for past mouvements (before analytic accounting installation)?

i would like to have an analytic accounting covering the whole period.

Thanks for your help!

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [November 3, 2022, 10:10am UTC](https://discuss.tryton.org/t/create-analytic-lines-for-past-moves-before-analytic-module-install/5663/2 "2022-11-03T10:10:51Z")

</div>

Normally analytic lines are always editable no matter the state of the move or the fiscalyear.

---

<div class="post-metadata">

### Author: ![Simon](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/simon/32/1150_2.png) [@Simon](https://discuss.tryton.org/u/Simon)
#### Post date: [November 3, 2022, 10:19am UTC](https://discuss.tryton.org/t/create-analytic-lines-for-past-moves-before-analytic-module-install/5663/3 "2022-11-03T10:19:51Z")

</div>

Yes they are, but analytics lines has only been created since I’ve installed the analytic accounting module. Creating these lines manually for accounting mouvement will be painfull and source of errors.

Maybe I’ve misunderstood how this should work, but I was searching a way to apply the same treatment used to create these lines on the sales/purchase level for sales and purchases created before installation.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [November 3, 2022, 10:42am UTC](https://discuss.tryton.org/t/create-analytic-lines-for-past-moves-before-analytic-module-install/5663/4 "2022-11-03T10:42:12Z")

</div>

> [@Simon](#):
>
> Creating these lines manually for accounting mouvement will be painfull and source of errors.

Creating those lines is not much different than filling the analytic entries on the documents.

---

<div class="post-metadata">

### Author: ![Simon](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/simon/32/1150_2.png) [@Simon](https://discuss.tryton.org/u/Simon)
#### Post date: [November 3, 2022, 1:22pm UTC](https://discuss.tryton.org/t/create-analytic-lines-for-past-moves-before-analytic-module-install/5663/5 "2022-11-03T13:22:12Z")

</div>

Ok. I’ve found the way, I have to look for movements in the accounting plan and give them each an analytic account. Sorry learning curve in progress here!

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [November 3, 2022, 1:48pm UTC](https://discuss.tryton.org/t/create-analytic-lines-for-past-moves-before-analytic-module-install/5663/6 "2022-11-03T13:48:10Z")

</div>

Normally you should find them in the “Analytic Lines to Complete” from the “Financial \> Processing” menu.

---

<div class="post-metadata">

### Author: ![Simon](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/simon/32/1150_2.png) [@Simon](https://discuss.tryton.org/u/Simon)
#### Post date: [November 3, 2022, 1:51pm UTC](https://discuss.tryton.org/t/create-analytic-lines-for-past-moves-before-analytic-module-install/5663/7 "2022-11-03T13:51:16Z")

</div>

For all moves since install yes, but as I’ve tried to explain, previous (to analytic module activation) moves were not listed in “analytic lines to complete”…

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [November 3, 2022, 1:57pm UTC](https://discuss.tryton.org/t/create-analytic-lines-for-past-moves-before-analytic-module-install/5663/8 "2022-11-03T13:57:21Z")

</div>

Indeed at activation the module set as ‘valid’ all the existing lines. So I guess you could update the state with a SQL query for the lines before your activation.
