oadam / proprio

A free property management software to manage your tenancies
MIT License
20 stars 13 forks source link

Enable copying payment in admin panel #31

Open vectorien opened 8 years ago

vectorien commented 8 years ago

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

oadam commented 8 years ago

What do you mean exactly ?

vectorien commented 8 years ago

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

oadam commented 8 years ago

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

Unfortunately I haven't found an equivalent feature for TabularAdmin

oadam commented 8 years ago

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.