[FIX]: fix a workflow signal for the voucher in voucher yaml
[FIX]: fix a installer problem, it should not remove demo chart of account, its done by the install chart of account wizard bzr revid: mga@tinyerp.com-20100814145742-d27ehs0ilejkhxof
This commit is contained in:
parent
f6a9430417
commit
ea3e980fbb
|
@ -53,7 +53,7 @@ class account_installer(osv.osv_memory):
|
|||
_columns = {
|
||||
# Accounting
|
||||
'charts':fields.selection(_get_charts, 'Chart of Accounts',
|
||||
required=True,
|
||||
required=False,
|
||||
help="Installs localized accounting charts to match as closely as "
|
||||
"possible the accounting needs of your company based on your "
|
||||
"country."),
|
||||
|
@ -484,15 +484,14 @@ class account_installer(osv.osv_memory):
|
|||
elif res['period'] == '3months':
|
||||
res_obj.create_period3(cr, uid, [period_id])
|
||||
|
||||
#fially inactive the demo chart of accounts
|
||||
data_id = data_pool.search(cr, uid, [('model','=','account.account'), ('name','=','chart0')])
|
||||
if data_id:
|
||||
data = data_pool.browse(cr, uid, data_id[0])
|
||||
account_id = data.res_id
|
||||
acc_ids = obj_acc._get_children_and_consol(cr, uid, [account_id])
|
||||
if acc_ids:
|
||||
cr.execute("update account_account set active='f' where id in " + str(tuple(acc_ids)))
|
||||
|
||||
# #fially inactive the demo chart of accounts
|
||||
# data_id = data_pool.search(cr, uid, [('model','=','account.account'), ('name','=','chart0')])
|
||||
# if data_id:
|
||||
# data = data_pool.browse(cr, uid, data_id[0])
|
||||
# account_id = data.res_id
|
||||
# acc_ids = obj_acc._get_children_and_consol(cr, uid, [account_id])
|
||||
# if acc_ids:
|
||||
# cr.execute("update account_account set active='f' where id in " + str(tuple(acc_ids)))
|
||||
|
||||
def modules_to_install(self, cr, uid, ids, context=None):
|
||||
modules = super(account_installer, self).modules_to_install(
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
-
|
||||
I compute the voucher to calculate the taxes by clicking Cpmpute button
|
||||
-
|
||||
!workflow {model: account.voucher, action: open_voucher, ref: account_voucher_voucherforaxelor0}
|
||||
!workflow {model: account.voucher, action: proforma_voucher, ref: account_voucher_voucherforaxelor0}
|
||||
-
|
||||
I check that the voucher state is now "proforma"
|
||||
-
|
||||
|
@ -83,7 +83,7 @@
|
|||
-
|
||||
I change the state of voucher to "proforma" by clicking PRO-FORMA button
|
||||
-
|
||||
!workflow {model: account.voucher, action: open_voucher, ref: account_voucher_voucheraxelor0}
|
||||
!workflow {model: account.voucher, action: proforma_voucher, ref: account_voucher_voucheraxelor0}
|
||||
-
|
||||
I check that the voucher state is now "proforma"
|
||||
-
|
||||
|
|
Loading…
Reference in New Issue