[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#69828 X-original-commit: 1d680f488f68be4e6157ffd5d8d9dcbb86915ab8 Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user