How to create journal entry automatically with a gap of particular period.
Ex : If the gap is 1 week, i want to generate the journal entry for each week automatically.
I tried with scheduled action, but i can't figure out the solution.
Thanks.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
How to create journal entry automatically with a gap of particular period.
Ex : If the gap is 1 week, i want to generate the journal entry for each week automatically.
I tried with scheduled action, but i can't figure out the solution.
Thanks.
Hi,
If you want to automatically generate journal entries for each week using a scheduled action, you can follow these general steps.Create a new scheduled action:
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data noupdate="1">
<record id="ir_cron_schedule_journal_
<field name="name">Planning: generate next recurring shifts</field>
<field name="model_id" ref="model_id"/>
<field name="state">code</field>
<field name="code">model._schedule_
<field name="interval_type">weeks</
<field name="numbercall">-1</field>
</record>
</data>
</odoo>
In your custom module or through the Odoo developer mode, create a Python function that generates the required journal entries:
from odoo import api, models, fields
class YourModel(models.Model):
_name = 'your.model'
@api.model
def _schedule_journal_entries(self):
# Your logic to generate journal entries based on a 1-week gap
Hope it helps
what if I want to create Journal Entry through Automated Action or Automation Rules on Save? how I can do this?
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
0
sie 25
|
242 | ||
|
0
kwi 24
|
2245 | ||
|
0
lut 24
|
1396 | ||
|
1
cze 23
|
6394 | ||
|
0
kwi 23
|
1833 |