diff --git a/stock_last_purchase_price/README.rst b/stock_last_purchase_price/README.rst index ee2377f04..4f94cc495 100644 --- a/stock_last_purchase_price/README.rst +++ b/stock_last_purchase_price/README.rst @@ -1,6 +1,6 @@ -.. image:: https://img.shields.io/badge/license-OPL--1-red.svg - :target: https://www.odoo.com/documentation/17.0/legal/licenses.html#odoo-apps - :alt: License: OPL-1 +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 Costing Method: Last Purchase Price =================================== @@ -30,8 +30,8 @@ Contacts License ------- -Odoo Proprietary License v1.0 (OPL-1) -(https://www.odoo.com/documentation/17.0/legal/licenses.html#odoo-apps) +General Public License, Version 3 (AGPL v3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) Bug Tracker ----------- diff --git a/stock_last_purchase_price/__init__.py b/stock_last_purchase_price/__init__.py index c9e99a457..6e896d5d6 100644 --- a/stock_last_purchase_price/__init__.py +++ b/stock_last_purchase_price/__init__.py @@ -1,24 +1,23 @@ # -*- coding: utf-8 -*- -############################################################################### +################################################################################ # # Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Fathima Mazlin AM(odoo@cybrosys.com) # -# Copyright (C) 2024-TODAY Cybrosys Technologies() -# Author: Cybrosys Techno Solutions () +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. # -# This program is under the terms of the Odoo Proprietary License v1.0 -# (OPL-1) -# It is forbidden to publish, distribute, sublicense, or sell copies of the -# Software or modified copies of the Software. +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. # -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL -# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . # -############################################################################### +################################################################################ from . import models diff --git a/stock_last_purchase_price/__manifest__.py b/stock_last_purchase_price/__manifest__.py index 65fd28c47..3740bb082 100644 --- a/stock_last_purchase_price/__manifest__.py +++ b/stock_last_purchase_price/__manifest__.py @@ -1,25 +1,24 @@ # -*- coding: utf-8 -*- -############################################################################### +################################################################################ # # Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Fathima Mazlin AM(odoo@cybrosys.com) # -# Copyright (C) 2024-TODAY Cybrosys Technologies() -# Author: Cybrosys Techno Solutions () +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. # -# This program is under the terms of the Odoo Proprietary License v1.0 -# (OPL-1) -# It is forbidden to publish, distribute, sublicense, or sell copies of the -# Software or modified copies of the Software. +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. # -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL -# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . # -############################################################################### +################################################################################ { 'name': 'Costing Method: Last Purchase Price', 'version': '17.0.1.0.0', @@ -32,9 +31,9 @@ 'company': 'Cybrosys Techno Solutions', 'maintainer': 'Cybrosys Techno Solutions', 'website': 'https://www.openhrms.com', - 'depends': ['stock_account', 'purchase', 'account_accountant'], + 'depends': ['stock_account', 'purchase_stock'], 'images': ['static/description/banner.jpg'], - 'license': 'OPL-1', + 'license': 'AGPL-3', 'installable': True, 'auto_install': False, 'application': False, diff --git a/stock_last_purchase_price/doc/RELEASE_NOTES.md b/stock_last_purchase_price/doc/RELEASE_NOTES.md index 85278f253..52c5f5fc1 100755 --- a/stock_last_purchase_price/doc/RELEASE_NOTES.md +++ b/stock_last_purchase_price/doc/RELEASE_NOTES.md @@ -4,3 +4,8 @@ #### Version 17.0.1.0.0 #### ADD - Initial commit for Costing Method: Last Purchase Price + +#### 14.08.2024 +#### Version 17.0.1.0.0 +#### ADD +- BUG FIX diff --git a/stock_last_purchase_price/models/__init__.py b/stock_last_purchase_price/models/__init__.py index 977d9c00d..74f7d2a9d 100644 --- a/stock_last_purchase_price/models/__init__.py +++ b/stock_last_purchase_price/models/__init__.py @@ -1,25 +1,24 @@ # -*- coding: utf-8 -*- -############################################################################### +################################################################################ # # Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Fathima Mazlin AM(odoo@cybrosys.com) # -# Copyright (C) 2024-TODAY Cybrosys Technologies() -# Author: Cybrosys Techno Solutions () +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. # -# This program is under the terms of the Odoo Proprietary License v1.0 -# (OPL-1) -# It is forbidden to publish, distribute, sublicense, or sell copies of the -# Software or modified copies of the Software. +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. # -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL -# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . # -############################################################################### +################################################################################ from . import product_category from . import product_product from . import product_template diff --git a/stock_last_purchase_price/models/product_category.py b/stock_last_purchase_price/models/product_category.py index 9f5f82621..09b80d01c 100644 --- a/stock_last_purchase_price/models/product_category.py +++ b/stock_last_purchase_price/models/product_category.py @@ -1,25 +1,24 @@ # -*- coding: utf-8 -*- -############################################################################### +################################################################################ # # Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Fathima Mazlin AM(odoo@cybrosys.com) # -# Copyright (C) 2024-TODAY Cybrosys Technologies() -# Author: Cybrosys Techno Solutions () +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. # -# This program is under the terms of the Odoo Proprietary License v1.0 -# (OPL-1) -# It is forbidden to publish, distribute, sublicense, or sell copies of the -# Software or modified copies of the Software. +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. # -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL -# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . # -############################################################################### +################################################################################ from odoo import fields, models diff --git a/stock_last_purchase_price/models/product_product.py b/stock_last_purchase_price/models/product_product.py index edb094a23..804623224 100644 --- a/stock_last_purchase_price/models/product_product.py +++ b/stock_last_purchase_price/models/product_product.py @@ -1,25 +1,24 @@ # -*- coding: utf-8 -*- -############################################################################### +################################################################################ # # Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Fathima Mazlin AM(odoo@cybrosys.com) # -# Copyright (C) 2024-TODAY Cybrosys Technologies() -# Author: Cybrosys Techno Solutions () +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. # -# This program is under the terms of the Odoo Proprietary License v1.0 -# (OPL-1) -# It is forbidden to publish, distribute, sublicense, or sell copies of the -# Software or modified copies of the Software. +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. # -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL -# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . # -############################################################################### +################################################################################ from odoo import api, models, _ from odoo.exceptions import UserError from odoo.tools import float_is_zero diff --git a/stock_last_purchase_price/models/product_template.py b/stock_last_purchase_price/models/product_template.py index 2380e0a29..de457a18a 100644 --- a/stock_last_purchase_price/models/product_template.py +++ b/stock_last_purchase_price/models/product_template.py @@ -1,25 +1,24 @@ # -*- coding: utf-8 -*- -############################################################################### +################################################################################ # # Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Fathima Mazlin AM(odoo@cybrosys.com) # -# Copyright (C) 2024-TODAY Cybrosys Technologies() -# Author: Cybrosys Techno Solutions () +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. # -# This program is under the terms of the Odoo Proprietary License v1.0 -# (OPL-1) -# It is forbidden to publish, distribute, sublicense, or sell copies of the -# Software or modified copies of the Software. +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. # -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL -# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . # -############################################################################### +################################################################################ from odoo import fields, models diff --git a/stock_last_purchase_price/models/stock_move.py b/stock_last_purchase_price/models/stock_move.py index 0a6952df2..7833aa395 100644 --- a/stock_last_purchase_price/models/stock_move.py +++ b/stock_last_purchase_price/models/stock_move.py @@ -1,25 +1,24 @@ # -*- coding: utf-8 -*- -############################################################################### +################################################################################ # # Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Fathima Mazlin AM(odoo@cybrosys.com) # -# Copyright (C) 2024-TODAY Cybrosys Technologies() -# Author: Cybrosys Techno Solutions () +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. # -# This program is under the terms of the Odoo Proprietary License v1.0 -# (OPL-1) -# It is forbidden to publish, distribute, sublicense, or sell copies of the -# Software or modified copies of the Software. +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. # -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL -# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . # -############################################################################### +################################################################################ from collections import defaultdict from odoo import models, _ from odoo.exceptions import UserError diff --git a/stock_last_purchase_price/models/stock_move_line.py b/stock_last_purchase_price/models/stock_move_line.py index 7ecce04f8..56310c398 100644 --- a/stock_last_purchase_price/models/stock_move_line.py +++ b/stock_last_purchase_price/models/stock_move_line.py @@ -1,25 +1,24 @@ # -*- coding: utf-8 -*- -############################################################################### +################################################################################ # # Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Fathima Mazlin AM(odoo@cybrosys.com) # -# Copyright (C) 2024-TODAY Cybrosys Technologies() -# Author: Cybrosys Techno Solutions () +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. # -# This program is under the terms of the Odoo Proprietary License v1.0 -# (OPL-1) -# It is forbidden to publish, distribute, sublicense, or sell copies of the -# Software or modified copies of the Software. +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. # -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL -# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -# DEALINGS IN THE SOFTWARE. +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . # -############################################################################### +################################################################################ from odoo import models diff --git a/stock_last_purchase_price/static/description/index.html b/stock_last_purchase_price/static/description/index.html index de97aec9b..b73154e7f 100644 --- a/stock_last_purchase_price/static/description/index.html +++ b/stock_last_purchase_price/static/description/index.html @@ -29,6 +29,10 @@ style="width:auto !important; height:40px !important">
+
+ Community +
Enterprise