Skip to content

Commit

Permalink
Merge pull request #461 from ecosoft-odoo/16.0-mig-budget_activity_pu…
Browse files Browse the repository at this point in the history
…rchase_request

[16.0][MIG] budget_activity_purchase_request
  • Loading branch information
Saran440 authored Sep 24, 2024
2 parents a19d3f2 + def4b24 commit 5368a56
Show file tree
Hide file tree
Showing 19 changed files with 798 additions and 0 deletions.
84 changes: 84 additions & 0 deletions budget_activity_purchase_request/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
==================================
Budget Activity - Purchase Request
==================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:77092d5bfc7602e66fc8e05a07133b841b6602c74921167091834511cc49d178
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
:target: https://odoo-community.org/page/development-status
:alt: Alpha
.. |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-ecosoft--odoo%2Fbudgeting-lightgray.png?logo=github
:target: https://github.com/ecosoft-odoo/budgeting/tree/16.0/budget_activity_purchase_request
:alt: ecosoft-odoo/budgeting

|badge1| |badge2| |badge3|

This module add "Activity" element for purchase request budget commitment

.. IMPORTANT::
This is an alpha version, the data model and design can change at any time without warning.
Only for development or testing purpose, do not use in production.
`More details on development status <https://odoo-community.org/page/development-status>`_

**Table of contents**

.. contents::
:local:

Usage
=====

#. Go to Purchase requests > Create new purchase request
#. On Products Tab (Order lines), select Activity field
#. It will send activity to purchase when you create RFQ

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/ecosoft-odoo/budgeting/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/ecosoft-odoo/budgeting/issues/new?body=module:%20budget_activity_purchase_request%0Aversion:%2016.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.

Credits
=======

Authors
~~~~~~~

* Ecosoft

Contributors
~~~~~~~~~~~~

* `Ecosoft <http://ecosoft.co.th>`__:

* Kitti Upariphutthiphong <kittiu@ecosoft.co.th>
* Saran Lim. <saranl@ecosoft.co.th>
* Pimolnat Suntian <pimolnats@ecosoft.co.th>

Maintainers
~~~~~~~~~~~

.. |maintainer-kittiu| image:: https://github.com/kittiu.png?size=40px
:target: https://github.com/kittiu
:alt: kittiu

Current maintainer:

|maintainer-kittiu|

This module is part of the `ecosoft-odoo/budgeting <https://github.com/ecosoft-odoo/budgeting/tree/16.0/budget_activity_purchase_request>`_ project on GitHub.

You are welcome to contribute.
4 changes: 4 additions & 0 deletions budget_activity_purchase_request/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
from . import wizard
24 changes: 24 additions & 0 deletions budget_activity_purchase_request/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2021 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Budget Activity - Purchase Request",
"version": "16.0.1.0.0",
"category": "Accounting",
"license": "AGPL-3",
"author": "Ecosoft, Odoo Community Association (OCA)",
"website": "https://github.com/ecosoft-odoo/budgeting",
"depends": [
"budget_activity_purchase",
"budget_control_purchase_request",
],
"data": [
"views/purchase_request_view.xml",
"views/purchase_request_line_view.xml",
"views/purchase_views.xml",
],
"installable": True,
"auto_install": True,
"maintainers": ["kittiu"],
"development_status": "Alpha",
}
3 changes: 3 additions & 0 deletions budget_activity_purchase_request/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import purchase_request
13 changes: 13 additions & 0 deletions budget_activity_purchase_request/models/purchase_request.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2021 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import models


class PurchaseRequestLine(models.Model):
_inherit = "purchase.request.line"

def _get_pr_line_account(self):
if self.activity_id:
return self.activity_id.account_id
return super()._get_pr_line_account()
5 changes: 5 additions & 0 deletions budget_activity_purchase_request/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* `Ecosoft <http://ecosoft.co.th>`__:

* Kitti Upariphutthiphong <kittiu@ecosoft.co.th>
* Saran Lim. <saranl@ecosoft.co.th>
* Pimolnat Suntian <pimolnats@ecosoft.co.th>
1 change: 1 addition & 0 deletions budget_activity_purchase_request/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module add "Activity" element for purchase request budget commitment
3 changes: 3 additions & 0 deletions budget_activity_purchase_request/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#. Go to Purchase requests > Create new purchase request
#. On Products Tab (Order lines), select Activity field
#. It will send activity to purchase when you create RFQ
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 5368a56

Please sign in to comment.