Odoo Cron with field increment?How do I list all cron jobs for all users?How do I get a Cron like scheduler in Python?How to create a cron job using Bash automatically without the interactive editor?How to leave/exit/deactivate a Python virtualenvHow to simulate the environment cron executes a script with?How to log cron jobs?Running a cron job at 2:30 AM everydayHow to iterate over rows in a DataFrame in Pandas?How to create cron job using PHP?how to run the cron job in odoo
SQL Always On COPY ONLY backups - what's the point if I cant restore the AG from these backups?
What are some countries where you can be imprisoned for reading or owning a Bible?
Short story: Interstellar inspector senses "off" nature of planet hiding aggressive culture
Can taking my 1-week-old on a 6-7 hours journey in the car lead to medical complications?
Why are some hotels asking you to book through Booking.com instead of matching the price at the front desk?
Dissuading my girlfriend from a scam
Who's this voice acting performer?
In apex, how to replace the value in the string
Is Sanskrit really the mother of all languages?
What's in a druid's grove?
What makes an ending "happy"?
I won a car in a poker game. How is that taxed in Canada?
What are the map units that WGS84 uses?
Can Adventure creatures always be cast from exile?
Entering the US with dual citizenship but US passport is long expired?
What drugs were used in England during the High Middle Ages?
How to measure the statistical "distance" between two frequency distributions?
How can I hint that my character isn't real?
Why are UK MPs allowed to not vote (but it counts as a no)?
My Friend James
Friend is very nit picky about side comments I don't intend to be taken too seriously
Draw the ☣ (Biohazard Symbol)
Euro sign in table with siunitx
How do I make my fill-in-the-blank exercise more obvious?
Odoo Cron with field increment?
How do I list all cron jobs for all users?How do I get a Cron like scheduler in Python?How to create a cron job using Bash automatically without the interactive editor?How to leave/exit/deactivate a Python virtualenvHow to simulate the environment cron executes a script with?How to log cron jobs?Running a cron job at 2:30 AM everydayHow to iterate over rows in a DataFrame in Pandas?How to create cron job using PHP?how to run the cron job in odoo
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
How can I create a cron job in Odoo, that is executed every end of the months and all it does is increment a field by 2.5?
python cron odoo
add a comment |
How can I create a cron job in Odoo, that is executed every end of the months and all it does is increment a field by 2.5?
python cron odoo
add a comment |
How can I create a cron job in Odoo, that is executed every end of the months and all it does is increment a field by 2.5?
python cron odoo
How can I create a cron job in Odoo, that is executed every end of the months and all it does is increment a field by 2.5?
python cron odoo
python cron odoo
edited Mar 28 at 10:10
Zoe
15.8k12 gold badges66 silver badges96 bronze badges
15.8k12 gold badges66 silver badges96 bronze badges
asked Mar 28 at 5:10
Nabil TalebNabil Taleb
557 bronze badges
557 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
In the xml:
<record forcecreate="True" id="ir_cron_any_name"
model="ir.cron">
<field name="name">Your String</field>
<field eval="False" name="active" />
<field name="interval_number">1</field>
<field name="interval_type">months</field>
<field name="numbercall">-1</field>
<field name='active'>false</field>
<field name="False" eval="True" />
<field name="model" eval="'model.name'" />
<field name="function" eval="'python_function_name'" />
<field name="args" eval="'()'" />
</record>
In Python:
@api.model
def python_function_name(self):
Your function goes here
You can configure in the front end.
– Navi
Mar 28 at 8:45
Don't always try to discourage people@CZoellner
– Navi
Mar 28 at 10:03
I don't discourage people. He asked for a special requirement and you answered with the most simple solution without even saying/writing anything about the special core requirement of his question. I wouldn't downvote the answer, when there was a clear hint, that it does not answer how to configure the cron for triggering at every months end.
– CZoellner
Mar 28 at 10:43
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55390565%2fodoo-cron-with-field-increment%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
In the xml:
<record forcecreate="True" id="ir_cron_any_name"
model="ir.cron">
<field name="name">Your String</field>
<field eval="False" name="active" />
<field name="interval_number">1</field>
<field name="interval_type">months</field>
<field name="numbercall">-1</field>
<field name='active'>false</field>
<field name="False" eval="True" />
<field name="model" eval="'model.name'" />
<field name="function" eval="'python_function_name'" />
<field name="args" eval="'()'" />
</record>
In Python:
@api.model
def python_function_name(self):
Your function goes here
You can configure in the front end.
– Navi
Mar 28 at 8:45
Don't always try to discourage people@CZoellner
– Navi
Mar 28 at 10:03
I don't discourage people. He asked for a special requirement and you answered with the most simple solution without even saying/writing anything about the special core requirement of his question. I wouldn't downvote the answer, when there was a clear hint, that it does not answer how to configure the cron for triggering at every months end.
– CZoellner
Mar 28 at 10:43
add a comment |
In the xml:
<record forcecreate="True" id="ir_cron_any_name"
model="ir.cron">
<field name="name">Your String</field>
<field eval="False" name="active" />
<field name="interval_number">1</field>
<field name="interval_type">months</field>
<field name="numbercall">-1</field>
<field name='active'>false</field>
<field name="False" eval="True" />
<field name="model" eval="'model.name'" />
<field name="function" eval="'python_function_name'" />
<field name="args" eval="'()'" />
</record>
In Python:
@api.model
def python_function_name(self):
Your function goes here
You can configure in the front end.
– Navi
Mar 28 at 8:45
Don't always try to discourage people@CZoellner
– Navi
Mar 28 at 10:03
I don't discourage people. He asked for a special requirement and you answered with the most simple solution without even saying/writing anything about the special core requirement of his question. I wouldn't downvote the answer, when there was a clear hint, that it does not answer how to configure the cron for triggering at every months end.
– CZoellner
Mar 28 at 10:43
add a comment |
In the xml:
<record forcecreate="True" id="ir_cron_any_name"
model="ir.cron">
<field name="name">Your String</field>
<field eval="False" name="active" />
<field name="interval_number">1</field>
<field name="interval_type">months</field>
<field name="numbercall">-1</field>
<field name='active'>false</field>
<field name="False" eval="True" />
<field name="model" eval="'model.name'" />
<field name="function" eval="'python_function_name'" />
<field name="args" eval="'()'" />
</record>
In Python:
@api.model
def python_function_name(self):
Your function goes here
In the xml:
<record forcecreate="True" id="ir_cron_any_name"
model="ir.cron">
<field name="name">Your String</field>
<field eval="False" name="active" />
<field name="interval_number">1</field>
<field name="interval_type">months</field>
<field name="numbercall">-1</field>
<field name='active'>false</field>
<field name="False" eval="True" />
<field name="model" eval="'model.name'" />
<field name="function" eval="'python_function_name'" />
<field name="args" eval="'()'" />
</record>
In Python:
@api.model
def python_function_name(self):
Your function goes here
answered Mar 28 at 6:26
NaviNavi
7126 silver badges29 bronze badges
7126 silver badges29 bronze badges
You can configure in the front end.
– Navi
Mar 28 at 8:45
Don't always try to discourage people@CZoellner
– Navi
Mar 28 at 10:03
I don't discourage people. He asked for a special requirement and you answered with the most simple solution without even saying/writing anything about the special core requirement of his question. I wouldn't downvote the answer, when there was a clear hint, that it does not answer how to configure the cron for triggering at every months end.
– CZoellner
Mar 28 at 10:43
add a comment |
You can configure in the front end.
– Navi
Mar 28 at 8:45
Don't always try to discourage people@CZoellner
– Navi
Mar 28 at 10:03
I don't discourage people. He asked for a special requirement and you answered with the most simple solution without even saying/writing anything about the special core requirement of his question. I wouldn't downvote the answer, when there was a clear hint, that it does not answer how to configure the cron for triggering at every months end.
– CZoellner
Mar 28 at 10:43
You can configure in the front end.
– Navi
Mar 28 at 8:45
You can configure in the front end.
– Navi
Mar 28 at 8:45
Don't always try to discourage people@CZoellner
– Navi
Mar 28 at 10:03
Don't always try to discourage people@CZoellner
– Navi
Mar 28 at 10:03
I don't discourage people. He asked for a special requirement and you answered with the most simple solution without even saying/writing anything about the special core requirement of his question. I wouldn't downvote the answer, when there was a clear hint, that it does not answer how to configure the cron for triggering at every months end.
– CZoellner
Mar 28 at 10:43
I don't discourage people. He asked for a special requirement and you answered with the most simple solution without even saying/writing anything about the special core requirement of his question. I wouldn't downvote the answer, when there was a clear hint, that it does not answer how to configure the cron for triggering at every months end.
– CZoellner
Mar 28 at 10:43
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55390565%2fodoo-cron-with-field-increment%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown