mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[MIG] stock_orderpoint_generator to 14.0
This commit is contained in:
@@ -7,7 +7,7 @@ Order point generator
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:fcdb2559141140bd1a694cf0030735e0404fba6b98444419ada9d1459ba28d37
|
||||
!! source digest: sha256:7a12702fc7eacda2115540625b6160b3c78cf9b3a90a2f6f9b96f171a01f4f39
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
||||
@@ -17,13 +17,13 @@ Order point generator
|
||||
: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
|
||||
:target: https://github.com/OCA/stock-logistics-warehouse/tree/14.0/stock_orderpoint_generator
|
||||
:alt: OCA/stock-logistics-warehouse
|
||||
.. |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/stock-logistics-warehouse-14-0/stock-logistics-warehouse-14-0-stock_orderpoint_generator
|
||||
:alt: Translate me on Weblate
|
||||
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
|
||||
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=13.0
|
||||
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=14.0
|
||||
:alt: Try me on Runboat
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
@@ -83,7 +83,7 @@ Bug Tracker
|
||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/issues>`_.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us to smash 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/stock-logistics-warehouse/issues/new?body=module:%20stock_orderpoint_generator%0Aversion:%2014.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.
|
||||
|
||||
@@ -122,6 +122,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/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/14.0/stock_orderpoint_generator>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
{
|
||||
"name": "Order point generator",
|
||||
"summary": "Mass configuration of stock order points",
|
||||
"version": "13.0.2.0.0",
|
||||
"version": "14.0.1.0.0",
|
||||
"author": "Camptocamp, " "Tecnativa, " "Odoo Community Association (OCA)",
|
||||
"category": "Warehouse",
|
||||
"license": "AGPL-3",
|
||||
|
||||
@@ -36,7 +36,7 @@ class OrderpointTemplate(models.Model):
|
||||
|
||||
auto_min_qty = fields.Boolean(
|
||||
string="Auto Minimum",
|
||||
help="Auto compute minimum quantity " "per product for a given a date range",
|
||||
help="Auto compute minimum quantity per product for a given a date range",
|
||||
)
|
||||
auto_min_date_start = fields.Datetime()
|
||||
auto_min_date_end = fields.Datetime()
|
||||
@@ -53,7 +53,7 @@ class OrderpointTemplate(models.Model):
|
||||
)
|
||||
auto_max_qty = fields.Boolean(
|
||||
string="Auto Maximum",
|
||||
help="Auto compute maximum quantity " "per product for a given a date range",
|
||||
help="Auto compute maximum quantity per product for a given a date range",
|
||||
)
|
||||
auto_max_qty_criteria = fields.Selection(
|
||||
selection=[
|
||||
|
||||
@@ -31,8 +31,7 @@ class ProductProduct(models.Model):
|
||||
def write(self, vals):
|
||||
result = super().write(vals)
|
||||
if vals.get("auto_orderpoint_template_ids"):
|
||||
orderpoint_templates = self.mapped("auto_orderpoint_template_ids")
|
||||
orderpoint_templates.create_orderpoints(self)
|
||||
self.auto_orderpoint_template_ids.create_orderpoints(self)
|
||||
return result
|
||||
|
||||
def _get_stock_move_domain(self, domain_move=False, from_date=False, to_date=False):
|
||||
|
||||
@@ -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
|
||||
access_stock_warehouse_orderpoint_generator,stock.warehouse.manage.generator,model_stock_warehouse_orderpoint_generator,base.group_user,1,1,1,1
|
||||
|
||||
|
@@ -367,9 +367,9 @@ ul.auto-toc {
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:fcdb2559141140bd1a694cf0030735e0404fba6b98444419ada9d1459ba28d37
|
||||
!! source digest: sha256:7a12702fc7eacda2115540625b6160b3c78cf9b3a90a2f6f9b96f171a01f4f39
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external image-reference" 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 image-reference" 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 image-reference" 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 image-reference" 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 image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=13.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
||||
<p><a class="reference external image-reference" 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 image-reference" 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 image-reference" href="https://github.com/OCA/stock-logistics-warehouse/tree/14.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 image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-warehouse-14-0/stock-logistics-warehouse-14-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 image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=14.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-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>
|
||||
@@ -429,7 +429,7 @@ feature on products that have Automatic Reordering Rules Templates.</p>
|
||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/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 to smash 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/stock-logistics-warehouse/issues/new?body=module:%20stock_orderpoint_generator%0Aversion:%2014.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">
|
||||
@@ -463,7 +463,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
||||
<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/stock-logistics-warehouse/tree/14.0/stock_orderpoint_generator">OCA/stock-logistics-warehouse</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>
|
||||
|
||||
@@ -5,17 +5,17 @@
|
||||
<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" />
|
||||
<field
|
||||
name="product_min_qty"
|
||||
attrs="{'invisble': [('auto_min_qty', '!=', False)]}"
|
||||
attrs="{'invisible': [('auto_min_qty', '!=', False)]}"
|
||||
/>
|
||||
<field
|
||||
name="product_max_qty"
|
||||
attrs="{'invisble': [('auto_min_qty', '!=', False)]}"
|
||||
attrs="{'invisible': [('auto_min_qty', '!=', False)]}"
|
||||
/>
|
||||
<field name="auto_min_qty" />
|
||||
<field name="auto_max_qty" />
|
||||
@@ -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"
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user