Issue when modifying item price in Sale Order (Odoo 13) - odoo-13

I'm facing that issue:
I have created a new sale order and want to change the price of an item, i edit the item, changed the price and saved but no change was observed on that line but when i added a new line with the same item it display the news price (See attached)
How i can fix that ?
Thanks in Adavance

The pricelist will only affect once this is modified once: ['product_id'] So this having on the line so if you modified on an existing line or check with a new line then it has an effect.
You can check this method which can trigger for change in line price with pricelist.

Related

Suitescript 2.0 - Journal entry from Invoice

I'm working on creating a journal entry from an invoice if the invoice is checkmarked on a field. This is a little more complicated than I'm used to, so I wanted to ask for a little guidance.
What I need to do is:
afterSubmit(){}:
Get invoice number and related sales order number (Done - easy)
Retrieve the lineCount (Done)
Loop through lines to getValue for item and amounts (Done - I know how to do this)
Create a journal entry (Able to initiate this)
Apply the values from the invoice line data for both credit and debit (Unsure)
The parts I'm not sure about:
Is getValue the best way to retrieve the line item data? Do I have an object at this point that I can iterate through? How do I look at this object with a logDebug() or the debugger? Or if there is another way to get the sublist, how do I see the sublist data?
Should I actually get the invoice values on beforeSubmit() and then create the JE with afterSubmit()? Can I use the values in an afterSubmit() function?
What is the method to pull out line data and apply with setSublistValue()?
If anyone can guide me on this last process, it would help.
Thanks.

System note data in one line on saved search

We have a three level approval for purchase orders. I have received a requirement to show who approved at each level and the timestamp against every PO in saved search,
When I started creating this search, I am struggling to get the data for every PO in one line, as the system note data has one line each for every approval.
Can you please advise on how to get these multiplelines on a single line for every PO?
Thanks,
Check out the undocumented NS_CONCAT function for saved searches.
Here's an example answered earlier:
How to list my Sales Reps for a customer on one line?

InfoPath Forms Library Multiple Item Creation Issue in SharePoint Online

I have a Forms Library with a library InfoPath form. Everything is working fine until today a strange issue is observed and reported. Consider the below 2 scenarios in which the issue happens:
If I have items 121, 122, 123 and then I delete item 123 for some reason, then the next item that I create would be 124 ofcourse as I'm using the ID field to create my filename but this item upon editing would give me multiple items for each edit once submit button is clicked. But the strange part is if I leave 124 in it's last state for example after 2 edits now the latest ID would be 126 and create a new item 127, everything would be fine and each edit to 127 would update the same item.
The same behavior is exhibited for some of the old items but there is no real similarity between the items which have the issue and which don't and the problem is purely random.
The submit rules are pretty straight forward.
The current month is extracted using a substring formula from today().
enter image description here
The form year is calculated using the current year field which is extracted from today as well using the substring formula.
enter image description here
Based on the month form year is set to current year if the current month is before October.
enter image description here
Based on the month form year is set to current year +1 if the current month is after October.
enter image description here
Now I'm setting the Form ID to 1 if there are no items in the library
enter image description here
If there are items in the library and considering it is a new item with no Title then I'm setting the Form ID as below:
enter image description here
Now I'm setting the Form Title which I'm using as the filename in the form library submit with overwrite as yes.
enter image description here
Finally Submitting the form.
enter image description here
I tried everything but could not figure out what is causing the issue. Please help me with this.
Thanks,
Suhas
The issue is with the way the Title field is set in the workflow vs the way it is set in the form. Both were mismatching and hence every time the workflow runs, it is creating a new item for the same form which increments the ID.

Service Order Line Note not printing on Invoice

I am creating an Invoice from Service Order but, the Note created in the Line Order, is not showing on the Invoice.
When I create an Invoice from a Sales Order, the Line Note shows on the Invoice.
Am I missing some management feature that I should turn on?
Any Help will be appreciated.
Alfredo
Copy line notes to Shipments and Invoices is depended on settings at Order Type level. See this screenshot:

Changing Qty of SOLine from a Different Page

I have a customization in which the user can adjust the quantity of an SO Line from a different page. This works perfectly, except when the user goes to execute the action "Create Shipment" for that SO. When "Create Shipment" executes, the shipment record created reflects the original values the user put in for the line's quantity instead of the adjusted quantity. Here is an example:
I created an order with original SO quantities of 10 and one respectively. I then changed the quantities to 8 and 5 respectively through my customization page:
This is the shipment I get when I select Actions -> Create Shipment:
I have looked through and adjusted any numbers misrepresenting the values I desired in the SQL tables SOOrder, SOLine, and SOLineSplit, but I still get the incorrect values when creating a shipment. Is there a table I am missing?
Sounds like the issue could be the PlanQty found on the related INItemPlan record which the Create Shipment process uses to create the shipment.
Might be worth looking into getting the SOLine updated via the SOOrderEntry graph or make sure the INItemPlan values are getting updated correctly. Maybe a missing view in your custom page. I think the values are updated from the attribute on PlanID of SOLineSplit if that helps.

Resources