[NEW] Addons creation - product_rental_bookings
This commit is contained in:
17
product_rental_bookings/models/product_logs.py
Normal file
17
product_rental_bookings/models/product_logs.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from odoo import models, fields
|
||||
|
||||
|
||||
class RentalProductLogs(models.Model):
|
||||
_name = "rental.product.logs"
|
||||
_description = "product Products Logs"
|
||||
_rec_name = "product_id"
|
||||
|
||||
product_id = fields.Many2one("product.product", string="Product")
|
||||
customer_id = fields.Many2one("res.partner", string="Customer")
|
||||
from_date = fields.Date(string="From Date")
|
||||
to_date = fields.Date(string="To Date")
|
||||
company_id = fields.Many2one(
|
||||
"res.company", string="Company", default=lambda self: self.env.user.company_id
|
||||
)
|
Reference in New Issue
Block a user