I'm using pycharm and want to search in code using regex. I want to filter those files that has 2 lines. One after another.
What I'm trying to accomplish is find code where is code line _inherit = 'res.partner and unique_code afterwards:
_inherit = 'res.partner'
parent_company = fields.Many2one('res.partner', 'Parent Company')
unique_code = fields.Char(string='Unique client code', readonly="1",copy=False, index=True)
So far what I have manage to do is: _inherit = 'res.partner'\s*. select first data point and all white space that goes after.
How can select unique_code also?