# Purchase amendment doesn't work with new lines

**URL:** https://discuss.tryton.org/t/purchase-amendment-doesnt-work-with-new-lines/2161
**Category:** User
**Tags:** purchasing
**Created:** [January 8, 2020, 2:10pm UTC](https://discuss.tryton.org/t/purchase-amendment-doesnt-work-with-new-lines/2161 "2020-01-08T14:10:24Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![risto3](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/r/a87d85/32.png) [@risto3](https://discuss.tryton.org/u/risto3)
#### Post date: [January 8, 2020, 2:10pm UTC](https://discuss.tryton.org/t/purchase-amendment-doesnt-work-with-new-lines/2161/1 "2020-01-08T14:10:24Z")

</div>

I have the following problem with purchase\_amendment…

initial purchase order made with 6 articles, and an agent went to supplier with the PO to take quick delivery … where it became apparent he needed to manually write in an additional article to the order.

The delivery note contains this additional article.

Amending the PO in Tryton, we try to add a ‘change line’

But the ‘line’ field is mandatory - and if I select ‘search…’ then click on ‘new’ to add a line, all the fields are greyed out… impossible to save because ‘quantity’ is required for a line!

How to add the new write-in item?

NB deletions are simply setting the quantity to zero.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [January 8, 2020, 2:23pm UTC](https://discuss.tryton.org/t/purchase-amendment-doesnt-work-with-new-lines/2161/2 "2020-01-08T14:23:33Z")

</div>

It is not supported on purpose: [Amendment for Sale and Purchase - #6 by ced](https://discuss.tryton.org/t/amendment-for-sale-and-purchase/187/6)

---

<div class="post-metadata">

### Author: ![risto3](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/r/a87d85/32.png) [@risto3](https://discuss.tryton.org/u/risto3)
#### Post date: [January 8, 2020, 2:38pm UTC](https://discuss.tryton.org/t/purchase-amendment-doesnt-work-with-new-lines/2161/3 "2020-01-08T14:38:45Z")

</div>

Then the term _amendment_ should not be used. [Amendment - Wikipedia](https://en.wikipedia.org/wiki/Amendment)

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [January 8, 2020, 2:41pm UTC](https://discuss.tryton.org/t/purchase-amendment-doesnt-work-with-new-lines/2161/4 "2020-01-08T14:41:34Z")

</div>

Please read correctly the definition before making annoying and false statement.

> Amendments can add, remove, or update parts of these agreements

This definition includes without any problem the current behavior of the module.

---

<div class="post-metadata">

### Author: ![risto3](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/r/a87d85/32.png) [@risto3](https://discuss.tryton.org/u/risto3)
#### Post date: [January 8, 2020, 3:00pm UTC](https://discuss.tryton.org/t/purchase-amendment-doesnt-work-with-new-lines/2161/5 "2020-01-08T15:00:08Z")

</div>

> [@ced](#):
>
> Amendments can **add** , remove, or update parts of these agreements

In [Amendment for Sale and Purchase - #6 by ced](https://discuss.tryton.org/t/amendment-for-sale-and-purchase/187/6) you mention that you don’t want to manage certain things in the amendment.  
But to ‘create’ the missing ‘line’ first, in order to change the quantity, why is it impossible to not simply invoke the form for purchase.lines.new() forcing quantity=0 in order to do such? It already displays such a form but with everything greyed out.

By the way, the amendment also seems to omit updating the delivery date.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [January 8, 2020, 3:40pm UTC](https://discuss.tryton.org/t/purchase-amendment-doesnt-work-with-new-lines/2161/6 "2020-01-08T15:40:25Z")

</div>

> [@risto3](#):
>
> Amendments can **add** , remove, or update parts of these agreements

**can** does not mean **must**.

---

<div class="post-metadata">

### Author: ![risto3](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/r/a87d85/32.png) [@risto3](https://discuss.tryton.org/u/risto3)
#### Post date: [January 8, 2020, 3:57pm UTC](https://discuss.tryton.org/t/purchase-amendment-doesnt-work-with-new-lines/2161/7 "2020-01-08T15:57:44Z")

</div>

> [@ced](#):
>
> > Amendments can **add** , remove, or update parts of these agreements
> 
> **can** does not mean **must**.

no, **can** means **able to** or **capable of**  
at present, purchase\_amendment CAN NOT **add**

We need to find a way to fix (or amend;-) that shortcoming.
