-
Notifications
You must be signed in to change notification settings - Fork 0
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
[17.0][MIG] partner_invoicing_mode_at_shipping: Migration to 17.0 #4
base: 17.0
Are you sure you want to change the base?
Conversation
fe2355e
to
72a873b
Compare
@@ -12,6 +12,9 @@ | |||
"data/queue_job_data.xml", | |||
"views/res_partner.xml", | |||
], | |||
"depends": ["account", "partner_invoicing_mode", "queue_job", "stock"], | |||
"depends": ["account", "partner_invoicing_mode", "queue_job", "sale_stock"], |
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.
No need for this change.
- depends:
sale_stock
is a module withauto_install = True
and depends on the modulesale
,stock
. And inpartner_invoicing_mode
it depends onsale
. Sosale_stock
is already installed
"depends": ["account", "partner_invoicing_mode", "queue_job", "sale_stock"], | |
"depends": ["account", "partner_invoicing_mode", "queue_job", "stock"], |
# generated from manifests external_dependencies | ||
openupgradelib |
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.
No need, you have declared it in external_dependencies
. No need to add it here.
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.
Pre-commit generate it
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.
Delete it
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.
Delete it. No need.
In sale_stock there is already this function with the same function
@@ -0,0 +1,4 @@ | |||
from . import res_partner | |||
from . import stock_move |
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.
from . import stock_move |
> - Thierry Ducrest \<<[email protected]>\> | ||
|
||
- Phuc (Tran Thanh) \<<[email protected]>\> | ||
- Nils Coenen \<<[email protected]>\> |
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.
With some changes above you can put your name in this file. This decision depends on you 😉
@@ -0,0 +1,3 @@ | |||
The development of this module has been financially supported by: | |||
|
|||
- Camptocamp |
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.
Update credits
and partner.one_invoice_per_shipping | ||
): | ||
raise ValidationError( | ||
_( |
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.
Hehe, small changes 😉.
Same with other similar things
_( | |
self.env._( |
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.
Odoo in test CI doesn't know it
b1151a7
to
9496059
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.
This still needs to be kept.
@@ -1,7 +1,7 @@ | |||
# Copyright 2020 Camptocamp SA | |||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) | |||
|
|||
from odoo import _, models | |||
from odoo import _, api, models |
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.
Still exists _() below
9496059
to
de3c6c9
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.
LGTM
150f82d
to
d148854
Compare
the `sale.order._create_invoices() method does not only requires `create` access to the `account.move` and `account.move.line` models. Because we're actually sorting lines after the creating, it requires `read` access to sort, and `write` access to modify their sequence. This is problematic when interracting with other modules like `invoice_mode_at_shipping` where stock users are the ones to create invoices. This commit adds a few `sudo()` in the code, in order to avoid granting `read` and `write` access to users that shouldn't be allowed to read and write invoices.
…nvoice_with_currency
Currently translated at 100.0% (6 of 6 strings) Translation: account-invoicing-16.0/account-invoicing-16.0-partner_invoicing_mode_at_shipping Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-partner_invoicing_mode_at_shipping/es/
Currently translated at 100.0% (6 of 6 strings) Translation: account-invoicing-16.0/account-invoicing-16.0-partner_invoicing_mode_at_shipping Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-partner_invoicing_mode_at_shipping/it/
…cking' instead of related
…o 'shipping' instead of 'picking'
…ne_invoice_per_shipping' fill in / Use draft invoices.
…ng' option on res_partner view
…g to commercial_fields
…ing_validation function and add option auto validate invoice on partner
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: account-invoicing-16.0/account-invoicing-16.0-partner_invoicing_mode_at_shipping Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-partner_invoicing_mode_at_shipping/
Currently translated at 58.3% (7 of 12 strings) Translation: account-invoicing-16.0/account-invoicing-16.0-partner_invoicing_mode_at_shipping Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-partner_invoicing_mode_at_shipping/es/
Currently translated at 100.0% (12 of 12 strings) Translation: account-invoicing-16.0/account-invoicing-16.0-partner_invoicing_mode_at_shipping Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-partner_invoicing_mode_at_shipping/it/
Currently translated at 100.0% (12 of 12 strings) Translation: account-invoicing-16.0/account-invoicing-16.0-partner_invoicing_mode_at_shipping Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-partner_invoicing_mode_at_shipping/fr/
d148854
to
3f12bd5
Compare
sale_stock
because in test case,self.so1.picking_ids
needspicking_ids
field, and this field insale_stock
module.test_queue_job_no_delay
is no longer available, I have to change toqueue_job__no_delay