Browse Source

Mar 08 : [UPDT] Module Updated 'stock_last_purchase_price'

pull/313/head
RisvanaCybro 1 year ago
parent
commit
452e8e359b
  1. 10
      stock_last_purchase_price/README.rst
  2. 29
      stock_last_purchase_price/__init__.py
  3. 31
      stock_last_purchase_price/__manifest__.py
  4. 29
      stock_last_purchase_price/models/__init__.py
  5. 29
      stock_last_purchase_price/models/product_category.py
  6. 29
      stock_last_purchase_price/models/product_product.py
  7. 29
      stock_last_purchase_price/models/product_template.py
  8. 29
      stock_last_purchase_price/models/stock_move.py
  9. 29
      stock_last_purchase_price/models/stock_move_line.py

10
stock_last_purchase_price/README.rst

@ -1,6 +1,6 @@
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg .. image:: https://img.shields.io/badge/license-OPL--1-red.svg
:target: https://www.gnu.org/licenses/agpl-3.0-standalone.html :target: https://www.odoo.com/documentation/17.0/legal/licenses.html#odoo-apps
:alt: License: AGPL-3 :alt: License: OPL-1
Costing Method: Last Purchase Price Costing Method: Last Purchase Price
=================================== ===================================
@ -30,8 +30,8 @@ Contacts
License License
------- -------
GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPLv3) Odoo Proprietary License v1.0 (OPL-1)
(https://www.gnu.org/licenses/agpl-3.0-standalone.html) (https://www.odoo.com/documentation/17.0/legal/licenses.html#odoo-apps)
Bug Tracker Bug Tracker
----------- -----------

29
stock_last_purchase_price/__init__.py

@ -1,23 +1,24 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
################################################################################ ###############################################################################
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# #
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). # Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Fathima Mazlin AM (odoo@cybrosys.com) # Author: Cybrosys Techno Solutions (<https://www.cybrosys.com>)
# #
# You can modify it under the terms of the GNU AFFERO # This program is under the terms of the Odoo Proprietary License v1.0
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # (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, # THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# but WITHOUT ANY WARRANTY; without even the implied warranty of # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # 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 ###############################################################################
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from . import models from . import models

31
stock_last_purchase_price/__manifest__.py

@ -1,24 +1,25 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
################################################################################ ###############################################################################
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# #
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). # Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Fathima Mazlin AM (odoo@cybrosys.com) # Author: Cybrosys Techno Solutions (<https://www.cybrosys.com>)
# #
# You can modify it under the terms of the GNU AFFERO # This program is under the terms of the Odoo Proprietary License v1.0
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # (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, # THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# but WITHOUT ANY WARRANTY; without even the implied warranty of # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # 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 ###############################################################################
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
{ {
'name': 'Costing Method: Last Purchase Price', 'name': 'Costing Method: Last Purchase Price',
'version': '17.0.1.0.0', 'version': '17.0.1.0.0',
@ -33,7 +34,7 @@
'website': 'https://www.openhrms.com', 'website': 'https://www.openhrms.com',
'depends': ['stock_account', 'purchase', 'account_accountant'], 'depends': ['stock_account', 'purchase', 'account_accountant'],
'images': ['static/description/banner.jpg'], 'images': ['static/description/banner.jpg'],
'license': 'AGPL-3', 'license': 'OPL-1',
'installable': True, 'installable': True,
'auto_install': False, 'auto_install': False,
'application': False, 'application': False,

29
stock_last_purchase_price/models/__init__.py

@ -1,24 +1,25 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
################################################################################ ###############################################################################
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# #
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). # Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Fathima Mazlin AM (odoo@cybrosys.com) # Author: Cybrosys Techno Solutions (<https://www.cybrosys.com>)
# #
# You can modify it under the terms of the GNU AFFERO # This program is under the terms of the Odoo Proprietary License v1.0
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # (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, # THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# but WITHOUT ANY WARRANTY; without even the implied warranty of # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # 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 ###############################################################################
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from . import product_category from . import product_category
from . import product_product from . import product_product
from . import product_template from . import product_template

29
stock_last_purchase_price/models/product_category.py

@ -1,24 +1,25 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
################################################################################ ###############################################################################
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# #
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). # Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Fathima Mazlin AM (odoo@cybrosys.com) # Author: Cybrosys Techno Solutions (<https://www.cybrosys.com>)
# #
# You can modify it under the terms of the GNU AFFERO # This program is under the terms of the Odoo Proprietary License v1.0
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # (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, # THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# but WITHOUT ANY WARRANTY; without even the implied warranty of # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # 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 ###############################################################################
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from odoo import fields, models from odoo import fields, models

29
stock_last_purchase_price/models/product_product.py

@ -1,24 +1,25 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
################################################################################ ###############################################################################
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# #
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). # Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Fathima Mazlin(odoo@cybrosys.com) # Author: Cybrosys Techno Solutions (<https://www.cybrosys.com>)
# #
# You can modify it under the terms of the GNU AFFERO # This program is under the terms of the Odoo Proprietary License v1.0
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # (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, # THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# but WITHOUT ANY WARRANTY; without even the implied warranty of # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # 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 ###############################################################################
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from odoo import api, models, _ from odoo import api, models, _
from odoo.exceptions import UserError from odoo.exceptions import UserError
from odoo.tools import float_is_zero from odoo.tools import float_is_zero

29
stock_last_purchase_price/models/product_template.py

@ -1,24 +1,25 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
################################################################################ ###############################################################################
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# #
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). # Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Fathima Mazlin AM (odoo@cybrosys.com) # Author: Cybrosys Techno Solutions (<https://www.cybrosys.com>)
# #
# You can modify it under the terms of the GNU AFFERO # This program is under the terms of the Odoo Proprietary License v1.0
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # (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, # THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# but WITHOUT ANY WARRANTY; without even the implied warranty of # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # 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 ###############################################################################
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from odoo import fields, models from odoo import fields, models

29
stock_last_purchase_price/models/stock_move.py

@ -1,24 +1,25 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
################################################################################ ###############################################################################
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# #
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). # Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Fathima Mazlin AM (odoo@cybrosys.com) # Author: Cybrosys Techno Solutions (<https://www.cybrosys.com>)
# #
# You can modify it under the terms of the GNU AFFERO # This program is under the terms of the Odoo Proprietary License v1.0
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # (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, # THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# but WITHOUT ANY WARRANTY; without even the implied warranty of # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # 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 ###############################################################################
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from collections import defaultdict from collections import defaultdict
from odoo import models, _ from odoo import models, _
from odoo.exceptions import UserError from odoo.exceptions import UserError

29
stock_last_purchase_price/models/stock_move_line.py

@ -1,24 +1,25 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
################################################################################ ###############################################################################
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# #
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). # Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Fathima Mazlin AM (odoo@cybrosys.com) # Author: Cybrosys Techno Solutions (<https://www.cybrosys.com>)
# #
# You can modify it under the terms of the GNU AFFERO # This program is under the terms of the Odoo Proprietary License v1.0
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # (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, # THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# but WITHOUT ANY WARRANTY; without even the implied warranty of # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # 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 ###############################################################################
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from odoo import models from odoo import models

Loading…
Cancel
Save