Skip to content

Commit

Permalink
[MIG] pos_place: Migration to 16.0 (from 12.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
legalsylvain committed Oct 28, 2024
1 parent f216846 commit f972843
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
2 changes: 1 addition & 1 deletion pos_place/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"name": "Point of Sale - Places",
"summary": "Define places on PoS orders",
"version": "12.0.1.0.4",
"version": "16.0.1.0.0",
"category": "Point of Sale",
"author": "GRAP,Odoo Community Association (OCA)",
"maintainers": ["legalsylvain"],
Expand Down
1 change: 0 additions & 1 deletion pos_place/models/pos_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class PosConfig(models.Model):
" group to the point of sale client.",
)

@api.multi
def _compute_group_pos_place_user_id(self):
for config in self:
config.group_pos_place_user_id = self.env.ref(
Expand Down
22 changes: 9 additions & 13 deletions pos_place/views/view_pos_place.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,15 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<form>
<sheet>
<div class="oe_button_box" name="button_box">
<button
name="toggle_active"
type="object"
class="oe_stat_button"
icon="fa-archive"
>
<field
name="active"
widget="boolean_button"
options="{&quot;terminology&quot;: &quot;archive&quot;}"
/>
</button>

<field name="active" invisible="1" />
<widget
name="web_ribbon"
title="Archived"
bg_color="bg-danger"
attrs="{'invisible': [('active', '=', True)]}"
/>

</div>
<div class="oe_title">
<div class="oe_edit_only">
Expand Down Expand Up @@ -67,7 +64,6 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<field name="name">Places</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">pos.place</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>

Expand Down

0 comments on commit f972843

Please sign in to comment.