diff --git a/__pycache__/__init__.cpython-311.pyc b/__pycache__/__init__.cpython-311.pyc deleted file mode 100644 index ecd12e8..0000000 Binary files a/__pycache__/__init__.cpython-311.pyc and /dev/null differ diff --git a/build/lib/trytond/modules/sale_line_delete_log/__init__.py b/build/lib/trytond/modules/sale_line_delete_log/__init__.py deleted file mode 100644 index e202add..0000000 --- a/build/lib/trytond/modules/sale_line_delete_log/__init__.py +++ /dev/null @@ -1,18 +0,0 @@ -# This file is part of Tryton. The COPYRIGHT file at the top level of -# this repository contains the full copyright notices and license terms. - -from trytond.pool import Pool -from . import sale -__all__ = ['register'] - - -def register(): - Pool.register( - sale.Sale, - sale.SaleLine, - sale.SaleLineDeleted, - module='sale_line_delete_log', type_='model') - Pool.register( - module='sale_line_delete_log', type_='wizard') - Pool.register( - module='sale_line_delete_log', type_='report') diff --git a/build/lib/trytond/modules/sale_line_delete_log/sale_line_delete_log.py b/build/lib/trytond/modules/sale_line_delete_log/sale_line_delete_log.py deleted file mode 100644 index 792d600..0000000 --- a/build/lib/trytond/modules/sale_line_delete_log/sale_line_delete_log.py +++ /dev/null @@ -1 +0,0 @@ -# diff --git a/build/lib/trytond/modules/sale_line_delete_log/tests/__init__.py b/build/lib/trytond/modules/sale_line_delete_log/tests/__init__.py deleted file mode 100644 index 4effdfa..0000000 --- a/build/lib/trytond/modules/sale_line_delete_log/tests/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -# This file is part of Tryton. The COPYRIGHT file at the top level of -# this repository contains the full copyright notices and license terms. diff --git a/build/lib/trytond/modules/sale_line_delete_log/tests/scenario_sale_line_delete_log.rst b/build/lib/trytond/modules/sale_line_delete_log/tests/scenario_sale_line_delete_log.rst deleted file mode 100644 index 32a0814..0000000 --- a/build/lib/trytond/modules/sale_line_delete_log/tests/scenario_sale_line_delete_log.rst +++ /dev/null @@ -1,185 +0,0 @@ -============================= -Sale Line Delete Log Scenario -============================= - -Imports:: - - >>> from decimal import Decimal - >>> from proteus import Model, Wizard - >>> from trytond.tests.tools import activate_modules - >>> from trytond.modules.company.tests.tools import create_company, get_company - >>> from trytond.modules.account.tests.tools import ( - ... create_chart, create_fiscalyear, create_tax, get_accounts) - >>> from trytond.modules.account_invoice.tests.tools import ( - ... create_payment_term, set_fiscalyear_invoice_sequences) - >>> import datetime as dt - >>> today = dt.date.today() - >>> from trytond.tests.tools import set_user - >>> from trytond.modules.sale_line_delete_log.sale import SaleLineDeleted - - -Activate modules:: - - >>> config = activate_modules('sale_line_delete_log') - -Initial data:: - - >>> User = Model.get('res.user') - >>> Party = Model.get('party.party') - >>> Employee = Model.get('company.employee') - >>> Journal = Model.get('account.journal') - >>> PaymentMethod = Model.get('account.invoice.payment.method') - >>> Party = Model.get('party.party') - >>> ProductUom = Model.get('product.uom') - >>> ProductTemplate = Model.get('product.template') - >>> Sale = Model.get('sale.sale') - >>> SaleLine = Model.get('sale.line') - -Create company:: - - >>> _ = create_company() - >>> company = get_company() - -Set employee:: - - >>> employee_party = Party(name="Employee") - >>> employee_party.save() - >>> employee = Employee(party=employee_party) - >>> employee.save() - >>> user = User(config.user) - >>> user.employees.append(employee) - >>> user.employee = employee - >>> user.save() - >>> set_user(user.id) - -Create fiscal year:: - - >>> fiscalyear = set_fiscalyear_invoice_sequences(create_fiscalyear(company, today)) - >>> fiscalyear.click('create_period') - -Create chart of accounts:: - - >>> _ = create_chart(company) - >>> accounts = get_accounts(company) - >>> revenue = accounts['revenue'] - >>> expense = accounts['expense'] - >>> cash = accounts['cash'] - - >>> cash_journal, = Journal.find([('type', '=', 'cash')]) - >>> cash_journal.save() - >>> payment_method = PaymentMethod() - >>> payment_method.name = 'Cash' - >>> payment_method.journal = cash_journal - >>> payment_method.credit_account = cash - >>> payment_method.debit_account = cash - >>> payment_method.save() - -Create tax:: - - >>> tax = create_tax(Decimal('.10')) - >>> tax.save() - -Create parties:: - - >>> supplier = Party(name='Supplier') - >>> supplier.save() - >>> customer = Party(name='Customer') - >>> customer.save() - -Create account categories:: - - >>> ProductCategory = Model.get('product.category') - >>> account_category = ProductCategory(name="Account Category") - >>> account_category.accounting = True - >>> account_category.account_expense = expense - >>> account_category.account_revenue = revenue - >>> account_category.save() - - >>> account_category_tax, = account_category.duplicate() - >>> account_category_tax.customer_taxes.append(tax) - >>> account_category_tax.save() - -Create product:: - - >>> unit, = ProductUom.find([('name', '=', 'Unit')]) - - >>> template = ProductTemplate() - >>> template.name = 'product' - >>> template.default_uom = unit - >>> template.type = 'goods' - >>> template.salable = True - >>> template.list_price = Decimal('10') - >>> template.account_category = account_category_tax - >>> template.save() - >>> product, = template.products - - >>> template = ProductTemplate() - >>> template.name = 'service' - >>> template.default_uom = unit - >>> template.type = 'service' - >>> template.salable = True - >>> template.list_price = Decimal('30') - >>> template.account_category = account_category - >>> template.save() - >>> service, = template.products - -Create payment term:: - - >>> payment_term = create_payment_term() - >>> payment_term.save() - -Create an Inventory:: - - >>> Inventory = Model.get('stock.inventory') - >>> Location = Model.get('stock.location') - >>> storage, = Location.find([ - ... ('code', '=', 'STO'), - ... ]) - >>> inventory = Inventory() - >>> inventory.location = storage - >>> inventory_line = inventory.lines.new(product=product) - >>> inventory_line.quantity = 100.0 - >>> inventory_line.expected_quantity = 0.0 - >>> inventory.click('confirm') - >>> inventory.state - 'done' - -Sale 5 products:: - - >>> sale = Sale() - >>> sale.party = customer - >>> sale.payment_term = payment_term - >>> sale.invoice_method = 'order' - >>> sale_line = SaleLine() - >>> sale.lines.append(sale_line) - >>> sale_line.product = product - >>> sale_line.quantity = 2.0 - >>> sale_line = SaleLine() - >>> sale.lines.append(sale_line) - >>> sale_line.type = 'comment' - >>> sale_line.description = 'Comment' - >>> sale_line = SaleLine() - >>> sale.lines.append(sale_line) - >>> sale_line.product = product - >>> sale_line.quantity = 3.0 - >>> sale.save() - >>> len(sale.lines) - 3 - >>> sale.untaxed_amount, sale.tax_amount, sale.total_amount - (Decimal('50.00'), Decimal('5.00'), Decimal('55.00')) - - -Delete a sale line:: - - >>> sale.lines[0].delete() - >>> sale.save() - >>> len(sale.lines) - 2 - >>> sale.reload() - >>> sale.delete_lines[0] - proteus.Model.get('sale.line_deleted')(1) - >>> assert isinstance(sale.delete_lines[0], Model.get('sale.line_deleted')), "it's not instance SaleLineDeleted" - - - - diff --git a/build/lib/trytond/modules/sale_line_delete_log/tests/test_module.py b/build/lib/trytond/modules/sale_line_delete_log/tests/test_module.py deleted file mode 100644 index 66a0db2..0000000 --- a/build/lib/trytond/modules/sale_line_delete_log/tests/test_module.py +++ /dev/null @@ -1,11 +0,0 @@ -# This file is part of Tryton. The COPYRIGHT file at the top level of -# this repository contains the full copyright notices and license terms. -from trytond.tests.test_tryton import ModuleTestCase - - -class SaleLineDeleteLogTestCase(ModuleTestCase): - "Test Sale Line Delete Log module" - module = 'sale_line_delete_log' - - -del ModuleTestCase diff --git a/build/lib/trytond/modules/sale_line_delete_log/tests/test_scenario.py b/build/lib/trytond/modules/sale_line_delete_log/tests/test_scenario.py deleted file mode 100644 index dc1d23e..0000000 --- a/build/lib/trytond/modules/sale_line_delete_log/tests/test_scenario.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file is part of Tryton. The COPYRIGHT file at the top level of -# this repository contains the full copyright notices and license terms. - -from trytond.tests.test_tryton import load_doc_tests - - -def load_tests(*args, **kwargs): - return load_doc_tests(__name__, __file__, *args, **kwargs) diff --git a/build/lib/trytond/modules/sale_line_delete_log/tryton.cfg b/build/lib/trytond/modules/sale_line_delete_log/tryton.cfg deleted file mode 100644 index 8e9135c..0000000 --- a/build/lib/trytond/modules/sale_line_delete_log/tryton.cfg +++ /dev/null @@ -1,8 +0,0 @@ -[tryton] -version=6.8.0 -depends: - ir - account - company - sale -xml: diff --git a/dist/trytondo_sale_line_delete_log-6.8.0-py3.11.egg b/dist/trytondo_sale_line_delete_log-6.8.0-py3.11.egg deleted file mode 100644 index 0d88364..0000000 Binary files a/dist/trytondo_sale_line_delete_log-6.8.0-py3.11.egg and /dev/null differ diff --git a/tests/__pycache__/test_module.cpython-311.pyc b/tests/__pycache__/test_module.cpython-311.pyc index d6503ab..34f293c 100644 Binary files a/tests/__pycache__/test_module.cpython-311.pyc and b/tests/__pycache__/test_module.cpython-311.pyc differ diff --git a/tests/__pycache__/test_scenario.cpython-311.pyc b/tests/__pycache__/test_scenario.cpython-311.pyc index facc8b8..643b99d 100644 Binary files a/tests/__pycache__/test_scenario.cpython-311.pyc and b/tests/__pycache__/test_scenario.cpython-311.pyc differ diff --git a/trytondo_sale_line_delete_log.egg-info/PKG-INFO b/trytondo_sale_line_delete_log.egg-info/PKG-INFO deleted file mode 100644 index 7903d6a..0000000 --- a/trytondo_sale_line_delete_log.egg-info/PKG-INFO +++ /dev/null @@ -1,59 +0,0 @@ -Metadata-Version: 2.1 -Name: trytondo-sale-line-delete-log -Version: 6.8.0 -Home-page: http://www.tryton.org/ -Download-URL: http://downloads.tryton.org/6.8/ -Author: Tryton -Author-email: foundation@tryton.org -License: GPL-3 -Project-URL: Bug Tracker, https://bugs.tryton.org/ -Project-URL: Documentation, https://docs.tryton.org/latest/modules-sale-line-delete-log -Project-URL: Forum, https://www.tryton.org/forum -Project-URL: Source Code, https://code.tryton.org/tryton -Classifier: Development Status :: 5 - Production/Stable -Classifier: Environment :: Plugins -Classifier: Framework :: Tryton -Classifier: Intended Audience :: Developers -Classifier: Intended Audience :: Financial and Insurance Industry -Classifier: Intended Audience :: Legal Industry -Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+) -Classifier: Natural Language :: Bulgarian -Classifier: Natural Language :: Catalan -Classifier: Natural Language :: Chinese (Simplified) -Classifier: Natural Language :: Czech -Classifier: Natural Language :: Dutch -Classifier: Natural Language :: English -Classifier: Natural Language :: Finnish -Classifier: Natural Language :: French -Classifier: Natural Language :: German -Classifier: Natural Language :: Hungarian -Classifier: Natural Language :: Indonesian -Classifier: Natural Language :: Italian -Classifier: Natural Language :: Persian -Classifier: Natural Language :: Polish -Classifier: Natural Language :: Portuguese (Brazilian) -Classifier: Natural Language :: Romanian -Classifier: Natural Language :: Russian -Classifier: Natural Language :: Slovenian -Classifier: Natural Language :: Spanish -Classifier: Natural Language :: Turkish -Classifier: Natural Language :: Ukrainian -Classifier: Operating System :: OS Independent -Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.8 -Classifier: Programming Language :: Python :: 3.9 -Classifier: Programming Language :: Python :: 3.10 -Classifier: Programming Language :: Python :: 3.11 -Classifier: Programming Language :: Python :: 3.12 -Classifier: Programming Language :: Python :: Implementation :: CPython -Classifier: Topic :: Office/Business -Requires-Python: >=3.8 -Provides-Extra: test -License-File: LICENSE - -########################### -Sale Line Delete Log Module -########################### - -.. to remove, see https://www.tryton.org/develop/guidelines/documentation#index.rst - diff --git a/trytondo_sale_line_delete_log.egg-info/SOURCES.txt b/trytondo_sale_line_delete_log.egg-info/SOURCES.txt deleted file mode 100644 index 5c50c38..0000000 --- a/trytondo_sale_line_delete_log.egg-info/SOURCES.txt +++ /dev/null @@ -1,30 +0,0 @@ -CHANGELOG -COPYRIGHT -LICENSE -MANIFEST.in -README.rst -setup.py -./__init__.py -./sale.py -./tryton.cfg -./tests/__init__.py -./tests/scenario_sale_line_delete_log.rst -./tests/test_module.py -./tests/test_scenario.py -doc/conf.py -doc/configuration.rst -doc/design.rst -doc/index.rst -doc/reference.rst -doc/releases.rst -doc/requirements-doc.txt -doc/setup.rst -doc/usage.rst -icons/LICENSE -trytondo_sale_line_delete_log.egg-info/PKG-INFO -trytondo_sale_line_delete_log.egg-info/SOURCES.txt -trytondo_sale_line_delete_log.egg-info/dependency_links.txt -trytondo_sale_line_delete_log.egg-info/entry_points.txt -trytondo_sale_line_delete_log.egg-info/not-zip-safe -trytondo_sale_line_delete_log.egg-info/requires.txt -trytondo_sale_line_delete_log.egg-info/top_level.txt \ No newline at end of file diff --git a/trytondo_sale_line_delete_log.egg-info/dependency_links.txt b/trytondo_sale_line_delete_log.egg-info/dependency_links.txt deleted file mode 100644 index 8b13789..0000000 --- a/trytondo_sale_line_delete_log.egg-info/dependency_links.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/trytondo_sale_line_delete_log.egg-info/entry_points.txt b/trytondo_sale_line_delete_log.egg-info/entry_points.txt deleted file mode 100644 index e40e1c2..0000000 --- a/trytondo_sale_line_delete_log.egg-info/entry_points.txt +++ /dev/null @@ -1,2 +0,0 @@ -[trytond.modules] -sale_line_delete_log = trytond.modules.sale_line_delete_log diff --git a/trytondo_sale_line_delete_log.egg-info/not-zip-safe b/trytondo_sale_line_delete_log.egg-info/not-zip-safe deleted file mode 100644 index 8b13789..0000000 --- a/trytondo_sale_line_delete_log.egg-info/not-zip-safe +++ /dev/null @@ -1 +0,0 @@ - diff --git a/trytondo_sale_line_delete_log.egg-info/requires.txt b/trytondo_sale_line_delete_log.egg-info/requires.txt deleted file mode 100644 index b80ead1..0000000 --- a/trytondo_sale_line_delete_log.egg-info/requires.txt +++ /dev/null @@ -1,7 +0,0 @@ -trytond_account<6.9,>=6.8 -trytond_company<6.9,>=6.8 -trytond_sale<6.9,>=6.8 -trytond<6.9,>=6.8 - -[test] -proteus<6.9,>=6.8 diff --git a/trytondo_sale_line_delete_log.egg-info/top_level.txt b/trytondo_sale_line_delete_log.egg-info/top_level.txt deleted file mode 100644 index 93df119..0000000 --- a/trytondo_sale_line_delete_log.egg-info/top_level.txt +++ /dev/null @@ -1 +0,0 @@ -trytond