forked from OCA/contract
-
Notifications
You must be signed in to change notification settings - Fork 0
[18.0][MIG][PATCH] contract #7
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
Open
CRogos
wants to merge
174
commits into
18.0
Choose a base branch
from
18.0-mig-contract-oca
base: 18.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Translations * Access rules * README * Currency for created invoices. * #START# and #END# set correctly * Some conventions
…company environment Now when working on multy company environmets the server action creates invioices with accounts belong to correct company based on contract company.
* Tests added * Filters added. * Add _id/_ids in old property fields * Translations
Add template functionality for contracts
* Add a default date in the instance that an analytic account doesn’t exist (templates) - fixes OCA#68
* [IMP][9.0] contract: Add report + send by mail * Update translation and rename contract report * Changes requested and translation updated
…ht in headers **Be totally deterministic about which views to use** Having a primary view that is not explicitly declared to be uses and w/o priority makes Odoo to choose between one of them randomly (well, not exactly, but kind of), so we put here which views to use. I have also put tree view as primary and put a large priority for not being selected on other actions that don't have this explicit views. A friendly name in views is also assigned. **Improvements in tests** * Use SavepointCase for making the setup only once for all tests * Make them inheritable, creating a base class with only the setup, so that it can be inherited without the need of executing all tests contained here each time you inherit it, and adding other class in the same module that inherits from the base class that actually performs the tests. * Removed duplicated test method
…ata (OCA#130) * [FIX+IMP] contract: Improve usability and don't fail on wrong data * Cron create invoices masked for avoiding silent errors * New constraints for assuring data consistency * UI helps for entering consistent data * Spanish translation * Remove double company_id field on form
* Correct domain attribute in field journal_id Original domain includes unknown value company_id. Throws error when selecting the journal. * Corregidos errores detectados por Lint * Refactoring, DRY * [FIX] Add missing field company_id to account_analytic_contract * Small refactoring for company_id field
…orrect references in the contract report * company_id was empty because an onchange, not inheritance nor visibility * Added multi-company group to company_id fields * Added multi-company access rule to contract templates * Fix double %% in XML dates that was causing an error * When creating a contract, recurring_invoices is set by default
* [IMP] Add computed dates from/to period invoiced (OCA#140) * [IMP] Improve partner contract smartbutton * [FIX] Onchange contract template raise error * [FIX] Invalid pricelist name
If you have contract lines with automatic price and your pricelist contains different prices per quantity, the price is not changed when computing quantity. This PR fixes this.
Translated using Weblate (French) Currently translated at 100.0% (314 of 314 strings) Translation: contract-16.0/contract-16.0-contract Translate-URL: https://translation.odoo-community.org/projects/contract-16-0/contract-16-0-contract/fr/
On the migration to v16, the primary layout view was incorrectly removed. It's needed because of 2 reasons: - It's referenced in the following template doing a t-call. Well, this one can be avoided calling the new layout upstream template, but... - This layout is done for placing some extra content (the modifications table), as part of the layout that is not shown in the chatter for avoiding noise. We recreate this template inheriting the new layout template, and adapting it properly. TT45646
…ot per line If we manage the contract at header level, we must set the end date and last invoice date there, otherwise data will be inconsistent. TT48273 Translated using Weblate (Italian) Currently translated at 85.7% (270 of 315 strings) Translation: contract-16.0/contract-16.0-contract Translate-URL: https://translation.odoo-community.org/projects/contract-16-0/contract-16-0-contract/it/
[UPD] Update contract.pot [BOT] post-merge updates Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: contract-17.0/contract-17.0-contract Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-contract/ Translated using Weblate (Italian) Currently translated at 100.0% (314 of 314 strings) Translation: contract-17.0/contract-17.0-contract Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-contract/it/
[BOT] post-merge updates
Translated using Weblate (Spanish) Currently translated at 100.0% (314 of 314 strings) Translation: contract-17.0/contract-17.0-contract Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-contract/es/ Translated using Weblate (Italian) Currently translated at 100.0% (314 of 314 strings) Translation: contract-17.0/contract-17.0-contract Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-contract/it/ Translated using Weblate (Italian) Currently translated at 100.0% (314 of 314 strings) Translation: contract-17.0/contract-17.0-contract Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-contract/it/ Translated using Weblate (Swedish) Currently translated at 100.0% (314 of 314 strings) Translation: contract-17.0/contract-17.0-contract Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-contract/sv/ [UPD] Update contract.pot Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: contract-17.0/contract-17.0-contract Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-contract/ Translated using Weblate (Italian) Currently translated at 100.0% (313 of 313 strings) Translation: contract-17.0/contract-17.0-contract Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-contract/it/
Fix ValueError: Deprecated usage of 'default_res_id', should use 'default_res_ids'. Translated using Weblate (Spanish) Currently translated at 100.0% (313 of 313 strings) Translation: contract-17.0/contract-17.0-contract Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-contract/es/ [BOT] post-merge updates Translated using Weblate (Italian) Currently translated at 100.0% (313 of 313 strings) Translation: contract-17.0/contract-17.0-contract Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-contract/it/ [UPD] Update contract.pot Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: contract-17.0/contract-17.0-contract Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-contract/ [BOT] post-merge updates Translated using Weblate (Italian) Currently translated at 100.0% (314 of 314 strings) Translation: contract-17.0/contract-17.0-contract Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-contract/it/ Translated using Weblate (Italian) Currently translated at 100.0% (314 of 314 strings) Translation: contract-17.0/contract-17.0-contract Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-contract/it/
…nual invoices [UPD] Update contract.pot [BOT] post-merge updates Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: contract-17.0/contract-17.0-contract Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-contract/ Translated using Weblate (Italian) Currently translated at 100.0% (315 of 315 strings) Translation: contract-17.0/contract-17.0-contract Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-contract/it/ Translated using Weblate (Finnish) Currently translated at 66.0% (208 of 315 strings) Translation: contract-17.0/contract-17.0-contract Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-contract/fi/
simplify contract definition
…contract_termination
[FIX] contract: Set fixed date to check test correctly. We need to set a fixed date for teststest_check_month_name_marker to check against the month of the date we are set (otherwise it would check against the month of today).
As it was, the text to translate is not correctly extracted, so it's not translated, creating a mix of languages, as `_creation_message` is returning a translated sentence. We take also the opportunity to change the way the sentence is built for having as translatable only the "by contract" words, to avoid possible errors in translations due to the placeholders.
- use Command - mark _update_recurring_next_date deprecated - use list instead of tree
cf09bee
to
6d0eaba
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
waiting OCA#1136