Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Coopdevs OCB mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coopdevs
Odoo
Coopdevs OCB mirror
Commits
de4de4e2
Commit
de4de4e2
authored
10 years ago
by
Frédéric van der Essen
Browse files
Options
Downloads
Patches
Plain Diff
[IMP] restaurant: some linting for the OCD among us
parent
10750913
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
addons/restaurant/restaurant.py
+7
-8
7 additions, 8 deletions
addons/restaurant/restaurant.py
with
7 additions
and
8 deletions
addons/restaurant/restaurant.py
+
7
−
8
View file @
de4de4e2
...
...
@@ -21,35 +21,34 @@
import
logging
import
openerp
from
openerp
import
tools
from
openerp.osv
import
fields
,
osv
from
openerp.tools.translate
import
_
_logger
=
logging
.
getLogger
(
__name__
)
class
restaurant_printer
(
osv
.
osv
):
_name
=
'
restaurant.printer
'
_columns
=
{
'
name
'
:
fields
.
char
(
'
Printer Name
'
,
size
=
32
,
required
=
True
,
help
=
'
An internal identification of the printer
'
),
'
name
'
:
fields
.
char
(
'
Printer Name
'
,
size
=
32
,
required
=
True
,
help
=
'
An internal identification of the printer
'
),
'
proxy_ip
'
:
fields
.
char
(
'
Proxy IP Address
'
,
size
=
32
,
help
=
"
The IP Address or hostname of the Printer
'
s hardware proxy
"
),
'
product_categories_ids
'
:
fields
.
many2many
(
'
pos.category
'
,
'
printer_category_rel
'
,
'
printer_id
'
,
'
category_id
'
,
string
=
'
Printed Product Categories
'
),
'
product_categories_ids
'
:
fields
.
many2many
(
'
pos.category
'
,
'
printer_category_rel
'
,
'
printer_id
'
,
'
category_id
'
,
string
=
'
Printed Product Categories
'
),
}
_defaults
=
{
'
name
'
:
'
Printer
'
,
'
name
'
:
'
Printer
'
,
}
class
pos_config
(
osv
.
osv
):
_inherit
=
'
pos.config
'
_columns
=
{
'
iface_splitbill
'
:
fields
.
boolean
(
'
Bill Splitting
'
,
help
=
'
Enables Bill Splitting in the Point of Sale
'
),
'
iface_printbill
'
:
fields
.
boolean
(
'
Bill Printing
'
,
help
=
'
Allows to print the Bill before payment
'
),
'
printer_ids
'
:
fields
.
many2many
(
'
restaurant.printer
'
,
'
pos_config_printer_rel
'
,
'
config_id
'
,
'
printer_id
'
,
string
=
'
Order Printers
'
),
'
printer_ids
'
:
fields
.
many2many
(
'
restaurant.printer
'
,
'
pos_config_printer_rel
'
,
'
config_id
'
,
'
printer_id
'
,
string
=
'
Order Printers
'
),
}
_defaults
=
{
'
iface_splitbill
'
:
False
,
'
iface_printbill
'
:
False
,
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment