Rename module name

This commit is contained in:
Raimon Esteve 2017-06-14 10:40:29 +02:00
parent 4d271431f2
commit 16bbc47273
7 changed files with 30 additions and 30 deletions

View File

@ -1,5 +1,5 @@
Installing nantic_account_invoice_shipment_address
==================================================
Installing nantic_account_invoice_shipment
==========================================
Prerequisites
-------------
@ -10,7 +10,7 @@ Prerequisites
Installation
------------
Once you've downloaded and unpacked the nantic_account_invoice_shipment_address source
Once you've downloaded and unpacked the nantic_account_invoice_shipment source
release, enter the directory where the archive was unpacked, and run:
python setup.py install
@ -26,4 +26,4 @@ documentation:
http://docs.python.org/inst/inst.html
To use without installation, extract the archive into ``trytond/modules`` with
the directory name account_invoice_shipment_address.
the directory name account_invoice_shipment.

6
README
View File

@ -1,7 +1,7 @@
nantic_account_invoice_shipment_address
=======================================
nantic_account_invoice_shipment
===============================
The account_invoice_shipment_address module of the Tryton application platform.
The account_invoice_shipment module of the Tryton application platform.
Installing
----------

View File

@ -1,4 +1,4 @@
# This file is part account_invoice_shipment_address module for Tryton.
# This file is part account_invoice_shipment module for Tryton.
# The COPYRIGHT file at the top level of this repository contains
# the full copyright notices and license terms.
from trytond.pool import Pool
@ -8,4 +8,4 @@ from . import invoice
def register():
Pool.register(
invoice.Invoice,
module='account_invoice_shipment_address', type_='model')
module='account_invoice_shipment', type_='model')

View File

@ -1,5 +1,5 @@
#!/usr/bin/env python
# This file is part account_invoice_shipment_address module for Tryton.
# This file is part account_invoice_shipment module for Tryton.
# The COPYRIGHT file at the top level of this repository contains
# the full copyright notices and license terms.
@ -40,8 +40,8 @@ version = info.get('version', '0.0.1')
major_version, minor_version, _ = version.split('.', 2)
major_version = int(major_version)
minor_version = int(minor_version)
name = 'nantic_account_invoice_shipment_address'
download_url = 'https://bitbucket.org/nantic/trytond-account_invoice_shipment_address'
name = 'nantic_account_invoice_shipment'
download_url = 'https://bitbucket.org/nantic/trytond-account_invoice_shipment'
requires = []
for dep in info.get('depends', []):
@ -65,13 +65,13 @@ setup(name=name,
url='https://bitbucket.org/nantic/',
download_url=download_url,
keywords='',
package_dir={'trytond.modules.account_invoice_shipment_address': '.'},
package_dir={'trytond.modules.account_invoice_shipment': '.'},
packages=[
'trytond.modules.account_invoice_shipment_address',
'trytond.modules.account_invoice_shipment_address.tests',
'trytond.modules.account_invoice_shipment',
'trytond.modules.account_invoice_shipment.tests',
],
package_data={
'trytond.modules.account_invoice_shipment_address': (info.get('xml', [])
'trytond.modules.account_invoice_shipment': (info.get('xml', [])
+ ['tryton.cfg', 'view/*.xml', 'locale/*.po', '*.odt',
'icons/*.svg', 'tests/*.rst']),
},
@ -101,11 +101,11 @@ setup(name=name,
zip_safe=False,
entry_points="""
[trytond.modules]
account_invoice_shipment_address = trytond.modules.account_invoice_shipment_address
account_invoice_shipment = trytond.modules.account_invoice_shipment
""",
test_suite='tests',
test_loader='trytond.test_loader:Loader',
tests_require=tests_require,
use_2to3=True,
convert_2to3_doctests=['tests/scenario_account_invoice_shipment_address.rst'],
convert_2to3_doctests=['tests/scenario_account_invoice_shipment.rst'],
)

View File

@ -1,6 +1,6 @@
# This file is part account_invoice_shipment_address module for Tryton.
# This file is part account_invoice_shipment module for Tryton.
# The COPYRIGHT file at the top level of this repository contains
# the full copyright notices and license terms.
from .test_account_invoice_shipment_address import suite
from .test_account_invoice_shipment import suite
__all__ = ['suite']

View File

@ -1,6 +1,6 @@
=========================================
Account Invoice Shipment Address Scenario
=========================================
=================================
Account Invoice Shipment Scenario
=================================
Imports::
@ -26,7 +26,7 @@ Install sale::
>>> Module = Model.get('ir.module')
>>> module1, module2 = Module.find([('name', 'in',
... ['account_invoice_shipment_address', 'sale'])])
... ['account_invoice_shipment', 'sale'])])
>>> module1.click('install')
>>> module2.click('install')
>>> Wizard('ir.module.install_upgrade').execute('upgrade')

View File

@ -1,4 +1,4 @@
# This file is part account_invoice_shipment_address module for Tryton.
# This file is part account_invoice_shipment module for Tryton.
# The COPYRIGHT file at the top level of this repository contains
# the full copyright notices and license terms.
import unittest
@ -9,17 +9,17 @@ from trytond.tests.test_tryton import (doctest_setup, doctest_teardown,
doctest_checker)
class AccountInvoiceShipmentAddressTestCase(ModuleTestCase):
'Test Account Invoice Shipment Address module'
module = 'account_invoice_shipment_address'
class AccountInvoiceShipmentTestCase(ModuleTestCase):
'Test Account Invoice Shipment module'
module = 'account_invoice_shipment'
def suite():
suite = trytond.tests.test_tryton.suite()
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
AccountInvoiceShipmentAddressTestCase))
AccountInvoiceShipmentTestCase))
suite.addTests(doctest.DocFileSuite(
'scenario_account_invoice_shipment_address.rst',
'scenario_account_invoice_shipment.rst',
setUp=doctest_setup, tearDown=doctest_teardown, encoding='utf-8',
optionflags=doctest.REPORT_ONLY_FIRST_FAILURE,
checker=doctest_checker))