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;








1















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?










share|improve this question
































    1















    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?










    share|improve this question




























      1












      1








      1








      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?










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      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

























          1 Answer
          1






          active

          oldest

          votes


















          0
















          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





          share|improve this answer

























          • 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










          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
          );



          );














          draft saved

          draft discarded
















          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









          0
















          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





          share|improve this answer

























          • 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















          0
















          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





          share|improve this answer

























          • 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













          0














          0










          0









          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





          share|improve this answer













          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






          share|improve this answer












          share|improve this answer



          share|improve this answer










          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

















          • 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








          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.




















          draft saved

          draft discarded















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript