Merge pull request #78 from expsa/dev_odex25_purchase_changes

changes
This commit is contained in:
eslam 2024-07-06 14:17:51 +03:00 committed by GitHub
commit 5b9ba64cd9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -59,9 +59,9 @@ class BudgetConfirmationCustom(models.Model):
self.po_id.write({'state': 'to approve'}) # draft
self.po_id.requisition_id.write({'state': 'checked'})
elif self.po_id:
if self.po_id.email_to_vendor:
self.po_id.write({'state': 'sent'})
else:
# if self.po_id.email_to_vendor:
# self.po_id.write({'state': 'sent'})
# else:
self.po_id.write({'state': 'draft'})
class CrossoveredBudgetLines(models.Model):

View File

@ -124,8 +124,8 @@
<button type="object" name="budget_resend" string="Resend To Budget Check" class="oe_highlight"
states="budget_rejected"/>
<button type="object" name="action_budget" string="Send To Budget Check" class="oe_highlight"
attrs="{'invisible':[('is_purchase_budget','=',False)]}"/>
<button name="action_skip_budget" type="object" string="Skip Budget" attrs="{'invisible':[('is_purchase_budget','=',False)]}"
attrs="{'invisible':['|',('is_purchase_budget','=',False),('state','not in',('wait','sent'))]}"/>
<button name="action_skip_budget" type="object" string="Skip Budget" attrs="{'invisible':['|',('is_purchase_budget','=',False),('state','not in',('wait','sent'))]}"
groups="purchase_requisition_custom.group_skip_purchase_budget"/>
<!-- <button name="button_draft" states="cancel" string="Set to Draft" type="object"/>-->
</xpath>