Skip to content
Snippets Groups Projects
Commit a7dececeef7c authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:ambulance: in tests, copy an existing product rather than creating a new one to avoid...

:ambulance: in tests, copy an existing product rather than creating a new one to avoid problems with new required fields in other modules
and also :books: remove description from manifest as README.rst will be used automatically instead
parent b7fc30c674c3
No related branches found
No related tags found
No related merge requests found
11.0.1.2
--------
In tests, copy a product rather than create a new one, that way required fields will be already filled.
11.0.1.1
--------
......
##############################################################################
#
# Accounting periods, for Odoo
# Copyright (C) 2018 XCG Consulting <http://odoo.consulting>
# Accounting Periods, for Odoo
# Copyright (C) 2018, 2020 XCG Consulting <http://odoo.consulting>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
......@@ -19,5 +19,5 @@
##############################################################################
{
"name": "Accounting periods",
"name": "Accounting Periods",
"license": "AGPL-3",
......@@ -23,15 +23,6 @@
"license": "AGPL-3",
"description": """
Accounting periods
==================
Per-period accounting concept. Periods can be individually closed.
This module also adds a transaction date in accounting documents.
Inspired from what used to be available in previous Odoo versions.
""",
"version": "11.0.1.1",
"summary": "Add period accounting concept",
"version": "11.0.1.2",
"category": "Accounting",
"author": "XCG Consulting",
"website": "http://odoo.consulting/",
......
../NEWS.rst
\ No newline at end of file
......@@ -79,13 +79,6 @@
def test_0002_create_products(self):
"""Create products for use in further tests.
"""
def createProduct(values):
"""Create a product template and return its product variant."""
ptemplate, = self.createAndTest("product.template", [values])
product = ptemplate.product_variant_ids
self.assertEqual(len(product), 1)
return product
self.memory.product = createProduct(
self.memory.product = self.browse_ref("product.service_cost_01").copy()
self.memory.product.write(
{
......@@ -91,4 +84,3 @@
{
"name": genUuid(),
"property_account_expense_id": self.memory.account.id,
"property_account_income_id": self.memory.account.id,
......@@ -93,6 +85,5 @@
"property_account_expense_id": self.memory.account.id,
"property_account_income_id": self.memory.account.id,
"type": "service",
}
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment