Skip to content

[13.0][ADD] helpdesk_mgmt_ticket_invoice#40

Open
IriaAlonso wants to merge 1 commit into13.0from
13.0-add-helpdesk_mgmt_ticket_invoice
Open

[13.0][ADD] helpdesk_mgmt_ticket_invoice#40
IriaAlonso wants to merge 1 commit into13.0from
13.0-add-helpdesk_mgmt_ticket_invoice

Conversation

@IriaAlonso
Copy link
Copy Markdown
Contributor

  • Add a relation between tickets and invoices
  • Button that shows all related tickets
  • Button that creates a ticket from the invoice (in progress)

@IriaAlonso IriaAlonso force-pushed the 13.0-add-helpdesk_mgmt_ticket_invoice branch 2 times, most recently from a270fd3 to 1eaa8ea Compare September 19, 2024 07:21
@IriaAlonso
Copy link
Copy Markdown
Contributor Author

@dalonsod can u review it?

@IriaAlonso IriaAlonso force-pushed the 13.0-add-helpdesk_mgmt_ticket_invoice branch from 1eaa8ea to eeb888f Compare September 19, 2024 09:54
@dalonsod
Copy link
Copy Markdown
Contributor

I'll check it later... @ChristianSantamaria could you review first?

Copy link
Copy Markdown

@ChristianSantamaria ChristianSantamaria left a comment

Choose a reason for hiding this comment

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

Code review, a few improvements 😃

Comment thread helpdesk_mgmt_ticket_invoice/__manifest__.py Outdated
Comment thread helpdesk_mgmt_ticket_invoice/security/ir.model.access.csv Outdated
Comment thread helpdesk_mgmt_ticket_invoice/models/account_move.py Outdated
Comment thread helpdesk_mgmt_ticket_invoice/models/account_move.py Outdated
Comment thread helpdesk_mgmt_ticket_invoice/models/account_move.py
Comment thread helpdesk_mgmt_ticket_invoice/readme/DESCRIPTION.rst Outdated
Comment thread helpdesk_mgmt_ticket_invoice/views/helpdesk_ticket_view.xml
Comment thread helpdesk_mgmt_ticket_invoice/i18n/es.po
Comment thread helpdesk_mgmt_ticket_invoice/__manifest__.py Outdated
Comment thread helpdesk_mgmt_ticket_invoice/views/account_move_view.xml Outdated
@IriaAlonso IriaAlonso force-pushed the 13.0-add-helpdesk_mgmt_ticket_invoice branch from eeb888f to 8a67c45 Compare September 26, 2024 09:41
@IriaAlonso
Copy link
Copy Markdown
Contributor Author

@dalonsod changes done

Copy link
Copy Markdown
Contributor

@dalonsod dalonsod left a comment

Choose a reason for hiding this comment

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

See my initial comments

Comment thread helpdesk_mgmt_ticket_invoice/views/account_move_view.xml Outdated
Comment thread helpdesk_mgmt_ticket_invoice/views/account_move_view.xml Outdated
Comment thread helpdesk_mgmt_ticket_invoice/views/helpdesk_ticket_view.xml Outdated
Comment thread helpdesk_mgmt_ticket_invoice/views/helpdesk_ticket_view.xml Outdated
Comment thread helpdesk_mgmt_ticket_invoice/models/account_move.py Outdated
Comment thread helpdesk_mgmt_ticket_invoice/views/account_move_view.xml Outdated
@IriaAlonso IriaAlonso force-pushed the 13.0-add-helpdesk_mgmt_ticket_invoice branch 2 times, most recently from 38dd48b to 06d80cc Compare September 27, 2024 08:05
@IriaAlonso
Copy link
Copy Markdown
Contributor Author

@dalonsod changes done 👍

Copy link
Copy Markdown
Contributor

@dalonsod dalonsod left a comment

Choose a reason for hiding this comment

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

See new comments

Comment thread helpdesk_mgmt_ticket_invoice/views/helpdesk_ticket_view.xml Outdated
Comment thread helpdesk_mgmt_ticket_invoice/views/account_move_view.xml Outdated
Comment thread helpdesk_mgmt_ticket_invoice/models/account_move.py Outdated
@IriaAlonso IriaAlonso force-pushed the 13.0-add-helpdesk_mgmt_ticket_invoice branch from 06d80cc to c8503ee Compare September 27, 2024 09:41
@IriaAlonso
Copy link
Copy Markdown
Contributor Author

@dalonsod changes done


def _compute_count_ticket_ids(self):
for record in self:
record.count_ticket_ids = record.count_ticket_ids = len(record.ticket_ids)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please remove unnecessary code:

Suggested change
record.count_ticket_ids = record.count_ticket_ids = len(record.ticket_ids)
record.count_ticket_ids = len(record.ticket_ids)

<field name="inherit_id" ref="helpdesk_mgmt.ticket_view_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='tag_ids']" position="after">
<field name="type" invisible="1"/>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Try to remove this field (even in python definition), as actually unneeded (not sure).

Comment thread helpdesk_mgmt_ticket_invoice/views/account_move_view.xml
@dalonsod dalonsod marked this pull request as ready for review September 27, 2024 10:21
@IriaAlonso IriaAlonso force-pushed the 13.0-add-helpdesk_mgmt_ticket_invoice branch from c8503ee to cde5a6b Compare September 27, 2024 10:26
@IriaAlonso IriaAlonso force-pushed the 13.0-add-helpdesk_mgmt_ticket_invoice branch from cde5a6b to d3241d1 Compare September 30, 2024 07:09
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.

3 participants