Skip to content

Commit cb455dc

Browse files
Fix imports and update controllers/__init__.py
1 parent 96d9345 commit cb455dc

File tree

9 files changed

+78
-8
lines changed

9 files changed

+78
-8
lines changed

records_management/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
from . import scrm_records_management
1+
from . import models
2+
from . import controllers

records_management/__manifest__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@
4444
],
4545
'installable': True,
4646
'application': True,
47-
'live_test_url': 'https://your-demo-instance-url.com',
4847
'price': 2000,
49-
'currency': 'USD',
5048
'support': 'john@suncityshred.com'
5149
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
from . import portal
2+
from . import http_controller
173 Bytes
Binary file not shown.
Binary file not shown.
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
from . import modelsdirectory as controllers_directory
2-
3-
# Access the imported modules to avoid "not accessed" errors
4-
_ = models_directory
5-
_ = controllers_directory
1+
from . import scrm_records_management
2+
from . import pickup_request
3+
from . import shredding_service
4+
from . import stock_picking
5+
from . import stock_production_lot
6+
from . import stock_move_sms_validation
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
from odoo import models, fields # type: ignore
2+
3+
class StockMoveSMSValidation(models.Model):
4+
"""
5+
Model for validating stock moves via SMS codes.
6+
"""
7+
_name = 'stock.move.sms.validation'
8+
_description = 'Stock Move SMS Validation'
9+
10+
name = fields.Char(required=True)
11+
move_id = fields.Many2one('stock.move', string="Stock Move")
12+
sms_code = fields.Char(string="SMS Code")
13+
validated = fields.Boolean(string="Validated")
14+
date = fields.Datetime(string="Date")
15+
name = fields.Char(required=True)
16+
move_id = fields.Many2one('stock.move', string="Stock Move")
17+
sms_code = fields.Char(string="SMS Code")
18+
validated = fields.Boolean(string="Validated")
19+
date = fields.Datetime(string="Date")
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
22
access_pickup_request_user,pickup.request user,model_pickup_request,base.group_user,1,1,1,1
33
access_shredding_service_manager,shredding.service manager,model_shredding_service,base.group_system,1,1,1,1
4+
access_stock_move_sms_validation_user,stock.move.sms.validation user,model_stock_move_sms_validation,base.group_user,1,1,1,1
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<odoo>
2+
<data>
3+
<!-- Tree view for stock.move.sms.validation -->
4+
<record id="view_stock_move_sms_validation_tree" model="ir.ui.view">
5+
<field name="name">stock.move.sms.validation.tree</field>
6+
<field name="model">stock.move.sms.validation</field>
7+
<field name="arch" type="xml">
8+
<tree string="Stock Move SMS Validations">
9+
<field name="name"/>
10+
<field name="move_id"/>
11+
<field name="sms_code"/>
12+
<field name="validated"/>
13+
<field name="date"/>
14+
</tree>
15+
</field>
16+
</record>
17+
18+
<!-- Form view for stock.move.sms.validation -->
19+
<record id="view_stock_move_sms_validation_form" model="ir.ui.view">
20+
<field name="name">stock.move.sms.validation.form</field>
21+
<field name="model">stock.move.sms.validation</field>
22+
<field name="arch" type="xml">
23+
<form string="Stock Move SMS Validation">
24+
<sheet>
25+
<group>
26+
<field name="name"/>
27+
<field name="move_id"/>
28+
<field name="sms_code"/>
29+
<field name="validated"/>
30+
<field name="date"/>
31+
</group>
32+
</sheet>
33+
</form>
34+
</field>
35+
</record>
36+
37+
<!-- Action to open the views -->
38+
<record id="action_stock_move_sms_validation" model="ir.actions.act_window">
39+
<field name="name">Stock Move SMS Validations</field>
40+
<field name="res_model">stock.move.sms.validation</field>
41+
<field name="view_mode">tree,form</field>
42+
</record>
43+
44+
<!-- Menu item (optional, adjust parent as needed) -->
45+
<menuitem id="menu_stock_move_sms_validation"
46+
name="Stock Move SMS Validations"
47+
action="action_stock_move_sms_validation"
48+
parent="stock.menu_stock_warehouse_mgmt"/>
49+
</odoo>

0 commit comments

Comments
 (0)