Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][ADD] purchase_order_sending_warning #2269

Closed

Conversation

ajaniszewska-dev
Copy link
Contributor

No description provided.

@ajaniszewska-dev ajaniszewska-dev force-pushed the purchase_order_send_warn branch 4 times, most recently from 6c5a978 to 6496aa4 Compare May 7, 2024 14:44
@ajaniszewska-dev ajaniszewska-dev force-pushed the purchase_order_send_warn branch 3 times, most recently from b4e8016 to c0d2309 Compare May 13, 2024 11:34
purchase_order_sending_warning/models/mail_mail.py Outdated Show resolved Hide resolved
Comment on lines 10 to 16
sending_warning = fields.Selection(selection=[("email_not_sent", "Email not sent")])

error_in_sending = fields.Boolean(
store=True,
compute="_compute_error_in_sending",
string="Error in sending",
)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we need 2 fields here. Maybe the Selection field is enough.

For the name of the field, I would prefer transmission_error or sending_error since it is more important than a warning.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@florentx 2 fields are there because selection is going to be extended (for example by edi) and user would like to know POs which failed (whatever they failed - edi or email), so computed field will be set whenever mail/edi sending fails. I'll rename.

@ajaniszewska-dev ajaniszewska-dev force-pushed the purchase_order_send_warn branch 2 times, most recently from 35e3b6a to 4fb6ee4 Compare May 14, 2024 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants