diff options
| author | Swapnesh Shah <swapneshshah111@gmail.com> | 2021-04-18 17:56:43 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-18 17:56:43 +0000 |
| commit | 1d680f488f68be4e6157ffd5d8d9dcbb86915ab8 (patch) | |
| tree | 1aa9a8b5344b835daaa7545f3fd955f62132b6ee /addons | |
| parent | b08ea4414f4e2eefcc9e71ca7e876d2cd44c7565 (diff) | |
[FIX] purchase_stock: confirm receipt date if needed
Before this commit, There would be Traceback (AttributeError: 'bool' object has no attribute 'date')
on Confirm Receipt Date If order has no Receipt Date.
Now, Button Confirm Receipt Date will be hidden if there is not Receipt Date to confirm.
Original behavior was fixed on #60659 but attribute was replaced
here which misses this condition.
closes odoo/odoo#69437
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/purchase_stock/views/purchase_views.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/purchase_stock/views/purchase_views.xml b/addons/purchase_stock/views/purchase_views.xml index 4a62bf3d8c9..6f850b62b4b 100644 --- a/addons/purchase_stock/views/purchase_views.xml +++ b/addons/purchase_stock/views/purchase_views.xml @@ -10,7 +10,7 @@ <button name="action_view_picking" string="Receive Products" class="oe_highlight" type="object" attrs="{'invisible': ['|', '|' , ('is_shipped', '=', True), ('state','not in', ('purchase','done')), ('picking_count', '=', 0)]}"/> </xpath> <xpath expr="//header/button[@name='confirm_reminder_mail']" position="attributes"> - <attribute name="attrs">{'invisible': ['|', '|', ('state', 'not in', ('purchase', 'done')), ('mail_reminder_confirmed', '=', True), ('effective_date', '!=', False)]}</attribute> + <attribute name="attrs">{'invisible': ['|', '|', '|', ('state', 'not in', ('purchase', 'done')), ('mail_reminder_confirmed', '=', True), ('date_planned', '=', False), ('effective_date', '!=', False)]}</attribute> </xpath> <xpath expr="//div[hasclass('oe_button_box')]" position="inside"> <button type="object" |
