Skip to content

Commit

Permalink
[MIG] sale_restricted_qty: Migration to 15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-pelykh committed Mar 6, 2024
1 parent 22789d4 commit 4ede283
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 28 deletions.
2 changes: 1 addition & 1 deletion sale_restricted_qty/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Sale order min quantity
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:dc137bd6f6b41a4484f9846d0c3e6a62e1a284d53ecda89a69cf976e4d9aadc7
!! source digest: sha256:1c96b9ab4a5f52f04233a4d0d47e6c5b19d7871794cec15c15d9a8821109c2dc
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down
1 change: 0 additions & 1 deletion sale_restricted_qty/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
from . import models
from .hooks import rename_module
7 changes: 2 additions & 5 deletions sale_restricted_qty/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
# Copyright 2019 Akretion (<http://www.akretion.com>)
# Copyright 2024 CorporateHub
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Sale order min quantity",
"version": "14.0.1.1.1",
"version": "15.0.1.0.0",
"category": "Sales Management",
"author": "Akretion, Odoo Community Association (OCA)",
"contributors": ["Ashish Hirpara"],
"maintainers": ["ashishhirapara"],
"website": "https://github.com/OCA/sale-workflow",
"license": "AGPL-3",
"external_dependencies": {
"python": ["openupgradelib"],
},
"depends": ["sale_management"],
"data": [
"views/product_category_views.xml",
"views/product_template_views.xml",
"views/product_product_views.xml",
"views/sale_views.xml",
],
"pre_init_hook": "rename_module",
"installable": True,
}
19 changes: 0 additions & 19 deletions sale_restricted_qty/hooks.py

This file was deleted.

5 changes: 5 additions & 0 deletions sale_restricted_qty/models/product_restricted_qty_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class ProductMinMultipleMixin(models.AbstractModel):
"Hierarchy is in this order :"
"Product/product Template/product category/parent categories ",
digits="Product Unit of Measure",
recursive=True,
)
manual_sale_multiple_qty = fields.Float(
string="Multiple Sale Qty", digits="Product Unit of Measure"
Expand All @@ -31,6 +32,7 @@ class ProductMinMultipleMixin(models.AbstractModel):
"Hierarchy is in this order :"
"Product/product Template/product category/parent categories ",
digits="Product Unit of Measure",
recursive=True,
)
manual_sale_min_qty = fields.Float(
string="Min Sale Qty", digits="Product Unit of Measure"
Expand All @@ -44,6 +46,7 @@ class ProductMinMultipleMixin(models.AbstractModel):
" use the value defined in the parent object."
"Hierarchy is in this order :"
"Product/product Template/product category/parent categories ",
recursive=True,
)
manual_force_sale_min_qty = fields.Selection(
[
Expand All @@ -67,6 +70,7 @@ class ProductMinMultipleMixin(models.AbstractModel):
"Hierarchy is in this order :"
"Product/product Template/product category/parent categories ",
digits="Product Unit of Measure",
recursive=True,
)
manual_sale_max_qty = fields.Float(
string="Max Sale Qty", digits="Product Unit of Measure"
Expand All @@ -80,6 +84,7 @@ class ProductMinMultipleMixin(models.AbstractModel):
" use the value defined in the parent object."
"Hierarchy is in this order :"
"Product/product Template/product category/parent categories ",
recursive=True,
)
manual_force_sale_max_qty = fields.Selection(
[
Expand Down
2 changes: 1 addition & 1 deletion sale_restricted_qty/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Sale order min quantity</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:dc137bd6f6b41a4484f9846d0c3e6a62e1a284d53ecda89a69cf976e4d9aadc7
!! source digest: sha256:1c96b9ab4a5f52f04233a4d0d47e6c5b19d7871794cec15c15d9a8821109c2dc
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/sale-workflow/tree/15.0/sale_restricted_qty"><img alt="OCA/sale-workflow" src="https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_restricted_qty"><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/sale-workflow&amp;target_branch=15.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module allows to define min, max and multiple order quantity on product.
Expand Down
2 changes: 1 addition & 1 deletion sale_restricted_qty/views/product_product_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_normal_form_view" />
<field name="arch" type="xml">
<group name="invoicing" position="before">
<group name="sale" position="inside">
<group
name="sale_restricted_qty"
string="Sale restricted qty"
Expand Down

0 comments on commit 4ede283

Please sign in to comment.