Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0] [mig] pos_cash_move_reason #629

Merged
merged 27 commits into from
Jul 20, 2021

Conversation

dsolanki-initos
Copy link
Contributor

No description provided.

adrienpeiffer and others added 26 commits April 20, 2021 10:41
[REF] factor code
[UPD] fr translation and pot file
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
[REF] Don't use ``product.product`` model for Reasons, because Odoo remove
the fields ``expense_pdt`` ``and income_pdt`` from the model.
Use instead a new model ``pos.move.reason`` for this purpose.
[REF] Doesn't inherit from ``cash.box.in`` and ``cash.box.out`` model,
as there are bad designed and doesn't allow clean inheritance.
Instead, use new transient model ``wizard.pos.move.reason``.
[REF] Oca convention. add readme folder.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: pos-12.0/pos-12.0-pos_cash_move_reason
Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_cash_move_reason/
Currently translated at 100.0% (38 of 38 strings)

Translation: pos-12.0/pos-12.0-pos_cash_move_reason
Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_cash_move_reason/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: pos-12.0/pos-12.0-pos_cash_move_reason
Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_cash_move_reason/
Currently translated at 100.0% (38 of 38 strings)

Translation: pos-12.0/pos-12.0-pos_cash_move_reason
Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_cash_move_reason/fr_CH/
Currently translated at 7.9% (3 of 38 strings)

Translation: pos-12.0/pos-12.0-pos_cash_move_reason
Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_cash_move_reason/de/
@chienandalu chienandalu mentioned this pull request Apr 20, 2021
16 tasks
@chienandalu chienandalu added this to the 14.0 milestone Apr 26, 2021
@dsolanki-initos
Copy link
Contributor Author

Is it possible to get the review here?

@etobella
Copy link
Member

etobella commented May 7, 2021

@dsolanki-initos Travis is failing, fix it before asking for reviews please

@etobella
Copy link
Member

etobella commented May 7, 2021

Also, runbot is failing
imagen

@dsolanki-initos
Copy link
Contributor Author

Hi @etobella
I have fix the above error you can check now.

@etobella
Copy link
Member

now it works as expected, thanks, however, some tests would be great.

Copy link
Contributor

@fshah-initos fshah-initos left a comment

Choose a reason for hiding this comment

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

LGTM. Functional tests and code review.

@dsolanki-initos dsolanki-initos force-pushed the 14.0-mig-pos_cash_move_reason branch 4 times, most recently from d7566fb to a665d9d Compare May 14, 2021 12:55
@dsolanki-initos
Copy link
Contributor Author

@chienandalu if would be great if you could merge the PR

@dsolanki-initos
Copy link
Contributor Author

@legalsylvain It would be great if you add the reviews here

@dsolanki-initos
Copy link
Contributor Author

It would be great if we cousl get the reviews here

@@ -22,6 +23,10 @@ def setUpClass(cls):
)[0]
cls.deposit_reason = cls.env.ref("pos_cash_move_reason.bank_out_reason")

def test_onchange_expense_reason(self):
self.deposit_reason._onchange_is_expense_reason()
Copy link
Member

Choose a reason for hiding this comment

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

The way to test onchanges is to use a Form

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @etobella
I've updated the test for onchange using Form. You can review it.

@dsolanki-initos
Copy link
Contributor Author

It would be great if we get the reviews here

@ivantodorovich
Copy link
Contributor

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 14.0-ocabot-merge-pr-629-by-ivantodorovich-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 39e1e57 into OCA:14.0 Jul 20, 2021
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 53cc573. Thanks a lot for contributing to OCA. ❤️

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.