You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This case is valid in 8.0, because invoice UoS is optional.
Running the migration, the following error is raised.
Conversion from Product UoM **False** to Default UoM **Unit** is not possible as they both belong to different Category!.
Current Fix for purchase migration
if invoice line uos_id is NULL, set the purchase order line uom
UPDATE account_invoice_line ail
SET uos_id = pol.product_uom
FROM purchase_order_line_invoice_rel rel,
purchase_order_line pol
WHERE pol.id = rel.order_line_id
AND ail.id = rel.invoice_id
AND ail.uos_id is null;
Current fix for sale migration
(theoritical, I don't have the case)
if invoice line uos_id is NULL, set the sale order line uom
UPDATE account_invoice_line ail
SET uos_id = sol.product_uom
FROM purchase_order_line_invoice_rel rel,
sale_order_line sol
WHERE sol.id = rel.order_line_id
AND ail.id = rel.invoice_id
AND ail.uos_id is null;
Proposal
Add this two requests in pre-migration script of sale and purchase (well with uom_id and not uos_id because at this step, uos_id has been renamed)
Regarding #2075 (comment), we could imagine also creating an new UoM with no name (only a space, because name is required), and disabled, and affect this UoM to the invoice line UoS, but I is a little dirty, and not sure that it is required in this case.
The text was updated successfully, but these errors were encountered:
thanks for taking a look on that issue. If I understand correctly, #1599 is about missing product_id on purchase.order.line.
The current issue is about missing uos_id on account.invoice.line.
But I'll take a look ! because in my multicompany context, the current code that create product is not ok. (as you said on #1599)
I think that they are related, as having the product with proper UoM in sale/purchase, then you can propagate that UoM to account.invoice.line when missing, don't you think?
Hi all,
Similar bug as #2075.
The 8.0 setting is the following :
purchase.order.line
product_id
: Falsepurchase.order.line
uom_id
: Unitaccount.invoice.line
product_id
: Falseaccount.invoice.line
uom_id
: FalseThis case is valid in 8.0, because invoice UoS is optional.
Running the migration, the following error is raised.
Current Fix for purchase migration
if invoice line uos_id is NULL, set the purchase order line uom
Current fix for sale migration
(theoritical, I don't have the case)
if invoice line uos_id is NULL, set the sale order line uom
Proposal
Add this two requests in pre-migration script of sale and purchase (well with uom_id and not uos_id because at this step, uos_id has been renamed)
Regarding #2075 (comment), we could imagine also creating an new UoM with no name (only a space, because name is required), and disabled, and affect this UoM to the invoice line UoS, but I is a little dirty, and not sure that it is required in this case.
The text was updated successfully, but these errors were encountered: