diff --git a/product/ERP5/skins/erp5_trade/Invoice_addPurchaseInvoice.py b/product/ERP5/skins/erp5_trade/AccountingModule_addPurchaseInvoiceTransaction.py similarity index 82% rename from product/ERP5/skins/erp5_trade/Invoice_addPurchaseInvoice.py rename to product/ERP5/skins/erp5_trade/AccountingModule_addPurchaseInvoiceTransaction.py index a4d4950e4439e2cdac0100c95fdf229a3045085c..89dace4728979a85295542a0bbca43beb8053634 100755 --- a/product/ERP5/skins/erp5_trade/Invoice_addPurchaseInvoice.py +++ b/product/ERP5/skins/erp5_trade/AccountingModule_addPurchaseInvoiceTransaction.py @@ -1,4 +1,4 @@ -## Script (Python) "Invoice_addPurchaseInvoice" +## Script (Python) "AccountingModule_addPurchaseInvoiceTransaction" ##bind container=container ##bind context=context ##bind namespace= @@ -7,16 +7,16 @@ ##parameters=folder, id ##title= ## -product = container.manage_addProduct[ 'ERP5' ] +product = container.manage_addProduct[ 'ERP5Type' ] product.addInvoice(id) my_transaction = folder[id] my_transaction.newContent(portal_type='Purchase Invoice Transaction Line', - source='account/dette_fournisseur', + source='account/services_exterieurs', id='expense') my_transaction.newContent(portal_type='Purchase Invoice Transaction Line', - source='account/achat_pc_storever', + source='account/dette_fournisseur', id='payable') my_transaction.newContent(portal_type='Purchase Invoice Transaction Line', source='account/tva_collectee_196',