OCA / account-financial-tools

Odoo Accountant Financial Tools and Utils
GNU Affero General Public License v3.0
309 stars 752 forks source link

ENH: account_spread_cost_revenue, calculation period as start date to end date #1833

Open kittiu opened 6 months ago

kittiu commented 6 months ago

@astirpe @bosd @yung-wang @luc-demeyer @OCA/accounting-maintainers

Currently account_spread_cost_revenue module only allow to specify start date and number of months to calculate. Now I have the requirement to calculate by start date - end date (of course, use Calculate by days only)

Do you think this is welcome as new feature, or separated module?

Thanks! Kitti U.

astirpe commented 6 months ago

To me it looks like a new feature, no need for separate module. But I would prefer an opinion from the others.

bosd commented 6 months ago

I agree with @astirpe

kittiu commented 6 months ago

Sorry for taking times, it seem much difficult than I though, especially for Calculate by Days = False. For Calculate by Days = True, it is much easier as minor improvement. SO, here you are https://github.com/OCA/account-financial-tools/pull/1839

image