Skip to content

Commit

Permalink
[ADD] sale_order_get_due_date
Browse files Browse the repository at this point in the history
  • Loading branch information
AungKoKoLin1997 committed Feb 20, 2024
1 parent 5c3a7e2 commit cbba046
Show file tree
Hide file tree
Showing 13 changed files with 484 additions and 8 deletions.
2 changes: 1 addition & 1 deletion sale_order_delivery_date/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"website": "https://www.quartile.co",
"category": "Sale",
"license": "LGPL-3",
"depends": ["sale_stock"],
"depends": ["sale_stock", "sale_order_get_due_date"],
"data": ["views/sale_order_views.xml", "views/stock_picking_views.xml"],
"installable": True,
}
4 changes: 0 additions & 4 deletions sale_order_delivery_date/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,3 @@ class SaleOrder(models.Model):
default=fields.Date.context_today,
help="The input date will be passed over to the delivery as Scheduled Date.",
)

def _get_due_date(self):
self.ensure_one()
return self.commitment_date or self.expected_date
52 changes: 52 additions & 0 deletions sale_order_get_due_date/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
=======================
Sale Order Get Due Date
=======================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |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-qrtl%2Fhls--custom-lightgray.png?logo=github
:target: https://github.com/qrtl/hls-custom/tree/12.0/sale_order_get_due_date
:alt: qrtl/hls-custom

|badge1| |badge2| |badge3|

This module adds the functionality to obtain the due date of a sale order.

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/qrtl/hls-custom/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/qrtl/hls-custom/issues/new?body=module:%20sale_order_get_due_date%0Aversion:%2012.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
~~~~~~~

* Quartile Limited

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

This module is part of the `qrtl/hls-custom <https://github.com/qrtl/hls-custom/tree/12.0/sale_order_get_due_date>`_ project on GitHub.

You are welcome to contribute.
1 change: 1 addition & 0 deletions sale_order_get_due_date/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
12 changes: 12 additions & 0 deletions sale_order_get_due_date/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright 2024 Quartile Limited
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Sale Order Get Due Date",
"version": "12.0.1.0.1",
"author": "Quartile Limited",
"website": "https://www.quartile.co",
"category": "Sale",
"license": "AGPL-3",
"depends": ["sale_stock"],
"installable": True,
}
1 change: 1 addition & 0 deletions sale_order_get_due_date/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import sale_order
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019 Quartile Limited
# Copyright 2024 Quartile Limited
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import models
Expand Down
1 change: 1 addition & 0 deletions sale_order_get_due_date/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module adds the functionality to obtain the due date of a sale order.
Loading

0 comments on commit cbba046

Please sign in to comment.