~jfb-tempo-consulting/unifield-web/US-7530

« back to all changes in this revision

Viewing changes to addons/openerp/widgets/form/_form.py

  • Committer: jf
  • Date: 2020-08-06 14:23:27 UTC
  • mfrom: (4989.2.5 web-US-5271)
  • Revision ID: jfb@tempo-consulting.fr-20200806142327-fy0fvg6ud982dxu7
US-5271 [IMP] new attr set_ids on button to retrieve the o2m ids
Refresh o2m in a 1st popup when the 2nd popup is closed

lp:~jfb-tempo-consulting/unifield-web/US-5271

Show diffs side-by-side

added added

removed removed

Lines of Context:
690
690
class Button(TinyInputWidget):
691
691
 
692
692
    template = "/openerp/widgets/form/templates/button.mako"
693
 
    params = ["btype", "id", "confirm", "icon", "target", "context", "default_focus"]
 
693
    params = ["btype", "id", "confirm", "icon", "target", "context", "default_focus", "set_ids"]
694
694
 
695
695
    visible = True
696
696
    def __init__(self, **attrs):
702
702
        self.context = attrs.get("context", {})
703
703
        self.nolabel = True
704
704
        self.target = ''
 
705
        self.set_ids = attrs.get('set_ids')
705
706
        if self.icon:
706
707
            self.icon = icons.get_icon(self.icon)
707
708
        self.default_focus = attrs.get('default_focus', 0)