proprio icon indicating copy to clipboard operation
proprio copied to clipboard

Enable copying payment in admin panel

Open vectorien opened this issue 10 years ago • 4 comments

I dont know how much work tis would be but I think it would be convenient to be able to manually copy payment process in the admin panel, to save work

vectorien avatar Nov 23 '15 17:11 vectorien

What do you mean exactly ?

oadam avatar Nov 23 '15 22:11 oadam

I mean if I have for example entered a payment for say August, then in September I want to enter the exact same payment. In this case it would be more convenient to be able to just duplicate the August payment into September

vectorien avatar Nov 24 '15 01:11 vectorien

Django has a save_as feature for ModelAdmin (like for duplicating tenants).

Unfortunately I haven't found an equivalent feature for TabularAdmin

oadam avatar Nov 30 '15 23:11 oadam

Actually I think the right way to implement that is to add a custom action to the TabularInline. The action could be either "duplicate selected payments" or "duplicate last payment (ignores selection)".

I won't implement that myself (I'm using automated import), but pull requests are welcome.

oadam avatar Nov 30 '15 23:11 oadam