-
-
Notifications
You must be signed in to change notification settings - Fork 605
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
Conversation
[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/
…e context timezone
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/
3c7262a
to
2bdf291
Compare
Is it possible to get the review here? |
@dsolanki-initos Travis is failing, fix it before asking for reviews please |
2bdf291
to
826416f
Compare
Hi @etobella |
now it works as expected, thanks, however, some tests would be great. |
There was a problem hiding this 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.
d7566fb
to
a665d9d
Compare
@chienandalu if would be great if you could merge the PR |
@legalsylvain It would be great if you add the reviews here |
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() |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
a665d9d
to
a1d0bbb
Compare
It would be great if we get the reviews here |
/ocabot merge nobump |
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at 53cc573. Thanks a lot for contributing to OCA. ❤️ |
No description provided.