Skip to content

Conversation

@max3903
Copy link
Member

@max3903 max3903 commented Mar 13, 2021

No description provided.

@max3903 max3903 marked this pull request as draft March 13, 2021 08:05
@max3903 max3903 force-pushed the 14.0-imp-account_payment_order branch from b0ec290 to e194519 Compare March 13, 2021 09:54
@max3903 max3903 marked this pull request as ready for review March 13, 2021 09:54
@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

lambda x: x.move_line_id
and not x.move_line_id.reconciled
and x.move_line_id.account_id == line.account_id
and x.move_line_id.credit == line.debit
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you cannot compare 2 floats with ==

type="object"
states="uploaded"
string="Done Payments"
/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the point of the "done" state ? It was not present in my initial design of account_payment_order, and I see that it has been introduced by @JordiBForgeFlow in this commit
81152bf
but the commit message gives no clue about the reason for this new "done" state. For me, the final state is "uploaded"... what's the added value of the done state?
Sorry if my question is stupid...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm attempting to fix this soon along the lines of what previous versions did, see #784 (comment) - when done we can add this here too in another PR

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2021-11-09 14:34:02,634 28 INFO KEN_Master_V14_2021_09_23 odoo.addons.base.models.ir_ui_view: action_done is not a valid action on account.payment.order

View name: account.payment.order.form
Error context:
 view: ir.ui.view(4540,)
 xmlid: account_payment_order_form
 view.model: account.payment.order
 file: /opt/odoo/kentest14-odoo/src/odoo-platform/odoo/external-src/bank-payment/account_payment_order/views/account_payment_order.xml

Getting error with latest gitaggregate


if self.payment_mode_id.offsetting_account == "bank_account":
account_id = self.journal_id.default_account_id.id
account_id = self.journal_id.payment_debit_account_id.id
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should make a difference between inbound and outbond : payment_debit_account_id and payment_credit_account_id

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree. @max3903 Could you update accordingly?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did it there : ursais#9

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I confirm this has already been solved in latest version. So, no need this change

@dreispt
Copy link
Member

dreispt commented Jul 3, 2021

Travis is red.

@atchuthan
Copy link
Member

Cannot use git-aggreagate, please resolve conflicts
Is there any simple alternative or should I add the fixes manually for our instance?

@SodexisTeam

@dreispt dreispt force-pushed the 14.0-imp-account_payment_order branch from 462cfa3 to d08e591 Compare November 9, 2021 11:56
@dreispt
Copy link
Member

dreispt commented Nov 9, 2021

...I rebased and solved conflicts.

@atchuthan
Copy link
Member

Thanks @dreispt

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pending comments inline

@pedrobaeza
Copy link
Member

And please provide a description of the "improvements".

@dreispt dreispt changed the title [IMP] account_payment_order [14.0][IMP] account_payment_order Nov 9, 2021
type="object"
states="uploaded"
string="Done Payments"
/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2021-11-09 14:34:02,634 28 INFO KEN_Master_V14_2021_09_23 odoo.addons.base.models.ir_ui_view: action_done is not a valid action on account.payment.order

View name: account.payment.order.form
Error context:
 view: ir.ui.view(4540,)
 xmlid: account_payment_order_form
 view.model: account.payment.order
 file: /opt/odoo/kentest14-odoo/src/odoo-platform/odoo/external-src/bank-payment/account_payment_order/views/account_payment_order.xml

Getting error with latest gitaggregate

Copy link

@dsolanki-initos dsolanki-initos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice if resolve conflicts for all make checks passed?

@alexis-via
Copy link
Contributor

For me, this PR is not relevant any more following the merge of my PR #822 a few days ago. It uses fields that don't exist any more...

else:
account_id = self.journal_id.payment_debit_account_id.id

if self.payment_mode_id.offsetting_account == "bank_account":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexis-via alexis-via closed this Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.