-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
[13.0][MIG] account_credit_control: Migration to 13.0 #54
[13.0][MIG] account_credit_control: Migration to 13.0 #54
Conversation
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.
Thanks @manuelcalerosolis , Good job !!!!
2b56336
to
97bc743
Compare
86778c9
to
1879a7f
Compare
1879a7f
to
8c006cf
Compare
8c006cf
to
3c926ae
Compare
<tr t-foreach="doc.credit_control_line_ids" t-as="l"> | ||
<t t-if="l.invoice_id"> | ||
<td> | ||
<span t-field="l.invoice_id.number"/> |
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.
Number is not a field of account.move, name should be sufficient?
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.
@pedrobaeza
I still get:
File "/Users/brahoo/PycharmProjects/cust/odoo-13.0/odoo/addons/base/models/ir_qweb.py", line 363, in _get_field
field = record._fields[field_name]
KeyError: 'number'
Error to render compiling AST
KeyError: 'number'
Template: account_credit_control.report_credit_control_summary_document
Path: /t/t/div/table/tbody/tr/t[1]/td/span
Node: <span t-field="l.invoice_id.number"/>
I think the line should be removed. Only name is sufficient.
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.
Initial feedback
{ | ||
"name": att[0], | ||
"datas": att[1], | ||
"datas_fname": att[0], |
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.
Field name is changed to store_fname in v13?
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.
Changed, thanks
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.
Incorrect field on ir.attachment found
3c926ae
to
3505f06
Compare
Please don't merge until my review. Thanks |
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.
Record rules are incorrect.
* Modify scenarios to be compatible with python scenarios * Voucher/statement related steps * Deprecated step implementation * Print report generation * All tests green * Mail + print of reminder * Broken translations
* Fix failure to confirm invoice when both account_credit_control and account_constraints are installed * use except_orm instead of except_osv * reindent code * Cleanup * use of deprecated field user_email causes permission error in multicompany setting fixed by using the correct 'email' field in the template
* Address in mako template to make sure address is displayed * Remove 'more info here' from report * Add some css to reminder report and set texts taking the whole width of the document * Add a subject in reminder report
* Report use precise mode by default * date_entry fields on line model to be used by report or in next MP on filter group by * reporting layer, + add hook function to get contact address * credit control mail are not in plain text but send as attachement * policy level name is now translatable as it is use in report and mail * permission on invoices because onetomany widget load data even if hidden ... * translation files + lang source * french translation
4b11e3c
to
0960e87
Compare
0960e87
to
162cde2
Compare
@CasVissers @rafaelbn can you please re-review? |
https://drive.google.com/file/d/1piDHuSzMDWha06kQoXrDMh89bijioySg/view Even though a credit control line has been processed it seems that it is created a 2nd time? Or am I doing something wrong? |
Is that happening the same on v12? |
No I can't reproduce the same behavior in v12. I think it's wrong any way we look at it? |
If this doesn't happen in v12, then indeed it's a problem of the migration. I will take over this PR and check that. Thanks for reviewing. |
@pedrobaeza |
Sorry, not yet. I will try ASAP. |
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.
Fix found for level not increasing
@bhaveshselarka |
Done in an extra commit for not changing the SHA of the record rules addition, as it's referenced on the migration guide. This can be squashed when migrating the module to upper versions.
64aa139
to
998bbd9
Compare
Let's finally merge it: /ocabot merge nobump |
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at 5643895. Thanks a lot for contributing to OCA. ❤️ |
@pedrobaeza Is and not demo data? They are now created when installing/updating the module. |
I don't get you. |
Yes, I don't know why they are there. Can you please do a PR amending it? |
This is the migration to v 13.0 module account_credit_control
@Tecnativa TT21599