[PS] Impossible to know which journal to select in a Customer Payment with a multi-company context

Bug #782194 reported by Harmel Delphine (OpenERP)
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Wishlist
OpenERP R&D Addons Team 3

Bug Description

trunk server revno 3411

* Having two companies with different chart of account (example one with the Belgium Chart of Account, the second one with the French Chart of account)
* The system automatically creates several "Current" journals

* Accounting/Customers/Customer Invoices, select an invoice, validate it and click on "Payment"
* The system opens the Customer Payment view and ask to fill in the "Payment method" field (which is in fact a journal !!!)

Obtained result : Impossible to know to which company is related the "Current" journal so you select anyone but then you can't validate the payment and if you go back to the list view it saves the payment with no lines in it

Expected result : it displays the journal linked to the current company (or identified the journal ) so that we now
which journal to choose

reported by dha, OpenERP PRof Serv.

Tags: profserv
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
Revision history for this message
Bogdan Stanciu (bstanciu) wrote : Re: [Bug 782194] [NEW] [PS] Impossible to know which journal to select in a Customer Payment with a multi-company context

On 13. 05. 11 15:02, Harmel Delphine (OpenERP) wrote:
> Public bug reported:
>
> trunk server revno 3411
>
> * Having two companies with different chart of account (example one with the Belgium Chart of Account, the second one with the French Chart of account)
> * The system automatically creates several "Current" journals
>
> * Accounting/Customers/Customer Invoices, select an invoice, validate it and click on "Payment"
> * The system opens the Customer Payment view and ask to fill in the "Payment method" field (which is in fact a journal !!!)
>
> Obtained result : Impossible to know to which company is related the
> "Current" journal so you select anyone but then you can't validate the
> payment and if you go back to the list view it saves the payment with no
> lines in it
>
> Expected result : it displays the journal linked to the current company (or identified the journal ) so that we now
> which journal to choose
>
> reported by dha, OpenERP PRof Serv.
>
> ** Affects: openobject-addons
> Importance: Medium
> Assignee: OpenERP R&D Addons Team 3 (openerp-dev-addons3)
> Status: Confirmed
>
>
> ** Tags: profserv
>
> ** Changed in: openobject-addons
> Assignee: (unassigned) => OpenERP R&D Addons Team 3 (openerp-dev-addons3)
>
quick fix: name specifically your journals (payment method), so you can
avoid confusion.

of course, this is NOT the solution, but just a "survival" method, if I
may :-)

bogdan

Revision history for this message
Graeme Gellatly (gdgellatly) wrote :
Download full text (4.2 KiB)

This is only really an issue when you have access to more than one company.

To resolve this internally we did the following.

Created a new field in res.company called short_name.
Updated execute function in wizard,multi,chartofaccounts to append this
short name to the Journal name if new field sep_multi_seq was checked.

We also had to duplicate sequneces and add company_id to prefix on sequences
to keep them unique.
Change the analytic journal search to not just return any journal, but only
journals for the company, otherwise in multicompany it assigns the first
analytic journal it finds to sale.
Update spelling of analytical as it is incorrect everywhere.

We also did the following to help with multicompany chart codes

Added a prefix and suffix field to the wizard to prepend or append a code to
account.account code from template.

Update views accordingly.

While doing this work it is worth noting that execute is give or take 400
line function, with the same behaviour carried out in different ways, and
the same variables redeclared unnecessarily in places and old code commented
out rather than deleted. It should probably be refactored, so when making
changes like the above you don't end up with a big chunk of cut and paste.

If anyone is interested then I can supply the changes we made to those 2,
but it is tied up in a module that needs to do a lot more for localisation
reasons.

On Sat, May 14, 2011 at 2:16 AM, Bogdan Stanciu <
<email address hidden>> wrote:

> On 13. 05. 11 15:02, Harmel Delphine (OpenERP) wrote:
> > Public bug reported:
> >
> > trunk server revno 3411
> >
> > * Having two companies with different chart of account (example one with
> the Belgium Chart of Account, the second one with the French Chart of
> account)
> > * The system automatically creates several "Current" journals
> >
> > * Accounting/Customers/Customer Invoices, select an invoice, validate it
> and click on "Payment"
> > * The system opens the Customer Payment view and ask to fill in the
> "Payment method" field (which is in fact a journal !!!)
> >
> > Obtained result : Impossible to know to which company is related the
> > "Current" journal so you select anyone but then you can't validate the
> > payment and if you go back to the list view it saves the payment with no
> > lines in it
> >
> > Expected result : it displays the journal linked to the current company
> (or identified the journal ) so that we now
> > which journal to choose
> >
> > reported by dha, OpenERP PRof Serv.
> >
> > ** Affects: openobject-addons
> > Importance: Medium
> > Assignee: OpenERP R&D Addons Team 3 (openerp-dev-addons3)
> > Status: Confirmed
> >
> >
> > ** Tags: profserv
> >
> > ** Changed in: openobject-addons
> > Assignee: (unassigned) => OpenERP R&D Addons Team 3
> (openerp-dev-addons3)
> >
> quick fix: name specifically your journals (payment method), so you can
> avoid confusion.
>
> of course, this is NOT the solution, but just a "survival" method, if I
> may :-)
>
> bogdan
>
> --
> You received this bug notification because you are subscribed to OpenERP
> Addons.
> https://bugs.launchpad.net/bugs/782194
>
> Title:
> [PS] Impossible ...

Read more...

Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

Hello,

Solution from Graeme Gellatly seems good but currently we are not considering but we can use it in future enhancement so i move this but to wishlist.

Thanks Graeme and Bogdan for your suggestions.

Regards,
mra

Changed in openobject-addons:
importance: Medium → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.