Skip to content

Commit

Permalink
[MIG] stock_orderpoint_generator: Migration to 15.0
Browse files Browse the repository at this point in the history
TT36996
  • Loading branch information
chienandalu committed Feb 1, 2023
1 parent 074f545 commit a2b86f4
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 41 deletions.
16 changes: 8 additions & 8 deletions stock_orderpoint_generator/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ Order point generator
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_orderpoint_generator
:alt: OCA/stock-logistics-warehouse
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--promotion-lightgray.png?logo=github
:target: https://github.com/OCA/sale-promotion/tree/15.0/stock_orderpoint_generator
:alt: OCA/sale-promotion
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_orderpoint_generator
:target: https://translation.odoo-community.org/projects/sale-promotion-15-0/sale-promotion-15-0-stock_orderpoint_generator
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/153/13.0
:target: https://runbot.odoo-community.org/runbot/296/15.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|
Expand Down Expand Up @@ -77,10 +77,10 @@ feature on products that have Automatic Reordering Rules Templates.
Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/issues>`_.
Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-promotion/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_orderpoint_generator%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/sale-promotion/issues/new?body=module:%20stock_orderpoint_generator%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Expand Down Expand Up @@ -119,6 +119,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_orderpoint_generator>`_ project on GitHub.
This module is part of the `OCA/sale-promotion <https://github.com/OCA/sale-promotion/tree/15.0/stock_orderpoint_generator>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 2 additions & 3 deletions stock_orderpoint_generator/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
{
"name": "Order point generator",
"summary": "Mass configuration of stock order points",
"version": "13.0.2.0.0",
"author": "Camptocamp, " "Tecnativa, " "Odoo Community Association (OCA)",
"version": "15.0.1.0.0",
"author": "Camptocamp, Tecnativa, Odoo Community Association (OCA)",
"category": "Warehouse",
"license": "AGPL-3",
"website": "https://github.com/OCA/stock-logistics-warehouse",
Expand All @@ -18,5 +18,4 @@
"security/ir.model.access.csv",
],
"installable": True,
"auto_install": False,
}
1 change: 1 addition & 0 deletions stock_orderpoint_generator/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_stock_warehouse_orderpoint_template,stock.warehouse.manage,model_stock_warehouse_orderpoint_template,stock.group_stock_manager,1,1,1,1
stock_orderpoint_generator.access_stock_warehouse_orderpoint_generator,access_stock_warehouse_orderpoint_generator,stock_orderpoint_generator.model_stock_warehouse_orderpoint_generator,stock.group_stock_manager,1,1,1,1
10 changes: 5 additions & 5 deletions stock_orderpoint_generator/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
<meta name="generator" content="Docutils: http://docutils.sourceforge.net/" />
<title>Order point generator</title>
<style type="text/css">

Expand Down Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Order point generator</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_orderpoint_generator"><img alt="OCA/stock-logistics-warehouse" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_orderpoint_generator"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/153/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/sale-promotion/tree/15.0/stock_orderpoint_generator"><img alt="OCA/sale-promotion" src="https://img.shields.io/badge/github-OCA%2Fsale--promotion-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/sale-promotion-15-0/sale-promotion-15-0-stock_orderpoint_generator"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/296/15.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>Add a wizard to configure reordering rules for multiple products in one go,
and allow to automatically update reordering rules from rule templates.</p>
<p><strong>Table of contents</strong></p>
Expand Down Expand Up @@ -424,10 +424,10 @@ <h1><a class="toc-backref" href="#id2">Usage</a></h1>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#id3">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues">GitHub Issues</a>.
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/sale-promotion/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_orderpoint_generator%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/sale-promotion/issues/new?body=module:%20stock_orderpoint_generator%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand Down Expand Up @@ -461,7 +461,7 @@ <h2><a class="toc-backref" href="#id7">Maintainers</a></h2>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_orderpoint_generator">OCA/stock-logistics-warehouse</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/sale-promotion/tree/15.0/stock_orderpoint_generator">OCA/sale-promotion</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions stock_orderpoint_generator/tests/test_orderpoint_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import models
from odoo.exceptions import UserError
from odoo.tests.common import SavepointCase
from odoo.tests.common import TransactionCase


class TestOrderpointGenerator(SavepointCase):
class TestOrderpointGenerator(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<field name="model">stock.warehouse.orderpoint.template</field>
<field name="mode">primary</field>
<field name="arch" type="xml">
<tree string="Reordering Rule Templates">
<tree>
<field name="name" />
<field name="warehouse_id" groups="stock.group_stock_multi_locations" />
<field name="location_id" groups="stock.group_stock_multi_locations" />
Expand Down Expand Up @@ -104,11 +104,6 @@
<group string="Misc">
<field name="active" />
<field name="auto_generate" />
<label for="lead_days" />
<div class="o_row">
<field name="lead_days" />
<field name="lead_type" />
</div>
</group>
<group
name="auto_minimum"
Expand Down
34 changes: 17 additions & 17 deletions stock_orderpoint_generator/wizard/orderpoint_generator_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<field name="arch" type="xml">
<form string="Reordering Rules Generator">
<label
for="orderpoint_template"
for="orderpoint_template_id"
string="This wizard will apply the following orderpoint to selected product(s)"
/>
<group string="Templates" colspan="4">
Expand All @@ -24,20 +24,20 @@
</form>
</field>
</record>
<act_window
name="Reordering Rules Generator"
res_model="stock.warehouse.orderpoint.generator"
binding_model="product.product"
view_mode="form"
target="new"
id="act_create_product_conf"
/>
<act_window
name="Reordering Rules Generator"
res_model="stock.warehouse.orderpoint.generator"
binding_model="product.template"
view_mode="form"
target="new"
id="act_create_product_template_conf"
/>
<record id="act_create_product_conf" model="ir.actions.act_window">
<field name="name">Reordering Rules Generator</field>
<field name="res_model">stock.warehouse.orderpoint.generator</field>
<field name="type">ir.actions.act_window</field>
<field name="view_mode">form</field>
<field name="binding_model_id" ref="product.model_product_product" />
<field name="target">new</field>
</record>
<record id="act_create_product_template_conf" model="ir.actions.act_window">
<field name="name">Reordering Rules Generator</field>
<field name="res_model">stock.warehouse.orderpoint.generator</field>
<field name="type">ir.actions.act_window</field>
<field name="view_mode">form</field>
<field name="binding_model_id" ref="product.model_product_template" />
<field name="target">new</field>
</record>
</odoo>

0 comments on commit a2b86f4

Please sign in to comment.