Skip to content

Commit

Permalink
[ADD] test_purchase_sale_stock_dropshipping_inter_company : new modul…
Browse files Browse the repository at this point in the history
…e for tests

Add tests for purchase_sale_stock_dropshipping_inter_company when drop shipping is installed
Refactor purchase_sale_inter_company to allow inheritance
  • Loading branch information
metaminux committed Dec 18, 2024
1 parent 003cac0 commit e6ffa23
Show file tree
Hide file tree
Showing 11 changed files with 608 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
)


class TestPurchaseSaleInterCompany(TestAccountInvoiceInterCompanyBase):
class TestPurchaseSaleInterCompanyBase(TestAccountInvoiceInterCompanyBase):
@classmethod
def _configure_user(cls, user):
for xml in [
Expand Down Expand Up @@ -89,6 +89,8 @@ def _approve_po(self):
.search([("auto_purchase_order_id", "=", self.purchase_company_a.id)])
)


class TestPurchaseSaleInterCompany(TestPurchaseSaleInterCompanyBase):
def test_purchase_sale_inter_company(self):
self.purchase_company_a.notes = "Test note"
sale = self._approve_po()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
69 changes: 69 additions & 0 deletions test_purchase_sale_stock_dropshipping_inter_company/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
=================================================================================
Test Inter Company Module from Purchase to Sale Order with Warehouse and Dropship
=================================================================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:06f08f9f770c6fa70a6c80e1adbff5eea334313523e5def11b963a7c74715a31
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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-OCA%2Fmulti--company-lightgray.png?logo=github
:target: https://github.com/OCA/multi-company/tree/16.0/test_purchase_sale_stock_dropshipping_inter_company
:alt: OCA/multi-company
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/multi-company-16-0/multi-company-16-0-test_purchase_sale_stock_dropshipping_inter_company
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/multi-company&target_branch=16.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This addon is not meant to be installed, except for running the tests.

The basic tests are integrated within the ``purchase_sale_stock_inter_company`` addon.
This addon extends tests to Drop Shipping

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/multi-company/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/OCA/multi-company/issues/new?body=module:%20test_purchase_sale_stock_dropshipping_inter_company%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
=======

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

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/multi-company <https://github.com/OCA/multi-company/tree/16.0/test_purchase_sale_stock_dropshipping_inter_company>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Copyright (c) 2024 Groupe Voltaire
# @author Guillaume MASSON <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright (c) 2024 Groupe Voltaire
# @author Guillaume MASSON <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Test Inter Company Module from Purchase to Sale Order with Warehouse and Dropship",
"summary": "Test Inter Company PO/SO rules with Warehouse and Drop Shipping",
"version": "16.0.1.0.0",
"category": "Hidden/Tests",
"website": "https://github.com/OCA/multi-company",
"author": "Odoo Community Association (OCA)",
"license": "AGPL-3",
"installable": True,
"auto_install": False,
"depends": ["purchase_sale_stock_inter_company", "stock_dropshipping"],
"data": [],
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
This addon is not meant to be installed, except for running the tests.

The basic tests are integrated within the ``purchase_sale_stock_inter_company`` addon.
This addon extends tests to Drop Shipping
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 e6ffa23

Please sign in to comment.