Renamed module from stock_external to stock_external_party
This commit is contained in:
parent
09c354f851
commit
6ba7065089
8
README
8
README
|
@ -1,6 +1,12 @@
|
|||
|
||||
This Module runs with the Tryton application platform.
|
||||
|
||||
This module is developed and tested over a Tryton server and core modules
|
||||
patched with patches from `trytond-patches project`_ (take care with the
|
||||
branches). Maybe these patches are required for the module to work.
|
||||
|
||||
.. _trytond-patches project: https://bitbucket.org/nantic/trytond-patches
|
||||
|
||||
Installing
|
||||
----------
|
||||
|
||||
|
@ -14,7 +20,7 @@ questions on the NaN·tic bug tracker, mailing list,
|
|||
wiki or IRC channel:
|
||||
|
||||
* http://doc.tryton-erp.es/
|
||||
* http://bitbucket.org/nantic/trytond-stock_external
|
||||
* http://bitbucket.org/nantic/trytond-stock_external_party
|
||||
* http://groups.tryton.org/
|
||||
* http://wiki.tryton.org/
|
||||
* irc://irc.freenode.net/tryton
|
||||
|
|
|
@ -14,7 +14,7 @@ def register():
|
|||
PeriodCacheParty,
|
||||
Inventory,
|
||||
InventoryLine,
|
||||
module='stock_external', type_='model')
|
||||
module='stock_external_party', type_='model')
|
||||
Pool.register(
|
||||
ProductByParty,
|
||||
module='stock_external', type_='wizard')
|
||||
module='stock_external_party', type_='wizard')
|
||||
|
|
|
@ -58,7 +58,7 @@ recepción, y en el segundo estaremos realizando una recepción. Una vez
|
|||
rellenada esta información deberemos introducir los movimientos que queremos
|
||||
realizar y seguir con los pasos del albarán.
|
||||
|
||||
.. |menu_shipment_external| tryref:: stock_external_shipment.menu_shipment_external_form/complete_name
|
||||
.. |menu_shipment_external| tryref:: stock_external.menu_shipment_external_form/complete_name
|
||||
.. |party| field:: stock.shipment.external/party
|
||||
|
||||
.. note:: El estado esperando solo tiene sentido cuando realizamos envíos de
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
External stock of the party
|
||||
===========================
|
||||
|
||||
Allows to receive goods from party for their manipulation and, later, return
|
||||
them to the party.
|
||||
|
||||
It also allows to find which product stock belongs to parties.
|
2
setup.py
2
setup.py
|
@ -6,7 +6,7 @@ import re
|
|||
import os
|
||||
import ConfigParser
|
||||
|
||||
MODULE = 'stock_external'
|
||||
MODULE = 'stock_external_party'
|
||||
PREFIX = 'nantic'
|
||||
MODULE2PREFIX = {}
|
||||
|
||||
|
|
11
stock.py
11
stock.py
|
@ -1,5 +1,5 @@
|
|||
#The COPYRIGHT file at the top level of this repository contains the full
|
||||
#copyright notices and license terms.
|
||||
# The COPYRIGHT file at the top level of this repository contains the full
|
||||
# copyright notices and license terms.
|
||||
import datetime
|
||||
from collections import defaultdict
|
||||
|
||||
|
@ -156,11 +156,11 @@ class ProductByParty(Wizard):
|
|||
'Product by Party'
|
||||
__name__ = 'product.by_party'
|
||||
start = StateView('product.by_party.start',
|
||||
'stock_external.product_by_party_start_view_form', [
|
||||
'stock_external_party.product_by_party_start_view_form', [
|
||||
Button('Cancel', 'end', 'tryton-cancel'),
|
||||
Button('Open', 'open', 'tryton-ok', default=True),
|
||||
])
|
||||
open = StateAction('stock_external.act_party_quantity_tree')
|
||||
open = StateAction('stock_external_party.act_party_quantity_tree')
|
||||
|
||||
def do_open(self, action):
|
||||
pool = Pool()
|
||||
|
@ -253,8 +253,7 @@ class Inventory:
|
|||
product_ids=product2lines.keys(),
|
||||
grouping=('product', 'party'))
|
||||
product_qty = defaultdict(dict)
|
||||
for (location_id, product_id, party_id), quantity \
|
||||
in pbl.iteritems():
|
||||
for (_, product_id, party_id), quantity in pbl.iteritems():
|
||||
product_qty[product_id][party_id] = quantity
|
||||
|
||||
products = Product.browse(product_qty.keys())
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
copyright notices and license terms. -->
|
||||
<tryton>
|
||||
<data>
|
||||
|
||||
<!-- party.party -->
|
||||
<record model="ir.ui.view" id="party_quantity_view_tree">
|
||||
<field name="model">party.party</field>
|
||||
<field name="type">tree</field>
|
||||
|
@ -16,7 +16,6 @@
|
|||
<field name="res_model">party.party</field>
|
||||
<field name="window_name" eval="True"/>
|
||||
</record>
|
||||
|
||||
<record model="ir.action.act_window.view"
|
||||
id="act_party_quantity_tree_view">
|
||||
<field name="sequence" eval="10"/>
|
||||
|
@ -24,6 +23,7 @@
|
|||
<field name="act_window" ref="act_party_quantity_tree"/>
|
||||
</record>
|
||||
|
||||
<!-- product.by_party -->
|
||||
<record model="ir.action.wizard" id="wizard_product_by_party">
|
||||
<field name="name">Product By Party</field>
|
||||
<field name="wiz_name">product.by_party</field>
|
||||
|
@ -46,6 +46,7 @@
|
|||
<field name="name">product_by_party_start_form</field>
|
||||
</record>
|
||||
|
||||
<!-- stock.period.cache.party -->
|
||||
<record model="ir.ui.view" id="period_cache_party_view_form">
|
||||
<field name="model">stock.period.cache.party</field>
|
||||
<field name="type">form</field>
|
||||
|
@ -65,6 +66,7 @@
|
|||
<field name="perm_create" eval="False"/>
|
||||
<field name="perm_delete" eval="False"/>
|
||||
</record>
|
||||
|
||||
<record model="ir.model.access" id="access_period_cache_party_stock">
|
||||
<field name="model"
|
||||
search="[('model', '=', 'stock.period.cache.party')]"/>
|
||||
|
@ -74,6 +76,7 @@
|
|||
<field name="perm_create" eval="False"/>
|
||||
<field name="perm_delete" eval="False"/>
|
||||
</record>
|
||||
|
||||
<record model="ir.model.access" id="access_period_cache_party_admin">
|
||||
<field name="model"
|
||||
search="[('model', '=', 'stock.period.cache.party')]"/>
|
||||
|
@ -84,6 +87,7 @@
|
|||
<field name="perm_delete" eval="True"/>
|
||||
</record>
|
||||
|
||||
<!-- stock.inventory.line -->
|
||||
<record model="ir.ui.view" id="inventory_line_view_form">
|
||||
<field name="model">stock.inventory.line</field>
|
||||
<field name="inherit" ref="stock.inventory_line_view_form"/>
|
||||
|
@ -95,6 +99,5 @@
|
|||
<field name="inherit" ref="stock.inventory_line_view_tree"/>
|
||||
<field name="name">inventory_line_tree</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</tryton>
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
# The COPYRIGHT file at the top level of this repository contains the full
|
||||
# copyright notices and license terms.
|
||||
from .test_stock_external import suite
|
||||
from .test_stock_external_party import suite
|
||||
|
|
|
@ -16,7 +16,7 @@ class TestCase(unittest.TestCase):
|
|||
'Test module'
|
||||
|
||||
def setUp(self):
|
||||
trytond.tests.test_tryton.install_module('stock_external')
|
||||
trytond.tests.test_tryton.install_module('stock_external_party')
|
||||
self.template = POOL.get('product.template')
|
||||
self.product = POOL.get('product.product')
|
||||
self.party = POOL.get('party.party')
|
||||
|
@ -32,7 +32,7 @@ class TestCase(unittest.TestCase):
|
|||
|
||||
def test0005views(self):
|
||||
'Test views'
|
||||
test_view('stock_external')
|
||||
test_view('stock_external_party')
|
||||
|
||||
def test0006depends(self):
|
||||
'Test depends'
|
|
@ -1,6 +1,6 @@
|
|||
[tryton]
|
||||
version=3.2.0
|
||||
depends:
|
||||
stock_external_shipment
|
||||
stock_external
|
||||
xml:
|
||||
stock.xml
|
||||
|
|
Loading…
Reference in New Issue