-
Notifications
You must be signed in to change notification settings - Fork 4
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
[REF] full refactoring: #3
[REF] full refactoring: #3
Conversation
f573701
to
7c0a15c
Compare
- OCA convention - module renamed - modularity in function. (prepare function added)
7c0a15c
to
9ce4e8b
Compare
Hi @chafique-delli, @sebastienbeau, I just refactored all the module you proposed. Please take a time to make a technical and functional review. About your use in production, module rename will not be a problem, as your module do not introduce persistent field. (only transient model). So a simple uninstallation / installation during the migration will work. If you have plugged your production buildout on your branch, please freeze it until account_invoice_supplierinfo_update_variant is done, to avoid regression. kind regards. Note Travis is red because OCA / 8.0 is red. |
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.
@legalsylvain , The user will not always know when to use the 'Update Supplier Information' button on the invoice, he will no longer have a tendency to directly validate the invoice.
I think it would be more sensible to have an option in the configuration of the billing which will allow the updating of the supplier prices.
|
||
.. image:: ./account_invoice_supplierinfo_update/static/description/supplier_invoice_form.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.
Hi @legalsylvain , fix the README.rst file because we have 3 times the same image that appears 'supplier_invoice_form.png' in view form of module.
It creates a new supplier information line if there is not or it updates the | ||
first. | ||
|
||
This module add an extra button 'Check Supplier Informations' on supplier |
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.
replace 'Check Supplier Informations' by 'Update Supplier Informations'.
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 changed the name of the button.
lines = [] | ||
|
||
for line in self.invoice_line: | ||
propose_update = True |
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.
TODO if there is no product, set propose_update to False.
@legalsylvain , When you have verified the supplier information on a draft invoice without updating the prices and then want to delete it, this is not possible because we have a record created in the table 'wizard.update .invoice.supplierinfo 'with the id of the invoice. |
[FIX] various improvments
fcec5af
to
841aa80
Compare
Hi @chafique-delli. I did commit according to your remarks. regards. |
Hi @legalsylvain , thank you for your work. |
…d_option-dro [13.0][FIX] stock_picking_return_refund_option: Fix dependencies
Refactoring
Fixes
Improvement
Extra work to do
After merging, extra module to do :