Tryton - Issues



Title Improve tax update from template
Priority feature Status unread
Superseder Nosy List Timitos, ced
Type feature request Components account
Assigned To Keywords

Created on 2018-09-21.22:27:51 by ced, last changed by Timitos.

msg44016 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2018-09-21.22:27:51
With issue6013, we had to rework some taxes by removing children tax templates etc. Unfortunately when we remove the template, the instance is not removed when updating the chart from template. This is because the template Many2One is set with ondelete='SET NULL'. This is not very user-friendly as the taxes must be manually adapted.

I propose to set the ondelete to 'RESTRICT' and to add ActiveMixin on the template and tax (also for tax code). This way when updating the template from XML, it will fail to delete the template record (if used on an instance) so it will just deactivate it. The update chart from template will later update the active field to the instance.
Date User Action Args
2018-09-22 08:32:07Timitossetnosy: + Timitos
2018-09-21 22:27:51cedcreate

Showing 10 items. Show all history (warning: this could be VERY long)