-
-
Notifications
You must be signed in to change notification settings - Fork 729
[18.0][MIG] stock_picking_batch_extended: Migration to 18.0 #1855
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
[18.0][MIG] stock_picking_batch_extended: Migration to 18.0 #1855
Conversation
13ea03a to
3d36345
Compare
stock_picking_batch_extended/migrations/18.0.1.0.0/pre-migrate.py
Outdated
Show resolved
Hide resolved
|
/ocabot migration stock_picking_batch_extended |
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 validation is OK
|
IMHO those kind of modules should be avoided. As it is very difficult for users to determine what is the real purpose of it. |
jbaudoux
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.
Warf! This module is doing too many different things.
Can you split in several modules? One meaningful group of features per module.
And try to find meaningful module names
| class ProductTemplate(models.Model): | ||
| _inherit = "product.template" | ||
|
|
||
| description_picking = fields.Text(string="Warehouse Description", translate=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.
I don't see where this is used. Should be in a separate module
| class Company(models.Model): | ||
| _inherit = "res.company" | ||
|
|
||
| use_oca_batch_validation = fields.Boolean() |
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.
What is the OCA way? This is not clear, help missing. Rename field
|
|
|
||
| def migrate(cr, version): | ||
| cr.execute(""" | ||
| UPDATE product_template |
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.
The field is set on product_product
| class ProductTemplate(models.Model): | ||
| _inherit = "product.template" | ||
|
|
||
| description_picking = fields.Text(string="Warehouse Description", translate=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.
This field is actually exists, the override is about the string
- Converts old stock.batch.picking in stock.picking.batch - Restore link in stock.picking - Other needed stuff
…er and activities
…Picking group [REF] stock_picking_batch_extended: update picking_batch_configuration_settings img configuration
Currently translated at 22.2% (14 of 63 strings) Translation: stock-logistics-workflow-16.0/stock-logistics-workflow-16.0-stock_picking_batch_extended Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-16-0/stock-logistics-workflow-16-0-stock_picking_batch_extended/it/
Currently translated at 100.0% (63 of 63 strings) Translation: stock-logistics-workflow-16.0/stock-logistics-workflow-16.0-stock_picking_batch_extended Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-16-0/stock-logistics-workflow-16-0-stock_picking_batch_extended/it/
Currently translated at 100.0% (63 of 63 strings) Translation: stock-logistics-workflow-16.0/stock-logistics-workflow-16.0-stock_picking_batch_extended Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-16-0/stock-logistics-workflow-16-0-stock_picking_batch_extended/it/
Currently translated at 84.1% (53 of 63 strings) Translation: stock-logistics-workflow-16.0/stock-logistics-workflow-16.0-stock_picking_batch_extended Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-16-0/stock-logistics-workflow-16-0-stock_picking_batch_extended/pt_BR/
Currently translated at 100.0% (63 of 63 strings) Translation: stock-logistics-workflow-16.0/stock-logistics-workflow-16.0-stock_picking_batch_extended Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-16-0/stock-logistics-workflow-16-0-stock_picking_batch_extended/it/
Currently translated at 100.0% (63 of 63 strings) Translation: stock-logistics-workflow-16.0/stock-logistics-workflow-16.0-stock_picking_batch_extended Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-16-0/stock-logistics-workflow-16-0-stock_picking_batch_extended/it/
Currently translated at 100.0% (63 of 63 strings) Translation: stock-logistics-workflow-16.0/stock-logistics-workflow-16.0-stock_picking_batch_extended Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-16-0/stock-logistics-workflow-16-0-stock_picking_batch_extended/pt_BR/
Currently translated at 100.0% (63 of 63 strings) Translation: stock-logistics-workflow-16.0/stock-logistics-workflow-16.0-stock_picking_batch_extended Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-16-0/stock-logistics-workflow-16-0-stock_picking_batch_extended/it/
…icking report on "print deliveries" button TT50661
79aed17 to
e3377c6
Compare
e3377c6 to
0569479
Compare
Based off OCA#1855 TT52372
|
|
||
| name = fields.Char( | ||
| index=True, | ||
| readonly=False, # allow edition in draft state |
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 it necessary to set False, which is the default value?
| invisible="not use_oca_batch_validation" | ||
| /> | ||
| </xpath> | ||
| <xpath expr="//div[@name='button_box']" position="inside"> |
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 this missed commit:
d67c904
Based off OCA#1855 TT52372
Based off OCA#1855 TT52372
Based off OCA#1855 TT52372
| location_name = operation.location_id.name_get()[0][1] | ||
| location_dest_name = operation.location_dest_id.name_get()[0][1] |
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.
| location_name = operation.location_id.name_get()[0][1] | |
| location_dest_name = operation.location_dest_id.name_get()[0][1] | |
| location_name = operation.location_id.display_name | |
| location_dest_name = operation.location_dest_id.display_name |
| <thead> | ||
| <th>Product</th> | ||
| <th>Carrier</th> | ||
| <th class="text-right">QTY</th> |
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.
| <th class="text-right">QTY</th> | |
| <th class="text-end">QTY</th> |
| <td> | ||
| <span t-esc="carrier.name" /> | ||
| </td> | ||
| <td class="text-right"> |
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.
| <td class="text-right"> | |
| <td class="text-end"> |
| <tfoot> | ||
| <tr> | ||
| <td /> | ||
| <td id="total_label" class="text-right"> |
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.
| <td id="total_label" class="text-right"> | |
| <td id="total_label" class="text-end"> |
| <td id="total_qty" class="text-right"> | ||
| <strong t-esc="total_qty" /> | ||
| </td> |
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.
| <td id="total_qty" class="text-right"> | |
| <strong t-esc="total_qty" /> | |
| </td> | |
| <td id="total_qty" class="text-end"> | |
| <strong t-out="total_qty" /> | |
| </td> |
| <span t-field="product.display_name" /> | ||
| </td> | ||
| <td> | ||
| <span t-esc="carrier.name" /> |
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.
And check the remaining occurrences
| <span t-esc="carrier.name" /> | |
| <span t-out="carrier.name" /> |
|
@yankinmax can you commit changes requested? |
|
Superseded by #2120 |
Based off OCA#1855 TT52372
No description provided.