Skip to content

Commit e415c95

Browse files
jcadhocmav-adhoc
authored andcommitted
Cherry pick of 81129f9 failed
stdout: Auto-merging product_replenishment_cost/i18n/es.po CONFLICT (content): Merge conflict in product_replenishment_cost/i18n/es.po stderr: 15:23:55.325357 git.c:444 trace: built-in: git cherry-pick 81129f9 error: could not apply 81129f9... [FIX]product_replenishment_cost:fixes and improves hint: after resolving the conflicts, mark the corrected paths hint: with 'git add <paths>' or 'git rm <paths>' hint: and commit the result with 'git commit' ---------- status: X-original-commit: 2a7b854
1 parent 635650e commit e415c95

File tree

6 files changed

+8
-4
lines changed

6 files changed

+8
-4
lines changed

product_planned_price/data/ir_cron_data.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ model.cron_update_prices_from_planned()
1515
<field name="interval_type">days</field>
1616
<field name="user_id" ref="base.user_root"/>
1717
<field name="state">code</field>
18+
<field name="nextcall" eval="(DateTime.now().replace(hour=8, minute=0) + timedelta(days=1)).strftime('%Y-%m-%d %H:%M:%S')"/>
1819
<field name="priority" eval="5"/>
1920
<field name="active" eval="False"/>
2021
<field name="interval_number" eval="1"/>

product_planned_price/i18n/es.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ msgid ""
209209
" price."
210210
msgstr ""
211211
"Actualizar precio de lista con precio planificado para todos los productos "
212-
"seleccionados con precio planificado."
212+
"seleccionados con precio planificado diferente a 0."
213213

214214
#. module: product_planned_price
215215
#: model:ir.actions.act_window,name:product_planned_price.action_update_from_planned_price_wizard

product_planned_price/models/product_template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def cron_update_prices_from_planned(self, batch_size=1000):
8484
records[:batch_size].with_context(bypass_base_automation=True)._update_prices_from_planned()
8585

8686
if len(records) > batch_size:
87-
last_updated_id = records[batch_size].id
87+
last_updated_id = records[batch_size - 1].id
8888
else:
8989
last_updated_id = 0
9090

product_replenishment_cost/data/ir_cron_data.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ model.cron_update_cost_from_replenishment_cost(company_ids=None)
1919
<field name="interval_type">months</field>
2020
<field name="user_id" ref="base.user_root"/>
2121
<field name="state">code</field>
22+
<field name="nextcall" eval="(DateTime.now().replace(hour=9, minute=0) + timedelta(days=1)).strftime('%Y-%m-%d %H:%M:%S')"/>
2223
<field name="priority" eval="5"/>
2324
<field name="active" eval="False"/>
2425
<field name="interval_number" eval="1"/>

product_replenishment_cost/i18n/es.po

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,10 +450,12 @@ msgid "Update Accounting Cost from Replenishment Cost"
450450
msgstr "Actualizar el costo contable desde el costo de reposición."
451451

452452
#. module: product_replenishment_cost
453-
#: model:ir.actions.server,name:product_replenishment_cost.ir_cron_update_cost_from_replenishment_cost_ir_actions_server
453+
#: model:ir.actions.server,name:product_replenishment_cost.ir_cron_update_cost_from_replenishment_cost
454+
#: model:ir.cron,cron_name:product_replenishment_cost.ir_cron_update_cost_from_replenishment_cost
454455
msgid "Update Cost from Replenishment Cost"
455456
msgstr "Actualización del costo desde el costo de reposición"
456457

458+
457459
#. module: product_replenishment_cost
458460
#. odoo-python
459461
#: code:addons/product_replenishment_cost/wizards/product_update_from_replenishment_cost_wizard.py:0

product_replenishment_cost/models/product_template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def cron_update_cost_from_replenishment_cost(self, limit=None, company_ids=None,
137137
)._update_cost_from_replenishment_cost()
138138

139139
if len(records) > batch_size:
140-
last_updated_id = records[batch_size].id
140+
last_updated_id = records[batch_size - 1].id
141141
else:
142142
last_updated_id = 0
143143
self.env.cr.execute(

0 commit comments

Comments
 (0)