-
Notifications
You must be signed in to change notification settings - Fork 10.8k
[IMP] accounting/taxcloud: specify default account for new taxes #1271
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
[IMP] accounting/taxcloud: specify default account for new taxes #1271
Conversation
f29a14c to
5b8aa5c
Compare
|
@Feyensv @AntoineVDV |
Hello! Les PRs qui touchent à la doc des apps doivent d'abord passer par l'équipe content. On s'occupera de check le côté technique ensuite ;) |
|
Ahhh génial merci! |
Lau-Odoo
left a comment
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.
Hey @antoine162, here is a first review of your documentation.
Please, check this ;)
| to open and edit your Company record. | ||
|
|
||
| Automatically post taxes to the correct Tax Payable account | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
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.
Regarding our RST guidelines, you shouldn't use this formatting for H4.
Please, find the RST guidelines here: https://www.odoo.com/documentation/14.0/contributing/documentation/rst_cheat_sheet.html
Also, add a space between the title and the paragraph.
| .. image:: media/taxcloud_user_defined_default_01.png | ||
| :align: center |
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.
Please, add an alt text to your image + align your .. image with :align:
For more info, please check our guidelines: https://www.odoo.com/documentation/14.0/contributing/documentation/rst_cheat_sheet.html
| * With Debug Mode activated, go to :menuselection:`Settings --> Technical --> Actions --> User-Defined Defaults`, and click *Create* | ||
| * Click on *Field*, then, in the drop-down menu, on *Search More*. |
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.
| * With Debug Mode activated, go to :menuselection:`Settings --> Technical --> Actions --> User-Defined Defaults`, and click *Create* | |
| * Click on *Field*, then, in the drop-down menu, on *Search More*. | |
| * With Debug Mode activated, go to :menuselection:`Settings --> Technical --> Actions --> User-Defined Defaults`, and | |
| click *Create*. | |
| * Click on *Field*, then, in the drop-down menu, on *Search More*. |
| * In the pop-up's search box, filter on 'Model: tax.repartition.line' and 'Field: account'. | ||
| Select the 'account' field of the 'tax.repartition.line' model. |
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.
| * In the pop-up's search box, filter on 'Model: tax.repartition.line' and 'Field: account'. | |
| Select the 'account' field of the 'tax.repartition.line' model. | |
| * In the pop-up's search box, filter on the model ``tax.repartition.line`` and the field ``account``. | |
| Select the ``account`` field of the ``tax.repartition.line`` model. |
| so that the new taxes generated by the TaxCloud integration are created with the correct Tax Payable account: | ||
| * In your company's Chart of Accounts, take note of the ID of the Tax Payable account you want to use. | ||
|
|
||
| .. image:: media/taxcloud_user_defined_default_01.png |
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.
Is this image necessary?
If so, please check our guidelines: https://www.odoo.com/documentation/14.0/contributing/documentation/content_guidelines.html#images
Imo, you could remove this image and replace it with some text.
Also, your images should be in another file as mentioned in our guidelines: https://www.odoo.com/documentation/14.0/contributing/documentation/content_guidelines.html#media-files
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.
I have tried to clarify this in the text as you suggested, but even then I doubt it would be clear enough for the reader if they are not used to finding the ID of a record through the URL string. To be safe, I think it's worth keeping the image (though I have resized it so as to focus on the URL bar).
| .. image:: media/taxcloud_user_defined_default_01.png | ||
| :align: center | ||
|
|
||
| * With Debug Mode activated, go to :menuselection:`Settings --> Technical --> Actions --> User-Defined Defaults`, and click *Create* |
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.
| * With Debug Mode activated, go to :menuselection:`Settings --> Technical --> Actions --> User-Defined Defaults`, and click *Create* | |
| * Activate the :ref:`developer mode <developer-mode>`, then go to :menuselection:`Settings --> Technical --> Actions --> User-Defined Defaults`, and click on *Create*. |
| .. image:: media/taxcloud_user_defined_default_03.png | ||
| :align: center | ||
|
|
||
| * In the *Default Value* field, enter the ID of your company's Tax Payable account. |
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.
| * In the *Default Value* field, enter the ID of your company's Tax Payable account. | |
| * In the **Default Value** field, enter the ID of your company's Tax Payable account. |
| * For each of your companies which uses TaxCloud, you need to create a User-Defined Default | ||
| so that the new taxes generated by the TaxCloud integration are created with the correct Tax Payable account: | ||
| * In your company's Chart of Accounts, take note of the ID of the Tax Payable account you want to use. |
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.
| * For each of your companies which uses TaxCloud, you need to create a User-Defined Default | |
| so that the new taxes generated by the TaxCloud integration are created with the correct Tax Payable account: | |
| * In your company's Chart of Accounts, take note of the ID of the Tax Payable account you want to use. | |
| * For each of your companies that uses TaxCloud, you need to create a **User-Defined Default** | |
| so that the new taxes generated by the TaxCloud integration are created with the correct Tax Payable account: | |
| * In your company's Chart of Accounts, take note of the ID of the Tax Payable account you want to use. |
5b8aa5c to
5166379
Compare
|
Thank you so much @Lau-Odoo for looking at this and for being patient with me! I have read the documentation guidelines and have made some edits in accordance with your suggestions. The only suggestion I did not fully follow was the one about removing the first image, because I don't know whether the readers are familiar with finding the ID of a record in the URL string. Instead of removing the image, I have edited it to focus on the URL bar. Do let me know what you think is best. |
Thanks for having reworked your PR. After a second review, everything looks good to me. |
| * For each one of your companies that uses TaxCloud, it is necessary to create a | ||
| **User-Defined Default** so that the new taxes generated by the TaxCloud integration are created | ||
| with the correct Tax Payable account: |
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.
| * For each one of your companies that uses TaxCloud, it is necessary to create a | |
| **User-Defined Default** so that the new taxes generated by the TaxCloud integration are created | |
| with the correct Tax Payable account: | |
| * For each one of your companies that uses TaxCloud, it might be necessary to create a | |
| **User-Defined Default** so that the new taxes generated by the TaxCloud integration are created | |
| with the correct Tax Payable account: | |
| .. warning:: | |
| User defined defaults impacts all records at creation. It means that **All* new taxes will target the specified Tax | |
| Payable account, unless the default value is modified manually (or another default takes precedence over the one | |
| you defined). |
Necessary might be too strict IMHO, I suppose some database still work fine without it :D.
Also, please add a clear explanation on "User defined defaults" to make sure the user knows this change impacts not only the taxcloud taxes (feel free to rephrase my sentence, but I believe the information should be provided).
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 @Feyensv I agree and thanks for your edits! I've slightly rephrased them while keeping your meaning, do feel free to let me know if there's anything you'd like me to change!
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, only remaining step is to update your commit message to have a clear title & message according to our guidelines .
We do not strictly respect all points, but the commits should still follow the global logic:
- title:
- prefix:
[ADD]if new page and content,[IMP]if improvement of existing content,[REM]in case of content removal - targeted scope: the scope/files modified by the commit (keep it simple, but we need to know what's targeted at first glance)
- short explanation of the change or content improvement
- prefix:
- Detailed explanation in commit message, if useful. Sometimes the commit title is enough to understand the commit content.
Something like:
[IMP] accounting/taxcloud: how to specify default account for new taxes
Detailed explanation
You can reuse the explanation you specified in the PR description as commit message ;).
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.
Thank you so much Victor for explaining this to me! I have changed the commit message to conform to the guidelines. :)
5166379 to
1d5a343
Compare
New taxes generated by the TaxCloud integration are by default created without an income or an expense account specified. By default, the journal items corresponding to these taxes therefore end up in the default income account, which is usually the 'Sales' account, when they should in fact go to the 'Tax Payable' account. Because these taxes are automatically generated on-the-fly, the user is usually not able to manually specify the Tax Payable account before the journal items are posted, leading to incorrect accounting entries which then need to be manually repaired through the use of miscellaneous operations. To solve this issue, our video on TaxCloud integration (https://www.youtube.com/watch?v=JE-NeRNIWeU&t=616s) tells us to create a User-Defined Default for the account field of the tax.repartition.line model. This sets the default account with which new taxes are created. However, this information is missing from the documentation. This PR brings the documentation up-to-date by explaining how to create this User-Defined Default that specifies the correct Tax Payable account.
1d5a343 to
b77ea69
Compare
Feyensv
left a comment
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.
@robodoo r+
New taxes generated by the TaxCloud integration are by default created without an income or an expense account specified. By default, the journal items corresponding to these taxes therefore end up in the default income account, which is usually the 'Sales' account, when they should in fact go to the 'Tax Payable' account. Because these taxes are automatically generated on-the-fly, the user is usually not able to manually specify the Tax Payable account before the journal items are posted, leading to incorrect accounting entries which then need to be manually repaired through the use of miscellaneous operations. To solve this issue, our video on TaxCloud integration (https://www.youtube.com/watch?v=JE-NeRNIWeU&t=616s) tells us to create a User-Defined Default for the account field of the tax.repartition.line model. This sets the default account with which new taxes are created. However, this information is missing from the documentation. This PR brings the documentation up-to-date by explaining how to create this User-Defined Default that specifies the correct Tax Payable account. closes #1271 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
New taxes generated by the TaxCloud integration are by default created without an income or an expense account specified. By default, the journal items corresponding to these taxes therefore end up in the default income account, which is usually the 'Sales' account, when they should in fact go to the 'Tax Payable' account. Because these taxes are automatically generated on-the-fly, the user is usually not able to manually specify the Tax Payable account before the journal items are posted, leading to incorrect accounting entries which then need to be manually repaired through the use of miscellaneous operations.
To solve this issue, our video on TaxCloud integration (https://www.youtube.com/watch?v=JE-NeRNIWeU&t=616s) tells us to create a User-Defined Default for the
accountfield of thetax.repartition.linemodel. This sets the default account with which new taxes are created. However, this information is missing from the documentation.This PR brings the documentation up-to-date by explaining how to create this User-Defined Default that specifies the correct Tax Payable account.