OCA / operating-unit

Manage Operating Units in Odoo
GNU Affero General Public License v3.0
72 stars 237 forks source link

Migration to version 11.0 #94

Closed pedrobaeza closed 2 years ago

pedrobaeza commented 6 years ago

Todo

https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-11.0

Modules to migrate

gdgellatly commented 6 years ago

Hi @pedrobaeza @jbeficent are you happy for me to migrate this whole repo and commit to review (or at least helping me find a reviewer)? I don't really use it, but I think I'd like to, so would be a straight port unless you have specific comments. Also any other warnings based on current open PR's and issues.

Obviously 1 PR per module, all done by Nov 30 maybe all done next week.

I've had a quick look, there is not much work there really for a straight port. Probably less than a day, a lot of it won't even need a single edit, mostly mangling with git.

pedrobaeza commented 6 years ago

Thanks for the initiative, Graeme. Of course it's very welcome. The coordinator of this repository is @elicoidal .

pedrobaeza commented 6 years ago

Ah, no sorry, my fault. It's @jbeficent indeed.

elicoidal commented 6 years ago

:)

AaronHForgeFlow commented 6 years ago

Hi @gdgellatly, you are very welcome to collaborate to this repo. We will review your PRs and we will try to get more reviewers. Besides It'd be very nice if you review some of the opened PRs in v10 :relaxed:

gdgellatly commented 6 years ago

@aheficent Of course I will review. There seems some ready to merge, others under discussion. Nothing really left out in the cold needing review. But anything pinged at me I will always review, or just label them as needs review and I'll check back as I get through things.

AaronHForgeFlow commented 6 years ago

@gdgellatly Thank you. I will label the PRs that are ready to review.

gdgellatly commented 6 years ago

@aheficent OK I have migrated everything, I'll just make PR's as they merge as they are all stacked, so when there are changes I'll need to update everything above. It's all at https://github.com/gdgellatly/operating-unit - I did sale_stock_operating_unit last.

After some testing, the repo doesn't quite meet my use case, so I'll probably start something a bit more radical on my own, but I like the concept. Its just too restrictive that each operating unit must have its own warehouses and locations, but was worthwhile getting through the code.

For the most part I can summarize the changes as

JordiBForgeFlow commented 6 years ago

@gdgellatly Perhaps the restriction that warehouses and locations should be owned by an operating unit should be relaxed, so that only in the case where you expect a separate balance sheet per operating unit should this restriction be put in place.

JordiBForgeFlow commented 6 years ago

@gdgellatly In general the issue is that as soon as you use real time inventory accounting, every time you ship a product from a warehouse it is going to hit a COGS account. So how can you decide what operating unit should be attributed for that cost?

AaronHForgeFlow commented 6 years ago

@gdgellatly thank you for your work, I'll review when creating the PR's to OCA

gdgellatly commented 6 years ago

@jbeficent Indeed those are questions I need to answer, I didn't say it was easy. But if I take a logical look at it, even in a self balancing environment I think it can be done.

The COGS case is simple under AngloSaxon as it is accrued at time of sale, and as such easy to apply.

But there is a more general case, beyond stock for difficult to apply items, e.g. Finance and Intangible type items. As I say I'm not sure yet, I have some ideas which I want to test.

From a balance sheet perspective there are always items that cannot be specifically assigned to an OU, e.g. A trademark, or a general bond issue etc but

JordiBForgeFlow commented 6 years ago

@gdgellatly For trademark, etc. you can have a "corporate" OU.

edser-pcg commented 6 years ago

Hello, is there any time estimate for when these PRs will be merged?

JordiBForgeFlow commented 6 years ago

No estimate. People migrate them to v11 as they need them.

edser-pcg commented 6 years ago

Yes but @gdgellatly made a bunch of PRs and states the work is done but awaiting for revision. Need testers? We can do the testing if required

JordiBForgeFlow commented 6 years ago

@edsersolis Testing would indeed help a lot to get them merged. Please ping me on each PR as you have reviewed.

gdgellatly commented 6 years ago

@edsersolis @jbeficent realistically once #99 is merged, and it is mergeable now (all reviews done etc) I can clean up the rest, but no point testing the others yet as we ended up having to change quite a bit.

JordiBForgeFlow commented 6 years ago

@gdgellatly #99 is now merged. Feel free to propose other PR's. Thank you for the great contribution!

pedrobaeza commented 6 years ago

@jbeficent the remember to check the mark on the main comment :wink:

marnicodigital commented 6 years ago

Hi all. We are new here. We found this modules and could need them in a project. Is there any roadmap on migration to v11?. Regards.

gdgellatly commented 6 years ago

@jbeficent #100 has been ready for a few weeks. I've been without reliable internet the last few weeks so will catch up on the rest later.

@marnicodigital its a volunteer community. No one tells anyone to or stops anyone from migrating or reviewing proposals. So there is no roadmap. It is as/when people commit their time and a lot of us are involved in many OCA projects at once. Because the modules are all interdependent, I'm just migrating them as each one is approved and porting the improvements from the review process.

meigallodixital commented 6 years ago

We have installed the base module, checked the Multi Operating Unit checkbox in the user's permissions, but it gives us a read permission error. We can create records without problem. We do not even see the operational unit created by default in the installation (OU1). The core is OCB.

We are trying to simulate independent physical stores with this addon, I do not know if apart from the above we are on the wrong way.

AaronHForgeFlow commented 6 years ago

@meigallodixital Can you provide more info? Where do you get the error in the Operating unit records? Maybe in the Sales team? Have you assigned the problematic user to the operating units in the user form view?

meigallodixital commented 6 years ago

@aheficent At Settings -> User & Companies -> Operating Units

We have only installed: operating_unit

I attach screenshot: https://snag.gy/zFVfgi.jpg

AaronHForgeFlow commented 6 years ago

@meigallodixital Please follow up this issue I created for this: https://github.com/OCA/operating-unit/issues/129 This issue is for sharing the status of the migration only

emagdalenaC2i commented 5 years ago

@pedrobaeza please check in the list account_operating_unit - By @grindtildeath - #140

nikul-serpentcs commented 3 years ago

res_partner_operating_unit #324

github-actions[bot] commented 2 years ago

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.