-
-
Notifications
You must be signed in to change notification settings - Fork 529
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
[12.0][MIG] - Migration module contract to 12.0 #202
Conversation
5ff9c03
to
d9b3f51
Compare
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.
Welcome to OCA and congratulations for your PRs! They are very well. Just a little suggestion and other warnings in runbot that remarks some problems:
2018-10-25 15:01:38,243 153 WARNING openerp_test odoo.models: The model account.analytic.contract has no _description
2018-10-25 15:01:38,992 153 WARNING openerp_test odoo.addons.base.models.ir_ui_view: The group sale.group_discount_per_so_line defined in view Contract form does not exist!
2018-10-25 15:01:39,058 153 WARNING openerp_test odoo.addons.base.models.ir_ui_view: The group sale.group_discount_per_so_line defined in view account.analytic.account.sale.form does not exist!
2018-10-25 15:01:39,108 153 WARNING openerp_test odoo.addons.base.models.ir_ui_view: The group sale.group_discount_per_so_line defined in view account.analytic.account.purchase.form does not exist!
2018-10-25 15:01:39,253 153 WARNING openerp_test odoo.addons.base.models.ir_ui_view: The group sale.group_discount_per_so_line defined in view Account Analytic Contract Form View does not exist!
I think you haven't pushed your changes here. |
Hi @pedrobaeza, The warning is raised due to the use of I think, we should use the |
d9b3f51
to
a17a89b
Compare
OK, Odoo does that with discount field in invoices |
aa3ed5c
to
b3e2931
Compare
* 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
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.
Bug description --------------- `account.analytic.contract.line` inherits `account.analytic.invoice.line` `account.analytic.invoice.line` defines field `analytic_account_id`: - comodel='account.analytic.account' `account.analytic.contract.line` redefines field `analytic_account_id`: - comodel='account.analytic.contract' On attempt to extend `account.analytic.invoice.line` model adding field that depends on `analytic_account_id.date_start` Odoo fails to update, because it adds this field to `account.analytic.contract.line` through inheritance, and `account.analytic.contract` model have no this field. What is done ------------ Change inheritance order: - `account.analytic.invoice.line` inherits `account.analytic.contract.line` - no file renames at this stage (this wil be done in next commit)
In previous commit changed inheritance order of 'account.analytic.*.line' models, thus classes and models were renamed. This commit only renames files to temporary names. This commit does not change file contents.
Runbot URL in old README.rst pointed to 10.0 runbot, fixed by upgrading template
Currently translated at 96.0% (96 of 100 strings) Translation: contract-11.0/contract-11.0-contract Translate-URL: https://translation.odoo-community.org/projects/contract-11-0/contract-11-0-contract/nl/
Currently translated at 53.0% (53 of 100 strings) Translation: contract-11.0/contract-11.0-contract Translate-URL: https://translation.odoo-community.org/projects/contract-11-0/contract-11-0-contract/de/
Currently translated at 75.0% (75 of 100 strings) Translation: contract-11.0/contract-11.0-contract Translate-URL: https://translation.odoo-community.org/projects/contract-11-0/contract-11-0-contract/de/
Currently translated at 98.0% (98 of 100 strings) Translation: contract-11.0/contract-11.0-contract Translate-URL: https://translation.odoo-community.org/projects/contract-11-0/contract-11-0-contract/es/
Currently translated at 10.0% (10 of 100 strings) Translation: contract-11.0/contract-11.0-contract Translate-URL: https://translation.odoo-community.org/projects/contract-11-0/contract-11-0-contract/pt_PT/
The test as it was, leaves to the demo pricelist the control on the price of the product, so other modules that modifies this pricelist will make the test to fail. This is the minimum change needed for avoiding the problem.
- Module: contract - Summary: several terms where not translated to Spanish.
b3e2931
to
12ac4e1
Compare
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 squash a bit the commit history for not dragging non meaningful commits.
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.
Functional test 👍
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.
Ok, for this simple migration (code review).
I suggest we merge this, so testing of migration of other modules can move forward.
We'll do the refactoring (moving recurrence to contract lines) in another PR.
No description provided.