Skip to content
Health
90/100
good
  • Security25/25
    No findings
  • Activity25/25
    Human commit this month
  • Required by15/25
    1 module depends on it
  • Maturity25/25
    In 7 Odoo series since 12.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
1
Modules depending on it
External deps
1 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.11 MB
Module directory on disk
Code analysis 0 migration notes 7 models 6 views 0 HTTP endpoints

Description

This module extends the functionality of sale and resource bookings to support creating pending resource bookings automatically when confirming a sale order and to allow you to generate those sale orders easily from a resource booking type.

Dependencies

Odoo dependencies
Python dependencies
cssselect
System dependencies
None
Required by
website_sale_resource_booking

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 6

XML IDNameModelTypeStatus
product_template_form_view Display resource booking info in form product.template form Inherits product.product_template_form_view
resource_booking_form Display sale order info in booking form resource.booking form Inherits resource_booking.resource_booking_view_form
resource_booking_sale_view_form resource.booking.sale.view.form resource.booking.sale form New
resource_booking_type_form Sale order generator from booking type form resource.booking.type form Inherits resource_booking.resource_booking_type_view_form
sale_order_booking_confirm_view_form sale.order.booking.confirm.view.form sale.order.booking.confirm form New
view_order_form Display resource booking info in form sale.order form Inherits sale.view_order_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 7

New fields (2)
  • resource_booking_type_combination_rel_id Many2one → resource.booking.type.combination.rel
    domain="[('type_id', '=', resource_booking_type_id)]" help='If set, the booking will be created with this resource combination. Otherwise, the combination will be assigned automatically later, when the requester schedules the booking.' index=True ondelete='restrict' string='Resource combination' args: 'resource.booking.type.combination.rel'
  • resource_booking_type_id Many2one → resource.booking.type
    help='If set, one pending booking will be generated when sold.' index=True ondelete='restrict' string='Booking type' args: 'resource.booking.type'
Public methods (0)

No public methods.

New fields (3)
  • sale_order_id Many2one
    help='Sale order that origins this booking.' readonly=True related='sale_order_line_id.order_id'
  • sale_order_line_id Many2one → sale.order.line
    copy=False index=True ondelete='cascade' string='Sale order line' tracking=True args: 'sale.order.line'
  • sale_order_state Selection
    help='If there is a related quotation and it is not confirmed, the booking will not be able to become confirmed.' readonly=True related='sale_order_id.state' string='Sale order state'
Public methods (0)

No public methods.

New fields (4)
  • partner_id Many2one → res.partner
    ondelete='cascade' required=True string='Customer' args: 'res.partner'
  • product_id Many2one → product.product
    domain="[('resource_booking_type_id', '=', type_id)]" ondelete='cascade' required=True args: 'product.product'
  • product_uom_qty Integer
    default=1 required=True string='Quantity'
  • type_id Many2one → resource.booking.type
    index=True ondelete='cascade' required=True string='Booking type' args: 'resource.booking.type'
Public methods (1)
  • action_generate(self)

New fields (0)

No new fields.

Public methods (1)
  • action_sale_order_wizard(self)
    Help user creating a sale order for this RBT.

New fields (2)
  • resource_booking_count Integer
    compute='_compute_resource_bookings' args: 'Resource bookings count'
  • resource_booking_ids Many2many → resource.booking
    compute='_compute_resource_bookings' args: 'resource.booking'
Public methods (5)
  • action_bookings_resync(self)
    User-forced bookings resync.
  • action_confirm(self)
    Ask to fill booking values, if necessary.
  • action_open_resource_bookings(self)
    Open related bookings.
  • create(self, vals_list)
    @api.model_create_multi
  • write(self, vals)

New fields (2)
  • order_id Many2one → sale.order
    index=True ondelete='cascade' readonly=True required=True args: 'sale.order'
  • resource_booking_ids Many2many → resource.booking
    default=<expr> string='Bookings' args: 'resource.booking', 'sale_order_booking_confirm_rel', 'sale_order_booking_confirm_id', 'booking_id'
Public methods (2)
  • action_invite(self)
    Invite booking requesters without using odoo.tests.Form.
  • action_noop(self)

New fields (1)
  • resource_booking_ids One2many → resource.booking
    copy=False string='Resource bookings' args: 'resource.booking', 'sale_order_line_id'
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
  • write(self, vals)

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…