Hello Rifakat,

Tu summarize, when a voucher is set on a account.bank.statement.line, it's the 
information (date, period_id) of the bank.statement.line which have priority of 
the voucher's one. The information on the voucher have to be up-to-date (date + 
period_id), because they will be used to generate the account move lines.

  So I was thinking if it's not better to simply override (date, period_id) on 
voucher by statement line's information before generating accounting entries in 
create_move_from_st_line() (i.e. same way it's currently done for the "number" 
field). That way, when user confirm the bank statement, all voucher 
informations are updated, and the correct account.move.line are generated.

  One exception to that is when the voucher state == 'posted' => in this case 
an error should be raise (as no modification on the voucher are permitted), or 
simply ignore - as move line are already generated.

Cheers,
Xavier
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-381537-rha/+merge/89641
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.0-opw-381537-rha.

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to