From 2fa5af75ef377d5f7c70824274709511b8d925f7 Mon Sep 17 00:00:00 2001 From: resteve Date: Fri, 20 Dec 2013 16:57:20 +0100 Subject: [PATCH] Create Sale Return Wizard --- __init__.py | 4 +++ __init__.pyc | Bin 481 -> 0 bytes shipment.py | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++ shipment.xml | 19 +++++++++++ tryton.cfg | 3 +- 5 files changed, 113 insertions(+), 1 deletion(-) delete mode 100644 __init__.pyc create mode 100644 shipment.py create mode 100644 shipment.xml diff --git a/__init__.py b/__init__.py index 22d9dbe..cee80bf 100644 --- a/__init__.py +++ b/__init__.py @@ -3,8 +3,12 @@ #the full copyright notices and license terms. from trytond.pool import Pool from .sale import * +from .shipment import * def register(): Pool.register( Sale, module='sale_shipment_returns', type_='model') + Pool.register( + CreateSaleReturn, + module='sale_shipment_returns', type_='wizard') diff --git a/__init__.pyc b/__init__.pyc deleted file mode 100644 index 9a234a2a42093ee26bd87fc09e406ae44937e7e1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 481 zcmbVIyG{c!5M19S0YxCCp`^y5$cY{yB>E`2qe^2TY=M#Qq4TD=8a|01;G6gWn6(jU zsPK8md-m+i+U4iz@%TCxLdG+|w(oc<*$kG?-21Ez(g;K7}AQe0mNTbq2S)=IT#z3g0{E&;P_1H z9)dIR*$=Jj*o=<%V;5PdJPppI40IQCiM<*@d<+=flaK7i)L{b=Ek_54SHc`8?mJs$ zzgYcgRvF_v&&I5Wsg~}J5K$6R3w#?bkH9AaS#LeyMRF^0B&w + + + + + Create Return Sale + stock.sale.return.create + stock.shipment.out.return + + + form_action + stock.shipment.out.return,-1 + + + + + + diff --git a/tryton.cfg b/tryton.cfg index 077b778..56a3777 100644 --- a/tryton.cfg +++ b/tryton.cfg @@ -3,7 +3,8 @@ version=3.0.0 depends: ir res - sale + sale_data stock_origin xml: sale.xml + shipment.xml